forked from tykayn/funky-framadate-front
530 lines
8.7 KiB
TypeScript
530 lines
8.7 KiB
TypeScript
export const mockPoll3 = {
|
|
message: 'your poll config',
|
|
poll: {
|
|
id: 4,
|
|
title: 'dessin animé préféré',
|
|
customUrl: null,
|
|
description: 'choisissez votre animé préféré',
|
|
creationDate: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
expiracyDate: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
owner: {
|
|
__initializer__: null,
|
|
__cloner__: null,
|
|
__isInitialized__: true,
|
|
pseudo: 'tk_TEST',
|
|
email: 'tktest@tktest.com',
|
|
},
|
|
kind: 'text',
|
|
allowedAnswers: [
|
|
// "yes", "maybe", "no"
|
|
'yes',
|
|
],
|
|
modificationPolicy: 'everybody',
|
|
mailOnComment: null,
|
|
mailOnVote: null,
|
|
hideResults: null,
|
|
showResultEvenIfPasswords: null,
|
|
votes: {},
|
|
stacksOfVotes: {},
|
|
choices: {},
|
|
choices_count: {
|
|
counts: {
|
|
'10': {
|
|
choice_id: 10,
|
|
choice_text: "Les mystérieuses cités d'or",
|
|
id: 4,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'voting_people_TEST'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
choice_text: 'Boumbo petite automobile',
|
|
id: 5,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
choice_text: 'Foot 2 rue',
|
|
id: 14,
|
|
score: 0.5,
|
|
yes: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
choice_text: 'Les mondes engloutis',
|
|
id: 15,
|
|
score: 1.5,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
choice_text: "Le chat, la vache, et l'océan",
|
|
id: 16,
|
|
score: 1,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
maybe: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
},
|
|
maxScore: 2.5,
|
|
},
|
|
comments: {},
|
|
defaultExpiracyDaysFromNow: 60,
|
|
},
|
|
stacks_count: 5,
|
|
stacks: [
|
|
{
|
|
id: 3,
|
|
pseudo: 'voting_people_TEST',
|
|
creation_date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 3,
|
|
vote_id: 5,
|
|
value: 'maybe',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
},
|
|
'10': {
|
|
id: 3,
|
|
vote_id: 4,
|
|
value: 'yes',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 4,
|
|
pseudo: 'voting_people_TEST',
|
|
creation_date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 4,
|
|
vote_id: 6,
|
|
value: 'yes',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
},
|
|
'10': {
|
|
id: 4,
|
|
vote_id: 8,
|
|
value: 'no',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 7,
|
|
pseudo: 'Nikolas Edison',
|
|
creation_date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
id: 7,
|
|
vote_id: 13,
|
|
value: 'maybe',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
id: 7,
|
|
vote_id: 14,
|
|
value: 'maybe',
|
|
choice_id: 12,
|
|
text: 'Foot 2 rue',
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 8,
|
|
pseudo: 'Wulfila',
|
|
creation_date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
id: 8,
|
|
vote_id: 15,
|
|
value: 'maybe',
|
|
choice_id: 11,
|
|
text: 'Les mondes engloutis',
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
id: 8,
|
|
vote_id: 16,
|
|
value: 'yes',
|
|
choice_id: 13,
|
|
text: "Le chat, la vache, et l'océan",
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 9,
|
|
pseudo: 'Billie Jean',
|
|
creation_date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 9,
|
|
vote_id: 17,
|
|
value: 'yes',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
id: 9,
|
|
vote_id: 18,
|
|
value: 'yes',
|
|
choice_id: 11,
|
|
text: 'Les mondes engloutis',
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
choices_count: {
|
|
counts: {
|
|
'10': {
|
|
choice_id: 10,
|
|
choice_text: "Les mystérieuses cités d'or",
|
|
id: 4,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'voting_people_TEST'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
choice_text: 'Boumbo petite automobile',
|
|
id: 5,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
choice_text: 'Foot 2 rue',
|
|
id: 14,
|
|
score: 0.5,
|
|
yes: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
choice_text: 'Les mondes engloutis',
|
|
id: 15,
|
|
score: 1.5,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
choice_text: "Le chat, la vache, et l'océan",
|
|
id: 16,
|
|
score: 1,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
maybe: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
},
|
|
maxScore: 2.5,
|
|
},
|
|
choices: [
|
|
{
|
|
id: 8,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Vic le viking',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 9,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Boumbo petite automobile',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 10,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: "Les mystérieuses cités d'or",
|
|
url: null,
|
|
},
|
|
{
|
|
id: 11,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Les mondes engloutis',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 12,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Foot 2 rue',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 13,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: "Le chat, la vache, et l'océan",
|
|
url: null,
|
|
},
|
|
{
|
|
id: 14,
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Digimon',
|
|
url: null,
|
|
},
|
|
],
|
|
comments: [
|
|
{
|
|
id: 3,
|
|
text: 'allez boumbo!',
|
|
pseudo: 'tk_TEST_commentateur',
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
},
|
|
{
|
|
id: 4,
|
|
text: 'je suis pour la team rocket de digimon',
|
|
pseudo: 'tk_TEST',
|
|
date: {
|
|
date: '2020-01-30 12:25:13.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
},
|
|
],
|
|
comments_count: 2,
|
|
};
|