diff --git a/config/default.ts b/config/default.ts index 92f39c49..d95714d9 100644 --- a/config/default.ts +++ b/config/default.ts @@ -1,6 +1,6 @@ // tslint:disable:no-default-export // tslint:disable:no-magic-numbers -import {SCConfigFile, SCThingType} from '@openstapps/core'; +import {SCConfigFile, SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core'; /** * This is the default configuration for app and backend @@ -45,10 +45,212 @@ const config: Partial = { features: { widgets: true, }, - menus: [], + menus: [ + { + icon: 'menu', + id: 'main', + items: [ + { + icon: 'search', + route: '/search', + title: 'search', + translations: { + de: { + title: 'Suche', + }, + en: { + title: 'search', + }, + }, + }, + { + icon: 'map', + route: '/map', + title: 'campus map', + translations: { + de: { + title: 'Campus Karte', + }, + en: { + title: 'campus map', + }, + }, + }, + { + icon: 'cafe', + route: '/canteen', + title: 'canteen', + translations: { + de: { + title: 'Mensa', + }, + en: { + title: 'canteen', + }, + }, + }, + ], + name: 'main menu', + translations: { + de: { + name: 'Hauptmenü', + }, + en: { + name: 'main menu', + }, + }, + }, + { + icon: 'person', + id: 'personal', + items: [ + { + icon: 'settings', + route: '/settings', + title: 'settings', + translations: { + de: { + title: 'Einstellungen', + }, + en: { + title: 'settings', + }, + }, + }, + { + icon: 'information', + route: '/about', + title: 'about', + translations: { + de: { + title: 'Über StApps', + }, + en: { + title: 'About StApps', + }, + }, + }, + ], + name: 'Your Study-App', + translations: { + de: { + name: 'Deine Studi-App', + }, + en: { + name: 'Your Study-App', + }, + }, + }, + ], name: 'StApps - Technische Universität Berlin', privacyPolicyUrl: 'https://stappsbe01.innocampus.tu-berlin.de/_static/privacy.md', - settings: [], + settings: [ + { + categories: ['profile'], + defaultValue: 'student', + description: 'The user group the app is going to be used.' + + 'This settings for example is getting used for the predefined price category of mensa meals.', + inputType: SCSettingInputType.SingleChoice, + name: 'group', + order: 1, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'SCConfigFile Default Values', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: 'Mit welcher Benutzergruppe soll die App verwendet werden?' + + ' Die Einstellung wird beispielsweise für die Vorauswahl der Preiskategorie der Mensa verwendet.', + name: 'Gruppe', + values: [ + 'Student', + 'Angestellter', + 'Gast', + ], + }, + en: { + description: 'The user group the app is going to be used.' + + 'This settings for example is getting used for the predefined price category of mensa meals.', + name: 'Group', + values: [ + 'Student', + 'Employee', + 'Guest', + ], + }, + }, + type: SCThingType.Setting, + uid: '2c97aa36-4aa2-43de-bc5d-a2b2cb3a530e', + values: ['student', 'employee', 'guest'], + }, + { + categories: ['profile'], + defaultValue: 'en', + description: 'The language this app is going to use.', + inputType: SCSettingInputType.SingleChoice, + name: 'language', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'SCConfigFile Default Values', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: 'Die Sprache in der die App angezeigt wird.', + name: 'Sprache', + values: [ + 'Deutsch', + 'English', + ], + }, + en: { + description: 'The language this app is going to use.', + name: 'Language', + values: [ + 'Deutsch', + 'English', + ], + }, + }, + type: SCThingType.Setting, + uid: 'dc9d6dec-6576-45ef-9e35-3598c0d6a662', + values: ['de', 'en'], + }, + { + categories: ['privacy'], + defaultValue: false, + description: 'Allow the App to use the device location to provide additional information\'s based ' + + 'on your actual location.', + inputType: SCSettingInputType.SingleChoice, + name: 'geoLocation', + order: 0, + origin: { + indexed: '2018-09-11T12:30:00Z', + name: 'SCConfigFile Default Values', + type: SCThingOriginType.Remote, + }, + translations: { + de: { + description: `Berechtigung für die Verwendung des Ortungsdienstes, für die Anzeige der aktuellen Position ' + auf der Karte und zur Berechnung der Entfernung zu Gebäuden und Orten des Campus.`, + name: 'Position', + values: ['ja', 'nein'], + }, + en: { + description: 'Allow the App to use the device location to provide additional information\'s based ' + + 'on your actual location.', + name: 'Position', + values: ['yes', 'no'], + }, + }, + type: SCThingType.Setting, + uid: '0dbff2de-23b4-442b-9aa7-7bd2c707c199', + values: [true, false], + }, + ], + }, backend: { SCVersion: '1.0.0',