Skip to content

Commit 7054ac9

Browse files
authoredJan 10, 2024
added format and linting to frontend (#18)
1 parent 7ca5d92 commit 7054ac9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1225
-1146
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
import { Metadata } from "next"
2-
import { getPostData } from "../lib/utilities/posts"
1+
import { Metadata } from "next";
2+
import { getPostData } from "../lib/utilities/posts";
33

44
type Post = {
5-
id: string
6-
content: string
7-
title: string
8-
description: string
9-
author: string
10-
publishedAt: string
11-
}
5+
id: string;
6+
content: string;
7+
title: string;
8+
description: string;
9+
author: string;
10+
publishedAt: string;
11+
};
1212

13-
const aboutPath = "app/content/"
13+
const aboutPath = "app/content/";
1414

1515
export const metadata: Metadata = {
1616
title: "Getting started with a base project",
17-
}
17+
};
1818

1919
export default async function About() {
20-
const data: Post = await getPostData("about", aboutPath)
20+
const data: Post = await getPostData("about", aboutPath);
2121

2222
return (
2323
<>
2424
<div className="max-w-none mx-auto sm:w-3/5 prose prose-reader-light prose-reader-base prose-reader-compact px-4 pt-10 pb-20 sm:px-6">
2525
<div dangerouslySetInnerHTML={{ __html: data.content }} />
2626
</div>
2727
</>
28-
)
28+
);
2929
}
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
import { Metadata } from "next"
2-
import { getPostData } from "../lib/utilities/posts"
1+
import { Metadata } from "next";
2+
import { getPostData } from "../lib/utilities/posts";
33

44
type Post = {
5-
id: string
6-
content: string
7-
title: string
8-
description: string
9-
author: string
10-
publishedAt: string
11-
}
5+
id: string;
6+
content: string;
7+
title: string;
8+
description: string;
9+
author: string;
10+
publishedAt: string;
11+
};
1212

13-
const aboutPath = "app/content/"
13+
const aboutPath = "app/content/";
1414

1515
export const metadata: Metadata = {
1616
title: "Authentication with Magic and Oauth2",
17-
}
17+
};
1818

1919
export default async function Authentication() {
20-
const data: Post = await getPostData("authentication", aboutPath)
20+
const data: Post = await getPostData("authentication", aboutPath);
2121

2222
return (
2323
<>
2424
<div className="max-w-none mx-auto sm:w-3/5 prose prose-reader-light prose-reader-base prose-reader-compact px-4 pt-10 pb-20 sm:px-6">
2525
<div dangerouslySetInnerHTML={{ __html: data.content }} />
2626
</div>
2727
</>
28-
)
28+
);
2929
}

0 commit comments

Comments
 (0)
Please sign in to comment.