2020-02-10 13:06:47 +01:00
|
|
|
export const basicSlicesOfDay = [
|
|
|
|
{literal: 'matin'},
|
|
|
|
{literal: 'midi'},
|
|
|
|
{literal: 'soir'}
|
|
|
|
];
|
2020-01-24 12:20:28 +01:00
|
|
|
export const defaultTimeOfDay = [{
|
2020-02-10 13:06:47 +01:00
|
|
|
timeList: Object.create(basicSlicesOfDay),
|
2020-01-20 14:36:26 +01:00
|
|
|
literal: 'matin'
|
|
|
|
},
|
2020-02-10 13:06:47 +01:00
|
|
|
{timeList: Object.create(basicSlicesOfDay), literal: 'midi'},
|
|
|
|
{timeList: Object.create(basicSlicesOfDay), literal: 'après-midi'},
|
|
|
|
{timeList: Object.create(basicSlicesOfDay), literal: 'soirée'}];
|
2020-01-20 14:36:26 +01:00
|
|
|
export const defaultDates = [
|
|
|
|
{
|
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate()}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-02-10 13:06:47 +01:00
|
|
|
timeList: Object.create(basicSlicesOfDay)
|
2020-01-20 14:36:26 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate() + 1}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-02-10 13:06:47 +01:00
|
|
|
timeList: Object.create(basicSlicesOfDay)
|
2020-01-20 14:36:26 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate() + 2}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-02-10 13:06:47 +01:00
|
|
|
timeList: Object.create(basicSlicesOfDay)
|
2020-01-20 14:36:26 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
export const defaultAnswers = [{
|
|
|
|
id: 0,
|
|
|
|
text: 'réponse de démo 1',
|
|
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
2020-01-23 17:36:56 +01:00
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate()}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-02-10 13:06:47 +01:00
|
|
|
timeList: Object.create(basicSlicesOfDay)
|
2020-01-20 14:36:26 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
text: 'réponse 2',
|
|
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
2020-01-23 17:36:56 +01:00
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate() + 1}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-01-20 14:36:26 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
text: 'la réponse D',
|
|
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
2020-01-23 17:36:56 +01:00
|
|
|
literal: `${new Date().getFullYear()}-${new Date().getMonth()}-${new Date().getDate() + 2}`,
|
2020-01-24 11:15:38 +01:00
|
|
|
date_object: new Date(),
|
2020-01-20 14:36:26 +01:00
|
|
|
}];
|