-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from aXenDeveloper/refactor/fetcher
refactor(frontend)!: Remove try/catch from server action, add this in…
- Loading branch information
Showing
148 changed files
with
948 additions
and
1,598 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
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
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
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
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,20 @@ | ||
--- | ||
title: Pages | ||
--- | ||
|
||
## Default Page | ||
|
||
VitNode handle automaticly default page for you. You need to create a file `themes/1/{your_plugin}/default-page.tsx` in your plugin template. | ||
|
||
Use `export default` for your template. | ||
|
||
```tsx | ||
export default async function DefaultPage() { | ||
const data = await getData(); | ||
const t = await getTranslations('core'); | ||
|
||
return <div>{t('info', { data })}</div>; | ||
} | ||
``` | ||
|
||
Test it by set your plugin as default in `AdminCP` and go to your website. |
9 changes: 5 additions & 4 deletions
9
apps/docs/pages/docs/plugins/sitemap.mdx → apps/docs-new/content/docs/dev/sitemap.mdx
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,7 +1,8 @@ | ||
# Sitemap | ||
--- | ||
title: Sitemap | ||
description: Generate a sitemap.xml file automatically. | ||
--- | ||
|
||
Thanks to [NextJS Sitemap](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap) we can generate a sitemap.xml file automatically. This file is used by search engines to index your website. | ||
|
||
## How it works in VitNode? | ||
|
||
TODO | ||
TODO: Add content |
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.