diff options
Diffstat (limited to 'packages/demobank-ui/src/settings.ts')
-rw-r--r-- | packages/demobank-ui/src/settings.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/settings.ts b/packages/demobank-ui/src/settings.ts new file mode 100644 index 000000000..a63ce347e --- /dev/null +++ b/packages/demobank-ui/src/settings.ts @@ -0,0 +1,27 @@ +export interface BankUiSettings { + allowRegistrations: boolean; + showDemoNav: boolean; + bankName: string; + demoSites: [string, string][]; +} + +/** + * Global settings for the demobank UI. + */ +const defaultSettings: BankUiSettings = { + allowRegistrations: true, + bankName: "Taler Bank", + showDemoNav: true, + demoSites: [ + ["Landing", "https://demo.taler.net/"], + ["Bank", "https://bank.demo.taler.net/"], + ["Essay Shop", "https://shop.demo.taler.net/"], + ["Donations", "https://donations.demo.taler.net/"], + ["Survey", "https://survey.demo.taler.net/"], + ], +}; + +export const bankUiSettings: BankUiSettings = + "talerDemobankSettings" in globalThis + ? (globalThis as any).talerDemobankSettings + : defaultSettings; |