Skip to content

Commit cbff537

Browse files
committed
refactor: clean up import statements and HTML structure for better readability
1 parent c62d8ad commit cbff537

5 files changed

Lines changed: 18 additions & 13 deletions

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import WebsiteLayout, { revalidate } from '../../../../../status.app/src/app/(website)/layout'
1+
import WebsiteLayout, {
2+
revalidate,
3+
} from '../../../../../status.app/src/app/(website)/layout'
24

35
export default WebsiteLayout
46
export { revalidate }
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export { GET, dynamic } from '../../../../../../status.app/src/app/api/download/[platform]/route'
1+
export {
2+
dynamic,
3+
GET,
4+
} from '../../../../../../status.app/src/app/api/download/[platform]/route'

apps/get.status.app/src/app/layout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ export default async function RootLayout({ children }: Props) {
5959
const [locale, messages] = await Promise.all([getLocale(), getMessages()])
6060

6161
return (
62-
<html
63-
lang={locale}
64-
className={inter.variable}
65-
suppressHydrationWarning
66-
>
62+
<html lang={locale} className={inter.variable} suppressHydrationWarning>
6763
<head>
6864
<link rel="preconnect" href="https://res.cloudinary.com" />
6965
<meta

apps/get.status.app/src/stubs/ghost.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import type { PostOrPage } from '@tryghost/content-api'
44
* Blog/Ghost is not part of get.status.app. This stub satisfies imports from
55
* shared status.app pages (e.g. homepage) without requiring Ghost env vars.
66
*/
7-
export async function getPosts(_params: {
8-
page?: number
9-
limit?: number
10-
tag?: string
11-
} = {}) {
7+
export async function getPosts(
8+
_params: {
9+
page?: number
10+
limit?: number
11+
tag?: string
12+
} = {}
13+
) {
1214
const limit = _params.limit ?? 7
1315

1416
return {
@@ -26,6 +28,9 @@ export async function getPosts(_params: {
2628
}
2729
}
2830

31+
// Never called on get.status.app (guarded by isGetSite in the shared page); the
32+
// parameter exists only for type compatibility with the real ghost lib signature.
33+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2934
export function findLatestReleasePost(_posts: PostOrPage[]): PostOrPage | null {
3035
return null
3136
}

0 commit comments

Comments
 (0)