Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
O-h-y-o committed Jun 23, 2023
0 parents commit bdda409
Show file tree
Hide file tree
Showing 53 changed files with 11,359 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
module.exports = {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
root: true,

// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
parserOptions: {
parser: require.resolve("@typescript-eslint/parser"),
extraFileExtensions: [".vue"],
},

env: {
browser: true,
es2021: true,
node: true,
"vue/setup-compiler-macros": true,
},

// Rules order is important, please avoid shuffling them
extends: [
// Base ESLint recommended rules
// 'eslint:recommended',

// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
// ESLint typescript rules
"plugin:@typescript-eslint/recommended",

// Uncomment any of the lines below to choose desired strictness,
// but leave only one uncommented!
// See https://eslint.vuejs.org/rules/#available-rules
"plugin:vue/vue3-essential", // Priority A: Essential (Error Prevention)
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)

// https://github.com/prettier/eslint-config-prettier#installation
// usage with Prettier, provided by 'eslint-config-prettier'.
"prettier",
],

plugins: [
// required to apply rules which need type information
"@typescript-eslint",

// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
// required to lint *.vue files
"vue",

// https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
// Prettier has not been included as plugin to avoid performance impact
// add it as an extension for your IDE
],

globals: {
ga: "readonly", // Google Analytics
cordova: "readonly",
__statics: "readonly",
__QUASAR_SSR__: "readonly",
__QUASAR_SSR_SERVER__: "readonly",
__QUASAR_SSR_CLIENT__: "readonly",
__QUASAR_SSR_PWA__: "readonly",
process: "readonly",
Capacitor: "readonly",
chrome: "readonly",
},

// add your custom rules here
rules: {
"prefer-promise-reject-errors": "off",

quotes: ["warn", "single", { avoidEscape: true }],

// this rule, if on, would require explicit return type on the `render` function
"@typescript-eslint/explicit-function-return-type": "off",

"@typescript-eslint/no-explicit-any": ["off"],

// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
"@typescript-eslint/no-var-requires": "off",

// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
// does not work with type definitions
"no-unused-vars": "off",

// allow debugger during development only
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",

// possible multi word component names
"vue/multi-word-component-names": "off",
},
};
46 changes: 46 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

name: Deploy Docs

on:
push:
branches:
# make sure this is the branch you are using
- main

jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true


- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm


- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
pnpm run docs:build
> src/.vuepress/dist/.nojekyll
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
# This is the branch where the docs are deployed to
branch: gh-pages
folder: src/.vuepress/dist
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

node_modules/
src/.vuepress/.cache/
src/.vuepress/.temp/
src/.vuepress/dist/
41 changes: 41 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export {};

declare global {
interface ISocketState {
chartTime: string;
coinFullName: { ko: string; en: string };
selectCoin: string;
tradeData: ISocketTradeResponse;
}

interface ICandleStickResponse {
market: string;
candle_date_time_utc: string;
candle_date_time_kst: string;
opening_price: number;
high_price: number;
low_price: number;
trade_price: number;
timestamp: number;
candle_acc_trade_price: number;
candle_acc_trade_volume: number;
unit: number;
}

interface ISocketTradeResponse {
ab: string;
c: string;
cd: string;
cp: number;
pcp: number;
sid: number;
st: string;
td: string;
tms: number;
tp: number;
ttm: string;
ttms: number;
tv: number;
ty: string;
}
}
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "git-blog",
"version": "1.0.0",
"description": "o-h-y-o git blog",
"license": "MIT",
"type": "module",
"scripts": {
"docs:build": "vuepress build src",
"docs:clean-dev": "vuepress dev src --clean-cache",
"docs:dev": "vuepress dev src",
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vuepress/client": "2.0.0-beta.63",
"@vuepress/plugin-register-components": "2.0.0-beta.63",
"@vuepress/utils": "2.0.0-alpha.1",
"typescript": "^5.1.3",
"vue": "^3.2.47",
"vuepress": "2.0.0-beta.63",
"vuepress-theme-hope": "2.0.0-beta.227"
},
"dependencies": {
"axios": "^1.4.0",
"dayjs": "^1.11.8",
"echarts": "^5.4.2",
"pinia": "^2.1.4",
"vue-echarts": "^6.6.0"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"search-insights"
]
}
}
}
Loading

0 comments on commit bdda409

Please sign in to comment.