diff --git a/z_ele/.editorconfig b/z_ele/.editorconfig new file mode 100644 index 0000000..3454886 --- /dev/null +++ b/z_ele/.editorconfig @@ -0,0 +1,14 @@ +# https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/z_ele/.env.development b/z_ele/.env.development new file mode 100644 index 0000000..fb8521b --- /dev/null +++ b/z_ele/.env.development @@ -0,0 +1,3 @@ +# 开发环境接口地址 +#VITE_API_URL=https://v2.eleadmin.com/api +VITE_API_URL=http://a.tcp.run/adminapi diff --git a/z_ele/.env.production b/z_ele/.env.production new file mode 100644 index 0000000..e25fb9d --- /dev/null +++ b/z_ele/.env.production @@ -0,0 +1,2 @@ +# 生产环境接口地址 +VITE_API_URL=https://v2.eleadmin.com/api diff --git a/z_ele/.env.staging b/z_ele/.env.staging new file mode 100644 index 0000000..de59373 --- /dev/null +++ b/z_ele/.env.staging @@ -0,0 +1,2 @@ +# 预发布环境接口地址 +VITE_API_URL=https://v2.eleadmin.com/api diff --git a/z_ele/.eslintignore b/z_ele/.eslintignore new file mode 100644 index 0000000..46b1426 --- /dev/null +++ b/z_ele/.eslintignore @@ -0,0 +1,4 @@ +public +src/assets +dist +node_modules diff --git a/z_ele/.eslintrc.json b/z_ele/.eslintrc.json new file mode 100644 index 0000000..f14748d --- /dev/null +++ b/z_ele/.eslintrc.json @@ -0,0 +1,76 @@ +{ + "root": true, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "parser": "vue-eslint-parser", + "extends": [ + "plugin:@typescript-eslint/recommended", + "plugin:vue/vue3-recommended", + "plugin:prettier/recommended" + ], + "parserOptions": { + "parser": "@typescript-eslint/parser", + "ecmaVersion": "latest", + "sourceType": "module", + "jsxPragma": "React", + "ecmaFeatures": { + "jsx": true + } + }, + "rules": { + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/ban-ts-ignore": "off", + "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-empty-function": "off", + "@typescript-eslint/no-use-before-define": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_" + } + ], + "vue/attributes-order": "off", + "vue/attribute-hyphenation": "off", + "vue/v-on-event-hyphenation": "off", + "vue/custom-event-name-casing": "off", + "vue/multi-word-component-names": "off", + "vue/no-setup-props-destructure": "off", + "vue/script-setup-uses-vars": "error", + "vue/one-component-per-file": "off", + "vue/max-attributes-per-line": "off", + "vue/html-closing-bracket-newline": "off", + "vue/multiline-html-element-content-newline": "off", + "vue/singleline-html-element-content-newline": "off", + "vue/require-default-prop": "off", + "vue/html-self-closing": [ + "error", + { + "html": { + "void": "always", + "normal": "never", + "component": "always" + }, + "svg": "always", + "math": "always" + } + ], + "no-use-before-define": "off", + "space-before-function-paren": "off", + "no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_" + } + ] + } +} diff --git a/z_ele/.gitignore b/z_ele/.gitignore new file mode 100644 index 0000000..acea6cc --- /dev/null +++ b/z_ele/.gitignore @@ -0,0 +1,25 @@ +.DS_Store +node_modules +/dist +/dist-ssr + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +.pnpm-debug.log +.eslintcache + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/z_ele/.prettierignore b/z_ele/.prettierignore new file mode 100644 index 0000000..f7e39e6 --- /dev/null +++ b/z_ele/.prettierignore @@ -0,0 +1,9 @@ +/dist/* +.local +.output.js +/node_modules/** + +**/*.svg +**/*.sh + +/public/* diff --git a/z_ele/README.md b/z_ele/README.md new file mode 100644 index 0000000..a797a27 --- /dev/null +++ b/z_ele/README.md @@ -0,0 +1,27 @@ +# Vue 3 + Typescript + Vite + +This template should help get you started developing with Vue 3 and Typescript in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings! + +### If Using ` +