Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
congle-engineer committed Oct 9, 2024
1 parent 13ec0c3 commit 9b385a2
Show file tree
Hide file tree
Showing 72 changed files with 541 additions and 666 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ yarn-error.log*

# vercel
.vercel
/out/

# typescript
*.tsbuildinfo
Expand Down
6 changes: 3 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Footer } from "../components/footer";
import { CMS_NAME, HOME_OG_IMAGE_URL } from "../lib/constants";
import { Footer } from "components/Footer";
import { CMS_NAME, HOME_OG_IMAGE_URL } from "lib/constants";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import cn from "classnames";
import { ThemeSwitcher } from "../components/theme-switcher";
import { ThemeSwitcher } from "components/ThemeSwitcher";
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });
Expand Down
10 changes: 5 additions & 5 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Container } from "../components/container";
import { HeroPost } from "../components/hero-post";
import { Intro } from "../components/intro";
import { MoreStories } from "../components/more-stories";
import { getAllPosts } from "../lib/api";
import { Container } from "components/Container";
import { HeroPost } from "components/HeroPost";
import { Intro } from "components/Intro";
import { MoreStories } from "components/MoreStories";
import { getAllPosts } from "lib/api";

export default function Page() {
const allPosts = getAllPosts();
Expand Down
14 changes: 7 additions & 7 deletions app/posts/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Metadata } from "next";
import { notFound } from "next/navigation";
import { getAllPosts, getPostBySlug } from "../../../lib/api";
import { getAllPosts, getPostBySlug } from "lib/api";
// import { CMS_NAME } from "@/lib/constants";
import markdownToHtml from "../../../lib/markdownToHtml";
import { Alert } from "../../../components/alert";
import { Container } from "../../../components/container";
import { Header } from "../../../components/header";
import { PostBody } from "../../../components/post-body";
import { PostHeader } from "../../../components/post-header";
import markdownToHtml from "lib/markdownToHtml";
import { Alert } from "components/Alert";
import { Container } from "components/Container";
import { Header } from "components/Header";
import { PostBody } from "components/PostBody";
import { PostHeader } from "components/PostHeader";

type Params = {
params: {
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions components/hero-post.tsx → components/HeroPost.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Avatar } from "./avatar";
import { CoverImage } from "./cover-image";
import { Avatar } from "./Avatar";
import { CoverImage } from "./CoverImage";
import { type Author } from "../interfaces/author";
import Link from "next/link";
import { DateFormatter } from "./date-formatter";
import { DateFormatter } from "./DateFormatter";

type Props = {
title: string;
Expand Down
4 changes: 2 additions & 2 deletions components/more-stories.tsx → components/MoreStories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Post } from "../interfaces/post";
import { PostPreview } from "./post-preview";
import { Post } from "interfaces/post";
import { PostPreview } from "./PostPreview";

type Props = {
posts: Post[];
Expand Down
2 changes: 1 addition & 1 deletion components/post-body.tsx → components/PostBody.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import markdownStyles from "../styles/markdown-style.module.css";
import markdownStyles from "styles/markdown-style.module.css";

type Props = {
content: string;
Expand Down
10 changes: 5 additions & 5 deletions components/post-header.tsx → components/PostHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Avatar } from "./avatar";
import { CoverImage } from "./cover-image";
import { DateFormatter } from "./date-formatter";
import { PostTitle } from "./post-title";
import { type Author } from "../interfaces/author";
import { Avatar } from "./Avatar";
import { CoverImage } from "./CoverImage";
import { DateFormatter } from "./DateFormatter";
import { PostTitle } from "./PostTitle";
import { type Author } from "interfaces/author";

type Props = {
title: string;
Expand Down
8 changes: 4 additions & 4 deletions components/post-preview.tsx → components/PostPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { type Author } from "../interfaces/author";
import { type Author } from "interfaces/author";
import Link from "next/link";
import { Avatar } from "./avatar";
import { CoverImage } from "./cover-image";
import { DateFormatter } from "./date-formatter";
import { Avatar } from "./Avatar";
import { CoverImage } from "./CoverImage";
import { DateFormatter } from "./DateFormatter";

type Props = {
title: string;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from "./container";
import { Container } from "./Container";
// import { EXAMPLE_PATH } from "@/lib/constants";
import cn from "classnames";

Expand Down
2 changes: 1 addition & 1 deletion components/intro.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CMS_NAME } from "../lib/constants";
import { CMS_NAME } from "lib/constants";

export function Intro() {
return (
Expand Down
2 changes: 1 addition & 1 deletion lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Post } from "../interfaces/post";
import { Post } from "interfaces/post";
import fs from "fs";
import matter from "gray-matter";
import { join } from "path";
Expand Down
4 changes: 1 addition & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import path from "path";

/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
};
const nextConfig = {};

export default nextConfig;
1 change: 0 additions & 1 deletion out/404.html

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/H5b4N3BIujrY9PAqGdmb9/_buildManifest.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/H5b4N3BIujrY9PAqGdmb9/_ssgManifest.js

This file was deleted.

2 changes: 0 additions & 2 deletions out/_next/static/chunks/117-9d13bcdcbf951d6e.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/609-49a0514e16722fc7.js

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/app/layout-b4842701e2a1e736.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/app/page-1fd344fac7488384.js

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/fd9d1056-49ca28257eb7a92c.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/framework-f66176bb897dc684.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/main-95333883d7cb673f.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/main-app-16cc09894acf1361.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/pages/_app-72b849fbd24ac258.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/pages/_error-7ba65e1336b92748.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/polyfills-42372ed130431b0a.js

This file was deleted.

Loading

0 comments on commit 9b385a2

Please sign in to comment.