-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
277 lines (265 loc) · 8.11 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
import {
ContactLinks,
DefaultSettings,
LogoList,
MenuBarLink,
SearchEngineList,
ServiceLinks,
StartpageTheme,
WallpaperList,
} from "./src/app/types";
const isProd = true;
export const GARUDA_FORUM_URL = isProd ? "https://forum.garudalinux.org" : "http://localhost:8010/proxy";
// These are the items inside the menu.
export const menubarItems: MenuBarLink[] = [
{
label: "Homepage",
url: "https://garudalinux.org",
title: "Homepage",
},
{
label: "Forum",
url: "https://forum.garudalinux.org",
title: "Forum",
},
{
label: "GitLab",
url: "https://gitlab.com/garuda-linux",
title: "GitLab",
},
{
label: "About us",
url: "https://garudalinux.org/about.html",
title: "About us",
},
{
label: "Garuda Wiki",
url: "https://wiki.garudalinux.org",
title: "Garuda Wiki",
},
{
label: "Arch Wiki",
url: "https://wiki.archlinux.org",
title: "Arch Wiki",
},
{
label: "Donate",
url: "https://garudalinux.org/donate.html",
title: "Donate",
},
{
label: "Settings",
routerLink: "/settings",
title: "Settings",
},
];
// Change this to add or remove links from the contacts section.
export const contactLinks: ContactLinks = [
{
link: "https://forum.garudalinux.org",
title: "Forum",
logo: "pictures/garuda-logo-orange.png",
subtitle: "Use the official forum",
},
{
link: "https://telegram.me/garudalinux",
title: "Telegram",
logo: "pictures/telegram.svg",
subtitle: "Chat with us on Telegram",
},
{
link: "https://garudalinux.org/discord",
title: "Discord",
logo: "pictures/discord.svg",
subtitle: "Chat with us on Discord",
},
{
link: "https://bsky.app/profile/garudalinux.org",
title: "Bluesky",
logo: "pictures/bluesky.svg",
subtitle: "Get some news from Garuda",
},
];
// Change this to add or remove links from the services section.
export const serviceLinks: ServiceLinks = [
{
link: "https://searx.garudalinux.org",
title: "SearxNG",
icon: "pictures/searxng.svg",
subtitle: "Privacy-respecting meta search",
},
{
link: "https://bitwarden.garudalinux.org",
title: "Vaultwarden",
icon: "pictures/vaultwarden.svg",
subtitle: "Selfhosted password storage",
},
{
link: "https://reddit.garudalinux.org",
title: "Redlib",
icon: "pictures/redlib.svg",
subtitle: "Lightweight frontend for Reddit",
},
{
link: "https://lemmy.garudalinux.org",
title: "Lemmy",
icon: "pictures/lemmy.svg",
subtitle: "Privacy-respecting Reddit alternative",
},
{
link: "https://social.garudalinux.org",
title: "Mastodon",
icon: "pictures/mastodon.svg",
subtitle: "Privacy-respecting Twitter alternative",
},
{
link: "https://bin.garudalinux.org",
title: "PrivateBin",
icon: "pictures/privatebin.png",
subtitle: "Encrypted pastebin",
},
{
link: "https://search.garudalinux.org",
title: "Whoogle",
icon: "pictures/whoogle.svg",
subtitle: "Privacy-respecting Google",
},
{
link: "https://librey.garudalinux.org",
title: "LibreY",
icon: "pictures/librey.png",
subtitle: "Privacy-respecting meta search",
},
{
link: "https://lingva.garudalinux.org",
title: "Lingva",
icon: "pictures/lingva.svg",
subtitle: "Privacy-respecting translator",
},
{
link: "https://builds.garudalinux.org/iso/garuda/",
title: "ISO builds",
icon: "pictures/iso.webp",
subtitle: "Garuda ISO builds",
},
{
link: "https://status.garudalinux.org",
title: "Statuspage",
icon: "pictures/freshstatus.svg",
subtitle: "Status page",
},
{
link: "https://stats.garudalinux.org",
title: "Uptimes",
icon: "pictures/freshping.svg",
subtitle: "Uptime stats",
},
];
// Available search engines and their URLs (without %s)
export type SearchEngine = "searxng" | "searxng-privau" | "whoogle" | "google" | "custom";
export const searchEngineMappings: SearchEngineList = [
{
name: "searxng",
prettyName: "SearxNG",
url: "https://searx.garudalinux.org",
},
{
name: "whoogle",
prettyName: "Whoogle",
url: "https://search.garudalinux.org",
},
// This seems to be one of the better instances.
// Doesn't nag with Cloudflare Captcha unlike ours.
// Running it unprotected made it sadly necessary, however.
{
name: "searxng-privau",
prettyName: "SearxNG (priv.au)",
url: "https://priv.au",
},
{
name: "google",
prettyName: "Google",
url: "https://www.google.com/search",
},
{
name: "custom",
prettyName: "Custom",
url: "",
},
];
// These are the settings defaults used
export const defaultSettings: DefaultSettings = {
customLinks: "",
customTitle: "Garuda Startpage",
defaultLinks: true,
jokesEnabled: true,
logo: "logos/violet-orange.png",
logoUrl: "",
searchEngine: "searxng-privau" as SearchEngine,
searchEngineName: "Custom",
searchEngineUrl: "Set a custom search engine URL (omit %s)",
theme: "mocha" as StartpageTheme,
wallpaper: "",
wallpaperBlur: true,
wallpaperCustomUrl: "",
wallpaperFit: false,
welcomeText: "Welcome! 👋🏻",
};
// How many forum posts to load
export const amountForumPostsHome = 9;
export const amountForumPostsSettings = 7;
// Which wallpapers are available to choose from
// Url needs to be either a local file or a URL, if local, it must be relative
// to being in the public folder.
export const wallpapers: WallpaperList = [
{
name: "None",
url: "",
},
{
name: "Shaded Landscape",
url: "wallpapers/shaded-landscape.png",
},
{
name: "Evening Sky",
url: "wallpapers/evening-sky.png",
},
{ name: "Custom", url: "custom" },
];
// Don't delete
export const c = "nft5zX8CPAL4TW";
// List for logo shown on the main page. Needs to have a fitting file in the public/logos folder.
export const logos: LogoList = [
{ name: "Black Metal", url: "logos/black-metal.png" },
{ name: "Blue Metal", url: "logos/blue-metal.png" },
{ name: "Blue", url: "logos/blue.png" },
{ name: "Dr460nized", url: "logos/dr460nized.png" },
{ name: "Green", url: "logos/green.png" },
{ name: "Maroon Lavender", url: "logos/maroon-lavender.png" },
{ name: "Metal", url: "logos/metal.png" },
{ name: "Orange", url: "logos/orange.png" },
{ name: "Petrol", url: "logos/petrol.png" },
{ name: "Pink", url: "logos/pink.png" },
{ name: "Red", url: "logos/red.png" },
{ name: "Solid", url: "logos/solid.png" },
{ name: "Violet Orange", url: "logos/violet-orange.png" },
{ name: "Custom", url: "custom" },
];
export const defaultLogo = "logos/violet-orange.png";
// Configure custom service links
// Needs to be a valid JSON with the following format:
// [
// {
// "link": "https://discourse.nixos.org",
// "title": "NixOS Forum",
// "icon": "https://discourse.nixos.org/uploads/default/original/2X/c/cb4fe584627b37e7c1d5424e9cec0bb30fdb6c4d.png",
// "subtitle": "NixOS Forum"
// },
// {
// "link": "https://discourse.nixos.org",
// "title": "NixOS Forum",
// "icon": "https://discourse.nixos.org/uploads/default/original/2X/c/cb4fe584627b37e7c1d5424e9cec0bb30fdb6c4d.png",
// "subtitle": "NixOS Forum"
// }
// ]
// Icon needs to be a valid URL in this case.