From 707d889514093f72ee6da4270993a1a1918f66dd Mon Sep 17 00:00:00 2001 From: eafonyang Date: Thu, 30 Jul 2026 11:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=84=E7=9B=AE=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++ dashboard/.gitignore | 64 --------------------- docs/www/tech-stack.md | 13 ++--- www/{web => }/app/app.vue | 0 www/{web => }/app/assets/css/main.css | 0 www/{web => }/app/components/AppFooter.vue | 0 www/{web => }/app/components/AppHeader.vue | 0 www/{web => }/app/composables/useRequest.ts | 0 www/{web => }/app/layouts/blank.vue | 0 www/{web => }/app/layouts/default.vue | 0 www/{web => }/app/middleware/.gitkeep | 0 www/{web => }/app/pages/[...slug].vue | 0 www/{web => }/app/pages/index.vue | 0 www/{web => }/app/plugins/.gitkeep | 0 www/{web => }/app/stores/app.ts | 0 www/{web => }/app/types/.gitkeep | 0 www/{web => }/app/utils/.gitkeep | 0 www/{web => }/i18n/locales/en.json | 0 www/{web => }/i18n/locales/zh.json | 0 www/{web => }/nuxt.config.ts | 0 www/{web => }/package.json | 0 www/{web => }/pnpm-lock.yaml | 0 www/{web => }/pnpm-workspace.yaml | 0 www/{web => }/public/favicon.svg | 0 www/{web => }/public/home_logo_black.svg | 0 www/{web => }/server/.gitkeep | 0 www/{web => }/tsconfig.json | 0 www/{web => }/uno.config.ts | 0 www/web/.gitignore | 24 -------- 29 files changed, 10 insertions(+), 95 deletions(-) delete mode 100644 dashboard/.gitignore rename www/{web => }/app/app.vue (100%) rename www/{web => }/app/assets/css/main.css (100%) rename www/{web => }/app/components/AppFooter.vue (100%) rename www/{web => }/app/components/AppHeader.vue (100%) rename www/{web => }/app/composables/useRequest.ts (100%) rename www/{web => }/app/layouts/blank.vue (100%) rename www/{web => }/app/layouts/default.vue (100%) rename www/{web => }/app/middleware/.gitkeep (100%) rename www/{web => }/app/pages/[...slug].vue (100%) rename www/{web => }/app/pages/index.vue (100%) rename www/{web => }/app/plugins/.gitkeep (100%) rename www/{web => }/app/stores/app.ts (100%) rename www/{web => }/app/types/.gitkeep (100%) rename www/{web => }/app/utils/.gitkeep (100%) rename www/{web => }/i18n/locales/en.json (100%) rename www/{web => }/i18n/locales/zh.json (100%) rename www/{web => }/nuxt.config.ts (100%) rename www/{web => }/package.json (100%) rename www/{web => }/pnpm-lock.yaml (100%) rename www/{web => }/pnpm-workspace.yaml (100%) rename www/{web => }/public/favicon.svg (100%) rename www/{web => }/public/home_logo_black.svg (100%) rename www/{web => }/server/.gitkeep (100%) rename www/{web => }/tsconfig.json (100%) rename www/{web => }/uno.config.ts (100%) delete mode 100644 www/web/.gitignore diff --git a/.gitignore b/.gitignore index 37b4721..359dbeb 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,10 @@ lerna-debug.log* dist/ .cache/ +# Nuxt +.nuxt/ +.output/ + # Testing coverage/ .nyc_output/ diff --git a/dashboard/.gitignore b/dashboard/.gitignore deleted file mode 100644 index 37b4721..0000000 --- a/dashboard/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Python -__pycache__/ -*.py[cod] -*$py.class -*.so -.Python -env/ -venv/ -ENV/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -*.manifest -*.spec -autoeq/ - -# IDE -.vscode/ -.idea/ -*.swp -*.swo -*~ -.DS_Store -.qoder - -# Environment -.env -.env.local -.env.*.local - -# Logs -*.log -logs/ - -# Node -node_modules/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* -dist/ -.cache/ - -# Testing -coverage/ -.nyc_output/ - -# Misc -*.bak -*.tmp -.TemporaryItems/ diff --git a/docs/www/tech-stack.md b/docs/www/tech-stack.md index 95da38b..be0bef3 100644 --- a/docs/www/tech-stack.md +++ b/docs/www/tech-stack.md @@ -9,11 +9,11 @@ ## 架构总览 ``` -用户浏览器 ──→ Nuxt 4 SPA (www/web) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio) +用户浏览器 ──→ Nuxt 4 SPA (www) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio) 管理员浏览器 ──→ soybean-admin (dashboard/frontend) ──→ Dashboard API (Express + Drizzle) ──→ MySQL (audio) ``` -- **Web 前端**(www/web):面向用户的产品展示官网(SPA) +- **Web 前端**(www):面向用户的产品展示官网(SPA) - **管理后台**(dashboard/frontend):soybean-admin,新增「官网管理」菜单模块 - **API 服务**(dashboard/backend):Express + TypeScript + Drizzle ORM,统一提供数据接口 - **数据库**:MySQL(复用现有 `audio` 数据库) @@ -21,8 +21,7 @@ ## 目录结构 ``` -www/ -└── web/ # 前端官网(Nuxt 4) +www/ # 前端官网(Nuxt 4) dashboard/ ├── backend/ # 统一 API 服务(Express + TypeScript + Drizzle + MySQL) @@ -42,7 +41,7 @@ docs/ --- -## Web 前端 (`web/`) +## Web 前端 (`www/`) | 技术 | 版本 | 说明 | |------|------|------| @@ -63,7 +62,7 @@ docs/ Nuxt 4 引入 `app/` 源码目录,将应用代码与项目根配置分离: ``` -web/ +www/ ├── app/ # 源码目录 │ ├── app.vue # 入口 │ ├── assets/ # 静态资源 @@ -184,7 +183,7 @@ web/ | 模块 | 候选方案 | |------|----------| -| Web 前端(www/web) | Vercel / Cloudflare Pages / Nginx 静态托管 | +| Web 前端(www) | Vercel / Cloudflare Pages / Nginx 静态托管 | | 管理后台(dashboard/frontend) | Nginx 静态托管(现有方案) | | API 服务(dashboard/backend) | Docker 容器(现有方案,端口 8083) | | 数据库 | 现有 MySQL 实例 | diff --git a/www/web/app/app.vue b/www/app/app.vue similarity index 100% rename from www/web/app/app.vue rename to www/app/app.vue diff --git a/www/web/app/assets/css/main.css b/www/app/assets/css/main.css similarity index 100% rename from www/web/app/assets/css/main.css rename to www/app/assets/css/main.css diff --git a/www/web/app/components/AppFooter.vue b/www/app/components/AppFooter.vue similarity index 100% rename from www/web/app/components/AppFooter.vue rename to www/app/components/AppFooter.vue diff --git a/www/web/app/components/AppHeader.vue b/www/app/components/AppHeader.vue similarity index 100% rename from www/web/app/components/AppHeader.vue rename to www/app/components/AppHeader.vue diff --git a/www/web/app/composables/useRequest.ts b/www/app/composables/useRequest.ts similarity index 100% rename from www/web/app/composables/useRequest.ts rename to www/app/composables/useRequest.ts diff --git a/www/web/app/layouts/blank.vue b/www/app/layouts/blank.vue similarity index 100% rename from www/web/app/layouts/blank.vue rename to www/app/layouts/blank.vue diff --git a/www/web/app/layouts/default.vue b/www/app/layouts/default.vue similarity index 100% rename from www/web/app/layouts/default.vue rename to www/app/layouts/default.vue diff --git a/www/web/app/middleware/.gitkeep b/www/app/middleware/.gitkeep similarity index 100% rename from www/web/app/middleware/.gitkeep rename to www/app/middleware/.gitkeep diff --git a/www/web/app/pages/[...slug].vue b/www/app/pages/[...slug].vue similarity index 100% rename from www/web/app/pages/[...slug].vue rename to www/app/pages/[...slug].vue diff --git a/www/web/app/pages/index.vue b/www/app/pages/index.vue similarity index 100% rename from www/web/app/pages/index.vue rename to www/app/pages/index.vue diff --git a/www/web/app/plugins/.gitkeep b/www/app/plugins/.gitkeep similarity index 100% rename from www/web/app/plugins/.gitkeep rename to www/app/plugins/.gitkeep diff --git a/www/web/app/stores/app.ts b/www/app/stores/app.ts similarity index 100% rename from www/web/app/stores/app.ts rename to www/app/stores/app.ts diff --git a/www/web/app/types/.gitkeep b/www/app/types/.gitkeep similarity index 100% rename from www/web/app/types/.gitkeep rename to www/app/types/.gitkeep diff --git a/www/web/app/utils/.gitkeep b/www/app/utils/.gitkeep similarity index 100% rename from www/web/app/utils/.gitkeep rename to www/app/utils/.gitkeep diff --git a/www/web/i18n/locales/en.json b/www/i18n/locales/en.json similarity index 100% rename from www/web/i18n/locales/en.json rename to www/i18n/locales/en.json diff --git a/www/web/i18n/locales/zh.json b/www/i18n/locales/zh.json similarity index 100% rename from www/web/i18n/locales/zh.json rename to www/i18n/locales/zh.json diff --git a/www/web/nuxt.config.ts b/www/nuxt.config.ts similarity index 100% rename from www/web/nuxt.config.ts rename to www/nuxt.config.ts diff --git a/www/web/package.json b/www/package.json similarity index 100% rename from www/web/package.json rename to www/package.json diff --git a/www/web/pnpm-lock.yaml b/www/pnpm-lock.yaml similarity index 100% rename from www/web/pnpm-lock.yaml rename to www/pnpm-lock.yaml diff --git a/www/web/pnpm-workspace.yaml b/www/pnpm-workspace.yaml similarity index 100% rename from www/web/pnpm-workspace.yaml rename to www/pnpm-workspace.yaml diff --git a/www/web/public/favicon.svg b/www/public/favicon.svg similarity index 100% rename from www/web/public/favicon.svg rename to www/public/favicon.svg diff --git a/www/web/public/home_logo_black.svg b/www/public/home_logo_black.svg similarity index 100% rename from www/web/public/home_logo_black.svg rename to www/public/home_logo_black.svg diff --git a/www/web/server/.gitkeep b/www/server/.gitkeep similarity index 100% rename from www/web/server/.gitkeep rename to www/server/.gitkeep diff --git a/www/web/tsconfig.json b/www/tsconfig.json similarity index 100% rename from www/web/tsconfig.json rename to www/tsconfig.json diff --git a/www/web/uno.config.ts b/www/uno.config.ts similarity index 100% rename from www/web/uno.config.ts rename to www/uno.config.ts diff --git a/www/web/.gitignore b/www/web/.gitignore deleted file mode 100644 index 1b61a2b..0000000 --- a/www/web/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Dependencies -node_modules/ - -# Build output -dist/ -.output/ - -# Nuxt generated -.nuxt/ - -# Env local files -.env.local -.env.*.local - -# Logs -*.log - -# Editor -.vscode/* -!.vscode/extensions.json -.idea/ - -# OS -.DS_Store