整合包sh命令,可自行整合

This commit is contained in:
小易 2024-02-05 18:44:19 +08:00
parent 12600981ab
commit 9f304e0987
7 changed files with 3447 additions and 136 deletions

1
.gitignore vendored
View File

@ -18,6 +18,7 @@ node_modules/
service/**/.env
/dist/
/AIWebQuickDeploy/
.idea/
*.log

8
admin/.env.production Normal file
View File

@ -0,0 +1,8 @@
# 页面标题
VITE_APP_TITLE = Yi-Ai
# 接口请求地址,会设置到 axios 的 baseURL 参数上 生产地址测试
# VITE_APP_API_BASEURL = https://xxx.com/api
# VITE_BASE_PATH=/
VITE_APP_API_BASEURL = /api
VITE_BASE_PATH=/admin/

View File

@ -22,8 +22,6 @@ cp service/pm2.conf.json AIWebQuickDeploy/pm2.conf.json
cp service/package.json AIWebQuickDeploy/package.json
cp service/README.md AIWebQuickDeploy/README.md
cp service/.env.example AIWebQuickDeploy/.env.example
cp service/Dockerfile AIWebQuickDeploy/Dockerfile
cp service/docker-compose.yml AIWebQuickDeploy/docker-compose.yml
cp -r service/templates/* AIWebQuickDeploy/templates
cp -r service/dist/* AIWebQuickDeploy/dist

9
chat/.env.production Normal file
View File

@ -0,0 +1,9 @@
# 本地链接生产
# VITE_GLOB_API_URL=https://xxx.com/api
# 本地
VITE_GLOB_API_URL=/api
VITE_GLOB_OPEN_LONG_REPLY=Ture
VITE_GLOB_APP_PWA=Ture

3376
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,39 +4,43 @@
"description": "使用 Nestjs 和 Vue3 搭建的 AIGC 生态社区 持续集成AI能力到社区之中",
"main": "index.js",
"author": "longyanjiang",
"keywords": ["ChatGpt", "AIGC", "AI"],
"keywords": [
"ChatGpt",
"AIGC",
"AI"
],
"dependencies": {
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-antfu": "^0.35.3",
"dayjs": "^1.11.10",
"eslint": "^8.39.0",
"eslint-plugin-es": "^4.1.0",
"eslint-module-utils": "^2.8.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-module-utils": "^2.8.0",
"eslint-plugin-antfu": "^0.35.3",
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-jsonc": "^2.7.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-jsonc": "^2.7.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint-rule-composer": "^0.3.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-yml": "^1.5.0",
"eslint-utils": "^3.0.0",
"eslint-scope": "^7.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint-plugin-vue": "^9.11.0",
"jsonc-eslint-parser": "^2.2.0",
"yaml-eslint-parser": "^1.2.0",
"prettier-linter-helpers": "^1.0.0",
"prettier": "^2.8.8",
"eslint-plugin-yml": "^1.5.0",
"eslint-rule-composer": "^0.3.0",
"eslint-scope": "^7.2.0",
"eslint-utils": "^3.0.0",
"eslint-visitor-keys": "^3.4.0",
"vue-eslint-parser": "^9.1.1"
"jsonc-eslint-parser": "^2.2.0",
"prettier": "^2.8.8",
"prettier-linter-helpers": "^1.0.0",
"vue-eslint-parser": "^9.1.1",
"yaml-eslint-parser": "^1.2.0"
},
"devDependencies": {},
"repository": {
"type": "git",
"url": ""

View File

@ -8,6 +8,9 @@ importers:
.:
dependencies:
dayjs:
specifier: ^1.11.10
version: registry.npmmirror.com/dayjs@1.11.10
eslint:
specifier: ^8.39.0
version: 8.39.0
@ -22,7 +25,7 @@ importers:
version: 2.8.0(@typescript-eslint/parser@5.59.2)(eslint-import-resolver-node@0.3.7)(eslint@8.39.0)
eslint-plugin-antfu:
specifier: ^0.35.3
version: 0.35.3(eslint@8.39.0)(typescript@5.3.3)
version: 0.35.3(eslint@8.39.0)(typescript@4.9.5)
eslint-plugin-es:
specifier: ^4.1.0
version: 4.1.0(eslint@8.39.0)
@ -37,7 +40,7 @@ importers:
version: 2.27.5(@typescript-eslint/parser@5.59.2)(eslint@8.39.0)
eslint-plugin-jest:
specifier: ^27.2.1
version: 27.2.1(eslint@8.39.0)(typescript@5.3.3)
version: 27.2.1(@typescript-eslint/eslint-plugin@5.59.2)(eslint@8.39.0)(typescript@4.9.5)
eslint-plugin-jsonc:
specifier: ^2.7.0
version: 2.7.0(eslint@8.39.0)
@ -4456,7 +4459,6 @@ packages:
typescript: 5.0.4
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/parser@5.59.2(eslint@8.39.0)(typescript@4.9.5):
resolution: {integrity: sha512-uq0sKyw6ao1iFOZZGk9F8Nro/8+gfB5ezl1cA06SrqbgJAt0SRoFhb9pXaHvkrxUpZaoLxt8KlovHNk8Gp6/HQ==, tarball: https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.2.tgz}
@ -4495,7 +4497,6 @@ packages:
typescript: 5.0.4
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/scope-manager@5.59.2:
resolution: {integrity: sha512-dB1v7ROySwQWKqQ8rEWcdbTsFjh2G0vn8KUyvTXdPoyzSL6lLGkiXEV5CvpJsEe9xIdKV+8Zqb7wif2issoOFA==, tarball: https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.2.tgz}
@ -4541,7 +4542,6 @@ packages:
typescript: 5.0.4
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/types@5.59.2:
resolution: {integrity: sha512-LbJ/HqoVs2XTGq5shkiKaNTuVv5tTejdHgfdjqRUGdYhjW1crm/M7og2jhVskMt8/4wS3T1+PfFvL1K3wqYj4w==, tarball: https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.2.tgz}
@ -4563,7 +4563,7 @@ packages:
is-glob: 4.0.3
semver: 7.5.4
tsutils: 3.21.0(typescript@4.9.5)
typescript: 4.9.5
typescript: registry.npmmirror.com/typescript@4.9.5
transitivePeerDependencies:
- supports-color
@ -4586,28 +4586,6 @@ packages:
typescript: 5.0.4
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/typescript-estree@5.59.2(typescript@5.3.3):
resolution: {integrity: sha512-+j4SmbwVmZsQ9jEyBMgpuBD0rKwi9RxRpjX71Brr73RsYnEr3Lt5QZ624Bxphp8HUkSKfqGnPJp1kA5nl0Sh7Q==, tarball: https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.2.tgz}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
dependencies:
'@typescript-eslint/types': 5.59.2
'@typescript-eslint/visitor-keys': 5.59.2
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
semver: 7.5.4
tsutils: 3.21.0(typescript@5.3.3)
typescript: registry.npmmirror.com/typescript@5.3.3
transitivePeerDependencies:
- supports-color
dev: false
/@typescript-eslint/utils@5.59.2(eslint@8.39.0)(typescript@4.9.5):
resolution: {integrity: sha512-kSuF6/77TZzyGPhGO4uVp+f0SBoYxCDf+lW3GKhtKru/L8k/Hd7NFQxyWUeY7Z/KGB2C6Fe3yf2vVi4V9TsCSQ==, tarball: https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.2.tgz}
@ -4646,27 +4624,6 @@ packages:
transitivePeerDependencies:
- supports-color
- typescript
dev: true
/@typescript-eslint/utils@5.59.2(eslint@8.39.0)(typescript@5.3.3):
resolution: {integrity: sha512-kSuF6/77TZzyGPhGO4uVp+f0SBoYxCDf+lW3GKhtKru/L8k/Hd7NFQxyWUeY7Z/KGB2C6Fe3yf2vVi4V9TsCSQ==, tarball: https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.2.tgz}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.39.0)
'@types/json-schema': 7.0.11
'@types/semver': 7.3.13
'@typescript-eslint/scope-manager': 5.59.2
'@typescript-eslint/types': 5.59.2
'@typescript-eslint/typescript-estree': 5.59.2(typescript@5.3.3)
eslint: 8.39.0
eslint-scope: 5.1.1
semver: 7.5.4
transitivePeerDependencies:
- supports-color
- typescript
dev: false
/@typescript-eslint/visitor-keys@5.59.2:
resolution: {integrity: sha512-EEpsO8m3RASrKAHI9jpavNv9NlEUebV4qmF1OWxSTtKSFBpC1NCmWazDQHFivRf0O1DV11BA645yrLEVQ0/Lig==, tarball: https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.2.tgz}
@ -4706,7 +4663,7 @@ packages:
vite: ^4.0.0
vue: ^3.2.25
dependencies:
vite: 4.3.3(@types/node@18.16.3)(less@4.1.3)
vite: 4.3.3(sass@1.62.1)(terser@5.17.1)
vue: 3.2.47
dev: true
@ -8440,7 +8397,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 5.59.2(eslint@8.39.0)(typescript@4.9.5)
'@typescript-eslint/parser': 5.59.2(eslint@8.39.0)(typescript@5.0.4)
debug: 3.2.7
eslint: 8.39.0
eslint-import-resolver-node: 0.3.7
@ -8455,17 +8412,6 @@ packages:
- eslint
- supports-color
- typescript
dev: true
/eslint-plugin-antfu@0.35.3(eslint@8.39.0)(typescript@5.3.3):
resolution: {integrity: sha512-90Xct24s2n3aQhuuFFcPLhF5E6lU5s225B0VXupSjvDTuF+CmSQQLQG6KcqcdpA8O6dMbeXB9zy3SJ4aO7lndw==, tarball: https://registry.npmjs.org/eslint-plugin-antfu/-/eslint-plugin-antfu-0.35.3.tgz}
dependencies:
'@typescript-eslint/utils': 5.59.2(eslint@8.39.0)(typescript@5.3.3)
transitivePeerDependencies:
- eslint
- supports-color
- typescript
dev: false
/eslint-plugin-antfu@0.38.5(eslint@8.39.0)(typescript@5.0.4):
resolution: {integrity: sha512-uBLSmOMhMLuioEm92Y7k4igNXBXcCrskzQYZKhzjoj+2GBo/hanKjCIHf2oDmydnCx6KCFARnQ+mnNanM0/qig==}
@ -8512,7 +8458,7 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 5.59.2(eslint@8.39.0)(typescript@4.9.5)
'@typescript-eslint/parser': 5.59.2(eslint@8.39.0)(typescript@5.0.4)
array-includes: 3.1.6
array.prototype.flat: 1.3.1
array.prototype.flatmap: 1.3.1
@ -8553,7 +8499,6 @@ packages:
transitivePeerDependencies:
- supports-color
- typescript
dev: true
/eslint-plugin-jest@27.2.1(@typescript-eslint/eslint-plugin@5.59.2)(eslint@8.39.0)(typescript@5.0.4):
resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==, tarball: https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz}
@ -8576,26 +8521,6 @@ packages:
- typescript
dev: true
/eslint-plugin-jest@27.2.1(eslint@8.39.0)(typescript@5.3.3):
resolution: {integrity: sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==, tarball: https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
peerDependencies:
'@typescript-eslint/eslint-plugin': ^5.0.0
eslint: ^7.0.0 || ^8.0.0
jest: '*'
peerDependenciesMeta:
'@typescript-eslint/eslint-plugin':
optional: true
jest:
optional: true
dependencies:
'@typescript-eslint/utils': 5.59.2(eslint@8.39.0)(typescript@5.3.3)
eslint: 8.39.0
transitivePeerDependencies:
- supports-color
- typescript
dev: false
/eslint-plugin-jsonc@2.7.0(eslint@8.39.0):
resolution: {integrity: sha512-DZgC71h/hZ9t5k/OGAKOMdJCleg2neZLL7No+YYi2ZMroCN4X5huZdrLf1USbrc6UTHwYujd1EDwXHg1qJ6CYw==, tarball: https://registry.npmjs.org/eslint-plugin-jsonc/-/eslint-plugin-jsonc-2.7.0.tgz}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@ -8721,7 +8646,7 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
'@typescript-eslint/eslint-plugin': 5.59.2(@typescript-eslint/parser@5.59.2)(eslint@8.39.0)(typescript@4.9.5)
'@typescript-eslint/eslint-plugin': 5.59.2(@typescript-eslint/parser@5.59.2)(eslint@8.39.0)(typescript@5.0.4)
eslint: 8.39.0
eslint-rule-composer: 0.3.0
@ -8956,7 +8881,7 @@ packages:
engines: {node: '>=8.3.0'}
dependencies:
archiver: 5.3.1
dayjs: 1.11.7
dayjs: registry.npmmirror.com/dayjs@1.11.10
fast-csv: 4.3.6
jszip: 3.10.1
readable-stream: 3.6.2
@ -14863,7 +14788,7 @@ packages:
engines: {node: '>=10'}
deprecated: Please upgrade to v3.0.7+ as we have added iOS Simulator support to previewing emails! See <https://github.com/forwardemail/preview-email/releases/tag/v3.0.6> and screenshots at <https://github.com/forwardemail/preview-email\#ios-simulator>.
dependencies:
dayjs: 1.11.7
dayjs: registry.npmmirror.com/dayjs@1.11.10
debug: 4.3.4
mailparser: 3.6.4
nodemailer: 6.9.1
@ -17264,7 +17189,7 @@ packages:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies:
tslib: 1.14.1
typescript: 4.9.5
typescript: registry.npmmirror.com/typescript@4.9.5
/tsutils@3.21.0(typescript@5.0.4):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==, tarball: https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz}
@ -17274,17 +17199,6 @@ packages:
dependencies:
tslib: 1.14.1
typescript: 5.0.4
dev: true
/tsutils@3.21.0(typescript@5.3.3):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==, tarball: https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz}
engines: {node: '>= 6'}
peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies:
tslib: 1.14.1
typescript: registry.npmmirror.com/typescript@5.3.3
dev: false
/tsx@3.12.7:
resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==}
@ -20954,12 +20868,6 @@ packages:
version: 4.14.202
dev: false
registry.npmmirror.com/@types/node@18.11.18:
resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==, tarball: https://registry.npmmirror.com/@types/node/-/node-18.11.18.tgz}
name: '@types/node'
version: 18.11.18
dev: true
registry.npmmirror.com/@types/node@18.19.14:
resolution: {integrity: sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg==, tarball: https://registry.npmmirror.com/@types/node/-/node-18.19.14.tgz}
name: '@types/node'
@ -21498,6 +21406,7 @@ packages:
name: chokidar
version: 3.5.3
engines: {node: '>= 8.10.0'}
requiresBuild: true
dependencies:
anymatch: registry.npmmirror.com/anymatch@3.1.3
braces: registry.npmmirror.com/braces@3.0.2
@ -21674,6 +21583,12 @@ packages:
date-fns: 2.30.0
dev: false
registry.npmmirror.com/dayjs@1.11.10:
resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==, tarball: https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz}
name: dayjs
version: 1.11.10
dev: false
registry.npmmirror.com/debounce-fn@5.1.2:
resolution: {integrity: sha512-Sr4SdOZ4vw6eQDvPYNxHogvrxmCIld/VenC5JbNrFwMiwd7lY/Z18ZFfo+EWNG4DD9nFlAujWAo/wGuOPHmy5A==, tarball: https://registry.npmmirror.com/debounce-fn/-/debounce-fn-5.1.2.tgz}
name: debounce-fn
@ -22713,6 +22628,7 @@ packages:
name: ignore
version: 5.3.1
engines: {node: '>= 4'}
requiresBuild: true
dev: false
optional: true
@ -23009,7 +22925,7 @@ packages:
version: 27.5.1
engines: {node: '>= 10.13.0'}
dependencies:
'@types/node': registry.npmmirror.com/@types/node@18.11.18
'@types/node': registry.npmmirror.com/@types/node@18.19.14
merge-stream: registry.npmmirror.com/merge-stream@2.0.0
supports-color: registry.npmmirror.com/supports-color@8.1.1
dev: true
@ -24492,13 +24408,12 @@ packages:
is-typed-array: registry.npmmirror.com/is-typed-array@1.1.13
dev: true
registry.npmmirror.com/typescript@5.3.3:
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==, tarball: https://registry.npmmirror.com/typescript/-/typescript-5.3.3.tgz}
registry.npmmirror.com/typescript@4.9.5:
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==, tarball: https://registry.npmmirror.com/typescript/-/typescript-4.9.5.tgz}
name: typescript
version: 5.3.3
engines: {node: '>=14.17'}
version: 4.9.5
engines: {node: '>=4.2.0'}
hasBin: true
dev: false
registry.npmmirror.com/ufo@1.3.2:
resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==, tarball: https://registry.npmmirror.com/ufo/-/ufo-1.3.2.tgz}