diff --git a/.gitignore b/.gitignore index 6ab2567..37165c5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ /node_modules /.pnp .pnp.js -/copy + # testing /coverage @@ -18,9 +18,7 @@ # misc .DS_Store *.pem - -/docker_data/postgres/ - +#! .env # debug npm-debug.log* yarn-debug.log* @@ -36,5 +34,3 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts - -.vscode diff --git a/.prettierrc b/.prettierrc index 054d599..6a990e9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,5 @@ { "tabWidth": 2, "useTabs": false, - "printWidth": 120 + "printWidth": 180 } diff --git a/README.md b/README.md index c87e042..965a122 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ First, run the development server: npm run dev # or yarn dev +# or +pnpm dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. @@ -18,6 +20,8 @@ You can start editing the page by modifying `pages/index.tsx`. The page auto-upd The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. +This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. + ## Learn More To learn more about Next.js, take a look at the following resources: diff --git a/app/admin/articles/editor/[articleId]/layout.tsx b/app/admin/articles/editor/[articleId]/layout.tsx deleted file mode 100644 index 5ffca51..0000000 --- a/app/admin/articles/editor/[articleId]/layout.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default async function AdminArticleEditorLayout({ children }) { - return
- {`Published on ${dateCreated.toLocaleDateString("en-US", dateOptions)}`}
-
- {dateUpdated > dateCreated ? `Updated on ${dateUpdated.toLocaleDateString("en-US", dateOptions)}` : ""}
-
{article?.introduction}
-- This is a paragraph Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolores enim unde obcaecati ea - harum voluptate, nisi quia. Quod, et autem! Aperiam mollitia ullam ab eaque quidem facilis est ducimus delectus. -
-
+ {`Published on ${dateCreated.toLocaleDateString("en-US", dateOptions)}`}
+
+ {dateUpdated > dateCreated ? `Updated on ${dateUpdated.toLocaleDateString("en-US", dateOptions)}` : ""}
+
{article?.introduction}
+