diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 00000000..669db341 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,4 @@ +> 1% +last 2 versions +Chrome >= 63 +not dead diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..92639abb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# https://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +tab_width = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false +insert_final_newline = false diff --git a/.env b/.env new file mode 100644 index 00000000..1f78438c --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +VUE_APP_NAME='' +VUE_APP_API_BASE_URL=https://market.liche.cn/api +#npm run build 加载环境 \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..3754cdd9 --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +VUE_APP_API_BASE_URL=http://market.dev.liche.cn/api +#npm run serve 加载环境 diff --git a/.env.preview b/.env.preview new file mode 100644 index 00000000..5ed0bc17 --- /dev/null +++ b/.env.preview @@ -0,0 +1,3 @@ +NODE_ENV=production +VUE_APP_API_BASE_URL=https://market.liche.cn/api +npm run build:preview 加载环境 \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..33959ae5 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,4 @@ +public +src/assets +node_modules +dist diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..14707ae4 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,23 @@ +module.exports = { + root: true, + env: { + browser: true, + node: true, + es6: true + }, + parser: 'vue-eslint-parser', + extends: [ + 'plugin:vue/essential', + 'eslint:recommended', + 'plugin:prettier/recommended' + ], + parserOptions: { + ecmaVersion: 2020, + sourceType: 'module' + }, + rules: { + 'no-console': 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'vue/multi-word-component-names': 'off' + } +}; diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..d46d543c --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +.DS_Store +node_modules +/dist + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log +.eslintcache + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..9de3b6ed --- /dev/null +++ b/.prettierignore @@ -0,0 +1,10 @@ +/public/** +/src/assets/** +/node_modules/** +/dist/** + +.local +.output.js + +**/*.svg +**/*.sh diff --git a/exclude.list b/exclude.list index 03c1fc6b..7da99cc9 100644 --- a/exclude.list +++ b/exclude.list @@ -3,7 +3,6 @@ /node_modules .svn .git -config.js .DS_Store .env.local @@ -20,4 +19,4 @@ yarn-error.log* *.ntvs* *.njsproj *.sln -*.sw? +*.sw? \ No newline at end of file diff --git a/src/config/setting.js b/src/config/setting.js index 78a33722..a23d68cb 100644 --- a/src/config/setting.js +++ b/src/config/setting.js @@ -1,6 +1,7 @@ // 接口地址 -export const API_BASE_URL = process.env.VUE_APP_API_BASE_URL; -//export const API_BASE_URL = 'http://localhost:8088/system'; +//export const API_BASE_URL = process.env.VUE_APP_API_BASE_URL; +export const API_BASE_URL = 'http://localhost:8088/system'; +//export const API_BASE_URL = 'https://cloud.haodian.cn/system'; // 项目名称 export const PROJECT_NAME = process.env.VUE_APP_NAME; diff --git a/src/views/extension/icon/index.vue b/src/views/extension/icon/index.vue new file mode 100644 index 00000000..0ce80409 --- /dev/null +++ b/src/views/extension/icon/index.vue @@ -0,0 +1,227 @@ + + + + +