-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtenant.config.ts
109 lines (107 loc) · 2.99 KB
/
tenant.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
import planetConfig from './public/tenants/planet/config';
import planetConfigBeta from './public/tenants/planet/configBeta';
import ttcConfig from './public/tenants/ttc/config';
import salesforceConfig from './public/tenants/salesforce/config';
import sternConfig from './public/tenants/stern/config';
import nitrosbConfig from './public/tenants/nitrosb/config';
import lacoquetaConfig from './public/tenants/lacoqueta/config';
import energizerConfig from './public/tenants/energizer/config';
import senatDerWirtschaft from './public/tenants/senatDerWirtschaft/config';
import pampersConfig from './public/tenants/pampers/config';
import interactClub from './public/tenants/interactClub/config';
import culchacandela from './public/tenants/culchacandela/config';
import xiting from './public/tenants/xiting/config';
import ulmpflanzt from './public/tenants/ulmpflanzt/config';
import sitex from './public/tenants/sitex/config';
import T3pleset from './public/tenants/3pleset/config';
import weareams from './public/tenants/weareams/config';
interface ConfigType {
tenantName: string;
tenantURL: string;
languages: string[];
fallbackCurrency?: string;
tenantGoal?: number | null;
showUNDecadeLogo?: boolean;
darkModeEnabled?: boolean;
showUNEPLogo?: boolean;
showRedeemHint?: boolean;
font: {
primaryFontFamily: string;
secondaryFontFamily: string;
primaryFontURL?: string;
secondaryFontURL?: string;
};
header: {
isSecondaryTenant: boolean;
tenantLogoURL: string;
mobileLogoURL?: string;
tenantLogoLink: string;
items: {
[key: string]: {
title: string;
loggedInTitle?: string;
onclick: string;
visible: boolean;
subMenu?: {
title: string;
onclick: string;
visible: boolean;
}[];
};
};
};
meta: {
title: string;
appTitle?: string;
description: string;
image: string;
twitterHandle: string;
locale: string;
};
footerLinks: string[];
manifest?: string;
home?: {
image: string;
descriptionTitle?: string;
};
}
export default function tenantConfig(): ConfigType {
switch (process.env.TENANT) {
case 'planet':
return planetConfig;
case 'planetbeta':
return planetConfigBeta;
case 'ttc':
return ttcConfig;
case 'salesforce':
return salesforceConfig;
case 'stern':
return sternConfig;
case 'nitrosb':
return nitrosbConfig;
case 'lacoqueta':
return lacoquetaConfig;
case 'energizer':
return energizerConfig;
case 'senatDerWirtschaft':
return senatDerWirtschaft;
case 'pampers':
return pampersConfig;
case 'interactClub':
return interactClub;
case 'culchacandela':
return culchacandela;
case 'xiting':
return xiting;
case 'ulmpflanzt':
return ulmpflanzt;
case 'sitex':
return sitex;
case '3pleset':
return T3pleset;
case 'weareams':
return weareams;
default:
return planetConfig;
}
}