-
-
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.
feat(frontend): Add metadata to pages
- Loading branch information
1 parent
3c8957e
commit 1abc5e1
Showing
41 changed files
with
278 additions
and
75 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"title": "ui", | ||
"root": true, | ||
"pages": ["---Guide---", "index", "..."] | ||
"pages": ["---Introduction ---", "index", "theme", "---Components---", "..."] | ||
} |
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,19 @@ | ||
--- | ||
title: Pages & Layouts | ||
description: How to change pages / layout in VitNode | ||
icon: Palette | ||
--- | ||
|
||
VitNode uses [NextJS](https://nextjs.org/) in frontend with `app` directory. You can create own components like normal NextJS project. We have only few things about `routing` inside `app` directory that you need to know. | ||
|
||
## VitNode folder | ||
|
||
Inside `app` directory, you will see `(vitnode)` folders. That means it is a VitNode folder where we store own pages and layouts. | ||
|
||
### Admin VitNode folder | ||
|
||
test | ||
|
||
## Default Page | ||
|
||
trest |
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/advanced/files/page.tsx
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,8 +1,11 @@ | ||
import { | ||
FilesAdvancedCoreAdminView, | ||
FilesAdvancedCoreAdminViewProps, | ||
generateMetadataFilesAdvancedCoreAdminView, | ||
} from 'vitnode-frontend/admin/core/advanced/files/files-advanced-core-admin-view'; | ||
|
||
export const generateMetadata = generateMetadataFilesAdvancedCoreAdminView; | ||
|
||
export default function Page(props: FilesAdvancedCoreAdminViewProps) { | ||
return <FilesAdvancedCoreAdminView {...props} />; | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/langs/page.tsx
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,8 +1,11 @@ | ||
import { | ||
LangsCoreAdminView, | ||
LangsCoreAdminViewProps, | ||
generateMetadataLangsCoreAdmin, | ||
} from 'vitnode-frontend/admin/core/langs/langs-core-admin-view'; | ||
|
||
export const generateMetadata = generateMetadataLangsCoreAdmin; | ||
|
||
export default function Page(props: LangsCoreAdminViewProps) { | ||
return <LangsCoreAdminView {...props} />; | ||
} |
9 changes: 1 addition & 8 deletions
9
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/plugins/[code]/dev/layout.tsx
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
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/plugins/page.tsx
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,8 +1,11 @@ | ||
import { | ||
PluginsAdminView, | ||
PluginsAdminViewProps, | ||
generateMetadataPluginsAdmin, | ||
} from 'vitnode-frontend/admin/core/plugins/plugins-admin-view'; | ||
|
||
export const generateMetadata = generateMetadataPluginsAdmin; | ||
|
||
export default function Page(props: PluginsAdminViewProps) { | ||
return <PluginsAdminView {...props} />; | ||
} |
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/settings/email/page.tsx
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
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/settings/general/page.tsx
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
29 changes: 0 additions & 29 deletions
29
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/settings/layout.tsx
This file was deleted.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/settings/metadata/page.tsx
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
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/settings/security/page.tsx
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
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/styles/editor/page.tsx
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
7 changes: 6 additions & 1 deletion
7
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/core/styles/nav/page.tsx
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
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/members/groups/page.tsx
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,8 +1,11 @@ | ||
import { | ||
GroupsMembersAdminView, | ||
GroupsMembersAdminViewProps, | ||
generateMetadataGroupsMembersAdminView, | ||
} from 'vitnode-frontend/admin/members/groups/groups-members-admin-view'; | ||
|
||
export const generateMetadata = generateMetadataGroupsMembersAdminView; | ||
|
||
export default function Page(props: GroupsMembersAdminViewProps) { | ||
return <GroupsMembersAdminView {...props} />; | ||
} |
3 changes: 3 additions & 0 deletions
3
...rontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/members/staff/administrators/page.tsx
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,8 +1,11 @@ | ||
import { | ||
AdministratorsStaffAdminView, | ||
AdministratorsStaffAdminViewProps, | ||
generateMetadataAdministratorsStaffAdminView, | ||
} from 'vitnode-frontend/admin/members/staff/administrators/administrators-view'; | ||
|
||
export const generateMetadata = generateMetadataAdministratorsStaffAdminView; | ||
|
||
export default function Page(props: AdministratorsStaffAdminViewProps) { | ||
return <AdministratorsStaffAdminView {...props} />; | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/members/staff/moderators/page.tsx
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,8 +1,11 @@ | ||
import { | ||
ModeratorsStaffAdminView, | ||
ModeratorsStaffAdminViewProps, | ||
generateMetadataModeratorsStaffAdminView, | ||
} from 'vitnode-frontend/admin/members/staff/moderators/moderators-view'; | ||
|
||
export const generateMetadata = generateMetadataModeratorsStaffAdminView; | ||
|
||
export default function Page(props: ModeratorsStaffAdminViewProps) { | ||
return <ModeratorsStaffAdminView {...props} />; | ||
} |
3 changes: 0 additions & 3 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/members/users/[id]/page.tsx
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
apps/frontend/app/[locale]/(admin)/admin/(auth)/(vitnode)/members/users/page.tsx
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,8 +1,11 @@ | ||
import { | ||
UsersMembersAdminView, | ||
UsersMembersAdminViewProps, | ||
generateMetadataUsersMembersAdminView, | ||
} from 'vitnode-frontend/admin/members/users/users-members-admin-view'; | ||
|
||
export const generateMetadata = generateMetadataUsersMembersAdminView; | ||
|
||
export default function Page(props: UsersMembersAdminViewProps) { | ||
return <UsersMembersAdminView {...props} />; | ||
} |
24 changes: 5 additions & 19 deletions
24
apps/frontend/app/[locale]/(admin)/admin/(auth)/layout.tsx
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
10 changes: 10 additions & 0 deletions
10
apps/frontend/app/[locale]/(admin)/admin/(vitnode)/install/page.tsx
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,10 @@ | ||
import { | ||
generateMetadataInstallConfigs, | ||
InstallConfigsView, | ||
} from 'vitnode-frontend/admin/install/install-configs-view'; | ||
|
||
export const generateMetadata = generateMetadataInstallConfigs; | ||
|
||
export default function Page() { | ||
return <InstallConfigsView />; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.