2021-11-22 11:51:21 +01:00
|
|
|
const productionBaseUrl = 'https://framadate-api.cipherbliss.com'; // set this to your production domain
|
|
|
|
const apiVersion = 'v1';
|
|
|
|
|
2020-05-01 19:10:17 +02:00
|
|
|
const backendApiUrlsInDev = {
|
2021-11-22 11:51:21 +01:00
|
|
|
local: `/api/${apiVersion}`,
|
|
|
|
remote: `${productionBaseUrl}/api/${apiVersion}`,
|
2021-05-20 15:08:06 +02:00
|
|
|
};
|
|
|
|
const apiV1 = {
|
2021-11-22 11:51:21 +01:00
|
|
|
baseHref: `${productionBaseUrl}/api/${apiVersion}`,
|
2021-05-20 15:08:06 +02:00
|
|
|
api_new_poll: '/poll/',
|
|
|
|
api_get_poll: '/poll/{id}',
|
2021-06-07 12:16:56 +02:00
|
|
|
api_new_vote_stack: '/vote-stack',
|
2021-11-22 11:51:21 +01:00
|
|
|
'api_test-mail-poll': `/api/${apiVersion}/poll/mail/test-mail-poll/{emailChoice}`,
|
2021-05-20 15:08:06 +02:00
|
|
|
'app.swagger': '/api/doc.json',
|
2021-02-12 14:43:39 +01:00
|
|
|
};
|
2021-05-20 14:37:53 +02:00
|
|
|
|
2020-05-01 19:10:17 +02:00
|
|
|
export const environment = {
|
2021-12-02 15:52:08 +01:00
|
|
|
advanced_options_display: true,
|
2022-02-15 21:32:32 +01:00
|
|
|
appLogo: 'assets/img/LogoViolet.svg',
|
|
|
|
appLogoFooter: 'assets/img/LogoBlanc.svg',
|
2022-02-08 14:52:14 +01:00
|
|
|
appLanding: 'assets/img/landing_calendar.svg',
|
2021-11-30 18:14:07 +01:00
|
|
|
appTitle: 'FramaDate',
|
|
|
|
appVersion: '2.2.1',
|
2022-02-08 14:37:07 +01:00
|
|
|
appSupportEmail: 'example-support@example.com',
|
|
|
|
appSupportWebpage: 'https://www.cipherbliss.com/contact',
|
2021-11-30 18:14:07 +01:00
|
|
|
autofill_creation: false,
|
2021-11-23 10:21:02 +01:00
|
|
|
autofill_default_timeslices: false,
|
2021-11-30 18:14:07 +01:00
|
|
|
autofill_participation: false,
|
|
|
|
autoSendNewPoll: false,
|
2021-11-30 11:17:28 +01:00
|
|
|
creation_display_admin_url: false,
|
2022-02-04 14:38:59 +01:00
|
|
|
creation_display_hour_per_day: true, // display or not the ability to choose time slices different per day
|
2021-11-30 18:14:07 +01:00
|
|
|
creation_display_proposals_time_slices: false,
|
|
|
|
creation_email_is_required: true,
|
2021-12-21 17:33:26 +01:00
|
|
|
display_header_create_button: false,
|
2021-11-30 18:14:07 +01:00
|
|
|
display_menu_creation: false,
|
|
|
|
display_routes: false,
|
2021-12-21 17:33:26 +01:00
|
|
|
enable_colored_weekend_days: false,
|
|
|
|
expiresDaysDelay: 30,
|
2021-11-30 18:14:07 +01:00
|
|
|
frontDomain: productionBaseUrl,
|
|
|
|
interval_days_default: 7,
|
2022-02-03 12:26:04 +01:00
|
|
|
description_max_chars: 900,
|
2021-11-18 12:51:59 +01:00
|
|
|
maxCountOfAnswers: 300,
|
2021-11-30 18:14:07 +01:00
|
|
|
production: true,
|
|
|
|
showDemoWarning: false,
|
|
|
|
showStepperShortcuts: false,
|
|
|
|
|
2021-05-20 15:08:06 +02:00
|
|
|
api: {
|
|
|
|
versionToUse: 'apiV1',
|
|
|
|
version: {
|
|
|
|
apiV1,
|
|
|
|
},
|
|
|
|
baseHref: backendApiUrlsInDev.remote,
|
|
|
|
endpoints: {
|
|
|
|
polls: {
|
|
|
|
name: '/poll',
|
|
|
|
choices: {
|
|
|
|
name: '/choices',
|
|
|
|
},
|
|
|
|
comments: {
|
|
|
|
name: '/comments',
|
|
|
|
},
|
|
|
|
slugs: {
|
|
|
|
name: '/slugs',
|
|
|
|
},
|
|
|
|
answers: {
|
|
|
|
name: '/answers',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
users: {
|
|
|
|
name: '/users',
|
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
sendEmail: {
|
|
|
|
name: '/send-email',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
|
|
|
maxCountOfAnswers: 150,
|
|
|
|
expiresDaysDelay: 60,
|
|
|
|
expiracyAfterLastModificationInDays: 180,
|
|
|
|
whoCanChangeAnswers: 'everybody',
|
|
|
|
visibility: 'link_only',
|
|
|
|
voteChoices: 'only_yes',
|
|
|
|
},
|
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
localStorage: {
|
2021-05-20 15:08:06 +02:00
|
|
|
key: 'FramaSondage',
|
2020-05-01 19:10:17 +02:00
|
|
|
},
|
2021-11-30 17:37:23 +01:00
|
|
|
display_validation_errors: false,
|
2022-02-03 10:45:09 +01:00
|
|
|
propose_expire_input: false,
|
2022-02-04 18:15:23 +01:00
|
|
|
defaultLanguage: 'fr',
|
2022-02-04 14:38:59 +01:00
|
|
|
display_count_timelist: false,
|
|
|
|
display_time_actions_more: false,
|
2022-02-04 15:09:48 +01:00
|
|
|
display_date_end_of_poll: false,
|
|
|
|
display_wip: false,
|
2022-02-15 15:04:49 +01:00
|
|
|
show_bottom_sources: false,
|
2020-05-01 19:10:17 +02:00
|
|
|
};
|