-
Notifications
You must be signed in to change notification settings - Fork 0
/
wisdom.config.ts
70 lines (65 loc) · 1.7 KB
/
wisdom.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
import {
SideBarEntries
} from "./wisdom_modules/core/src/app/frame/side-bar/side-bar-entries";
import { AuthConfig } from "./wisdom_modules/core/src/app/auth/types/AuthConfig";
import env from "./env";
export const name = "WISdoM-OSS";
/**
* This constant describes how the sidebar should directly look like.
*
* For further explanation see {@link SideBarEntries}.
*/
export const sidebar: SideBarEntries = [
[
"sidebar.precipitation", "rainy", [
["weather-data.label.name", "partly-sunny", "weather-data"],
]
],
[
"sidebar.groundwater", "map", [
["GroWL", "server", "growl"]
]
],
[
"sidebar.waterworks", "water", [
["pump-models.label.name", "business", "pump-models"],
]
],
[
"sidebar.water-usage", "trending-up", [
["water-usage-forecasts.label.name", "bar-chart", "water-usage-forecasts"],
["B-Water-Smart", "radio", "be-water-smart"],
]
],
[
"Proof of Concept", "sparkles", [
["example.label.name", "reload-circle", "example"]
]
],
];
/**
* This constant is used to inject language content into the translator.
*
* The keys to use the injected will use the namespace `sidebar`.
*/
export const langs = {
de_DE: {
"water-usage": "Wasserverbrauch",
"precipitation": "Niederschlag",
"groundwater": "Grundwasser",
"waterworks": "Wasserwerke"
},
en_US: {
"water-usage": "Water Usage",
"precipitation": "Precipitation",
"groundwater": "Groundwater",
"waterworks": "Waterworks"
}
};
/**
* constant used to authenticate the credentials provided by the environment variable .env
*/
export const authConfig: AuthConfig = {
authority: env.OIDC_AUTHORITY,
clientId: env.OIDC_CLIENT_ID
};