2019-08-09 13:38:51 +02:00
|
|
|
// This file can be replaced during build by using the `fileReplacements` array.
|
|
|
|
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
|
|
// The list of file replacements can be found in `angular.json`.
|
2020-04-19 14:22:10 +02:00
|
|
|
|
|
|
|
const backendApiUrlsInDev = {
|
2021-04-30 22:49:55 +02:00
|
|
|
local: 'http://tktest.lan/api/v1',
|
|
|
|
remote: 'http://tktest.lan/api/v1',
|
2021-04-29 10:17:13 +02:00
|
|
|
// remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
2020-04-19 14:22:10 +02:00
|
|
|
};
|
2020-11-09 12:44:24 +01:00
|
|
|
const apiV1 = {
|
2021-04-30 22:49:55 +02:00
|
|
|
baseHref: 'http://tktest.lan/api/v1',
|
2021-04-29 10:17:13 +02:00
|
|
|
// baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
|
2020-11-13 09:38:42 +01:00
|
|
|
api_new_poll: '/poll/',
|
2020-11-09 12:44:24 +01:00
|
|
|
api_get_poll: '/poll/{id}',
|
2021-04-28 14:33:41 +02:00
|
|
|
api_new_vote_stack: '/poll/{id}/answer',
|
2020-11-09 12:44:24 +01:00
|
|
|
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
|
|
|
|
'app.swagger': '/api/doc.json',
|
|
|
|
};
|
2020-04-19 14:22:10 +02:00
|
|
|
|
2019-08-09 13:38:51 +02:00
|
|
|
export const environment = {
|
2021-04-30 22:49:55 +02:00
|
|
|
frontDomain: 'http://tktest.lan',
|
2021-04-30 10:59:46 +02:00
|
|
|
production: false,
|
2021-05-03 11:32:03 +02:00
|
|
|
display_routes: false,
|
2021-05-03 10:06:10 +02:00
|
|
|
autofill: true,
|
2021-05-03 11:32:03 +02:00
|
|
|
showDemoWarning: false,
|
2021-04-30 23:33:56 +02:00
|
|
|
autoSendNewPoll: false,
|
2021-05-17 15:25:22 +02:00
|
|
|
interval_days_default: 7,
|
2020-11-05 14:39:01 +01:00
|
|
|
appTitle: 'FramaDate Funky',
|
2021-02-12 14:43:39 +01:00
|
|
|
appVersion: '2.1.0',
|
2020-10-17 11:12:53 +02:00
|
|
|
appLogo: 'assets/img/logo.png',
|
2020-04-21 17:26:25 +02:00
|
|
|
api: {
|
2020-11-09 12:44:24 +01:00
|
|
|
versionToUse: 'apiV1',
|
|
|
|
version: {
|
|
|
|
apiV1,
|
|
|
|
},
|
2020-05-05 18:17:12 +02:00
|
|
|
baseHref: backendApiUrlsInDev.local,
|
2020-04-21 17:26:25 +02:00
|
|
|
endpoints: {
|
2020-05-01 19:10:17 +02:00
|
|
|
polls: {
|
2020-11-09 12:44:24 +01:00
|
|
|
name: '/poll',
|
2020-05-12 19:16:23 +02:00
|
|
|
choices: {
|
|
|
|
name: '/choices',
|
2020-05-05 18:17:12 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
comments: {
|
|
|
|
name: '/comments',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
slugs: {
|
|
|
|
name: '/slugs',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-12 19:16:23 +02:00
|
|
|
answers: {
|
|
|
|
name: '/answers',
|
|
|
|
},
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
users: {
|
|
|
|
name: '/users',
|
2020-04-21 17:26:25 +02:00
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
sendEmail: {
|
2020-05-01 19:10:17 +02:00
|
|
|
name: '/send-email',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
2021-02-05 23:03:49 +01:00
|
|
|
maxCountOfAnswers: 150,
|
|
|
|
expiresDaysDelay: 60,
|
2020-04-21 17:26:25 +02:00
|
|
|
expiracyAfterLastModificationInDays: 180,
|
2021-02-08 18:55:31 +01:00
|
|
|
whoCanChangeAnswers: 'everybody',
|
|
|
|
visibility: 'link_only',
|
|
|
|
voteChoices: 'only_yes',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
localStorage: {
|
2020-04-22 12:56:18 +02:00
|
|
|
key: 'FramaSondage',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2019-08-09 13:38:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2020-04-19 14:22:10 +02:00
|
|
|
import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|