-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
108 lines (107 loc) · 3.51 KB
/
nuxt.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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
title: 'Aruna',
}
},
devtools: { enabled: true },
experimental: {
clientNodeCompat: true
},
plugins: [
"~/plugins/preline.client.ts",
],
modules: ['@nuxtjs/tailwindcss', "shadcn-nuxt"],
css: [
'~/assets/styles/main.css',
],
tailwindcss: {
cssPath: ['~/assets/styles/main.css', {injectPosition: "first"}],
configPath: 'tailwind.config',
},
shadcn: {
prefix: '',
componentDir: './components/ui'
},
runtimeConfig: {
serverHostUrl: "http://localhost:8080",
logRequests: true,
mailingListHost: 'https://mailing-lists.example.de',
mailingListUrl: 'https://mailing-lists.example.de/lists/aruna/',
mailingListSubscribe: 'https://mailing-lists.example.de/lists/aruna/anonymous_subscribe',
terminologyService: {
host: 'https://terminology.tib.eu/ts',
api: 'https://service.tib.eu/ts4tib/api'
},
cache: {
maxAge: 60 * 60 * 24, // 1 day
},
provider: {
local: {
clientId: "test",
clientSecret: "QgBl9I2CD3eVhL7LFvkHrYUK7oKL3LE2",
issuer: "http://localhost:1998/realms/test",
redirectUrl: "http://localhost:3000/callback",
authUrl: 'http://localhost:1998/realms/test/protocol/openid-connect/auth',
tokenUrl: 'http://localhost:1998/realms/test/protocol/openid-connect/token',
revokeUrl: 'http://localhost:1998/realms/test/protocol/openid-connect/revoke',
scope: ["openid"],
code_challenge: false
},
gfbio: {
clientId: '',
clientSecret: '',
issuer: '',
redirectUrl: '',
authUrl: '',
tokenUrl: '',
revokeUrl: '',
scope: [''],
code_challenge: false
},
lifescience: {
clientId: '',
clientSecret: '',
issuer: '',
redirectUrl: '',
authUrl: '',
tokenUrl: '',
revokeUrl: '',
scope: [''],
code_challenge: false
}
},
markdownCss: {
h1: ['text-3xl', 'font-bold', 'text-center', 'text-aruna-text-accent'],
h2: ['mt-6', 'mb-2', 'text-2xl', 'font-bold', 'text-aruna-text-accent'],
h3: ['mt-6', 'mb-2', 'text-xl', 'font-bold', 'uppercase', 'text-aruna-text-accent'],
p: ['mt-2', 'px-4', 'py-2', 'text-aruna-text'],
a: ['text-aruna-highlight', 'hover:text-aruna-highlight/80'],
hr: ['border-aruna-text/50'],
ul: ['list-disc', 'list-outside', 'space-y-5', 'ps-4', 'py-2', 'text-lg', 'text-aruna-text'],
ol: ['list-decimal', 'list-outside', 'space-y-5', 'ps-5', 'text-lg', 'text-aruna-text'],
li: ['ps-2'],
img: ['rounded-md'],
code: ['p-4'],
dl: ['p-4'],
dt: ['pt-4', 'font-medium', 'leading-6', 'text-aruna-text-accent'],
dd: ['mt-1', 'ps-4', 'leading-6', 'text-aruna-text', 'sm:col-span-2', 'sm:mt-0']
},
public: {
maintenanceMode: false,
websiteHost: 'http://localhost:3000',
infoBanner: {
active: false,
type: 'info', // ['info', 'release', 'maintenance', 'downtime', 'error']
title: 'Banner Title',
text: 'Info banner custom text with important <a href="/news" class="text-aruna-highlight hover:text-aruna-highlight/80">information<a/>',
customImg: '', // URL to external or internal image
validFrom: '', // Some valid date string
validTo: '', // Some valid date string
},
filterTestResources: false
}
},
compatibilityDate: '2024-11-08',
})