-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bb57e4
commit ea0e69d
Showing
818 changed files
with
66,169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# just a flag | ||
VITE_APP_ENV = 'development' | ||
|
||
# 环境变量必须以VITE_APP_为开头。如:VITE_APP_API、VITE_APP_TITLE | ||
# 你在代码中可以通过如下方式获取: | ||
# import.meta.env.VITE_APP_XXX | ||
|
||
# base api | ||
VITE_APP_BASE_API = 'http://192.168.1.80:8000' | ||
|
||
# 访问文件存储资源的url 对应阿里云的Bucket域名 | ||
VITE_APP_RESOURCES_URL = 'http://192.168.1.80:9000/mall4cloud' | ||
|
||
# 文件上传类型 0.阿里云 1.minIo | ||
VUE_APP_RESOURCES_TYPE = '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# just a flag | ||
VITE_APP_ENV = 'production' | ||
|
||
# 环境变量必须以VITE_APP_为开头。如:VITE_APP_API、VITE_APP_TITLE | ||
# 你在代码中可以通过如下方式获取: | ||
# import.meta.env.VITE_APP_XXX | ||
|
||
# base api | ||
VITE_APP_BASE_API = 'http://192.168.1.80:8000' | ||
|
||
# 访问文件存储资源的url 对应阿里云的Bucket域名 | ||
VITE_APP_RESOURCES_URL = 'http://192.168.1.80:9000/mall4cloud' | ||
|
||
# 文件上传类型 0.阿里云 1.minIo | ||
VUE_APP_RESOURCES_TYPE = '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/build/ | ||
/config/ | ||
/dist/ | ||
/*.js | ||
/src/components/verifition | ||
/test/unit/coverage/ | ||
/src/icons/iconfont.js | ||
/components.d.ts | ||
/src/auto-import |
139 changes: 139 additions & 0 deletions
139
front-end/mall4cloud-multishop/.eslintrc-auto-import.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{ | ||
"globals": { | ||
"$t": true, | ||
"Component": true, | ||
"ComponentPublicInstance": true, | ||
"ComputedRef": true, | ||
"Debounce": true, | ||
"EMAIL_REGEXP": true, | ||
"EffectScope": true, | ||
"InjectionKey": true, | ||
"MOBILE_REGEXP": true, | ||
"PASSWORD_REGEXP": true, | ||
"PropType": true, | ||
"Ref": true, | ||
"UNIFIED_SOCIAL_CREDIT_CODE": true, | ||
"USER_NAME_REGEXP": true, | ||
"VNode": true, | ||
"addClass": true, | ||
"byteLength": true, | ||
"cleanArray": true, | ||
"computed": true, | ||
"configDefInfo": true, | ||
"createApp": true, | ||
"createUniqueString": true, | ||
"customRef": true, | ||
"debounce": true, | ||
"deepClone": true, | ||
"defineAsyncComponent": true, | ||
"defineComponent": true, | ||
"effectScope": true, | ||
"encrypt": true, | ||
"filterAsyncRoutes": true, | ||
"flatten": true, | ||
"formatConfigInfo": true, | ||
"formatHtml": true, | ||
"formatTime": true, | ||
"formatPrice": true, | ||
"getCurrentInstance": true, | ||
"getCurrentScope": true, | ||
"getLevels": true, | ||
"getQueryObject": true, | ||
"getTime": true, | ||
"getToken": true, | ||
"getUUID": true, | ||
"h": true, | ||
"handleArr": true, | ||
"hasClass": true, | ||
"html2Text": true, | ||
"idList": true, | ||
"inject": true, | ||
"isArray": true, | ||
"isCreditCode": true, | ||
"isEmail": true, | ||
"isExternal": true, | ||
"isHtmlNull": true, | ||
"isMatching": true, | ||
"isMobile": true, | ||
"isProxy": true, | ||
"isReactive": true, | ||
"isReadonly": true, | ||
"isRef": true, | ||
"isString": true, | ||
"isUserName": true, | ||
"loadView": true, | ||
"markRaw": true, | ||
"nextTick": true, | ||
"noSpacesBothSides": true, | ||
"objectMerge": true, | ||
"onActivated": true, | ||
"onBeforeMount": true, | ||
"onBeforeRouteLeave": true, | ||
"onBeforeRouteUpdate": true, | ||
"onBeforeUnmount": true, | ||
"onBeforeUpdate": true, | ||
"onDeactivated": true, | ||
"onErrorCaptured": true, | ||
"onMounted": true, | ||
"onRenderTracked": true, | ||
"onRenderTriggered": true, | ||
"onScopeDispose": true, | ||
"onServerPrefetch": true, | ||
"onUnmounted": true, | ||
"onUpdated": true, | ||
"param": true, | ||
"param2Obj": true, | ||
"parseTime": true, | ||
"provide": true, | ||
"reactive": true, | ||
"readonly": true, | ||
"ref": true, | ||
"removeClass": true, | ||
"removeToken": true, | ||
"request": true, | ||
"resolveComponent": true, | ||
"setToken": true, | ||
"shallowReactive": true, | ||
"shallowReadonly": true, | ||
"shallowRef": true, | ||
"toRaw": true, | ||
"toRef": true, | ||
"toRefs": true, | ||
"toValue": true, | ||
"toggleClass": true, | ||
"treeDataTranslate": true, | ||
"triggerRef": true, | ||
"uniqueArr": true, | ||
"unref": true, | ||
"useAppStore": true, | ||
"useAttrs": true, | ||
"useCommonStore": true, | ||
"useCssModule": true, | ||
"useCssVars": true, | ||
"useLink": true, | ||
"usePermissionStore": true, | ||
"useRoute": true, | ||
"useRouter": true, | ||
"useSlots": true, | ||
"useUserStore": true, | ||
"useWebConfigStore": true, | ||
"validAlphabets": true, | ||
"validEmail": true, | ||
"validLowerCase": true, | ||
"validNoEmptySpace": true, | ||
"validPassword": true, | ||
"validURL": true, | ||
"validUpperCase": true, | ||
"validUsername": true, | ||
"watch": true, | ||
"watchEffect": true, | ||
"watchPostEffect": true, | ||
"watchSyncEffect": true, | ||
"stores": true, | ||
"allinpay": true, | ||
"useAllinpayStore": true, | ||
"ElMessageBox": true, | ||
"ElMessage": true, | ||
"useTestStore": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'standard', | ||
'./.eslintrc-auto-import.json', | ||
'plugin:vue/vue3-recommended', | ||
'plugin:vue-scoped-css/vue3-recommended' | ||
], | ||
overrides: [ | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
plugins: [ | ||
'vue' | ||
], | ||
rules: { | ||
// Possible Errors | ||
// 要求使用 let 或 const 而不是 var | ||
'no-var': 'error', | ||
// 强制 "for" 循环中更新子句的计数器朝着正确的方向移动 | ||
'for-direction': 'error', | ||
// 强制 getter 函数中出现 return 语句 | ||
'getter-return': 'error', | ||
// 禁止在嵌套的块中出现变量声明或 function 声明 | ||
'no-inner-declarations': 'error', | ||
// 禁止由于 await 或 yield的使用而可能导致出现竞态条件的赋值 | ||
'require-atomic-updates': 'error', | ||
// console 警告 | ||
'no-console': 'warn', | ||
// 禁止出现未使用过的变量 | ||
'no-unused-vars': [ | ||
'warn', | ||
{ | ||
args: 'all', | ||
caughtErrors: 'none', | ||
ignoreRestSiblings: true, | ||
vars: 'all', | ||
// 符合规则的参数名将会忽略 | ||
argsIgnorePattern: '^[rule, value, i, to, from]' | ||
} | ||
], | ||
// 关闭名称校验 | ||
'vue/multi-word-component-names': 'off', | ||
// 非生产环境启用 debugger | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
|
||
// Best Practices | ||
eqeqeq: 'off', | ||
|
||
// Stylistic Issues | ||
// 强制可嵌套的块的最大深度 | ||
'max-depth': ['error', 5], | ||
// 强制函数最大代码行数 | ||
'max-lines-per-function': [ | ||
'error', | ||
{ | ||
max: 150, | ||
skipBlankLines: true | ||
} | ||
], | ||
// 强制回调函数最大嵌套深度 | ||
'max-nested-callbacks': ['error', { max: 10 }], | ||
// 强制函数定义中最多允许的参数数量 | ||
'max-params': ['error', { max: 5 }], | ||
// 强制每一行中所允许的最大语句数量 | ||
'max-statements-per-line': ['error', { max: 1 }], | ||
// 三目运算符换行 | ||
'multiline-ternary': ['error', 'never'], | ||
// 传值给组件时的使用 kebab-case | ||
'vue/v-on-event-hyphenation': ['warn', 'always', { | ||
autofix: true, | ||
ignore: [] | ||
}], | ||
// 允许 promise.reject() | ||
'prefer-promise-reject-errors': ['error', { | ||
allowEmptyReject: true | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.DS_Store | ||
node_modules/ | ||
dist/ | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
**/*.log | ||
|
||
tests/**/coverage/ | ||
tests/e2e/reports | ||
selenium-debug.log | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.local | ||
|
||
package-lock.json | ||
yarn.lock | ||
pnpm-lock.yaml | ||
|
||
/src/auto-import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
engine-strict = true | ||
shamefully-hoist = true | ||
strict-peer-dependencies = false | ||
registry = https://registry.npmmirror.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM nginx:1.20 | ||
COPY ./dist /usr/share/nginx/html/dist | ||
COPY ./nginx.conf /etc/nginx/conf.d |
Oops, something went wrong.