mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
2663 lines
100 KiB
HTML
2663 lines
100 KiB
HTML
<!doctype html>
|
|
<html class="no-js" lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<title>framadate-funky-frontend documentation</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
|
<link rel="stylesheet" href="../styles/style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
|
<a href="../" class="navbar-brand">framadate-funky-frontend documentation</a>
|
|
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
|
|
</div>
|
|
|
|
<div class="xs-menu menu" id="mobile-menu">
|
|
<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
|
|
</div>
|
|
|
|
<div class="container-fluid main">
|
|
<div class="row main">
|
|
<div class="hidden-xs menu">
|
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
</div>
|
|
<!-- START CONTENT -->
|
|
<div class="content miscellaneous-variables">
|
|
<div class="content-data">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
<li>Miscellaneous</li>
|
|
<li>Variables</li>
|
|
</ol>
|
|
|
|
<section>
|
|
<h3 id="index">Index</h3>
|
|
<table class="table table-sm table-bordered index-table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<ul class="index-list">
|
|
<li>
|
|
<a href="#apiVersion" title="src/environments/environment.ts"><b>apiVersion</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#baseConfigValues" title="src/app/config/PollConfig.ts"><b>baseConfigValues</b> (src/.../PollConfig.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#baseURL" title="src/environments/environment.ts"><b>baseURL</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#baseURLDemo" title="src/environments/environment.ts"><b>baseURLDemo</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#baseURLProd" title="src/environments/environment.ts"><b>baseURLProd</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#basicSlicesOfDay" title="src/app/config/defaultConfigs.ts"><b>basicSlicesOfDay</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#ButtonWithLinkToAnotherStory" title="src/stories/1-Button.stories.ts"><b>ButtonWithLinkToAnotherStory</b> (src/.../1-Button.stories.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#context" title="src/test.ts"><b>context</b> (src/.../test.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#currentDay" title="src/app/config/defaultConfigs.ts"><b>currentDay</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#currentMonth" title="src/app/config/defaultConfigs.ts"><b>currentMonth</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#currentYear" title="src/app/config/defaultConfigs.ts"><b>currentYear</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#DATE_VALUE_ACCESSOR" title="src/app/custom-lib/date-value-accessor/date-value-accessor.ts"><b>DATE_VALUE_ACCESSOR</b> (src/.../date-value-accessor.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#defaultAnswers" title="src/app/config/defaultConfigs.ts"><b>defaultAnswers</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#defaultDates" title="src/app/config/defaultConfigs.ts"><b>defaultDates</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#defaultTimeOfDay" title="src/app/config/defaultConfigs.ts"><b>defaultTimeOfDay</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#Emoji" title="src/stories/1-Button.stories.ts"><b>Emoji</b> (src/.../1-Button.stories.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#environment" title="src/environments/environment.prod.ts"><b>environment</b> (src/.../environment.prod.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#environment" title="src/environments/environment.ts"><b>environment</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#graphOptions" title="src/app/config/graph-canevas-options.ts"><b>graphOptions</b> (src/.../graph-canevas-options.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockChoice" title="src/app/config/mocks/choice.ts"><b>mockChoice</b> (src/.../choice.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockComments" title="src/app/config/mocks/mock-comments.ts"><b>mockComments</b> (src/.../mock-comments.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockGraphConfig" title="src/app/config/mocks/mock-graph.ts"><b>mockGraphConfig</b> (src/.../mock-graph.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockMyPolls" title="src/app/config/mocks/mockmypolls.ts"><b>mockMyPolls</b> (src/.../mockmypolls.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockPoll3" title="src/app/config/mocks/mock-poll3.ts"><b>mockPoll3</b> (src/.../mock-poll3.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#mockSuccessVote" title="src/app/config/mocks/mock-success-vote.ts"><b>mockSuccessVote</b> (src/.../mock-success-vote.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#otherDefaultDates" title="src/app/config/defaultConfigs.ts"><b>otherDefaultDates</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#otherSlicesOfDay" title="src/app/config/defaultConfigs.ts"><b>otherSlicesOfDay</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#otherTimeOfDay" title="src/app/config/defaultConfigs.ts"><b>otherTimeOfDay</b> (src/.../defaultConfigs.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#require" title="src/test.ts"><b>require</b> (src/.../test.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#Routes" title="src/app/config/Routes.ts"><b>Routes</b> (src/.../Routes.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#testOnDemo" title="src/environments/environment.ts"><b>testOnDemo</b> (src/.../environment.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#Text" title="src/stories/1-Button.stories.ts"><b>Text</b> (src/.../1-Button.stories.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#ToStorybook" title="src/stories/0-Welcome.stories.ts"><b>ToStorybook</b> (src/.../0-Welcome.stories.ts)</a>
|
|
</li>
|
|
<li>
|
|
<a href="#WithSomeEmojiAndAction" title="src/stories/1-Button.stories.ts"><b>WithSomeEmojiAndAction</b> (src/.../1-Button.stories.ts)</a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<h3>src/environments/environment.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="apiVersion"></a>
|
|
<span class="name">
|
|
<b>
|
|
apiVersion</b>
|
|
<a href="#apiVersion"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>1</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="baseURL"></a>
|
|
<span class="name">
|
|
<b>
|
|
baseURL</b>
|
|
<a href="#baseURL"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>"http://localhost:8000/"</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="baseURLDemo"></a>
|
|
<span class="name">
|
|
<b>
|
|
baseURLDemo</b>
|
|
<a href="#baseURLDemo"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>"https://framadate-api.cipherbliss.com/"</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="baseURLProd"></a>
|
|
<span class="name">
|
|
<b>
|
|
baseURLProd</b>
|
|
<a href="#baseURLProd"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>"https://framadate.org/"</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="environment"></a>
|
|
<span class="name">
|
|
<b>
|
|
environment</b>
|
|
<a href="#environment"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
production: false,
|
|
baseHref: baseURL,
|
|
baseApiHref: baseURL + "api/v" + apiVersion
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="testOnDemo"></a>
|
|
<span class="name">
|
|
<b>
|
|
testOnDemo</b>
|
|
<a href="#testOnDemo"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>0</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/PollConfig.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="baseConfigValues"></a>
|
|
<span class="name">
|
|
<b>
|
|
baseConfigValues</b>
|
|
<a href="#baseConfigValues"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
pollType: "classic",
|
|
title: "",
|
|
description: "",
|
|
myName: "",
|
|
myEmail: "",
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/defaultConfigs.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="basicSlicesOfDay"></a>
|
|
<span class="name">
|
|
<b>
|
|
basicSlicesOfDay</b>
|
|
<a href="#basicSlicesOfDay"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/TimeSlices.html" target="_self" >TimeSlices[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{literal: 'matin'},
|
|
{literal: 'midi'},
|
|
{literal: 'soir'}
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="currentDay"></a>
|
|
<span class="name">
|
|
<b>
|
|
currentDay</b>
|
|
<a href="#currentDay"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new Date().getDate()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="currentMonth"></a>
|
|
<span class="name">
|
|
<b>
|
|
currentMonth</b>
|
|
<a href="#currentMonth"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new Date().getMonth()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="currentYear"></a>
|
|
<span class="name">
|
|
<b>
|
|
currentYear</b>
|
|
<a href="#currentYear"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new Date().getFullYear()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="defaultAnswers"></a>
|
|
<span class="name">
|
|
<b>
|
|
defaultAnswers</b>
|
|
<a href="#defaultAnswers"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/PollAnswer.html" target="_self" >PollAnswer[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[{
|
|
id: 0,
|
|
text: 'réponse de démo 1',
|
|
file: '',
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
|
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
|
date_object: new Date(),
|
|
timeList: otherSlicesOfDay
|
|
},
|
|
{
|
|
id: 1,
|
|
text: 'réponse 2',
|
|
file: '',
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
|
|
date_object: new Date(),
|
|
timeList: basicSlicesOfDay
|
|
},
|
|
{
|
|
id: 2,
|
|
text: 'la réponse D',
|
|
file: '',
|
|
url: 'https://mastodon.cipherbliss.com/system/media_attachments/files/001/439/118/original/6fcf149bd902841b.png?1579471574',
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
|
|
date_object: new Date(),
|
|
timeList: otherSlicesOfDay
|
|
}]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="defaultDates"></a>
|
|
<span class="name">
|
|
<b>
|
|
defaultDates</b>
|
|
<a href="#defaultDates"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/DateChoice.html" target="_self" >DateChoice[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
|
date_object: new Date(),
|
|
timeList: defaultTimeOfDay
|
|
},
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
|
|
date_object: new Date(),
|
|
timeList: defaultTimeOfDay
|
|
},
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
|
|
date_object: new Date(),
|
|
timeList: defaultTimeOfDay
|
|
}
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="defaultTimeOfDay"></a>
|
|
<span class="name">
|
|
<b>
|
|
defaultTimeOfDay</b>
|
|
<a href="#defaultTimeOfDay"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/TimeSlices.html" target="_self" >TimeSlices[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>(() => {
|
|
return [...basicSlicesOfDay]
|
|
})()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="otherDefaultDates"></a>
|
|
<span class="name">
|
|
<b>
|
|
otherDefaultDates</b>
|
|
<a href="#otherDefaultDates"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/DateChoice.html" target="_self" >DateChoice[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay}`,
|
|
date_object: new Date(),
|
|
timeList: otherTimeOfDay
|
|
},
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 1}`,
|
|
date_object: new Date(currentYear, currentMonth, currentDay + 1),
|
|
timeList: defaultTimeOfDay
|
|
},
|
|
{
|
|
literal: `${currentYear}-${currentMonth}-${currentDay + 2}`,
|
|
date_object: new Date(),
|
|
timeList: otherTimeOfDay
|
|
}
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="otherSlicesOfDay"></a>
|
|
<span class="name">
|
|
<b>
|
|
otherSlicesOfDay</b>
|
|
<a href="#otherSlicesOfDay"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/TimeSlices.html" target="_self" >TimeSlices[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{literal: 'aux aurores'},
|
|
{literal: 'au petit dej'},
|
|
{literal: 'au deuxième petit dej des hobbits'}
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="otherTimeOfDay"></a>
|
|
<span class="name">
|
|
<b>
|
|
otherTimeOfDay</b>
|
|
<a href="#otherTimeOfDay"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="../interfaces/TimeSlices.html" target="_self" >TimeSlices[]</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>(() => {
|
|
return [...otherSlicesOfDay]
|
|
})()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/stories/1-Button.stories.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="ButtonWithLinkToAnotherStory"></a>
|
|
<span class="name">
|
|
<b>
|
|
ButtonWithLinkToAnotherStory</b>
|
|
<a href="#ButtonWithLinkToAnotherStory"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>() => ({
|
|
component: Button,
|
|
props: {
|
|
text: 'Go to Welcome Story',
|
|
onClick: linkTo('Welcome'),
|
|
},
|
|
})</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="Emoji"></a>
|
|
<span class="name">
|
|
<b>
|
|
Emoji</b>
|
|
<a href="#Emoji"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>() => ({
|
|
component: Button,
|
|
props: {
|
|
text: '😀 😎 👍 💯',
|
|
},
|
|
})</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="Text"></a>
|
|
<span class="name">
|
|
<b>
|
|
Text</b>
|
|
<a href="#Text"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>() => ({
|
|
component: Button,
|
|
props: {
|
|
text: 'Hello Button',
|
|
},
|
|
})</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="WithSomeEmojiAndAction"></a>
|
|
<span class="name">
|
|
<b>
|
|
WithSomeEmojiAndAction</b>
|
|
<a href="#WithSomeEmojiAndAction"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>() => ({
|
|
component: Button,
|
|
props: {
|
|
text: '😀 😎 👍 💯',
|
|
onClick: action('This was clicked OMG'),
|
|
},
|
|
})</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/test.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="context"></a>
|
|
<span class="name">
|
|
<b>
|
|
context</b>
|
|
<a href="#context"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>require.context('./', true, /\.spec\.ts$/)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="require"></a>
|
|
<span class="name">
|
|
<b>
|
|
require</b>
|
|
<a href="#require"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/custom-lib/date-value-accessor/date-value-accessor.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="DATE_VALUE_ACCESSOR"></a>
|
|
<span class="name">
|
|
<b>
|
|
DATE_VALUE_ACCESSOR</b>
|
|
<a href="#DATE_VALUE_ACCESSOR"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
provide: NG_VALUE_ACCESSOR,
|
|
useExisting: forwardRef(() => DateValueAccessor),
|
|
multi: true
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/environments/environment.prod.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="environment"></a>
|
|
<span class="name">
|
|
<b>
|
|
environment</b>
|
|
<a href="#environment"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
production: true,
|
|
baseHref: "https://framadate-api.cipherbliss.com/",
|
|
baseApiHref: 'https://framadate-api.cipherbliss.com/api/v1'
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/graph-canevas-options.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="graphOptions"></a>
|
|
<span class="name">
|
|
<b>
|
|
graphOptions</b>
|
|
<a href="#graphOptions"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
legend: {display: false},
|
|
scales: {
|
|
xAxes: [
|
|
{
|
|
gridLines: {drawBorder: false, display: false},
|
|
display: false,
|
|
stacked: true,
|
|
ticks: {
|
|
beginAtZero: true,
|
|
maxRotation: 0,
|
|
minRotation: 0
|
|
}
|
|
}
|
|
],
|
|
yAxes: [
|
|
{
|
|
gridLines: {drawBorder: true, display: false},
|
|
display: true,
|
|
stacked: true
|
|
}
|
|
]
|
|
}
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/choice.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockChoice"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockChoice</b>
|
|
<a href="#mockChoice"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
"id": 11,
|
|
"date": {
|
|
"date": "2020-01-30 12:25:13.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Les mondes engloutis",
|
|
"url": null,
|
|
"answer": null,
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/mock-comments.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockComments"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockComments</b>
|
|
<a href="#mockComments"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>[]</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{
|
|
pseudo: "Bulbizarre",
|
|
"date": {
|
|
"date": "2020-01-22 16:00:22.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
text: "Pokem ipsum dolor sit amet Electric Cottonee Scratch Leech Life Ice Berry Ducklett. Leaf Green Durant Zoroark\n" +
|
|
" Skitty Rock Luxio Surskit. Glacier Badge",
|
|
},
|
|
{
|
|
pseudo: "Marylin",
|
|
"date": {
|
|
"date": "2020-01-22 16:00:22.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
text: "j'ai vu de la lumière o_o",
|
|
},
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/mock-graph.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockGraphConfig"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockGraphConfig</b>
|
|
<a href="#mockGraphConfig"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
step: 0,
|
|
stepMax: 3,
|
|
pollType: "special dates",
|
|
title: "",
|
|
description: "",
|
|
myName: "",
|
|
visibility: "link_only",
|
|
// date specific poll
|
|
allowSeveralHours: "true",
|
|
dateLgfgfgfgist: ["jeudi", "vendredi", "samedi"], // sets of days as strings
|
|
timeList: ["08:00", "08:30", "09:00"], // ranges of time expressed as strings
|
|
answers: [
|
|
{
|
|
id: 0,
|
|
text: "no"
|
|
},
|
|
|
|
{
|
|
id: 1,
|
|
text: "yes"
|
|
},
|
|
{
|
|
id: 2,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 3,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 4,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 5,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 6,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 7,
|
|
text: "maybe"
|
|
},
|
|
{
|
|
id: 8,
|
|
text: "maybe"
|
|
}
|
|
]
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/mockmypolls.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockMyPolls"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockMyPolls</b>
|
|
<a href="#mockMyPolls"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>[]</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[{
|
|
"id": 1000001,
|
|
"title": "blehehehe heh hehhe e test1",
|
|
"customUrl": null,
|
|
"description": "maaaaaaaaaaah",
|
|
"creationDate": {"date": "2020-01-20 14:21:16.270157", "timezone_type": 3, "timezone": "Europe/Paris"},
|
|
"expiracyDate": {"date": "2020-01-20 14:21:16.270178", "timezone_type": 3, "timezone": "Europe/Paris"},
|
|
"owner": null,
|
|
"kind": "text",
|
|
"allowedAnswers": ["yes"],
|
|
"modificationPolicy": "nobody",
|
|
"mailOnComment": null,
|
|
"mailOnVote": null,
|
|
"hideResults": null,
|
|
"showResultEvenIfPasswords": null,
|
|
"votes": {},
|
|
"stacksOfVotes": {},
|
|
"choices": {},
|
|
"comments": {},
|
|
"defaultExpiracyDaysFromNow": 60
|
|
}, {
|
|
"id": 1000002,
|
|
"title": "bleh z zr erth tuyjikioy yylil test2",
|
|
"customUrl": null,
|
|
"description": "maaaaaaaaaaah 2",
|
|
"creationDate": {"date": "2020-01-20 14:21:16.270157", "timezone_type": 3, "timezone": "Europe/Paris"},
|
|
"expiracyDate": {"date": "2020-01-20 14:21:16.270178", "timezone_type": 3, "timezone": "Europe/Paris"},
|
|
"owner": null,
|
|
"kind": "text",
|
|
"allowedAnswers": ["yes"],
|
|
"modificationPolicy": "nobody",
|
|
"mailOnComment": null,
|
|
"mailOnVote": null,
|
|
"hideResults": null,
|
|
"showResultEvenIfPasswords": null,
|
|
"votes": {},
|
|
"stacksOfVotes": {},
|
|
"choices": {},
|
|
"comments": {},
|
|
"defaultExpiracyDaysFromNow": 60
|
|
}]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/mock-poll3.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockPoll3"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockPoll3</b>
|
|
<a href="#mockPoll3"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
"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
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/mocks/mock-success-vote.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="mockSuccessVote"></a>
|
|
<span class="name">
|
|
<b>
|
|
mockSuccessVote</b>
|
|
<a href="#mockSuccessVote"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>{
|
|
"message": "you created a vote stack from an existing owner : tktest@tktest.com",
|
|
"poll": {
|
|
"id": 4,
|
|
"title": "dessin animé préféré",
|
|
"customUrl": null,
|
|
"description": "choisissez votre animé préféré",
|
|
"creationDate": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"expiracyDate": {
|
|
"date": "2020-02-04 12:35:37.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"
|
|
],
|
|
"modificationPolicy": "everybody",
|
|
"mailOnComment": null,
|
|
"mailOnVote": null,
|
|
"hideResults": null,
|
|
"showResultEvenIfPasswords": null,
|
|
"votes": {},
|
|
"stacksOfVotes": {},
|
|
"choices": {},
|
|
"comments": {},
|
|
"defaultExpiracyDaysFromNow": 60
|
|
},
|
|
"vote_stack": {
|
|
"id": 10,
|
|
"modifier_token": "V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8",
|
|
"pseudo": "tk_TEST",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:36:07.530846",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"id": 22,
|
|
"value": "yes",
|
|
"choice_id": 8,
|
|
"text": "Vic le viking",
|
|
"stack_id": 10
|
|
},
|
|
"9": {
|
|
"choice_id": 9
|
|
},
|
|
"10": {
|
|
"choice_id": 10
|
|
},
|
|
"11": {
|
|
"choice_id": 11
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
},
|
|
"5": {
|
|
"id": 19,
|
|
"value": "yes",
|
|
"choice_id": 5,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
},
|
|
"6": {
|
|
"id": 20,
|
|
"value": "yes",
|
|
"choice_id": 6,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
},
|
|
"7": {
|
|
"id": 21,
|
|
"value": "yes",
|
|
"choice_id": 7,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
}
|
|
}
|
|
},
|
|
"stacks": [
|
|
{
|
|
"id": 3,
|
|
"modifier_token": "5e39570956e5d",
|
|
"pseudo": "voting_people_TEST",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"choice_id": 8
|
|
},
|
|
"9": {
|
|
"id": 5,
|
|
"value": "maybe",
|
|
"choice_id": 9,
|
|
"text": "Boumbo petite automobile",
|
|
"stack_id": 3
|
|
},
|
|
"10": {
|
|
"id": 4,
|
|
"value": "yes",
|
|
"choice_id": 10,
|
|
"text": "Les mystérieuses cités d'or",
|
|
"stack_id": 3
|
|
},
|
|
"11": {
|
|
"choice_id": 11
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 4,
|
|
"modifier_token": "5e39570956e5d",
|
|
"pseudo": "voting_people_TEST",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"choice_id": 8
|
|
},
|
|
"9": {
|
|
"id": 6,
|
|
"value": "yes",
|
|
"choice_id": 9,
|
|
"text": "Boumbo petite automobile",
|
|
"stack_id": 4
|
|
},
|
|
"10": {
|
|
"id": 8,
|
|
"value": "no",
|
|
"choice_id": 10,
|
|
"text": "Les mystérieuses cités d'or",
|
|
"stack_id": 4
|
|
},
|
|
"11": {
|
|
"choice_id": 11
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 7,
|
|
"modifier_token": "5e3957095ca23",
|
|
"pseudo": "Nikolas Edison",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"choice_id": 8
|
|
},
|
|
"9": {
|
|
"choice_id": 9
|
|
},
|
|
"10": {
|
|
"id": 13,
|
|
"value": "maybe",
|
|
"choice_id": 10,
|
|
"text": "Les mystérieuses cités d'or",
|
|
"stack_id": 7
|
|
},
|
|
"11": {
|
|
"choice_id": 11
|
|
},
|
|
"12": {
|
|
"id": 14,
|
|
"value": "maybe",
|
|
"choice_id": 12,
|
|
"text": "Foot 2 rue",
|
|
"stack_id": 7
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 8,
|
|
"modifier_token": "5e3957095ca2d",
|
|
"pseudo": "Wulfila",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"choice_id": 8
|
|
},
|
|
"9": {
|
|
"choice_id": 9
|
|
},
|
|
"10": {
|
|
"choice_id": 10
|
|
},
|
|
"11": {
|
|
"id": 15,
|
|
"value": "maybe",
|
|
"choice_id": 11,
|
|
"text": "Les mondes engloutis",
|
|
"stack_id": 8
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"id": 16,
|
|
"value": "yes",
|
|
"choice_id": 13,
|
|
"text": "Le chat, la vache, et l'océan",
|
|
"stack_id": 8
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 9,
|
|
"modifier_token": "5e3957095ca34",
|
|
"pseudo": "Billie Jean",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"choice_id": 8
|
|
},
|
|
"9": {
|
|
"id": 17,
|
|
"value": "yes",
|
|
"choice_id": 9,
|
|
"text": "Boumbo petite automobile",
|
|
"stack_id": 9
|
|
},
|
|
"10": {
|
|
"choice_id": 10
|
|
},
|
|
"11": {
|
|
"id": 18,
|
|
"value": "yes",
|
|
"choice_id": 11,
|
|
"text": "Les mondes engloutis",
|
|
"stack_id": 9
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 10,
|
|
"modifier_token": "V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8",
|
|
"pseudo": "tk_TEST",
|
|
"creation_date": {
|
|
"date": "2020-02-04 12:36:07.530846",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"votes": {
|
|
"8": {
|
|
"id": 22,
|
|
"value": "yes",
|
|
"choice_id": 8,
|
|
"text": "Vic le viking",
|
|
"stack_id": 10
|
|
},
|
|
"9": {
|
|
"choice_id": 9
|
|
},
|
|
"10": {
|
|
"choice_id": 10
|
|
},
|
|
"11": {
|
|
"choice_id": 11
|
|
},
|
|
"12": {
|
|
"choice_id": 12
|
|
},
|
|
"13": {
|
|
"choice_id": 13
|
|
},
|
|
"14": {
|
|
"choice_id": 14
|
|
},
|
|
"5": {
|
|
"id": 19,
|
|
"value": "yes",
|
|
"choice_id": 5,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
},
|
|
"6": {
|
|
"id": 20,
|
|
"value": "yes",
|
|
"choice_id": 6,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
},
|
|
"7": {
|
|
"id": 21,
|
|
"value": "yes",
|
|
"choice_id": 7,
|
|
"text": "2020-02-04 12:35:37",
|
|
"stack_id": 10
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"comments": [
|
|
{
|
|
"id": 3,
|
|
"text": "allez boumbo!",
|
|
"pseudo": "tk_TEST_commentateur",
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
}
|
|
},
|
|
{
|
|
"id": 4,
|
|
"text": "je suis pour la team rocket de digimon",
|
|
"pseudo": "tk_TEST",
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
}
|
|
}
|
|
],
|
|
"choices": [
|
|
{
|
|
"id": 8,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Vic le viking",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 9,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Boumbo petite automobile",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 10,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Les mystérieuses cités d'or",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 11,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Les mondes engloutis",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 12,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Foot 2 rue",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 13,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Le chat, la vache, et l'océan",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 14,
|
|
"date": {
|
|
"date": "2020-02-04 12:35:37.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Berlin"
|
|
},
|
|
"text": "Digimon",
|
|
"url": null
|
|
}
|
|
],
|
|
"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": []
|
|
}
|
|
},
|
|
"5": {
|
|
"choice_id": 5,
|
|
"choice_text": "2020-02-04 12:35:37",
|
|
"id": 19,
|
|
"score": 1,
|
|
"yes": {
|
|
"count": 1,
|
|
"people": [
|
|
"tk_TEST"
|
|
]
|
|
},
|
|
"maybe": {
|
|
"count": 0,
|
|
"people": []
|
|
},
|
|
"no": {
|
|
"count": 0,
|
|
"people": []
|
|
}
|
|
},
|
|
"6": {
|
|
"choice_id": 6,
|
|
"choice_text": "2020-02-04 12:35:37",
|
|
"id": 20,
|
|
"score": 1,
|
|
"yes": {
|
|
"count": 1,
|
|
"people": [
|
|
"tk_TEST"
|
|
]
|
|
},
|
|
"maybe": {
|
|
"count": 0,
|
|
"people": []
|
|
},
|
|
"no": {
|
|
"count": 0,
|
|
"people": []
|
|
}
|
|
},
|
|
"7": {
|
|
"choice_id": 7,
|
|
"choice_text": "2020-02-04 12:35:37",
|
|
"id": 21,
|
|
"score": 1,
|
|
"yes": {
|
|
"count": 1,
|
|
"people": [
|
|
"tk_TEST"
|
|
]
|
|
},
|
|
"maybe": {
|
|
"count": 0,
|
|
"people": []
|
|
},
|
|
"no": {
|
|
"count": 0,
|
|
"people": []
|
|
}
|
|
},
|
|
"8": {
|
|
"choice_id": 8,
|
|
"choice_text": "Vic le viking",
|
|
"id": 22,
|
|
"score": 1,
|
|
"yes": {
|
|
"count": 1,
|
|
"people": [
|
|
"tk_TEST"
|
|
]
|
|
},
|
|
"maybe": {
|
|
"count": 0,
|
|
"people": []
|
|
},
|
|
"no": {
|
|
"count": 0,
|
|
"people": []
|
|
}
|
|
}
|
|
},
|
|
"maxScore": 2.5
|
|
},
|
|
"vote_count": 6,
|
|
"owner": {
|
|
"__initializer__": null,
|
|
"__cloner__": null,
|
|
"__isInitialized__": true,
|
|
"pseudo": "tk_TEST",
|
|
"email": "tktest@tktest.com"
|
|
},
|
|
"owner_modifier_token": "V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8",
|
|
"admin_key": "9uE27daM8dG1P9z74B89z299W0JF0ne15eER37g2v3d86mk123318v516UUbey4z3C87Wbo65V3c7cHsBTELvhl8b82d61WBMR2U66USNc7idS8810f",
|
|
"json_you_sent": {
|
|
"pseudo": "mon pseudo",
|
|
"email": "tktest@tktest.com",
|
|
"votes": [
|
|
{
|
|
"choice_id": 5,
|
|
"value": "yes"
|
|
},
|
|
{
|
|
"choice_id": 6,
|
|
"value": "yes"
|
|
},
|
|
{
|
|
"choice_id": 7,
|
|
"value": "yes"
|
|
},
|
|
{
|
|
"choice_id": 8,
|
|
"value": "yes"
|
|
}
|
|
]
|
|
}
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/app/config/Routes.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="Routes"></a>
|
|
<span class="name">
|
|
<b>
|
|
Routes</b>
|
|
<a href="#Routes"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>[]</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>[
|
|
{path: '', redirectTo: 'step/creation', pathMatch: 'full'},
|
|
{path: 'home', component: HomeComponent},
|
|
{path: 'base', component: BaseComponent},
|
|
{path: 'step/base', component: BaseComponent},
|
|
{path: 'step/creation', component: CreateOrRetrieveComponent},
|
|
{path: 'step/date', component: DatesComponent},
|
|
{path: 'step/kind', component: KindComponent},
|
|
{path: 'step/answers', component: AnswersComponent},
|
|
{path: 'step/admin', component: AdminComponent},
|
|
{path: 'step/pictures', component: PicturesComponent},
|
|
{path: 'step/visibility', component: VisibilityComponent},
|
|
{path: 'step/resume', component: ResumeComponent},
|
|
{path: 'step/end', component: EndConfirmationComponent},
|
|
{path: 'graphic/:poll', component: PollGraphicComponent},
|
|
{path: 'vote/poll/id/:poll', component: PollDisplayComponent},
|
|
{path: 'vote/poll/slug/:pollSlug', component: PollDisplayComponent},
|
|
{path: 'votingchoice', component: VotingChoiceComponent},
|
|
{path: 'voting', component: VotingComponent},
|
|
{path: 'step/password', component: PasswordComponent},
|
|
{path: '**', redirectTo: '/home', pathMatch: 'full'},
|
|
]</code>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>each step in the form is a component</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<h3>src/stories/0-Welcome.stories.ts</h3>
|
|
<section>
|
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="ToStorybook"></a>
|
|
<span class="name">
|
|
<b>
|
|
ToStorybook</b>
|
|
<a href="#ToStorybook"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>() => ({
|
|
component: Welcome,
|
|
props: {},
|
|
})</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
|
|
|
|
</div><div class="search-results">
|
|
<div class="has-results">
|
|
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
|
|
<ul class="search-results-list"></ul>
|
|
</div>
|
|
<div class="no-results">
|
|
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- END CONTENT -->
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
var COMPODOC_CURRENT_PAGE_CONTEXT = 'miscellaneous-variables';
|
|
var COMPODOC_CURRENT_PAGE_URL = 'variables.html';
|
|
</script>
|
|
|
|
<script src="../js/libs/custom-elements.min.js"></script>
|
|
<script src="../js/libs/lit-html.js"></script>
|
|
<!-- Required to polyfill modern browsers as code is ES5 for IE... -->
|
|
<script src="../js/libs/custom-elements-es5-adapter.js" charset="utf-8" defer></script>
|
|
<script src="../js/menu-wc.js" defer></script>
|
|
|
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
|
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
<script src="../js/libs/promise.min.js"></script>
|
|
<script src="../js/libs/zepto.min.js"></script>
|
|
|
|
<script src="../js/compodoc.js"></script>
|
|
|
|
<script src="../js/tabs.js"></script>
|
|
<script src="../js/menu.js"></script>
|
|
<script src="../js/libs/clipboard.min.js"></script>
|
|
<script src="../js/libs/prism.js"></script>
|
|
<script src="../js/sourceCode.js"></script>
|
|
<script src="../js/search/search.js"></script>
|
|
<script src="../js/search/lunr.min.js"></script>
|
|
<script src="../js/search/search-lunr.js"></script>
|
|
<script src="../js/search/search_index.js"></script>
|
|
<script src="../js/lazy-load-graphs.js"></script>
|
|
|
|
|
|
</body>
|
|
</html>
|