mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
refactor: config text and semester date bounds
This commit is contained in:
@@ -6,7 +6,6 @@ import {RecursivePartial} from '@openstapps/logger/lib/common';
|
|||||||
/**
|
/**
|
||||||
* This is the default configuration for the technical university of Berlin
|
* This is the default configuration for the technical university of Berlin
|
||||||
*/
|
*/
|
||||||
const config: RecursivePartial<SCConfigFile> = {
|
const config: RecursivePartial<SCConfigFile> = {};
|
||||||
};
|
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import {RecursivePartial} from '@openstapps/logger/lib/common';
|
|||||||
/**
|
/**
|
||||||
* This is the default configuration for the university of Kassel
|
* This is the default configuration for the university of Kassel
|
||||||
*/
|
*/
|
||||||
const config: RecursivePartial<SCConfigFile> = {
|
const config: RecursivePartial<SCConfigFile> = {};
|
||||||
};
|
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -3,11 +3,9 @@
|
|||||||
import {SCConfigFile} from '@openstapps/core';
|
import {SCConfigFile} from '@openstapps/core';
|
||||||
import {RecursivePartial} from '@openstapps/logger/lib/common';
|
import {RecursivePartial} from '@openstapps/logger/lib/common';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the default configuration for the university of Kassel
|
* This is the default configuration for the university of Kassel
|
||||||
*/
|
*/
|
||||||
const config: RecursivePartial<SCConfigFile> = {
|
const config: RecursivePartial<SCConfigFile> = {};
|
||||||
};
|
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ export function inRangeInclusive(number_: number, range: number[]): boolean {
|
|||||||
return number_ >= range[0] && number_ <= range[1];
|
return number_ >= range[0] && number_ <= range[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
const sommerRange = [4, 9];
|
const sommerRange = [4, 1];
|
||||||
const winterRange = [10, 3];
|
const winterRange = [10, 1];
|
||||||
const month = new Date().getMonth();
|
const month = new Date().getMonth();
|
||||||
const year = new Date().getFullYear();
|
const year = new Date().getFullYear();
|
||||||
const winterYearOffset = month < winterRange[0] ? -1 : 0;
|
const winterYearOffset = month < winterRange[0] ? -1 : 0;
|
||||||
@@ -55,14 +55,14 @@ const userGroupSetting: SCUserGroupSetting = {
|
|||||||
'Mit welcher Benutzergruppe soll die App verwendet werden?' +
|
'Mit welcher Benutzergruppe soll die App verwendet werden?' +
|
||||||
' Die Einstellung wird beispielsweise für die Vorauswahl der Preiskategorie der Mensa verwendet.',
|
' Die Einstellung wird beispielsweise für die Vorauswahl der Preiskategorie der Mensa verwendet.',
|
||||||
name: 'Gruppe',
|
name: 'Gruppe',
|
||||||
values: ['Student', 'Angestellter', 'Gast'],
|
values: ['Studierende', 'Angestellte', 'Gäste'],
|
||||||
},
|
},
|
||||||
en: {
|
en: {
|
||||||
description:
|
description:
|
||||||
'The user group the app is going to be used.' +
|
'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.',
|
' This settings for example is getting used for the predefined price category of mensa meals.',
|
||||||
name: 'Group',
|
name: 'Group',
|
||||||
values: ['student', 'employee', 'guest'],
|
values: ['students', 'employees', 'guests'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
type: SCThingType.Setting,
|
type: SCThingType.Setting,
|
||||||
|
|||||||
Reference in New Issue
Block a user