Skip to content

Commit f4b5150

Browse files
committed
feat: add pure-admin-thin
1 parent 7067396 commit f4b5150

File tree

127 files changed

+11709
-2
lines changed

Some content is hidden

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

127 files changed

+11709
-2
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
insert_final_newline = false
14+
trim_trailing_whitespace = false

.env

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# port
2+
VITE_PORT = 8848
3+
# title
4+
VITE_TITLE = vue-pure-admin
5+
# version
6+
VITE_VERSION = 2.1.0
7+
# open
8+
VITE_OPEN = false
9+
10+
# public path
11+
VITE_PUBLIC_PATH = /
12+
13+
# Cross-domain proxy, you can configure multiple
14+
VITE_PROXY = [ ["/api", "http://127.0.0.1:3000" ] ]

.env.development

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# port
2+
VITE_PORT = 8848
3+
# title
4+
VITE_TITLE = vue-pure-admin
5+
# version
6+
VITE_VERSION = 2.1.0
7+
# open
8+
VITE_OPEN = false
9+
10+
# public path
11+
VITE_PUBLIC_PATH = /
12+
13+
# Cross-domain proxy, you can configure multiple
14+
VITE_PROXY = [ ["/api", "http://127.0.0.1:3000" ] ]

.env.production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# public path
2+
VITE_PUBLIC_PATH = /manages/

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public
2+
dist
3+
*.d.ts
4+
package.json

.eslintrc.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
globals: {
7+
// Ref sugar (take 2)
8+
$: "readonly",
9+
$$: "readonly",
10+
$ref: "readonly",
11+
$shallowRef: "readonly",
12+
$computed: "readonly",
13+
14+
// index.d.ts
15+
// global.d.ts
16+
Fn: "readonly",
17+
PromiseFn: "readonly",
18+
RefType: "readonly",
19+
LabelValueOptions: "readonly",
20+
EmitType: "readonly",
21+
TargetContext: "readonly",
22+
ComponentElRef: "readonly",
23+
ComponentRef: "readonly",
24+
ElRef: "readonly",
25+
global: "readonly",
26+
ForDataType: "readonly",
27+
ComponentRoutes: "readonly",
28+
29+
// script setup
30+
defineProps: "readonly",
31+
defineEmits: "readonly",
32+
defineExpose: "readonly",
33+
withDefaults: "readonly"
34+
},
35+
extends: [
36+
"plugin:vue/vue3-essential",
37+
"eslint:recommended",
38+
"@vue/typescript/recommended",
39+
"@vue/prettier",
40+
"@vue/prettier/@typescript-eslint"
41+
],
42+
parser: "vue-eslint-parser",
43+
parserOptions: {
44+
parser: "@typescript-eslint/parser",
45+
ecmaVersion: 2020,
46+
sourceType: "module",
47+
jsxPragma: "React",
48+
ecmaFeatures: {
49+
jsx: true
50+
}
51+
},
52+
rules: {
53+
"@typescript-eslint/no-explicit-any": "off", // any
54+
"no-debugger": "off",
55+
"@typescript-eslint/explicit-module-boundary-types": "off", // setup()
56+
"@typescript-eslint/ban-types": "off",
57+
"@typescript-eslint/ban-ts-comment": "off",
58+
"@typescript-eslint/no-empty-function": "off",
59+
"@typescript-eslint/no-non-null-assertion": "off",
60+
"@typescript-eslint/no-unused-vars": [
61+
"error",
62+
{
63+
argsIgnorePattern: "^_",
64+
varsIgnorePattern: "^_"
65+
}
66+
],
67+
"no-unused-vars": [
68+
"error",
69+
{
70+
argsIgnorePattern: "^_",
71+
varsIgnorePattern: "^_"
72+
}
73+
]
74+
}
75+
};

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
dist-ssr
5+
*.local
6+
.eslintcache
7+
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
tests/**/coverage/
12+
13+
# Editor directories and files
14+
.idea
15+
*.suo
16+
*.ntvs*
17+
*.njsproj
18+
*.sln

.husky/commit-msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# shellcheck source=./_/husky.sh
4+
. "$(dirname "$0")/_/husky.sh"
5+
6+
npx --no-install commitlint --edit "$1"

.husky/common.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
command_exists () {
3+
command -v "$1" >/dev/null 2>&1
4+
}
5+
6+
# Workaround for Windows 10, Git Bash and Yarn
7+
if command_exists winpty && test -t 1; then
8+
exec < /dev/tty
9+
fi

.husky/lintstagedrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
3+
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
4+
"prettier --write--parser json"
5+
],
6+
"package.json": ["prettier --write"],
7+
"*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"],
8+
"*.{vue,css,scss,postcss,less}": ["stylelint --fix", "prettier --write"],
9+
"*.md": ["prettier --write"]
10+
};

0 commit comments

Comments
 (0)