Skip to content

Commit 3ae7964

Browse files
committed
hardcoded values in site configuration with environment variables for dynamic setups. Added new navigation links for DFDA-related pages such as Digital Twin Safe, Studies, and FDAi for better project structuring and navigation.
Took 38 seconds
1 parent 11a3299 commit 3ae7964

File tree

2 files changed

+66
-9
lines changed

2 files changed

+66
-9
lines changed

config/links.ts

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Navigation, NavItem } from "@/types"
2+
import { siteConfig } from "./site"
23

34
export const dashboardLink: NavItem = {
45
title: "Dashboard",
@@ -70,7 +71,7 @@ export const docsLink: NavItem = {
7071

7172
export const githubLink: NavItem = {
7273
title: "Github",
73-
href: "https://github.com/wishonia/wishonia",
74+
href: siteConfig.links.github,
7475
icon: "github",
7576
tooltip: "Contribute to the project on Github",
7677
external: true,
@@ -90,6 +91,27 @@ export const dfdaLink: NavItem = {
9091
tooltip: "The Decentralized Food and Drug Administration",
9192
}
9293

94+
export const digitalTwinSafeLink: NavItem = {
95+
title: "Digital Twin Safe",
96+
href: "https://safe.dfda.earth",
97+
icon: "safe",
98+
tooltip: "Import, record and analyze your medical data",
99+
}
100+
101+
export const clinipediaLink: NavItem = {
102+
title: "Studies",
103+
href: "https://studies.dfda.earth",
104+
icon: "health",
105+
tooltip: "The Wikipedia of Clinical Research",
106+
}
107+
108+
export const fdaiLink: NavItem = {
109+
title: "FDAi",
110+
href: "https://fdai.earth",
111+
icon: "robot",
112+
tooltip: "An autonomous AI Food and Drug Administration",
113+
}
114+
93115
export const profileSettingsLink: NavItem = {
94116
title: "Profile Settings",
95117
href: "/dashboard/settings",
@@ -110,7 +132,7 @@ export const featuresLink: NavItem = {
110132
}
111133

112134
export const homeLink: NavItem = {
113-
title: "Home",
135+
title: siteConfig.name,
114136
href: "/",
115137
icon: "home",
116138
}
@@ -153,6 +175,23 @@ export const avatarNav: Navigation = {
153175
],
154176
}
155177

178+
export const dfdaAvatarNav: Navigation = {
179+
data: [
180+
//profileSettingsLink,
181+
//dashboardLink,
182+
//agentsLink,
183+
//yourWishesLink,
184+
//wishingWellsLink,
185+
//globalProblemsVoteLink,
186+
//createWish
187+
//researcherLink,
188+
dfdaLink,
189+
digitalTwinSafeLink,
190+
clinipediaLink,
191+
fdaiLink,
192+
],
193+
}
194+
156195
export const landingPageLinks: Navigation = {
157196
data: [featuresLink, overviewLink],
158197
}
@@ -173,6 +212,25 @@ export const generalSidebarNav: Navigation = {
173212
],
174213
}
175214

215+
export const dfdaSidebarNav: Navigation = {
216+
data: [
217+
//dashboardLink,
218+
//wishingWellsLink,
219+
//wishingWellsResultsLink,
220+
//globalProblemsVoteLink,
221+
//globalProblemsResultsLink,
222+
//globalSolutionsVoteLink,
223+
//globalSolutionsResultsLink,
224+
//docsLink,
225+
//githubLink,
226+
//researcherLink,
227+
dfdaLink,
228+
digitalTwinSafeLink,
229+
clinipediaLink,
230+
fdaiLink,
231+
],
232+
}
233+
176234
export const generalFooterNav: Navigation = {
177235
data: [
178236
//wishingWellsLink,

config/site.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ import { SiteConfig } from "@/types"
33
import { env } from "@/env.mjs"
44

55
export const siteConfig: SiteConfig = {
6-
name: "Wishonia",
7-
author: "mikepsinn",
8-
description:
9-
"Using collective intelligence to maximize median health and happiness.",
10-
keywords: [],
6+
name: env.NEXT_PUBLIC_SITE_NAME,
7+
author: env.NEXT_PUBLIC_SITE_AUTHOR || "mikepsinn",
8+
description: env.NEXT_PUBLIC_SITE_DESCRIPTION || "Using collective intelligence to maximize median health and happiness.",
9+
keywords: env.NEXT_PUBLIC_SITE_KEYWORDS ? env.NEXT_PUBLIC_SITE_KEYWORDS.split(',') : [],
1110
url: {
1211
base: env.NEXT_PUBLIC_APP_URL,
13-
author: "https://wishonia.love",
12+
author: env.NEXT_PUBLIC_SITE_AUTHOR || "mikepsinn",
1413
},
1514
links: {
1615
github: "https://github.com/wishonia/wishonia",
1716
},
18-
ogImage: `${env.NEXT_PUBLIC_APP_URL}/og.png`,
17+
ogImage: env.NEXT_PUBLIC_SITE_OG_IMAGE || `${env.NEXT_PUBLIC_APP_URL}/og.png`,
1918
}

0 commit comments

Comments
 (0)