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 df36fcfb..00000000 Binary files a/gpt-vue/projects/vue-mobile/public/favicon.ico and /dev/null differ 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 df36fcfb..00000000 Binary files a/gpt-vue/projects/vue-web/public/favicon.ico and /dev/null differ 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)) - } - } -})