Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit 2fee92f

Browse files
authored
feat: create custom dynamic menus and re-format (#6)
* feat: create custom dynamic menus and re-format * chore: eslint --fix * chore: remove console debug log
1 parent d697cad commit 2fee92f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+46917
-2291
lines changed

.env.development

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_API_BASE_URL= 'http://localhost:8000'
1+
VITE_API_BASE_URL='http://localhost:8000'

.eslintrc.js

+46-46
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
11
// eslint-disable-next-line @typescript-eslint/no-var-requires
2-
const path = require('path');
2+
const path = require("path");
33

44
module.exports = {
55
root: true,
6-
parser: 'vue-eslint-parser',
6+
parser: "vue-eslint-parser",
77
parserOptions: {
88
// Parser that checks the content of the <script> tag
9-
parser: '@typescript-eslint/parser',
10-
sourceType: 'module',
9+
parser: "@typescript-eslint/parser",
10+
sourceType: "module",
1111
ecmaVersion: 2020,
1212
ecmaFeatures: {
13-
jsx: true,
14-
},
13+
jsx: true
14+
}
1515
},
1616
env: {
17-
'browser': true,
18-
'node': true,
19-
'vue/setup-compiler-macros': true,
17+
"browser": true,
18+
"node": true,
19+
"vue/setup-compiler-macros": true
2020
},
21-
plugins: ['@typescript-eslint'],
21+
plugins: ["@typescript-eslint"],
2222
extends: [
2323
// Airbnb JavaScript Style Guide https://github.com/airbnb/javascript
24-
'airbnb-base',
25-
'plugin:@typescript-eslint/recommended',
26-
'plugin:import/recommended',
27-
'plugin:import/typescript',
28-
'plugin:vue/vue3-recommended',
29-
'plugin:prettier/recommended',
24+
"airbnb-base",
25+
"plugin:@typescript-eslint/recommended",
26+
"plugin:import/recommended",
27+
"plugin:import/typescript",
28+
"plugin:vue/vue3-recommended",
29+
"plugin:prettier/recommended"
3030
],
3131
settings: {
32-
'import/resolver': {
32+
"import/resolver": {
3333
typescript: {
34-
project: path.resolve(__dirname, './tsconfig.json'),
35-
},
36-
},
34+
project: path.resolve(__dirname, "./tsconfig.json")
35+
}
36+
}
3737
},
3838
rules: {
39-
'prettier/prettier': [
39+
"prettier/prettier": [
4040
1,
4141
{
42-
'endOfLine': 'auto'
42+
"endOfLine": "auto"
4343
}
4444
],
4545
// Vue: Recommended rules to be closed or modify
46-
'vue/require-default-prop': 0,
47-
'vue/singleline-html-element-content-newline': 0,
48-
'vue/max-attributes-per-line': 0,
46+
"vue/require-default-prop": 0,
47+
"vue/singleline-html-element-content-newline": 0,
48+
"vue/max-attributes-per-line": 0,
4949
// Vue: Add extra rules
50-
'vue/custom-event-name-casing': [2, 'camelCase'],
51-
'vue/no-v-text': 1,
52-
'vue/padding-line-between-blocks': 1,
53-
'vue/require-direct-export': 1,
54-
'vue/multi-word-component-names': 0,
50+
"vue/custom-event-name-casing": [2, "camelCase"],
51+
"vue/no-v-text": 1,
52+
"vue/padding-line-between-blocks": 1,
53+
"vue/require-direct-export": 1,
54+
"vue/multi-word-component-names": 0,
5555
// Allow @ts-ignore comment
56-
'@typescript-eslint/ban-ts-comment': 0,
57-
'@typescript-eslint/no-unused-vars': 1,
58-
'@typescript-eslint/no-empty-function': 1,
59-
'@typescript-eslint/no-explicit-any': 0,
60-
'import/extensions': [
56+
"@typescript-eslint/ban-ts-comment": 0,
57+
"@typescript-eslint/no-unused-vars": 1,
58+
"@typescript-eslint/no-empty-function": 1,
59+
"@typescript-eslint/no-explicit-any": 0,
60+
"import/extensions": [
6161
2,
62-
'ignorePackages',
62+
"ignorePackages",
6363
{
64-
js: 'never',
65-
jsx: 'never',
66-
ts: 'never',
67-
tsx: 'never',
68-
},
64+
js: "never",
65+
jsx: "never",
66+
ts: "never",
67+
tsx: "never"
68+
}
6969
],
70-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
71-
'no-param-reassign': 0,
72-
'prefer-regex-literals': 0,
73-
'import/no-extraneous-dependencies': 0,
74-
},
70+
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
71+
"no-param-reassign": 0,
72+
"prefer-regex-literals": 0,
73+
"import/no-extraneous-dependencies": 0
74+
}
7575
};

.prettierrc.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
semi: true,
44
printWidth: 80,
55
singleQuote: true,
6-
quoteProps: 'consistent',
7-
htmlWhitespaceSensitivity: 'strict',
8-
vueIndentScriptAndStyle: true,
6+
quoteProps: "consistent",
7+
htmlWhitespaceSensitivity: "strict",
8+
vueIndentScriptAndStyle: true
99
};

.stylelintrc.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
module.exports = {
22
extends: [
3-
'stylelint-config-standard',
4-
'stylelint-config-rational-order',
5-
'stylelint-config-prettier',
6-
'stylelint-config-recommended-vue',
3+
"stylelint-config-standard",
4+
"stylelint-config-rational-order",
5+
"stylelint-config-prettier",
6+
"stylelint-config-recommended-vue"
77
],
8-
defaultSeverity: 'warning',
9-
plugins: ['stylelint-order'],
8+
defaultSeverity: "warning",
9+
plugins: ["stylelint-order"],
1010
rules: {
11-
'at-rule-no-unknown': [
11+
"at-rule-no-unknown": [
1212
true,
1313
{
14-
ignoreAtRules: ['plugin'],
15-
},
14+
ignoreAtRules: ["plugin"]
15+
}
1616
],
17-
'rule-empty-line-before': [
18-
'always',
17+
"rule-empty-line-before": [
18+
"always",
1919
{
20-
except: ['after-single-line-comment', 'first-nested'],
21-
},
20+
except: ["after-single-line-comment", "first-nested"]
21+
}
2222
],
23-
'selector-pseudo-class-no-unknown': [
23+
"selector-pseudo-class-no-unknown": [
2424
true,
2525
{
26-
ignorePseudoClasses: ['deep'],
27-
},
28-
],
29-
},
26+
ignorePseudoClasses: ["deep"]
27+
}
28+
]
29+
}
3030
};

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
## run
2+
23
```shell
34
npm install
45
npm run dev
56
```
7+
68
or
9+
710
```shell
811
yarn
912
yarn dev

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
plugins: ['@vue/babel-plugin-jsx'],
2+
plugins: ["@vue/babel-plugin-jsx"]
33
};

commitlint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
2+
extends: ["@commitlint/config-conventional"]
33
};

components.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// @ts-nocheck
44
// Generated by unplugin-vue-components
55
// Read more: https://github.com/vuejs/core/pull/3399
6-
import '@vue/runtime-core'
6+
import "@vue/runtime-core";
77

8-
export {}
8+
export {};
99

10-
declare module '@vue/runtime-core' {
10+
declare module "@vue/runtime-core" {
1111
export interface GlobalComponents {
12-
RouterLink: typeof import('vue-router')['RouterLink']
13-
RouterView: typeof import('vue-router')['RouterView']
12+
RouterLink: typeof import("vue-router")["RouterLink"];
13+
RouterView: typeof import("vue-router")["RouterView"];
1414
}
1515
}

index.html

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Arco Design Pro - 开箱即用的中台前端/设计解决方案</title>
8-
</head>
9-
<body>
10-
<div id="app"></div>
11-
<script type="module" src="/src/main.ts"></script>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico" rel="shortcut icon"
6+
type="image/x-icon">
7+
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
8+
<title>Arco Design Pro - 开箱即用的中台前端/设计解决方案</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script src="/src/main.ts" type="module"></script>
13+
</body>
1314
</html>

0 commit comments

Comments
 (0)