diff --git a/.github/workflows/nuxthub.yml b/.github/workflows/nuxthub.yml index 0a89ee4..ae3be4c 100644 --- a/.github/workflows/nuxthub.yml +++ b/.github/workflows/nuxthub.yml @@ -3,7 +3,7 @@ on: push jobs: deploy: - name: "Deploy to NuxtHub" + name: Deploy to NuxtHub runs-on: ubuntu-latest permissions: contents: read @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: 'pnpm' + cache: pnpm - name: Install dependencies run: pnpm install diff --git a/app/app.config.ts b/app/app.config.ts index 139e69f..9ee79a7 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -34,19 +34,9 @@ export default defineAppConfig({ match: ['blog-page', 'blog-tag-tag', 'blog-slug', 'blog-tag-tag-page'], }, { - label: '项目', - href: '/projects', - match: ['projects'], - }, - { - label: '留言墙', - href: '/guestbook', - match: ['guestbook'], - }, - { - label: '关于', - href: '/about', - match: ['about'], + label: '想法', + href: '/thoughts', + match: ['thoughts'], }, ] as NavigationItem[], @@ -77,5 +67,19 @@ export default defineAppConfig({ }, ], }, + { + label: '想法管理', + href: '/admin/thoughts/create', + match: ['admin-thoughts-create'], + icon: 'i-mingcute:lightbulb-line', + children: [ + { + label: '新建想法', + href: '/admin/thoughts/create', + match: ['admin-thoughts-create'], + icon: 'i-mingcute:add-line', + }, + ], + }, ] as AdminNavigationItem[], }) diff --git a/app/components/modules/home/thought-item.vue b/app/components/modules/home/thought-item.vue new file mode 100644 index 0000000..d1f9a06 --- /dev/null +++ b/app/components/modules/home/thought-item.vue @@ -0,0 +1,31 @@ + + + diff --git a/app/components/modules/home/thought-timeline.vue b/app/components/modules/home/thought-timeline.vue new file mode 100644 index 0000000..6340825 --- /dev/null +++ b/app/components/modules/home/thought-timeline.vue @@ -0,0 +1,42 @@ + + + diff --git a/app/pages/(home)/about.vue b/app/pages/(home)/about.vue deleted file mode 100644 index d0db830..0000000 --- a/app/pages/(home)/about.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/app/pages/(home)/blog/[[page]].vue b/app/pages/(home)/blog/[[page]].vue index 4c5c808..a5636b0 100644 --- a/app/pages/(home)/blog/[[page]].vue +++ b/app/pages/(home)/blog/[[page]].vue @@ -1,7 +1,42 @@ + + + + - - diff --git a/app/pages/(home)/projects.vue b/app/pages/(home)/projects.vue deleted file mode 100644 index d0db830..0000000 --- a/app/pages/(home)/projects.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/app/pages/(home)/thoughts.vue b/app/pages/(home)/thoughts.vue new file mode 100644 index 0000000..832af71 --- /dev/null +++ b/app/pages/(home)/thoughts.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/app/pages/admin/(dashboard)/posts/[[page]].vue b/app/pages/admin/(dashboard)/posts/[[page]].vue index d57a39d..9c186e5 100644 --- a/app/pages/admin/(dashboard)/posts/[[page]].vue +++ b/app/pages/admin/(dashboard)/posts/[[page]].vue @@ -1,8 +1,34 @@ + + + + +