From 3df57cfed655afabb2c3f40e117a8be3c1fdd6ea Mon Sep 17 00:00:00 2001 From: cirry <812852553@qq.com> Date: Wed, 12 Aug 2026 11:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 4 +- README.md | 4 +- src/components/layout/AppFooter.vue | 5 - src/components/layout/AppHeader.vue | 34 ++----- src/components/layout/AppSidebar.vue | 134 --------------------------- src/layouts/DefaultLayout.vue | 36 +++---- src/layouts/ReaderLayout.vue | 50 ++++++++-- src/style.css | 2 + src/views/ChanlunListView.vue | 4 +- src/views/HomeView.vue | 2 +- 10 files changed, 77 insertions(+), 198 deletions(-) delete mode 100644 src/components/layout/AppSidebar.vue diff --git a/CLAUDE.md b/CLAUDE.md index 00a9135..06df291 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -75,13 +75,13 @@ pnpm preview # 预览生产构建 ### 路由与布局 5 个 view,两种 layout: -- `DefaultLayout`(`/`):顶栏 + 侧栏 + 内容 + 页脚,包 home / chanlun / articles / about。 +- `DefaultLayout`(`/`):顶栏 + 内容 + 页脚,包 home / chanlun / articles / about。 - `ReaderLayout`(`/read/:category/:slug`):沉浸阅读,含阅读进度、阅读设置、上下篇导航。 - markdown 的 h2/h3 会被 `useMarkdown.ts` 注入 `id`(slug 来自 `utils/slug.ts`),便于锚点跳转。 ### 现存组件缺标记类名 -`components/ui/`(BaseButton/Badge/Card/SearchInput)、`components/layout/`(AppHeader/AppSidebar/AppFooter)及 `ArticleCard` 等目前是纯工具类。改动它们时按上面的「标记类名」约定补齐。 +`components/ui/`(BaseButton/Badge/Card/SearchInput)、`components/layout/`(AppHeader/AppFooter)及 `ArticleCard` 等目前是纯工具类。改动它们时按上面的「标记类名」约定补齐。 ## 其他约定 diff --git a/README.md b/README.md index 9c37242..d1c2c90 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ pnpm typecheck # 仅类型检查 src/ ├── components/ │ ├── ui/ # 基础组件:BaseButton / Badge / Card / SearchInput -│ ├── layout/ # AppHeader / AppSidebar / AppFooter +│ ├── layout/ # AppHeader / AppFooter │ ├── ArticleCard.vue # 文章列表卡片 │ ├── TableOfContents.vue │ ├── ThemeToggle.vue / ReaderSettings.vue / ReadingProgress.vue @@ -47,7 +47,7 @@ src/ │ ├── essays.ts # 杂谈随笔(示例数据) │ └── categories.ts # 分类信息 ├── layouts/ -│ ├── DefaultLayout.vue # 顶栏 + 侧栏 + 内容 + 页脚 +│ ├── DefaultLayout.vue # 顶栏 + 内容 + 页脚 │ └── ReaderLayout.vue # 沉浸阅读布局 ├── views/ # 5 个页面 ├── stores/ # theme / reading(Pinia) diff --git a/src/components/layout/AppFooter.vue b/src/components/layout/AppFooter.vue index dfe929a..4e4d712 100644 --- a/src/components/layout/AppFooter.vue +++ b/src/components/layout/AppFooter.vue @@ -16,11 +16,6 @@ const links = [ class="mx-auto flex max-w-[1400px] flex-col items-center justify-between gap-4 px-4 py-8 sm:flex-row sm:px-6" >