-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
72 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import fastifyStatic from "@fastify/static"; | ||
import type { FastifyPluginAsync } from "fastify"; | ||
import path from "node:path"; | ||
import process from "node:process"; | ||
import { aboutPage } from "./pages/about.page.js"; | ||
import { homePage } from "./pages/home.page.js"; | ||
import { rssPage } from "./pages/rss.page.js"; | ||
import { sitemapPage } from "./pages/sitemap.page.js"; | ||
import fastifyStatic from "@fastify/static"; | ||
import type { FastifyPluginAsync } from "fastify"; | ||
import { aboutHandler } from "./handlers/about.handler.js"; | ||
import { homeHandler } from "./handlers/home.handler.js"; | ||
import { rssHandler } from "./handlers/rss.handler.js"; | ||
import { sitemapHandler } from "./handlers/sitemap.handler.js"; | ||
|
||
export const homeModule: FastifyPluginAsync = async (app) => { | ||
await app.register(fastifyStatic, { | ||
root: path.resolve(process.cwd(), "src/home/assets"), | ||
prefix: "/home/", | ||
}); | ||
|
||
await app.register(homePage); | ||
await app.register(aboutPage); | ||
await app.register(rssPage); | ||
await app.register(sitemapPage); | ||
await app.register(homeHandler); | ||
await app.register(aboutHandler); | ||
await app.register(rssHandler); | ||
await app.register(sitemapHandler); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import fastifyStatic from "@fastify/static"; | ||
import type { FastifyPluginAsync } from "fastify"; | ||
import { resolveContentPath } from "../content/utils/path.js"; | ||
import { postPage } from "./pages/post.page.js"; | ||
import { postsPage } from "./pages/posts.page.js"; | ||
import { tagPage } from "./pages/tag.page.js"; | ||
import { postHandler } from "./handlers/post.handler.js"; | ||
import { postsHandler } from "./handlers/posts.handler.js"; | ||
import { tagHandler } from "./handlers/tag.handler.js"; | ||
|
||
export const postsModule: FastifyPluginAsync = async (app) => { | ||
await app.register(fastifyStatic, { | ||
root: resolveContentPath("posts"), | ||
prefix: "/posts/", | ||
}); | ||
|
||
await app.register(postsPage); | ||
await app.register(postPage); | ||
await app.register(tagPage); | ||
await app.register(postsHandler); | ||
await app.register(postHandler); | ||
await app.register(tagHandler); | ||
}; |
12 changes: 8 additions & 4 deletions
12
...projects/pages/project-changelog.page.tsx β ...ts/handlers/project-changelog.handler.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import fastifyStatic from "@fastify/static"; | ||
import type { FastifyPluginAsync } from "fastify"; | ||
import { resolveContentPath } from "../content/utils/path.js"; | ||
import { projectChangelogPage } from "./pages/project-changelog.page.js"; | ||
import { projectChangelogsPage } from "./pages/project-changelogs.page.js"; | ||
import { projectPage } from "./pages/project.page.js"; | ||
import { projectsPage } from "./pages/projects.page.js"; | ||
import { projectChangelogHandler } from "./handlers/project-changelog.handler.js"; | ||
import { projectChangelogsHandler } from "./handlers/project-changelogs.handler.js"; | ||
import { projectHandler } from "./handlers/project.handler.js"; | ||
import { projectsHandler } from "./handlers/projects.handler.js"; | ||
|
||
export const projectsModule: FastifyPluginAsync = async (app) => { | ||
await app.register(fastifyStatic, { | ||
root: resolveContentPath("projects"), | ||
prefix: "/projects/", | ||
}); | ||
|
||
await app.register(projectsPage); | ||
await app.register(projectPage); | ||
await app.register(projectChangelogsPage); | ||
await app.register(projectChangelogPage); | ||
await app.register(projectsHandler); | ||
await app.register(projectHandler); | ||
await app.register(projectChangelogsHandler); | ||
await app.register(projectChangelogHandler); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters