From 674fe965550444db87edc7937ff6932e1a918d9d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 27 Jun 2025 23:39:31 +0900 Subject: feat(meta): rename vhosts/ directory to services/ --- vhosts/blog/nuldoc-src/pages/AboutPage.tsx | 110 ------------------------- vhosts/blog/nuldoc-src/pages/AtomPage.tsx | 26 ------ vhosts/blog/nuldoc-src/pages/HomePage.tsx | 53 ------------ vhosts/blog/nuldoc-src/pages/NotFoundPage.tsx | 27 ------ vhosts/blog/nuldoc-src/pages/PostListPage.tsx | 54 ------------ vhosts/blog/nuldoc-src/pages/PostPage.tsx | 66 --------------- vhosts/blog/nuldoc-src/pages/SlideListPage.tsx | 42 ---------- vhosts/blog/nuldoc-src/pages/SlidePage.tsx | 72 ---------------- vhosts/blog/nuldoc-src/pages/TagListPage.tsx | 57 ------------- vhosts/blog/nuldoc-src/pages/TagPage.tsx | 43 ---------- 10 files changed, 550 deletions(-) delete mode 100644 vhosts/blog/nuldoc-src/pages/AboutPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/AtomPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/HomePage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/NotFoundPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/PostListPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/PostPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/SlideListPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/SlidePage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/TagListPage.tsx delete mode 100644 vhosts/blog/nuldoc-src/pages/TagPage.tsx (limited to 'vhosts/blog/nuldoc-src/pages') diff --git a/vhosts/blog/nuldoc-src/pages/AboutPage.tsx b/vhosts/blog/nuldoc-src/pages/AboutPage.tsx deleted file mode 100644 index 3d6583a4..00000000 --- a/vhosts/blog/nuldoc-src/pages/AboutPage.tsx +++ /dev/null @@ -1,110 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import StaticScript from "../components/StaticScript.tsx"; -import { Config } from "../config.ts"; -import { dateToString } from "../revision.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; -import { SlidePage } from "../generators/slide.ts"; - -export default function AboutPage( - slides: SlidePage[], - config: Config, -) { - return ( - - - -
-
-
-

nsfisis

-
-
- -
- -
-
-
-
-

読み方

-

- 読み方は決めていません。音にする必要があるときは本名である「いまむら」をお使いください。 -

-
-
-

アカウント

- -
-
-

仕事

- -
-
-

登壇

- -
-
-
-
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/AtomPage.tsx b/vhosts/blog/nuldoc-src/pages/AtomPage.tsx deleted file mode 100644 index 21c3bfaf..00000000 --- a/vhosts/blog/nuldoc-src/pages/AtomPage.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { Feed } from "../generators/atom.ts"; - -export default function AtomPage({ feed }: { feed: Feed }) { - return ( - - {feed.id} - {feed.title} - - - - {feed.author} - - {feed.updated} - {feed.entries.map((entry) => ( - - {entry.id} - - {entry.title} - {entry.summary} - {entry.published} - {entry.updated} - - ))} - - ); -} diff --git a/vhosts/blog/nuldoc-src/pages/HomePage.tsx b/vhosts/blog/nuldoc-src/pages/HomePage.tsx deleted file mode 100644 index 8850d039..00000000 --- a/vhosts/blog/nuldoc-src/pages/HomePage.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import { Config } from "../config.ts"; - -export default function HomePage(config: Config) { - return ( - - - -
- -
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/NotFoundPage.tsx b/vhosts/blog/nuldoc-src/pages/NotFoundPage.tsx deleted file mode 100644 index 9631fef2..00000000 --- a/vhosts/blog/nuldoc-src/pages/NotFoundPage.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import { Config } from "../config.ts"; - -export default function NotFoundPage( - config: Config, -) { - return ( - - - -
-
-
404
-
-
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/PostListPage.tsx b/vhosts/blog/nuldoc-src/pages/PostListPage.tsx deleted file mode 100644 index 054955e6..00000000 --- a/vhosts/blog/nuldoc-src/pages/PostListPage.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import Pagination from "../components/Pagination.tsx"; -import PostPageEntry from "../components/PostPageEntry.tsx"; -import { Config } from "../config.ts"; -import { PostPage } from "../generators/post.ts"; - -export default function PostListPage( - posts: PostPage[], - config: Config, - currentPage: number, - totalPages: number, -) { - const pageTitle = "投稿一覧"; - - const pageInfoSuffix = ` (${currentPage}ページ目)`; - const metaTitle = `${pageTitle}${pageInfoSuffix}|${config.blog.siteName}`; - const metaDescription = `投稿した記事の一覧${pageInfoSuffix}`; - - return ( - - - -
-
-

{pageTitle}{pageInfoSuffix}

-
- - - - {posts.map((post) => )} - - -
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/PostPage.tsx b/vhosts/blog/nuldoc-src/pages/PostPage.tsx deleted file mode 100644 index 97a24048..00000000 --- a/vhosts/blog/nuldoc-src/pages/PostPage.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import { Config, getTagLabel } from "../config.ts"; -import { Element } from "../dom.ts"; -import { Document } from "../djot/document.ts"; -import { dateToString } from "../revision.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; - -export default function PostPage( - doc: Document, - config: Config, -) { - return ( - getTagLabel(config, slug))} - metaTitle={`${doc.title}|${config.blog.siteName}`} - requiresSyntaxHighlight - config={config} - > - - -
-
-
-

{doc.title}

- {doc.tags.length !== 0 && ( - - )} -
-
-
-

- 更新履歴 -

-
    - {doc.revisions.map((rev) => ( -
  1. - - {`: ${rev.remark}`} -
  2. - ))} -
-
- { - // TODO: refactor - (doc.root.children[0] as Element).children - } -
-
-
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/SlideListPage.tsx b/vhosts/blog/nuldoc-src/pages/SlideListPage.tsx deleted file mode 100644 index 3d87d492..00000000 --- a/vhosts/blog/nuldoc-src/pages/SlideListPage.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import SlidePageEntry from "../components/SlidePageEntry.tsx"; -import { Config } from "../config.ts"; -import { dateToString } from "../revision.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; -import { SlidePage } from "../generators/slide.ts"; - -export default function SlideListPage( - slides: SlidePage[], - config: Config, -) { - const pageTitle = "スライド一覧"; - - return ( - - - -
-
-

{pageTitle}

-
- {Array.from(slides).sort((a, b) => { - const ta = dateToString(getPostPublishedDate(a)); - const tb = dateToString(getPostPublishedDate(b)); - if (ta > tb) return -1; - if (ta < tb) return 1; - return 0; - }).map((slide) => )} -
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/SlidePage.tsx b/vhosts/blog/nuldoc-src/pages/SlidePage.tsx deleted file mode 100644 index fc11072d..00000000 --- a/vhosts/blog/nuldoc-src/pages/SlidePage.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import StaticScript from "../components/StaticScript.tsx"; -import { Config, getTagLabel } from "../config.ts"; -import { dateToString } from "../revision.ts"; -import { Slide } from "../slide/slide.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; - -export default function SlidePage( - slide: Slide, - config: Config, -) { - return ( - getTagLabel(config, slug))} - metaTitle={`${slide.event} (${slide.talkType})|${config.blog.siteName}`} - requiresSyntaxHighlight - config={config} - > - - -
-
-
-

{slide.title}

- {slide.tags.length !== 0 && ( - - )} -
-
-
-

- 更新履歴 -

-
    - {slide.revisions.map((rev) => ( -
  1. - - {`: ${rev.remark}`} -
  2. - ))} -
-
- -
- - -
- -
-
-
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/TagListPage.tsx b/vhosts/blog/nuldoc-src/pages/TagListPage.tsx deleted file mode 100644 index cdb83ea5..00000000 --- a/vhosts/blog/nuldoc-src/pages/TagListPage.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import { Config } from "../config.ts"; -import { TagPage } from "../generators/tag.ts"; - -export default function TagListPage( - tags: TagPage[], - config: Config, -) { - const pageTitle = "タグ一覧"; - - return ( - - - -
-
-

{pageTitle}

-
- {Array.from(tags).sort((a, b) => { - const ta = a.tagSlug; - const tb = b.tagSlug; - if (ta < tb) return -1; - if (ta > tb) return 1; - return 0; - }).map((tag) => ( - - ))} -
- - -
- ); -} diff --git a/vhosts/blog/nuldoc-src/pages/TagPage.tsx b/vhosts/blog/nuldoc-src/pages/TagPage.tsx deleted file mode 100644 index 02c484af..00000000 --- a/vhosts/blog/nuldoc-src/pages/TagPage.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import GlobalFooter from "../components/GlobalFooter.tsx"; -import GlobalHeader from "../components/GlobalHeader.tsx"; -import PageLayout from "../components/PageLayout.tsx"; -import PostPageEntry from "../components/PostPageEntry.tsx"; -import SlidePageEntry from "../components/SlidePageEntry.tsx"; -import { Config, getTagLabel } from "../config.ts"; -import { getPostPublishedDate } from "../generators/post.ts"; -import { TaggedPage } from "../generators/tagged_page.ts"; - -export default function TagPage( - tagSlug: string, - pages: TaggedPage[], - config: Config, -) { - const tagLabel = getTagLabel(config, tagSlug); - const pageTitle = `タグ「${tagLabel}」一覧`; - - return ( - - - -
-
-

{pageTitle}

-
- {pages.map((page) => - "event" in page - ? - : - )} -
- - -
- ); -} -- cgit v1.2.3-70-g09d2