add env vars for creation form

Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
tykayn 2021-11-30 11:17:28 +01:00
parent 60d0678cb7
commit 3dbb108a2c
2 changed files with 18 additions and 11 deletions

View File

@ -19,18 +19,22 @@ export const environment = {
production: true, production: true,
display_routes: false, display_routes: false,
showDemoWarning: false, showDemoWarning: false,
// creation form
display_menu_creation: false, display_menu_creation: false,
autofill_creation: false, autofill_creation: false,
autofill_participation: false, autofill_participation: false,
advanced_options_display: false, advanced_options_display: false,
autofill_default_timeslices: false, autofill_default_timeslices: false,
creation_email_is_required: true,
creation_display_admin_url: false,
creation_display_hour_per_day: false, // display or not the ability to choose time slices different per day
autoSendNewPoll: false, autoSendNewPoll: false,
interval_days_default: 7, interval_days_default: 7,
showStepperShortcuts: false, showStepperShortcuts: false,
expiresDaysDelay: 60, expiresDaysDelay: 60,
maxCountOfAnswers: 300, maxCountOfAnswers: 300,
appTitle: 'FramaDate', appTitle: 'FramaDate',
appVersion: '2.2.0', appVersion: '2.2.1',
appLogo: 'assets/img/logo.png', appLogo: 'assets/img/logo.png',
api: { api: {
versionToUse: 'apiV1', versionToUse: 'apiV1',

View File

@ -4,6 +4,14 @@
import { apiV1, endpoints } from './endpoints'; import { apiV1, endpoints } from './endpoints';
import { poll_conf } from './poll_conf'; import { poll_conf } from './poll_conf';
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
import 'zone.js/dist/zone-error';
endpoints.baseHref = apiV1.baseHref; endpoints.baseHref = apiV1.baseHref;
@ -16,14 +24,17 @@ export const environment = {
advanced_options_display: false, advanced_options_display: false,
autofill_participation: false, autofill_participation: false,
autofill_default_timeslices: false, autofill_default_timeslices: false,
creation_email_is_required: true,
creation_display_admin_url: false,
creation_display_hour_per_day: false, // display or not the ability to choose time slices different per day
showDemoWarning: false, showDemoWarning: false,
autoSendNewPoll: false, autoSendNewPoll: false,
showStepperShortcuts: false, showStepperShortcuts: false,
interval_days_default: 7, interval_days_default: 7,
expiresDaysDelay: 60, expiresDaysDelay: 60,
maxCountOfAnswers: 300, maxCountOfAnswers: 300,
appTitle: 'Framadate', appTitle: 'FramaDate',
appVersion: '2.2.0', appVersion: '2.2.1',
appLogo: 'assets/img/logo.png', appLogo: 'assets/img/logo.png',
api: endpoints, api: endpoints,
poll: poll_conf, poll: poll_conf,
@ -32,12 +43,4 @@ export const environment = {
}, },
}; };
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
import 'zone.js/dist/zone-error';
// Included with Angular CLI. // Included with Angular CLI.