From 8dc8f2567ea2af36c33fe0429fc3220e9da31fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Mon, 11 Mar 2024 14:22:39 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix(ui):=20=E5=88=A0=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/projects/vue-admin/vite.config.ts | 17 ++++ gpt-vue/projects/vue-mobile/.eslintrc.cjs | 14 --- gpt-vue/projects/vue-mobile/.gitignore | 30 ------ .../vue-mobile/.vscode/extensions.json | 7 -- gpt-vue/projects/vue-mobile/README.md | 46 --------- gpt-vue/projects/vue-mobile/env.d.ts | 1 - gpt-vue/projects/vue-mobile/index.html | 13 --- gpt-vue/projects/vue-mobile/package.json | 34 ------- .../projects/vue-mobile/public/favicon.ico | Bin 4286 -> 0 bytes gpt-vue/projects/vue-mobile/src/App.vue | 85 ----------------- .../projects/vue-mobile/src/assets/base.css | 86 ----------------- .../projects/vue-mobile/src/assets/logo.svg | 1 - .../projects/vue-mobile/src/assets/main.css | 35 ------- .../vue-mobile/src/components/HelloWorld.vue | 41 -------- .../vue-mobile/src/components/TheWelcome.vue | 88 ------------------ .../vue-mobile/src/components/WelcomeItem.vue | 87 ----------------- .../src/components/icons/IconCommunity.vue | 7 -- .../components/icons/IconDocumentation.vue | 7 -- .../src/components/icons/IconEcosystem.vue | 7 -- .../src/components/icons/IconSupport.vue | 7 -- .../src/components/icons/IconTooling.vue | 19 ---- gpt-vue/projects/vue-mobile/src/main.ts | 14 --- .../projects/vue-mobile/src/router/index.ts | 23 ----- .../projects/vue-mobile/src/stores/counter.ts | 12 --- .../vue-mobile/src/views/AboutView.vue | 15 --- .../vue-mobile/src/views/HomeView.vue | 9 -- gpt-vue/projects/vue-mobile/tsconfig.app.json | 14 --- gpt-vue/projects/vue-mobile/tsconfig.json | 11 --- .../projects/vue-mobile/tsconfig.node.json | 19 ---- gpt-vue/projects/vue-mobile/vite.config.ts | 18 ---- gpt-vue/projects/vue-web/.eslintrc.cjs | 14 --- gpt-vue/projects/vue-web/.gitignore | 30 ------ .../projects/vue-web/.vscode/extensions.json | 7 -- gpt-vue/projects/vue-web/README.md | 46 --------- gpt-vue/projects/vue-web/env.d.ts | 1 - gpt-vue/projects/vue-web/index.html | 13 --- gpt-vue/projects/vue-web/package.json | 34 ------- gpt-vue/projects/vue-web/public/favicon.ico | Bin 4286 -> 0 bytes gpt-vue/projects/vue-web/src/App.vue | 85 ----------------- gpt-vue/projects/vue-web/src/assets/base.css | 86 ----------------- gpt-vue/projects/vue-web/src/assets/logo.svg | 1 - gpt-vue/projects/vue-web/src/assets/main.css | 35 ------- .../vue-web/src/components/HelloWorld.vue | 41 -------- .../vue-web/src/components/TheWelcome.vue | 88 ------------------ .../vue-web/src/components/WelcomeItem.vue | 87 ----------------- .../src/components/icons/IconCommunity.vue | 7 -- .../components/icons/IconDocumentation.vue | 7 -- .../src/components/icons/IconEcosystem.vue | 7 -- .../src/components/icons/IconSupport.vue | 7 -- .../src/components/icons/IconTooling.vue | 19 ---- gpt-vue/projects/vue-web/src/main.ts | 14 --- gpt-vue/projects/vue-web/src/router/index.ts | 23 ----- .../projects/vue-web/src/stores/counter.ts | 12 --- .../projects/vue-web/src/views/AboutView.vue | 15 --- .../projects/vue-web/src/views/HomeView.vue | 9 -- gpt-vue/projects/vue-web/tsconfig.app.json | 14 --- gpt-vue/projects/vue-web/tsconfig.json | 11 --- gpt-vue/projects/vue-web/tsconfig.node.json | 19 ---- gpt-vue/projects/vue-web/vite.config.ts | 18 ---- 59 files changed, 17 insertions(+), 1500 deletions(-) delete mode 100644 gpt-vue/projects/vue-mobile/.eslintrc.cjs delete mode 100644 gpt-vue/projects/vue-mobile/.gitignore delete mode 100644 gpt-vue/projects/vue-mobile/.vscode/extensions.json delete mode 100644 gpt-vue/projects/vue-mobile/README.md delete mode 100644 gpt-vue/projects/vue-mobile/env.d.ts delete mode 100644 gpt-vue/projects/vue-mobile/index.html delete mode 100644 gpt-vue/projects/vue-mobile/package.json delete mode 100644 gpt-vue/projects/vue-mobile/public/favicon.ico delete mode 100644 gpt-vue/projects/vue-mobile/src/App.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/assets/base.css delete mode 100644 gpt-vue/projects/vue-mobile/src/assets/logo.svg delete mode 100644 gpt-vue/projects/vue-mobile/src/assets/main.css delete mode 100644 gpt-vue/projects/vue-mobile/src/components/HelloWorld.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/TheWelcome.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/WelcomeItem.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/icons/IconCommunity.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/icons/IconDocumentation.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/icons/IconEcosystem.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/icons/IconSupport.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/components/icons/IconTooling.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/main.ts delete mode 100644 gpt-vue/projects/vue-mobile/src/router/index.ts delete mode 100644 gpt-vue/projects/vue-mobile/src/stores/counter.ts delete mode 100644 gpt-vue/projects/vue-mobile/src/views/AboutView.vue delete mode 100644 gpt-vue/projects/vue-mobile/src/views/HomeView.vue delete mode 100644 gpt-vue/projects/vue-mobile/tsconfig.app.json delete mode 100644 gpt-vue/projects/vue-mobile/tsconfig.json delete mode 100644 gpt-vue/projects/vue-mobile/tsconfig.node.json delete mode 100644 gpt-vue/projects/vue-mobile/vite.config.ts delete mode 100644 gpt-vue/projects/vue-web/.eslintrc.cjs delete mode 100644 gpt-vue/projects/vue-web/.gitignore delete mode 100644 gpt-vue/projects/vue-web/.vscode/extensions.json delete mode 100644 gpt-vue/projects/vue-web/README.md delete mode 100644 gpt-vue/projects/vue-web/env.d.ts delete mode 100644 gpt-vue/projects/vue-web/index.html delete mode 100644 gpt-vue/projects/vue-web/package.json delete mode 100644 gpt-vue/projects/vue-web/public/favicon.ico delete mode 100644 gpt-vue/projects/vue-web/src/App.vue delete mode 100644 gpt-vue/projects/vue-web/src/assets/base.css delete mode 100644 gpt-vue/projects/vue-web/src/assets/logo.svg delete mode 100644 gpt-vue/projects/vue-web/src/assets/main.css delete mode 100644 gpt-vue/projects/vue-web/src/components/HelloWorld.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/TheWelcome.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/WelcomeItem.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/icons/IconCommunity.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/icons/IconDocumentation.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/icons/IconEcosystem.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/icons/IconSupport.vue delete mode 100644 gpt-vue/projects/vue-web/src/components/icons/IconTooling.vue delete mode 100644 gpt-vue/projects/vue-web/src/main.ts delete mode 100644 gpt-vue/projects/vue-web/src/router/index.ts delete mode 100644 gpt-vue/projects/vue-web/src/stores/counter.ts delete mode 100644 gpt-vue/projects/vue-web/src/views/AboutView.vue delete mode 100644 gpt-vue/projects/vue-web/src/views/HomeView.vue delete mode 100644 gpt-vue/projects/vue-web/tsconfig.app.json delete mode 100644 gpt-vue/projects/vue-web/tsconfig.json delete mode 100644 gpt-vue/projects/vue-web/tsconfig.node.json delete mode 100644 gpt-vue/projects/vue-web/vite.config.ts diff --git a/gpt-vue/projects/vue-admin/vite.config.ts b/gpt-vue/projects/vue-admin/vite.config.ts index 882d98d5..18f5fbed 100644 --- a/gpt-vue/projects/vue-admin/vite.config.ts +++ b/gpt-vue/projects/vue-admin/vite.config.ts @@ -31,5 +31,22 @@ export default defineConfig(({ mode }) => { }, }, }, + build: { + rollupOptions: { + output: { + manualChunks: (id) => { + if (id.includes("node_modules")) { + if (id.includes("arco")) { + return `arco`; + } + if (id.includes("vue") && !id.includes("arco")) { + return `vue`; + } + return `vendor`; + } + }, + }, + }, + }, } }) diff --git a/gpt-vue/projects/vue-mobile/.eslintrc.cjs b/gpt-vue/projects/vue-mobile/.eslintrc.cjs deleted file mode 100644 index ade85716..00000000 --- a/gpt-vue/projects/vue-mobile/.eslintrc.cjs +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') - -module.exports = { - root: true, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/eslint-config-typescript' - ], - parserOptions: { - ecmaVersion: 'latest' - } -} diff --git a/gpt-vue/projects/vue-mobile/.gitignore b/gpt-vue/projects/vue-mobile/.gitignore deleted file mode 100644 index 8ee54e8d..00000000 --- a/gpt-vue/projects/vue-mobile/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -coverage -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -*.tsbuildinfo diff --git a/gpt-vue/projects/vue-mobile/.vscode/extensions.json b/gpt-vue/projects/vue-mobile/.vscode/extensions.json deleted file mode 100644 index 4771846f..00000000 --- a/gpt-vue/projects/vue-mobile/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "Vue.volar", - "Vue.vscode-typescript-vue-plugin", - "dbaeumer.vscode-eslint" - ] -} diff --git a/gpt-vue/projects/vue-mobile/README.md b/gpt-vue/projects/vue-mobile/README.md deleted file mode 100644 index 2b17a975..00000000 --- a/gpt-vue/projects/vue-mobile/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# vue-admin - -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: - -1. Disable the built-in TypeScript Extension - 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -pnpm lint -``` diff --git a/gpt-vue/projects/vue-mobile/env.d.ts b/gpt-vue/projects/vue-mobile/env.d.ts deleted file mode 100644 index 11f02fe2..00000000 --- a/gpt-vue/projects/vue-mobile/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/gpt-vue/projects/vue-mobile/index.html b/gpt-vue/projects/vue-mobile/index.html deleted file mode 100644 index a8885448..00000000 --- a/gpt-vue/projects/vue-mobile/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/gpt-vue/projects/vue-mobile/package.json b/gpt-vue/projects/vue-mobile/package.json deleted file mode 100644 index c359683c..00000000 --- a/gpt-vue/projects/vue-mobile/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@gpt-vue-projects/vue-mobile", - "version": "0.0.0", - "private": true, - "type": "module", - "scripts": { - "dev": "vite", - "build": "run-p type-check \"build-only {@}\" --", - "preview": "vite preview", - "build-only": "vite build", - "type-check": "vue-tsc --build --force", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" - }, - "dependencies": { - "pinia": "^2.1.7", - "vue": "^3.4.15", - "vue-router": "^4.2.5" - }, - "devDependencies": { - "@rushstack/eslint-patch": "^1.3.3", - "@tsconfig/node20": "^20.1.2", - "@types/node": "^20.11.10", - "@vitejs/plugin-vue": "^5.0.3", - "@vitejs/plugin-vue-jsx": "^3.1.0", - "@vue/eslint-config-typescript": "^12.0.0", - "@vue/tsconfig": "^0.5.1", - "eslint": "^8.49.0", - "eslint-plugin-vue": "^9.17.0", - "npm-run-all2": "^6.1.1", - "typescript": "~5.3.0", - "vite": "^5.0.11", - "vue-tsc": "^1.8.27" - } -} diff --git a/gpt-vue/projects/vue-mobile/public/favicon.ico b/gpt-vue/projects/vue-mobile/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/gpt-vue/projects/vue-mobile/src/App.vue b/gpt-vue/projects/vue-mobile/src/App.vue deleted file mode 100644 index 7905b051..00000000 --- a/gpt-vue/projects/vue-mobile/src/App.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/gpt-vue/projects/vue-mobile/src/assets/base.css b/gpt-vue/projects/vue-mobile/src/assets/base.css deleted file mode 100644 index 8816868a..00000000 --- a/gpt-vue/projects/vue-mobile/src/assets/base.css +++ /dev/null @@ -1,86 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: - color 0.5s, - background-color 0.5s; - line-height: 1.6; - font-family: - Inter, - -apple-system, - BlinkMacSystemFont, - 'Segoe UI', - Roboto, - Oxygen, - Ubuntu, - Cantarell, - 'Fira Sans', - 'Droid Sans', - 'Helvetica Neue', - sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/gpt-vue/projects/vue-mobile/src/assets/logo.svg b/gpt-vue/projects/vue-mobile/src/assets/logo.svg deleted file mode 100644 index 75656603..00000000 --- a/gpt-vue/projects/vue-mobile/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gpt-vue/projects/vue-mobile/src/assets/main.css b/gpt-vue/projects/vue-mobile/src/assets/main.css deleted file mode 100644 index 36fb845b..00000000 --- a/gpt-vue/projects/vue-mobile/src/assets/main.css +++ /dev/null @@ -1,35 +0,0 @@ -@import './base.css'; - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - font-weight: normal; -} - -a, -.green { - text-decoration: none; - color: hsla(160, 100%, 37%, 1); - transition: 0.4s; - padding: 3px; -} - -@media (hover: hover) { - a:hover { - background-color: hsla(160, 100%, 37%, 0.2); - } -} - -@media (min-width: 1024px) { - body { - display: flex; - place-items: center; - } - - #app { - display: grid; - grid-template-columns: 1fr 1fr; - padding: 0 2rem; - } -} diff --git a/gpt-vue/projects/vue-mobile/src/components/HelloWorld.vue b/gpt-vue/projects/vue-mobile/src/components/HelloWorld.vue deleted file mode 100644 index 38d821ef..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/gpt-vue/projects/vue-mobile/src/components/TheWelcome.vue b/gpt-vue/projects/vue-mobile/src/components/TheWelcome.vue deleted file mode 100644 index 49d8f735..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/TheWelcome.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-mobile/src/components/WelcomeItem.vue b/gpt-vue/projects/vue-mobile/src/components/WelcomeItem.vue deleted file mode 100644 index 6d7086ae..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/WelcomeItem.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-mobile/src/components/icons/IconCommunity.vue b/gpt-vue/projects/vue-mobile/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-mobile/src/components/icons/IconDocumentation.vue b/gpt-vue/projects/vue-mobile/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-mobile/src/components/icons/IconEcosystem.vue b/gpt-vue/projects/vue-mobile/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-mobile/src/components/icons/IconSupport.vue b/gpt-vue/projects/vue-mobile/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-mobile/src/components/icons/IconTooling.vue b/gpt-vue/projects/vue-mobile/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/gpt-vue/projects/vue-mobile/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/gpt-vue/projects/vue-mobile/src/main.ts b/gpt-vue/projects/vue-mobile/src/main.ts deleted file mode 100644 index 5dcad83c..00000000 --- a/gpt-vue/projects/vue-mobile/src/main.ts +++ /dev/null @@ -1,14 +0,0 @@ -import './assets/main.css' - -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/gpt-vue/projects/vue-mobile/src/router/index.ts b/gpt-vue/projects/vue-mobile/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/gpt-vue/projects/vue-mobile/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/about', - name: 'about', - // route level code-splitting - // this generates a separate chunk (About.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import('../views/AboutView.vue') - } - ] -}) - -export default router diff --git a/gpt-vue/projects/vue-mobile/src/stores/counter.ts b/gpt-vue/projects/vue-mobile/src/stores/counter.ts deleted file mode 100644 index b6757ba5..00000000 --- a/gpt-vue/projects/vue-mobile/src/stores/counter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ref, computed } from 'vue' -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore('counter', () => { - const count = ref(0) - const doubleCount = computed(() => count.value * 2) - function increment() { - count.value++ - } - - return { count, doubleCount, increment } -}) diff --git a/gpt-vue/projects/vue-mobile/src/views/AboutView.vue b/gpt-vue/projects/vue-mobile/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/gpt-vue/projects/vue-mobile/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-mobile/src/views/HomeView.vue b/gpt-vue/projects/vue-mobile/src/views/HomeView.vue deleted file mode 100644 index d5c0217e..00000000 --- a/gpt-vue/projects/vue-mobile/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-mobile/tsconfig.app.json b/gpt-vue/projects/vue-mobile/tsconfig.app.json deleted file mode 100644 index e14c754d..00000000 --- a/gpt-vue/projects/vue-mobile/tsconfig.app.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], - "exclude": ["src/**/__tests__/*"], - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - } -} diff --git a/gpt-vue/projects/vue-mobile/tsconfig.json b/gpt-vue/projects/vue-mobile/tsconfig.json deleted file mode 100644 index 66b5e570..00000000 --- a/gpt-vue/projects/vue-mobile/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "files": [], - "references": [ - { - "path": "./tsconfig.node.json" - }, - { - "path": "./tsconfig.app.json" - } - ] -} diff --git a/gpt-vue/projects/vue-mobile/tsconfig.node.json b/gpt-vue/projects/vue-mobile/tsconfig.node.json deleted file mode 100644 index f0940630..00000000 --- a/gpt-vue/projects/vue-mobile/tsconfig.node.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "@tsconfig/node20/tsconfig.json", - "include": [ - "vite.config.*", - "vitest.config.*", - "cypress.config.*", - "nightwatch.conf.*", - "playwright.config.*" - ], - "compilerOptions": { - "composite": true, - "noEmit": true, - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", - - "module": "ESNext", - "moduleResolution": "Bundler", - "types": ["node"] - } -} diff --git a/gpt-vue/projects/vue-mobile/vite.config.ts b/gpt-vue/projects/vue-mobile/vite.config.ts deleted file mode 100644 index 36c61875..00000000 --- a/gpt-vue/projects/vue-mobile/vite.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { fileURLToPath, URL } from 'node:url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue(), - vueJsx(), - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) diff --git a/gpt-vue/projects/vue-web/.eslintrc.cjs b/gpt-vue/projects/vue-web/.eslintrc.cjs deleted file mode 100644 index ade85716..00000000 --- a/gpt-vue/projects/vue-web/.eslintrc.cjs +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-env node */ -require('@rushstack/eslint-patch/modern-module-resolution') - -module.exports = { - root: true, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/eslint-config-typescript' - ], - parserOptions: { - ecmaVersion: 'latest' - } -} diff --git a/gpt-vue/projects/vue-web/.gitignore b/gpt-vue/projects/vue-web/.gitignore deleted file mode 100644 index 8ee54e8d..00000000 --- a/gpt-vue/projects/vue-web/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.DS_Store -dist -dist-ssr -coverage -*.local - -/cypress/videos/ -/cypress/screenshots/ - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -*.tsbuildinfo diff --git a/gpt-vue/projects/vue-web/.vscode/extensions.json b/gpt-vue/projects/vue-web/.vscode/extensions.json deleted file mode 100644 index 4771846f..00000000 --- a/gpt-vue/projects/vue-web/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "recommendations": [ - "Vue.volar", - "Vue.vscode-typescript-vue-plugin", - "dbaeumer.vscode-eslint" - ] -} diff --git a/gpt-vue/projects/vue-web/README.md b/gpt-vue/projects/vue-web/README.md deleted file mode 100644 index 2b17a975..00000000 --- a/gpt-vue/projects/vue-web/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# vue-admin - -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: - -1. Disable the built-in TypeScript Extension - 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -pnpm lint -``` diff --git a/gpt-vue/projects/vue-web/env.d.ts b/gpt-vue/projects/vue-web/env.d.ts deleted file mode 100644 index 11f02fe2..00000000 --- a/gpt-vue/projects/vue-web/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/gpt-vue/projects/vue-web/index.html b/gpt-vue/projects/vue-web/index.html deleted file mode 100644 index a8885448..00000000 --- a/gpt-vue/projects/vue-web/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vite App - - -
- - - diff --git a/gpt-vue/projects/vue-web/package.json b/gpt-vue/projects/vue-web/package.json deleted file mode 100644 index 233d021f..00000000 --- a/gpt-vue/projects/vue-web/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@gpt-vue-projects/vue-web", - "version": "0.0.0", - "private": true, - "type": "module", - "scripts": { - "dev": "vite", - "build": "run-p type-check \"build-only {@}\" --", - "preview": "vite preview", - "build-only": "vite build", - "type-check": "vue-tsc --build --force", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" - }, - "dependencies": { - "pinia": "^2.1.7", - "vue": "^3.4.15", - "vue-router": "^4.2.5" - }, - "devDependencies": { - "@rushstack/eslint-patch": "^1.3.3", - "@tsconfig/node20": "^20.1.2", - "@types/node": "^20.11.10", - "@vitejs/plugin-vue": "^5.0.3", - "@vitejs/plugin-vue-jsx": "^3.1.0", - "@vue/eslint-config-typescript": "^12.0.0", - "@vue/tsconfig": "^0.5.1", - "eslint": "^8.49.0", - "eslint-plugin-vue": "^9.17.0", - "npm-run-all2": "^6.1.1", - "typescript": "~5.3.0", - "vite": "^5.0.11", - "vue-tsc": "^1.8.27" - } -} diff --git a/gpt-vue/projects/vue-web/public/favicon.ico b/gpt-vue/projects/vue-web/public/favicon.ico deleted file mode 100644 index df36fcfb72584e00488330b560ebcf34a41c64c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/gpt-vue/projects/vue-web/src/App.vue b/gpt-vue/projects/vue-web/src/App.vue deleted file mode 100644 index 7905b051..00000000 --- a/gpt-vue/projects/vue-web/src/App.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/gpt-vue/projects/vue-web/src/assets/base.css b/gpt-vue/projects/vue-web/src/assets/base.css deleted file mode 100644 index 8816868a..00000000 --- a/gpt-vue/projects/vue-web/src/assets/base.css +++ /dev/null @@ -1,86 +0,0 @@ -/* color palette from */ -:root { - --vt-c-white: #ffffff; - --vt-c-white-soft: #f8f8f8; - --vt-c-white-mute: #f2f2f2; - - --vt-c-black: #181818; - --vt-c-black-soft: #222222; - --vt-c-black-mute: #282828; - - --vt-c-indigo: #2c3e50; - - --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); - --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); - --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); - --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); - - --vt-c-text-light-1: var(--vt-c-indigo); - --vt-c-text-light-2: rgba(60, 60, 60, 0.66); - --vt-c-text-dark-1: var(--vt-c-white); - --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); -} - -/* semantic color variables for this project */ -:root { - --color-background: var(--vt-c-white); - --color-background-soft: var(--vt-c-white-soft); - --color-background-mute: var(--vt-c-white-mute); - - --color-border: var(--vt-c-divider-light-2); - --color-border-hover: var(--vt-c-divider-light-1); - - --color-heading: var(--vt-c-text-light-1); - --color-text: var(--vt-c-text-light-1); - - --section-gap: 160px; -} - -@media (prefers-color-scheme: dark) { - :root { - --color-background: var(--vt-c-black); - --color-background-soft: var(--vt-c-black-soft); - --color-background-mute: var(--vt-c-black-mute); - - --color-border: var(--vt-c-divider-dark-2); - --color-border-hover: var(--vt-c-divider-dark-1); - - --color-heading: var(--vt-c-text-dark-1); - --color-text: var(--vt-c-text-dark-2); - } -} - -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - font-weight: normal; -} - -body { - min-height: 100vh; - color: var(--color-text); - background: var(--color-background); - transition: - color 0.5s, - background-color 0.5s; - line-height: 1.6; - font-family: - Inter, - -apple-system, - BlinkMacSystemFont, - 'Segoe UI', - Roboto, - Oxygen, - Ubuntu, - Cantarell, - 'Fira Sans', - 'Droid Sans', - 'Helvetica Neue', - sans-serif; - font-size: 15px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/gpt-vue/projects/vue-web/src/assets/logo.svg b/gpt-vue/projects/vue-web/src/assets/logo.svg deleted file mode 100644 index 75656603..00000000 --- a/gpt-vue/projects/vue-web/src/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gpt-vue/projects/vue-web/src/assets/main.css b/gpt-vue/projects/vue-web/src/assets/main.css deleted file mode 100644 index 36fb845b..00000000 --- a/gpt-vue/projects/vue-web/src/assets/main.css +++ /dev/null @@ -1,35 +0,0 @@ -@import './base.css'; - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - font-weight: normal; -} - -a, -.green { - text-decoration: none; - color: hsla(160, 100%, 37%, 1); - transition: 0.4s; - padding: 3px; -} - -@media (hover: hover) { - a:hover { - background-color: hsla(160, 100%, 37%, 0.2); - } -} - -@media (min-width: 1024px) { - body { - display: flex; - place-items: center; - } - - #app { - display: grid; - grid-template-columns: 1fr 1fr; - padding: 0 2rem; - } -} diff --git a/gpt-vue/projects/vue-web/src/components/HelloWorld.vue b/gpt-vue/projects/vue-web/src/components/HelloWorld.vue deleted file mode 100644 index 38d821ef..00000000 --- a/gpt-vue/projects/vue-web/src/components/HelloWorld.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/gpt-vue/projects/vue-web/src/components/TheWelcome.vue b/gpt-vue/projects/vue-web/src/components/TheWelcome.vue deleted file mode 100644 index 49d8f735..00000000 --- a/gpt-vue/projects/vue-web/src/components/TheWelcome.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-web/src/components/WelcomeItem.vue b/gpt-vue/projects/vue-web/src/components/WelcomeItem.vue deleted file mode 100644 index 6d7086ae..00000000 --- a/gpt-vue/projects/vue-web/src/components/WelcomeItem.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-web/src/components/icons/IconCommunity.vue b/gpt-vue/projects/vue-web/src/components/icons/IconCommunity.vue deleted file mode 100644 index 2dc8b055..00000000 --- a/gpt-vue/projects/vue-web/src/components/icons/IconCommunity.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-web/src/components/icons/IconDocumentation.vue b/gpt-vue/projects/vue-web/src/components/icons/IconDocumentation.vue deleted file mode 100644 index 6d4791cf..00000000 --- a/gpt-vue/projects/vue-web/src/components/icons/IconDocumentation.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-web/src/components/icons/IconEcosystem.vue b/gpt-vue/projects/vue-web/src/components/icons/IconEcosystem.vue deleted file mode 100644 index c3a4f078..00000000 --- a/gpt-vue/projects/vue-web/src/components/icons/IconEcosystem.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-web/src/components/icons/IconSupport.vue b/gpt-vue/projects/vue-web/src/components/icons/IconSupport.vue deleted file mode 100644 index 7452834d..00000000 --- a/gpt-vue/projects/vue-web/src/components/icons/IconSupport.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/gpt-vue/projects/vue-web/src/components/icons/IconTooling.vue b/gpt-vue/projects/vue-web/src/components/icons/IconTooling.vue deleted file mode 100644 index 660598d7..00000000 --- a/gpt-vue/projects/vue-web/src/components/icons/IconTooling.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/gpt-vue/projects/vue-web/src/main.ts b/gpt-vue/projects/vue-web/src/main.ts deleted file mode 100644 index 5dcad83c..00000000 --- a/gpt-vue/projects/vue-web/src/main.ts +++ /dev/null @@ -1,14 +0,0 @@ -import './assets/main.css' - -import { createApp } from 'vue' -import { createPinia } from 'pinia' - -import App from './App.vue' -import router from './router' - -const app = createApp(App) - -app.use(createPinia()) -app.use(router) - -app.mount('#app') diff --git a/gpt-vue/projects/vue-web/src/router/index.ts b/gpt-vue/projects/vue-web/src/router/index.ts deleted file mode 100644 index a49ae507..00000000 --- a/gpt-vue/projects/vue-web/src/router/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' -import HomeView from '../views/HomeView.vue' - -const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), - routes: [ - { - path: '/', - name: 'home', - component: HomeView - }, - { - path: '/about', - name: 'about', - // route level code-splitting - // this generates a separate chunk (About.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import('../views/AboutView.vue') - } - ] -}) - -export default router diff --git a/gpt-vue/projects/vue-web/src/stores/counter.ts b/gpt-vue/projects/vue-web/src/stores/counter.ts deleted file mode 100644 index b6757ba5..00000000 --- a/gpt-vue/projects/vue-web/src/stores/counter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ref, computed } from 'vue' -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore('counter', () => { - const count = ref(0) - const doubleCount = computed(() => count.value * 2) - function increment() { - count.value++ - } - - return { count, doubleCount, increment } -}) diff --git a/gpt-vue/projects/vue-web/src/views/AboutView.vue b/gpt-vue/projects/vue-web/src/views/AboutView.vue deleted file mode 100644 index 756ad2a1..00000000 --- a/gpt-vue/projects/vue-web/src/views/AboutView.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-web/src/views/HomeView.vue b/gpt-vue/projects/vue-web/src/views/HomeView.vue deleted file mode 100644 index d5c0217e..00000000 --- a/gpt-vue/projects/vue-web/src/views/HomeView.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/gpt-vue/projects/vue-web/tsconfig.app.json b/gpt-vue/projects/vue-web/tsconfig.app.json deleted file mode 100644 index e14c754d..00000000 --- a/gpt-vue/projects/vue-web/tsconfig.app.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], - "exclude": ["src/**/__tests__/*"], - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - } -} diff --git a/gpt-vue/projects/vue-web/tsconfig.json b/gpt-vue/projects/vue-web/tsconfig.json deleted file mode 100644 index 66b5e570..00000000 --- a/gpt-vue/projects/vue-web/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "files": [], - "references": [ - { - "path": "./tsconfig.node.json" - }, - { - "path": "./tsconfig.app.json" - } - ] -} diff --git a/gpt-vue/projects/vue-web/tsconfig.node.json b/gpt-vue/projects/vue-web/tsconfig.node.json deleted file mode 100644 index f0940630..00000000 --- a/gpt-vue/projects/vue-web/tsconfig.node.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "@tsconfig/node20/tsconfig.json", - "include": [ - "vite.config.*", - "vitest.config.*", - "cypress.config.*", - "nightwatch.conf.*", - "playwright.config.*" - ], - "compilerOptions": { - "composite": true, - "noEmit": true, - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", - - "module": "ESNext", - "moduleResolution": "Bundler", - "types": ["node"] - } -} diff --git a/gpt-vue/projects/vue-web/vite.config.ts b/gpt-vue/projects/vue-web/vite.config.ts deleted file mode 100644 index 36c61875..00000000 --- a/gpt-vue/projects/vue-web/vite.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { fileURLToPath, URL } from 'node:url' - -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import vueJsx from '@vitejs/plugin-vue-jsx' - -// https://vitejs.dev/config/ -export default defineConfig({ - plugins: [ - vue(), - vueJsx(), - ], - resolve: { - alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) From d9558f13ade2ea3ca61a3a5d8cc592e598319f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Mon, 11 Mar 2024 14:23:11 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix(ui):=20=E5=88=A0=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt-vue/package.json b/gpt-vue/package.json index 8d00bafa..fe5ef132 100644 --- a/gpt-vue/package.json +++ b/gpt-vue/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "clear": "rimraf node_modules projects/vue-admin/node_modules projects/vue-mobile/node_modules projects/vue-web/node_modules", + "clear": "rimraf node_modules projects/vue-admin/node_modules", "dev": "pnpm --filter=@gpt-vue-projects/* run dev", "build": "pnpm --filter=@gpt-vue-projects/* run build" }, From b2ff49ee94dae2ac0f2b6d5a22cb62ee35aec771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Mon, 11 Mar 2024 15:59:15 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat(ui):=20=E6=96=B0=E5=A2=9E=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=AE=A1=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/packages/request/index.ts | 2 +- gpt-vue/pnpm-lock.yaml | 104 ---------------- gpt-vue/projects/vue-admin/.env.development | 1 - gpt-vue/projects/vue-admin/.env.production | 1 - .../src/components/ConfirmSwitch.vue | 4 +- gpt-vue/projects/vue-admin/src/http/config.ts | 2 +- gpt-vue/projects/vue-admin/src/router/menu.ts | 10 ++ .../src/views/SysAdmin/SysAdminContainer.vue | 115 ++++++++++++++++++ .../src/views/SysAdmin/SysAdminForm.vue | 39 ++++++ .../src/views/SysAdmin/SysAdminResetPWD.vue | 28 +++++ .../vue-admin/src/views/SysAdmin/api.ts | 33 +++++ gpt-vue/projects/vue-admin/vite.config.ts | 9 +- 12 files changed, 233 insertions(+), 115 deletions(-) create mode 100644 gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminContainer.vue create mode 100644 gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminForm.vue create mode 100644 gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminResetPWD.vue create mode 100644 gpt-vue/projects/vue-admin/src/views/SysAdmin/api.ts diff --git a/gpt-vue/packages/request/index.ts b/gpt-vue/packages/request/index.ts index 23e452ef..63ba3326 100644 --- a/gpt-vue/packages/request/index.ts +++ b/gpt-vue/packages/request/index.ts @@ -3,7 +3,7 @@ import tokenHandler from "./token"; const { _tokenData, refreshToken, setCurRequest } = tokenHandler(); -const createInstance = (baseURL: string = (import.meta as any).env.VITE_PROXY_BASE_URL) => { +const createInstance = (baseURL: string) => { const instance = axios.create({ baseURL, diff --git a/gpt-vue/pnpm-lock.yaml b/gpt-vue/pnpm-lock.yaml index d1395123..0df63689 100644 --- a/gpt-vue/pnpm-lock.yaml +++ b/gpt-vue/pnpm-lock.yaml @@ -127,110 +127,6 @@ importers: specifier: ^1.8.27 version: 1.8.27(typescript@5.3.3) - projects/vue-mobile: - dependencies: - pinia: - specifier: ^2.1.7 - version: 2.1.7(typescript@5.3.3)(vue@3.4.21) - vue: - specifier: ^3.4.15 - version: 3.4.21(typescript@5.3.3) - vue-router: - specifier: ^4.2.5 - version: 4.3.0(vue@3.4.21) - devDependencies: - '@rushstack/eslint-patch': - specifier: ^1.3.3 - version: 1.7.2 - '@tsconfig/node20': - specifier: ^20.1.2 - version: 20.1.2 - '@types/node': - specifier: ^20.11.10 - version: 20.11.24 - '@vitejs/plugin-vue': - specifier: ^5.0.3 - version: 5.0.4(vite@5.1.5)(vue@3.4.21) - '@vitejs/plugin-vue-jsx': - specifier: ^3.1.0 - version: 3.1.0(vite@5.1.5)(vue@3.4.21) - '@vue/eslint-config-typescript': - specifier: ^12.0.0 - version: 12.0.0(eslint-plugin-vue@9.22.0)(eslint@8.57.0)(typescript@5.3.3) - '@vue/tsconfig': - specifier: ^0.5.1 - version: 0.5.1 - eslint: - specifier: ^8.49.0 - version: 8.57.0 - eslint-plugin-vue: - specifier: ^9.17.0 - version: 9.22.0(eslint@8.57.0) - npm-run-all2: - specifier: ^6.1.1 - version: 6.1.2 - typescript: - specifier: ~5.3.0 - version: 5.3.3 - vite: - specifier: ^5.0.11 - version: 5.1.5(@types/node@20.11.24)(less@4.2.0) - vue-tsc: - specifier: ^1.8.27 - version: 1.8.27(typescript@5.3.3) - - projects/vue-web: - dependencies: - pinia: - specifier: ^2.1.7 - version: 2.1.7(typescript@5.3.3)(vue@3.4.21) - vue: - specifier: ^3.4.15 - version: 3.4.21(typescript@5.3.3) - vue-router: - specifier: ^4.2.5 - version: 4.3.0(vue@3.4.21) - devDependencies: - '@rushstack/eslint-patch': - specifier: ^1.3.3 - version: 1.7.2 - '@tsconfig/node20': - specifier: ^20.1.2 - version: 20.1.2 - '@types/node': - specifier: ^20.11.10 - version: 20.11.24 - '@vitejs/plugin-vue': - specifier: ^5.0.3 - version: 5.0.4(vite@5.1.5)(vue@3.4.21) - '@vitejs/plugin-vue-jsx': - specifier: ^3.1.0 - version: 3.1.0(vite@5.1.5)(vue@3.4.21) - '@vue/eslint-config-typescript': - specifier: ^12.0.0 - version: 12.0.0(eslint-plugin-vue@9.22.0)(eslint@8.57.0)(typescript@5.3.3) - '@vue/tsconfig': - specifier: ^0.5.1 - version: 0.5.1 - eslint: - specifier: ^8.49.0 - version: 8.57.0 - eslint-plugin-vue: - specifier: ^9.17.0 - version: 9.22.0(eslint@8.57.0) - npm-run-all2: - specifier: ^6.1.1 - version: 6.1.2 - typescript: - specifier: ~5.3.0 - version: 5.3.3 - vite: - specifier: ^5.0.11 - version: 5.1.5(@types/node@20.11.24)(less@4.2.0) - vue-tsc: - specifier: ^1.8.27 - version: 1.8.27(typescript@5.3.3) - packages: /@aashutoshrathi/word-wrap@1.2.6: diff --git a/gpt-vue/projects/vue-admin/.env.development b/gpt-vue/projects/vue-admin/.env.development index 7402abdd..74dbd9ad 100644 --- a/gpt-vue/projects/vue-admin/.env.development +++ b/gpt-vue/projects/vue-admin/.env.development @@ -1,3 +1,2 @@ VITE_PROXY_BASE_URL="/api" VITE_TARGET_URL="http://172.22.11.2:5678" -VITE_SOCKET_IO_URL="http://172.28.1.3:8899" diff --git a/gpt-vue/projects/vue-admin/.env.production b/gpt-vue/projects/vue-admin/.env.production index a3c03b73..c70c13be 100644 --- a/gpt-vue/projects/vue-admin/.env.production +++ b/gpt-vue/projects/vue-admin/.env.production @@ -1,3 +1,2 @@ VITE_PROXY_BASE_URL="" VITE_TARGET_URL="/" -VITE_SOCKET_IO_URL="/" diff --git a/gpt-vue/projects/vue-admin/src/components/ConfirmSwitch.vue b/gpt-vue/projects/vue-admin/src/components/ConfirmSwitch.vue index 6f667023..8685e61e 100644 --- a/gpt-vue/projects/vue-admin/src/components/ConfirmSwitch.vue +++ b/gpt-vue/projects/vue-admin/src/components/ConfirmSwitch.vue @@ -8,6 +8,7 @@ type OriginProps = SwitchInstance["$props"]; interface Props extends /* @vue-ignore */ OriginProps { modelValue: boolean | string | number; api: (params?: any) => Promise>; + onSuccess?: (res?: any) => void; } const props = defineProps(); @@ -23,8 +24,9 @@ const _value = computed({ const onBeforeChange = async (params) => { try { - await props.api({ ...params, value: !_value.value }); + const res = await props.api({ ...params, value: !_value.value }); Message.success("操作成功"); + props?.onSuccess?.(res); return true; } catch (err) { console.log(err); diff --git a/gpt-vue/projects/vue-admin/src/http/config.ts b/gpt-vue/projects/vue-admin/src/http/config.ts index 1d024a94..e35fdd01 100644 --- a/gpt-vue/projects/vue-admin/src/http/config.ts +++ b/gpt-vue/projects/vue-admin/src/http/config.ts @@ -5,7 +5,7 @@ import type { BaseResponse } from "@gpt-vue/packages/type"; export const uploadUrl = import.meta.env.VITE_PROXY_BASE_URL + "/api/admin/upload"; -export const instance = createInstance() +export const instance = createInstance(import.meta.env.VITE_PROXY_BASE_URL) instance.interceptors.request.use((config) => { config.headers[__AUTH_KEY] = localStorage.getItem(__AUTH_KEY); diff --git a/gpt-vue/projects/vue-admin/src/router/menu.ts b/gpt-vue/projects/vue-admin/src/router/menu.ts index 9b047a6a..c2ee06bb 100644 --- a/gpt-vue/projects/vue-admin/src/router/menu.ts +++ b/gpt-vue/projects/vue-admin/src/router/menu.ts @@ -11,6 +11,7 @@ import { IconLock, IconCodepen, IconWechatpay, + IconRobot, } from "@arco-design/web-vue/es/icon"; const menu = [ @@ -123,6 +124,15 @@ const menu = [ }, component: () => import("@/views/LoginLog.vue"), }, + { + path: "/sysAdmin", + name: "SysAdmin", + meta: { + title: "系统管理员", + icon: IconRobot, + }, + component: () => import("@/views/SysAdmin/SysAdminContainer.vue"), + }, ]; export default menu; diff --git a/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminContainer.vue b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminContainer.vue new file mode 100644 index 00000000..b559059d --- /dev/null +++ b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminContainer.vue @@ -0,0 +1,115 @@ + + diff --git a/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminForm.vue b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminForm.vue new file mode 100644 index 00000000..ba61f6b8 --- /dev/null +++ b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminForm.vue @@ -0,0 +1,39 @@ + + + diff --git a/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminResetPWD.vue b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminResetPWD.vue new file mode 100644 index 00000000..f4105540 --- /dev/null +++ b/gpt-vue/projects/vue-admin/src/views/SysAdmin/SysAdminResetPWD.vue @@ -0,0 +1,28 @@ + + + diff --git a/gpt-vue/projects/vue-admin/src/views/SysAdmin/api.ts b/gpt-vue/projects/vue-admin/src/views/SysAdmin/api.ts new file mode 100644 index 00000000..7b18f49e --- /dev/null +++ b/gpt-vue/projects/vue-admin/src/views/SysAdmin/api.ts @@ -0,0 +1,33 @@ +import http from "@/http/config"; + +export const getList = (params) => { + return http({ + url: "/api/admin/sysUser/list", + method: "get", + params + }) +} + +export const save = (data) => { + return http({ + url: "/api/admin/sysUser/save", + method: "post", + data + }) +} + +export const remove = (data) => { + return http({ + url: "/api/admin/sysUser/remove", + method: "post", + data + }) +} + +export const resetPass = (data) => { + return http({ + url: "/api/admin/sysUser/resetPass", + method: "post", + data + }) +} \ No newline at end of file diff --git a/gpt-vue/projects/vue-admin/vite.config.ts b/gpt-vue/projects/vue-admin/vite.config.ts index 18f5fbed..2b6c0f6e 100644 --- a/gpt-vue/projects/vue-admin/vite.config.ts +++ b/gpt-vue/projects/vue-admin/vite.config.ts @@ -36,12 +36,9 @@ export default defineConfig(({ mode }) => { output: { manualChunks: (id) => { if (id.includes("node_modules")) { - if (id.includes("arco")) { - return `arco`; - } - if (id.includes("vue") && !id.includes("arco")) { - return `vue`; - } + if (id.includes("echats")) return `echats`; + if (id.includes("arco")) return `arco`; + if (id.includes("vue") && !id.includes("arco")) return `vue`; return `vendor`; } }, From 4bc1f195db287ecac3b1c26188b579d7489fe387 Mon Sep 17 00:00:00 2001 From: huangqj Date: Mon, 11 Mar 2024 16:10:49 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix(ui):=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/projects/vue-admin/.env.preview | 2 ++ gpt-vue/projects/vue-admin/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 gpt-vue/projects/vue-admin/.env.preview diff --git a/gpt-vue/projects/vue-admin/.env.preview b/gpt-vue/projects/vue-admin/.env.preview new file mode 100644 index 00000000..74dbd9ad --- /dev/null +++ b/gpt-vue/projects/vue-admin/.env.preview @@ -0,0 +1,2 @@ +VITE_PROXY_BASE_URL="/api" +VITE_TARGET_URL="http://172.22.11.2:5678" diff --git a/gpt-vue/projects/vue-admin/package.json b/gpt-vue/projects/vue-admin/package.json index aafca4cc..db2a5b46 100644 --- a/gpt-vue/projects/vue-admin/package.json +++ b/gpt-vue/projects/vue-admin/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", - "preview": "vite preview", + "preview": "vite preview --mode preview", "build-only": "vite build", "type-check": "vue-tsc --build --force", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" From 678f570a908db79171bb01e83a9b27248bb684e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Tue, 12 Mar 2024 08:37:27 +0800 Subject: [PATCH 5/5] =?UTF-8?q?refactor(ui):=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/projects/vue-admin/src/App.vue | 10 ---------- .../vue-admin/src/components/CustomLayout.vue | 15 +++++++++------ gpt-vue/projects/vue-admin/src/router/menu.ts | 8 ++++---- gpt-vue/projects/vue-admin/vite.config.ts | 14 -------------- 4 files changed, 13 insertions(+), 34 deletions(-) diff --git a/gpt-vue/projects/vue-admin/src/App.vue b/gpt-vue/projects/vue-admin/src/App.vue index 91c68e01..2ff26a30 100644 --- a/gpt-vue/projects/vue-admin/src/App.vue +++ b/gpt-vue/projects/vue-admin/src/App.vue @@ -18,14 +18,4 @@ border-radius: 1px; background: #fafafa; } - -.public-bg { - display: flex; - width: 100vw; - height: 100vh; - align-items: center; - justify-content: center; - background: linear-gradient(133deg, #ffffff 0%, #dde8fe 100%); - overflow: hidden; -} diff --git a/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue b/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue index 28485467..11efb4ff 100644 --- a/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue +++ b/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue @@ -49,11 +49,13 @@ const [visible, setVisible] = useState(false); @@ -125,7 +127,8 @@ const [visible, setVisible] = useState(false); .logout-area { padding: 8px 0; display: flex; - width: 80px; + min-width: 80px; + width: 100%; align-items: center; justify-content: center; } diff --git a/gpt-vue/projects/vue-admin/src/router/menu.ts b/gpt-vue/projects/vue-admin/src/router/menu.ts index c2ee06bb..926dac74 100644 --- a/gpt-vue/projects/vue-admin/src/router/menu.ts +++ b/gpt-vue/projects/vue-admin/src/router/menu.ts @@ -34,7 +34,7 @@ const menu = [ component: () => import("@/views/User/UserContainer.vue"), }, { - path: "/Role", + path: "/role", name: "Role", meta: { title: "角色管理", @@ -43,7 +43,7 @@ const menu = [ component: () => import("@/views/Role/RoleContainer.vue"), }, { - path: "/ChatModel", + path: "/chatModel", name: "ChatModel", meta: { title: "语言模型", @@ -52,7 +52,7 @@ const menu = [ component: () => import("@/views/ChatModel/ChatModelContainer.vue"), }, { - path: "/Product", + path: "/product", name: "Product", meta: { title: "充值产品", @@ -61,7 +61,7 @@ const menu = [ component: () => import("@/views/Product/ProductContainer.vue"), }, { - path: "/ApiKey", + path: "/apiKey", name: "ApiKey", meta: { title: "APIKEY", diff --git a/gpt-vue/projects/vue-admin/vite.config.ts b/gpt-vue/projects/vue-admin/vite.config.ts index 2b6c0f6e..882d98d5 100644 --- a/gpt-vue/projects/vue-admin/vite.config.ts +++ b/gpt-vue/projects/vue-admin/vite.config.ts @@ -31,19 +31,5 @@ export default defineConfig(({ mode }) => { }, }, }, - build: { - rollupOptions: { - output: { - manualChunks: (id) => { - if (id.includes("node_modules")) { - if (id.includes("echats")) return `echats`; - if (id.includes("arco")) return `arco`; - if (id.includes("vue") && !id.includes("arco")) return `vue`; - return `vendor`; - } - }, - }, - }, - }, } })