diff --git a/.cz-config.js b/.cz-config.js index 33b3d51..7b5c010 100644 --- a/.cz-config.js +++ b/.cz-config.js @@ -1,23 +1,26 @@ module.exports = { types: [ - { value: 'feat', name:'feat: 新增功能' }, - { value: 'fix', name:'fix: 修复bug' }, - { value: 'docs', name:'docs: 文档变更' }, - { value: 'style', name:'style: 代码格式(不影响功能,例如空格、分号等格式修正)' }, - { value: 'refactor', name:'refactor: 代码重构(不包括 bug 修复、功能新增)' }, - { value: 'perf', name:'perf: 性能优化' }, - { value: 'test', name:'test: 添加、修改测试用例' }, - { value: 'build', name:'build: 构建流程、外部依赖变更(如升级 npm 包、修改 脚手架 配置等)' }, - { value: 'ci', name:'ci: 修改 CI 配置、脚本' }, - { value: 'chore', name:'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)' }, - { value: 'revert', name:'revert: 回滚 commit' }, - { value: 'wip', name:'wip: 开发中' }, - { value: 'mod', name:'mod: 不确定分类的修改' }, - { value: 'release', name:'release: 发布' }, + { value: 'feat', name: 'feat: 新增功能' }, + { value: 'fix', name: 'fix: 修复bug' }, + { value: 'docs', name: 'docs: 文档变更' }, + { value: 'style', name: 'style: 代码格式(不影响功能,例如空格、分号等格式修正)' }, + { value: 'refactor', name: 'refactor: 代码重构(不包括 bug 修复、功能新增)' }, + { value: 'perf', name: 'perf: 性能优化' }, + { value: 'test', name: 'test: 添加、修改测试用例' }, + { + value: 'build', + name: 'build: 构建流程、外部依赖变更(如升级 npm 包、修改 脚手架 配置等)', + }, + { value: 'ci', name: 'ci: 修改 CI 配置、脚本' }, + { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)' }, + { value: 'revert', name: 'revert: 回滚 commit' }, + { value: 'wip', name: 'wip: 开发中' }, + { value: 'mod', name: 'mod: 不确定分类的修改' }, + { value: 'release', name: 'release: 发布' }, ], scopes: [ ['custom', '自定义'], - ['projects', '项目搭建'], + ['projects', '项目搭建'], ['components', '组件相关'], ['utils', 'utils 相关'], ['styles', '样式相关'], @@ -26,7 +29,7 @@ module.exports = { ].map(([value, description]) => { return { value, - name: `${value.padEnd(30)} (${description})` + name: `${value.padEnd(30)} (${description})`, } }), messages: { @@ -37,9 +40,9 @@ module.exports = { body: '填写更加详细的变更描述(可选)。使用 "|" 换行:', breaking: '列举非兼容性重大的变更(可选):', footer: '列举出所有变更的 Issues Closed(可选)。 例如: #31, #34:', - confirmCommit: '确认提交?' + confirmCommit: '确认提交?', }, allowBreakingChanges: ['feat', 'fix'], subjectLimit: 100, - breaklineChar: '|' + breaklineChar: '|', } diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/.env b/.env index f5d8333..86a2b02 100644 --- a/.env +++ b/.env @@ -1,9 +1,3 @@ -VITE_TITLE = '捷兑通 - 平台端' - -VITE_PORT = 4000 - -VITE_WS_URL = 'www.wanzhuanyongcheng.cn/admin/data' - -VITE_WS1_URL = 'www.jdt168.com/dice/home' - -VITE_GAME_API = 'https://www.jdt168.com' \ No newline at end of file +VITE_TITLE='捷兑通 - 平台端' + +VITE_PORT=4000 diff --git a/.env.development b/.env.development index 39ce38e..569fa74 100644 --- a/.env.development +++ b/.env.development @@ -1,11 +1,22 @@ -# 资源公共路径,需要以 /开头和结尾 -VITE_PUBLIC_PATH = '/' - -# 是否启用MOCK -VITE_USE_MOCK = false - -# 是否启用代理 -VITE_USE_PROXY = true - -# base api -VITE_BASE_API = '/admin' +# 资源公共路径,需要以 /开头和结尾 +VITE_PUBLIC_PATH='/' + +# 是否启用MOCK +VITE_USE_MOCK=false + +# 是否启用代理 +VITE_USE_PROXY=true + +# base api +VITE_BASE_API='https://test.wanzhuanyongcheng.cn/admin' + +VITE_WS1_URL='game.wanzhuanyongcheng.cn/dice/home' + +VITE_WS_URL='test.wanzhuanyongcheng.cn/admin/data' + +VITE_MER_LOGIN_URL='//localhost:3100/login' + +VITE_GAME_API='https://www.jdt168.com' + +# 是否启用监控 +VITE_SENTRY=false diff --git a/.env.github b/.env.github deleted file mode 100644 index beca876..0000000 --- a/.env.github +++ /dev/null @@ -1,13 +0,0 @@ -# 自定义域名CNAME -# VITE_CNAME = 'template.qszone.com' - -# 资源公共路径,需要以 /开头和结尾 -VITE_PUBLIC_PATH = '/vue-naive-admin/' - -VITE_USE_HASH = true - -# 是否启用MOCK -VITE_USE_MOCK = true - -# base api -VITE_BASE_API = '/api' \ No newline at end of file diff --git a/.env.production b/.env.production index ce6a786..eac340a 100644 --- a/.env.production +++ b/.env.production @@ -1,16 +1,24 @@ # 资源公共路径,需要以 /开头和结尾 -VITE_PUBLIC_PATH = '/static/admin' +VITE_PUBLIC_PATH='/' # 是否启用MOCK -VITE_USE_MOCK = false +VITE_USE_MOCK=false # base api -VITE_BASE_API = 'https://www.wanzhuanyongcheng.cn/admin' - -# VITE_GAME_API = 'http://www.wanzhuanyongcheng.cn/admin' +VITE_BASE_API='//www.wanzhuanyongcheng.cn/admin' # 是否启用压缩 -VITE_USE_COMPRESS = true +VITE_USE_COMPRESS=true # 压缩类型 -VITE_COMPRESS_TYPE = gzip \ No newline at end of file +VITE_COMPRESS_TYPE=gzip + +VITE_WS1_URL='www.jdt168.com/dice/home' + +VITE_WS_URL='www.wanzhuanyongcheng.cn/admin/data' + + +VITE_MER_LOGIN_URL='//jdt-prod-mer.wanzhuanyongcheng.cn/login' + +# 是否启用监控 +VITE_SENTRY=true diff --git a/.env.sentry-build-plugin b/.env.sentry-build-plugin new file mode 100644 index 0000000..8024900 --- /dev/null +++ b/.env.sentry-build-plugin @@ -0,0 +1,5 @@ +# DO NOT commit this file to your repository! +# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin. +# It's used for authentication when uploading source maps. +# You can also set this env variable in your own `.env` files and remove this file. +SENTRY_AUTH_TOKEN="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" diff --git a/.env.test b/.env.test index 5de4913..9197f2b 100644 --- a/.env.test +++ b/.env.test @@ -1,7 +1,28 @@ -VITE_PUBLIC_PATH = '/' +# 资源公共路径,需要以 /开头和结尾 +VITE_PUBLIC_PATH='/' # 是否启用MOCK -VITE_USE_MOCK = true +VITE_USE_MOCK=false + +# 是否启用代理 +VITE_USE_PROXY=false + +# 是否启用压缩 +VITE_USE_COMPRESS=true + +# 压缩类型 +VITE_COMPRESS_TYPE=gzip # base api -VITE_BASE_API = '/api' \ No newline at end of file +VITE_BASE_API='//test.wanzhuanyongcheng.cn/admin' + +VITE_WS1_URL='game.wanzhuanyongcheng.cn/dice/home' + +VITE_WS_URL='test.wanzhuanyongcheng.cn/admin/data' + +VITE_GAME_API='https://game.wanzhuanyongcheng.cn' + +VITE_MER_LOGIN_URL='//jdt-test-mer.wanzhuanyongcheng.cn/login' + +# 是否启用监控 +VITE_SENTRY=false diff --git a/.idea/admin.iml b/.idea/admin.iml new file mode 100644 index 0000000..0b872d8 --- /dev/null +++ b/.idea/admin.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index e555e7d..5464eeb 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -36,6 +36,10 @@