-
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
1 parent
84ecb60
commit 8fd94fe
Showing
2 changed files
with
14 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Flex, Text } from "@radix-ui/themes"; | ||
|
||
import style from "@/app/layout.module.css"; | ||
|
||
export default function Loading() { | ||
return ( | ||
<Flex align="center" justify="center" className={style.loading}> | ||
<Text color="gray" weight="light"> | ||
Loading... | ||
</Text> | ||
</Flex> | ||
); | ||
} |
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,27 +1,11 @@ | ||
import { Flex, Text } from "@radix-ui/themes"; | ||
import { Suspense } from "react"; | ||
|
||
import { getAllPlugins } from "@/lib/registry"; | ||
|
||
import { PluginOverview } from "./client"; | ||
import style from "./layout.module.css"; | ||
|
||
export const revalidate = 300; | ||
|
||
function Loading() { | ||
return ( | ||
<Flex align="center" justify="center" className={style.loading}> | ||
<Text>Loading...</Text> | ||
</Flex> | ||
); | ||
} | ||
|
||
export default async function Home() { | ||
const plugins = await getAllPlugins(); | ||
plugins.sort((a, b) => a.FullName.localeCompare(b.FullName)); | ||
return ( | ||
<Suspense fallback={<Loading />}> | ||
<PluginOverview plugins={plugins} /> | ||
</Suspense> | ||
); | ||
return <PluginOverview plugins={plugins} />; | ||
} |