From 57749945430f01dc75441fd179ae7de6e39051d8 Mon Sep 17 00:00:00 2001 From: the3ash <24548223+the3ash@users.noreply.github.com> Date: Sun, 13 Jul 2025 13:59:01 +0800 Subject: [PATCH] chore(components): cleanup structure --- src/components/{pages => widgets}/About.astro | 0 src/components/{features => widgets}/FootnoteScroll.astro | 0 src/components/{features => widgets}/FormattedDate.astro | 0 src/components/{features => widgets}/PostList.astro | 2 +- src/layouts/PostLayout.astro | 4 ++-- src/pages/index.astro | 4 ++-- 6 files changed, 5 insertions(+), 5 deletions(-) rename src/components/{pages => widgets}/About.astro (100%) rename src/components/{features => widgets}/FootnoteScroll.astro (100%) rename src/components/{features => widgets}/FormattedDate.astro (100%) rename src/components/{features => widgets}/PostList.astro (96%) diff --git a/src/components/pages/About.astro b/src/components/widgets/About.astro similarity index 100% rename from src/components/pages/About.astro rename to src/components/widgets/About.astro diff --git a/src/components/features/FootnoteScroll.astro b/src/components/widgets/FootnoteScroll.astro similarity index 100% rename from src/components/features/FootnoteScroll.astro rename to src/components/widgets/FootnoteScroll.astro diff --git a/src/components/features/FormattedDate.astro b/src/components/widgets/FormattedDate.astro similarity index 100% rename from src/components/features/FormattedDate.astro rename to src/components/widgets/FormattedDate.astro diff --git a/src/components/features/PostList.astro b/src/components/widgets/PostList.astro similarity index 96% rename from src/components/features/PostList.astro rename to src/components/widgets/PostList.astro index 3340ead..463979c 100644 --- a/src/components/features/PostList.astro +++ b/src/components/widgets/PostList.astro @@ -1,5 +1,5 @@ --- -import FormattedDate from '@/components/features/FormattedDate.astro' +import FormattedDate from '@/components/widgets/FormattedDate.astro' import type { PostListProps } from '@/types' import { themeConfig } from '@/config' diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro index d8c7429..609c714 100644 --- a/src/layouts/PostLayout.astro +++ b/src/layouts/PostLayout.astro @@ -1,8 +1,8 @@ --- import '@/styles/global.css' import type { PostLayoutProps } from '@/types' -import FormattedDate from '@/components/features/FormattedDate.astro' -import FootnoteScroll from '@/components/features/FootnoteScroll.astro' +import FormattedDate from '@/components/widgets/FormattedDate.astro' +import FootnoteScroll from '@/components/widgets/FootnoteScroll.astro' import BaseHead from '@/components/layout/BaseHead.astro' import Footer from '@/components/layout/Footer.astro' import BackButton from '@/components/ui/BackButton.astro' diff --git a/src/pages/index.astro b/src/pages/index.astro index 1dda6e5..6d184f9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,7 @@ --- import IndexLayout from '@/layouts/IndexLayout.astro' -import About from '@/components/pages/About.astro' -import PostList from '@/components/features/PostList.astro' +import About from '@/components/widgets/About.astro' +import PostList from '@/components/widgets/PostList.astro' import { themeConfig } from '@/config' import { getSortedFilteredPosts } from '@/utils/draft' -- 2.51.2