mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
4479 lines
169 KiB
HTML
4479 lines
169 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 injectable">
|
|
<div class="content-data">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ol class="breadcrumb">
|
|
<li>Injectables</li>
|
|
<li>ConfigService</li>
|
|
</ol>
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li class="active">
|
|
<a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
|
|
</li>
|
|
<li >
|
|
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade active in" id="c-info">
|
|
<p class="comment">
|
|
<h3>File</h3>
|
|
</p>
|
|
<p class="comment">
|
|
<code>src/app/services/config.service.ts</code>
|
|
</p>
|
|
|
|
<p class="comment">
|
|
<h3>Description</h3>
|
|
</p>
|
|
<p class="comment">
|
|
<p>le service transverse à chaque page qui permet de syncroniser la configuration de sondage souhaitée</p>
|
|
|
|
</p>
|
|
|
|
<p class="comment">
|
|
<h3>Extends</h3>
|
|
</p>
|
|
<p class="comment">
|
|
<code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</p>
|
|
|
|
|
|
<section>
|
|
<h3 id="index">Index</h3>
|
|
<table class="table table-sm table-bordered index-table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<h6><b>Properties</b></h6>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<ul class="index-list">
|
|
<li>
|
|
<a href="#baseHref">baseHref</a>
|
|
</li>
|
|
<li>
|
|
<a href="#loading">loading</a>
|
|
</li>
|
|
<li>
|
|
<a href="#adminKey">adminKey</a>
|
|
</li>
|
|
<li>
|
|
<a href="#allowSeveralHours">allowSeveralHours</a>
|
|
</li>
|
|
<li>
|
|
<a href="#answers">answers</a>
|
|
</li>
|
|
<li>
|
|
<a href="#canModifyAnswers">canModifyAnswers</a>
|
|
</li>
|
|
<li>
|
|
<a href="#creationDate">creationDate</a>
|
|
</li>
|
|
<li>
|
|
<a href="#currentPoll">currentPoll</a>
|
|
</li>
|
|
<li>
|
|
<a href="#customUrl">customUrl</a>
|
|
</li>
|
|
<li>
|
|
<a href="#customUrlIsUnique">customUrlIsUnique</a>
|
|
</li>
|
|
<li>
|
|
<a href="#dateList">dateList</a>
|
|
</li>
|
|
<li>
|
|
<a href="#deletionDateAfterLastModification">deletionDateAfterLastModification</a>
|
|
</li>
|
|
<li>
|
|
<a href="#description">description</a>
|
|
</li>
|
|
<li>
|
|
<a href="#expiracyDateDefaultInDays">expiracyDateDefaultInDays</a>
|
|
</li>
|
|
<li>
|
|
<a href="#expirationDate">expirationDate</a>
|
|
</li>
|
|
<li>
|
|
<a href="#isAdmin">isAdmin</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myComment">myComment</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myEmail">myEmail</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myName">myName</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myPolls">myPolls</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myTempVoteStack">myTempVoteStack</a>
|
|
</li>
|
|
<li>
|
|
<a href="#myVoteStack">myVoteStack</a>
|
|
</li>
|
|
<li>
|
|
<a href="#owner_modifier_token">owner_modifier_token</a>
|
|
</li>
|
|
<li>
|
|
<a href="#password">password</a>
|
|
</li>
|
|
<li>
|
|
<a href="#passwordAccess">passwordAccess</a>
|
|
</li>
|
|
<li>
|
|
<a href="#pollId">pollId</a>
|
|
</li>
|
|
<li>
|
|
<a href="#pollSlug">pollSlug</a>
|
|
</li>
|
|
<li>
|
|
<a href="#pollType">pollType</a>
|
|
</li>
|
|
<li>
|
|
<a href="#step">step</a>
|
|
</li>
|
|
<li>
|
|
<a href="#stepMax">stepMax</a>
|
|
</li>
|
|
<li>
|
|
<a href="#timeList">timeList</a>
|
|
</li>
|
|
<li>
|
|
<a href="#title">title</a>
|
|
</li>
|
|
<li>
|
|
<a href="#urlAdmin">urlAdmin</a>
|
|
</li>
|
|
<li>
|
|
<a href="#urlPublic">urlPublic</a>
|
|
</li>
|
|
<li>
|
|
<a href="#urlSlugPublic">urlSlugPublic</a>
|
|
</li>
|
|
<li>
|
|
<a href="#visibility">visibility</a>
|
|
</li>
|
|
<li>
|
|
<a href="#voteChoices">voteChoices</a>
|
|
</li>
|
|
<li>
|
|
<a href="#voteStackId">voteStackId</a>
|
|
</li>
|
|
<li>
|
|
<a href="#whoCanChangeAnswers">whoCanChangeAnswers</a>
|
|
</li>
|
|
<li>
|
|
<a href="#whoModifiesAnswers">whoModifiesAnswers</a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<h6><b>Methods</b></h6>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<ul class="index-list">
|
|
<li>
|
|
<a href="#addComment">addComment</a>
|
|
</li>
|
|
<li>
|
|
<a href="#addDaysToDate">addDaysToDate</a>
|
|
</li>
|
|
<li>
|
|
<a href="#addVote">addVote</a>
|
|
</li>
|
|
<li>
|
|
<a href="#checkIfSlugIsUniqueInDatabase">checkIfSlugIsUniqueInDatabase</a>
|
|
</li>
|
|
<li>
|
|
<a href="#convertChoicesAnsweredToSend">convertChoicesAnsweredToSend</a>
|
|
</li>
|
|
<li>
|
|
<a href="#createPoll">createPoll</a>
|
|
</li>
|
|
<li>
|
|
<a href="#createPollFromConfig">createPollFromConfig</a>
|
|
</li>
|
|
<li>
|
|
<a href="#deleteComments">deleteComments</a>
|
|
</li>
|
|
<li>
|
|
<a href="#deletePoll">deletePoll</a>
|
|
</li>
|
|
<li>
|
|
<a href="#deleteVotes">deleteVotes</a>
|
|
</li>
|
|
<li>
|
|
<a href="#exportCSV">exportCSV</a>
|
|
</li>
|
|
<li>
|
|
<a href="#fetchPollFromRoute">fetchPollFromRoute</a>
|
|
</li>
|
|
<li>
|
|
<a href="#fillValuesOnDevEnv">fillValuesOnDevEnv</a>
|
|
</li>
|
|
<li>
|
|
<a href="#findLocalStorageData">findLocalStorageData</a>
|
|
</li>
|
|
<li>
|
|
<a href="#findPollsByEmail">findPollsByEmail</a>
|
|
</li>
|
|
<li>
|
|
<a href="#getMyPolls">getMyPolls</a>
|
|
</li>
|
|
<li>
|
|
<a href="#getPollById">getPollById</a>
|
|
</li>
|
|
<li>
|
|
<a href="#getPollByURL">getPollByURL</a>
|
|
</li>
|
|
<li>
|
|
<a href="#getPollConfig">getPollConfig</a>
|
|
</li>
|
|
<li>
|
|
<a href="#handleError">handleError</a>
|
|
</li>
|
|
<li>
|
|
<a href="#handleVoteAdded">handleVoteAdded</a>
|
|
</li>
|
|
<li>
|
|
<a href="#loadVoteStack">loadVoteStack</a>
|
|
</li>
|
|
<li>
|
|
<a href="#print">print</a>
|
|
</li>
|
|
<li>
|
|
<a href="#resetCurrentChoicesAnswers">resetCurrentChoicesAnswers</a>
|
|
</li>
|
|
<li>
|
|
<a href="#set">set</a>
|
|
</li>
|
|
<li>
|
|
<a href="#todo">todo</a>
|
|
</li>
|
|
<li>
|
|
<a href="#updateCurrentPollFromResponse">updateCurrentPollFromResponse</a>
|
|
</li>
|
|
<li>
|
|
<a href="#updatePoll">updatePoll</a>
|
|
</li>
|
|
<li>
|
|
<a href="#updateVote">updateVote</a>
|
|
</li>
|
|
<li>
|
|
<a href="#resetConfig">resetConfig</a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<section>
|
|
<h3 id="constructor">Constructor</h3>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>constructor(http: <a href="https://angular.io/api/common/http/HttpClient" target="_blank">HttpClient</a>, messageService: MessageService, router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>, utils: <a href="../injectables/PollUtilities.html">PollUtilities</a>, confirmationService: ConfirmationService)</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/services/config.service.ts:21</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div>
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>http</td>
|
|
|
|
<td>
|
|
<code><a href="https://angular.io/api/common/http/HttpClient" target="_blank" >HttpClient</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>messageService</td>
|
|
|
|
<td>
|
|
<code>MessageService</code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>router</td>
|
|
|
|
<td>
|
|
<code><a href="https://angular.io/api/router/Router" target="_blank" >Router</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>utils</td>
|
|
|
|
<td>
|
|
<code><a href="../injectables/PollUtilities.html" target="_self" >PollUtilities</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>confirmationService</td>
|
|
|
|
<td>
|
|
<code>ConfirmationService</code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h3 id="methods">
|
|
Methods
|
|
</h3>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="addComment"></a>
|
|
<span class="name">
|
|
<b>
|
|
addComment
|
|
</b>
|
|
<a href="#addComment"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>addComment(comment?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="398"
|
|
class="link-to-prism">src/app/services/config.service.ts:398</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>POST
|
|
/api/v1/poll/{id}/comment</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>comment</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
Yes
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="addDaysToDate"></a>
|
|
<span class="name">
|
|
<b>
|
|
addDaysToDate
|
|
</b>
|
|
<a href="#addDaysToDate"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>addDaysToDate(days: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank">number</a>, date: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank">Date</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="53"
|
|
class="link-to-prism">src/app/services/config.service.ts:53</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>add some days to a date, to compute intervals</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>days</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>date</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="addVote"></a>
|
|
<span class="name">
|
|
<b>
|
|
addVote
|
|
</b>
|
|
<a href="#addVote"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>addVote(voteStack?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="333"
|
|
class="link-to-prism">src/app/services/config.service.ts:333</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>POST
|
|
/api/v1/poll/{id}/vote</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>voteStack</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
Yes
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="checkIfSlugIsUniqueInDatabase"></a>
|
|
<span class="name">
|
|
<b>
|
|
checkIfSlugIsUniqueInDatabase
|
|
</b>
|
|
<a href="#checkIfSlugIsUniqueInDatabase"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>checkIfSlugIsUniqueInDatabase(slug: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="95"
|
|
class="link-to-prism">src/app/services/config.service.ts:95</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
<td>Default value</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>slug</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
<td>
|
|
<code>''</code>
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="convertChoicesAnsweredToSend"></a>
|
|
<span class="name">
|
|
<b>
|
|
convertChoicesAnsweredToSend
|
|
</b>
|
|
<a href="#convertChoicesAnsweredToSend"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>convertChoicesAnsweredToSend(choiceList)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="314"
|
|
class="link-to-prism">src/app/services/config.service.ts:314</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>conversion to send to back</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>choiceList</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="createPoll"></a>
|
|
<span class="name">
|
|
<b>
|
|
createPoll
|
|
</b>
|
|
<a href="#createPoll"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>createPoll()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="218"
|
|
class="link-to-prism">src/app/services/config.service.ts:218</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>launch creation call to the api</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="createPollFromConfig"></a>
|
|
<span class="name">
|
|
<b>
|
|
createPollFromConfig
|
|
</b>
|
|
<a href="#createPollFromConfig"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>createPollFromConfig(config: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="283"
|
|
class="link-to-prism">src/app/services/config.service.ts:283</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>POST
|
|
/api/v1/poll/{id}/poll</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>config</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="deleteComments"></a>
|
|
<span class="name">
|
|
<b>
|
|
deleteComments
|
|
</b>
|
|
<a href="#deleteComments"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>deleteComments()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="436"
|
|
class="link-to-prism">src/app/services/config.service.ts:436</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>administrator calls</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="deletePoll"></a>
|
|
<span class="name">
|
|
<b>
|
|
deletePoll
|
|
</b>
|
|
<a href="#deletePoll"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>deletePoll()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="482"
|
|
class="link-to-prism">src/app/services/config.service.ts:482</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="deleteVotes"></a>
|
|
<span class="name">
|
|
<b>
|
|
deleteVotes
|
|
</b>
|
|
<a href="#deleteVotes"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>deleteVotes()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="459"
|
|
class="link-to-prism">src/app/services/config.service.ts:459</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="exportCSV"></a>
|
|
<span class="name">
|
|
<b>
|
|
exportCSV
|
|
</b>
|
|
<a href="#exportCSV"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>exportCSV()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="542"
|
|
class="link-to-prism">src/app/services/config.service.ts:542</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>TODO
|
|
export all the poll data available to the public as a CSV single file</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="fetchPollFromRoute"></a>
|
|
<span class="name">
|
|
<b>
|
|
fetchPollFromRoute
|
|
</b>
|
|
<a href="#fetchPollFromRoute"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>fetchPollFromRoute(event)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="191"
|
|
class="link-to-prism">src/app/services/config.service.ts:191</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>event</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="fillValuesOnDevEnv"></a>
|
|
<span class="name">
|
|
<b>
|
|
fillValuesOnDevEnv
|
|
</b>
|
|
<a href="#fillValuesOnDevEnv"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>fillValuesOnDevEnv()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="39"
|
|
class="link-to-prism">src/app/services/config.service.ts:39</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="findLocalStorageData"></a>
|
|
<span class="name">
|
|
<b>
|
|
findLocalStorageData
|
|
</b>
|
|
<a href="#findLocalStorageData"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>findLocalStorageData()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="160"
|
|
class="link-to-prism">src/app/services/config.service.ts:160</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="findPollsByEmail"></a>
|
|
<span class="name">
|
|
<b>
|
|
findPollsByEmail
|
|
</b>
|
|
<a href="#findPollsByEmail"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>findPollsByEmail(email: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="120"
|
|
class="link-to-prism">src/app/services/config.service.ts:120</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>search in localstorage, fallback asking the backend to send an email to the owner if it exists</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>email</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="getMyPolls"></a>
|
|
<span class="name">
|
|
<b>
|
|
getMyPolls
|
|
</b>
|
|
<a href="#getMyPolls"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>getMyPolls(ownerEmail: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="200"
|
|
class="link-to-prism">src/app/services/config.service.ts:200</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>GET
|
|
api/v1/my-polls</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>ownerEmail</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="getPollById"></a>
|
|
<span class="name">
|
|
<b>
|
|
getPollById
|
|
</b>
|
|
<a href="#getPollById"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>getPollById(id: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, password?: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="184"
|
|
class="link-to-prism">src/app/services/config.service.ts:184</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>GET
|
|
api/v1/poll/{id}</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>id</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>password</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
Yes
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="getPollByURL"></a>
|
|
<span class="name">
|
|
<b>
|
|
getPollByURL
|
|
</b>
|
|
<a href="#getPollByURL"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>getPollByURL(url: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="173"
|
|
class="link-to-prism">src/app/services/config.service.ts:173</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>get one poll by its slug name</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>url</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="getPollConfig"></a>
|
|
<span class="name">
|
|
<b>
|
|
getPollConfig
|
|
</b>
|
|
<a href="#getPollConfig"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>getPollConfig()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="67"
|
|
class="link-to-prism">src/app/services/config.service.ts:67</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>==================================</p>
|
|
<p>poll public calls to get non authenticated info</p>
|
|
<p>==================================/
|
|
/**
|
|
convert current poll config to a payload to send to the backend API</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code>{ owner: { email: any; pseudo: any; }; title: any; description: any; pollType: any; visibility: a...</code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="handleError"></a>
|
|
<span class="name">
|
|
<b>
|
|
handleError
|
|
</b>
|
|
<a href="#handleError"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>handleError(err: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="153"
|
|
class="link-to-prism">src/app/services/config.service.ts:153</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>display error message depending on the response of the backend</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>err</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="handleVoteAdded"></a>
|
|
<span class="name">
|
|
<b>
|
|
handleVoteAdded
|
|
</b>
|
|
<a href="#handleVoteAdded"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>handleVoteAdded(res)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="360"
|
|
class="link-to-prism">src/app/services/config.service.ts:360</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>res</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="loadVoteStack"></a>
|
|
<span class="name">
|
|
<b>
|
|
loadVoteStack
|
|
</b>
|
|
<a href="#loadVoteStack"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>loadVoteStack(voteStack: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="250"
|
|
class="link-to-prism">src/app/services/config.service.ts:250</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>update current answers with a previous vote</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>voteStack</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="print"></a>
|
|
<span class="name">
|
|
<b>
|
|
print
|
|
</b>
|
|
<a href="#print"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>print()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="612"
|
|
class="link-to-prism">src/app/services/config.service.ts:612</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="resetCurrentChoicesAnswers"></a>
|
|
<span class="name">
|
|
<b>
|
|
resetCurrentChoicesAnswers
|
|
</b>
|
|
<a href="#resetCurrentChoicesAnswers"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>resetCurrentChoicesAnswers()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="240"
|
|
class="link-to-prism">src/app/services/config.service.ts:240</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="set"></a>
|
|
<span class="name">
|
|
<b>
|
|
set
|
|
</b>
|
|
<a href="#set"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>set(key, val)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="34"
|
|
class="link-to-prism">src/app/services/config.service.ts:34</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>key</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>val</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="todo"></a>
|
|
<span class="name">
|
|
<b>
|
|
todo
|
|
</b>
|
|
<a href="#todo"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>todo(message: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="616"
|
|
class="link-to-prism">src/app/services/config.service.ts:616</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
<td>Default value</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>message</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
<td>
|
|
<code>''</code>
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="updateCurrentPollFromResponse"></a>
|
|
<span class="name">
|
|
<b>
|
|
updateCurrentPollFromResponse
|
|
</b>
|
|
<a href="#updateCurrentPollFromResponse"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>updateCurrentPollFromResponse(res: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="223"
|
|
class="link-to-prism">src/app/services/config.service.ts:223</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>res</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="updatePoll"></a>
|
|
<span class="name">
|
|
<b>
|
|
updatePoll
|
|
</b>
|
|
<a href="#updatePoll"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>updatePoll(voteStack: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="520"
|
|
class="link-to-prism">src/app/services/config.service.ts:520</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>UPDATE
|
|
/api/v1/poll/{id}/vote</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
<td>Description</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>voteStack</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<p>TODO</p>
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="updateVote"></a>
|
|
<span class="name">
|
|
<b>
|
|
updateVote
|
|
</b>
|
|
<a href="#updateVote"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>updateVote(voteStack?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="373"
|
|
class="link-to-prism">src/app/services/config.service.ts:373</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-description"><p>UPDATE
|
|
/api/v1/poll/{id}/vote</p>
|
|
</div>
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>voteStack</td>
|
|
<td>
|
|
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
Yes
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="resetConfig"></a>
|
|
<span class="name">
|
|
<b>
|
|
resetConfig
|
|
</b>
|
|
<a href="#resetConfig"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>resetConfig()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:68</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<section>
|
|
|
|
<h3 id="inputs">
|
|
Properties
|
|
</h3>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="baseHref"></a>
|
|
<span class="name">
|
|
<b>
|
|
baseHref</b>
|
|
<a href="#baseHref"><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>environment.baseApiHref</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/services/config.service.ts:21</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="loading"></a>
|
|
<span class="name">
|
|
<b>
|
|
loading</b>
|
|
<a href="#loading"><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/boolean" target="_blank" >boolean</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>false</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/services/config.service.ts:20</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="adminKey"></a>
|
|
<span class="name">
|
|
<b>
|
|
adminKey</b>
|
|
<a href="#adminKey"><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>''</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:58</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="allowSeveralHours"></a>
|
|
<span class="name">
|
|
<b>
|
|
allowSeveralHours</b>
|
|
<a href="#allowSeveralHours"><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>'true'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:41</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="answers"></a>
|
|
<span class="name">
|
|
<b>
|
|
answers</b>
|
|
<a href="#answers"><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>defaultAnswers</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:66</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="canModifyAnswers"></a>
|
|
<span class="name">
|
|
<b>
|
|
canModifyAnswers</b>
|
|
<a href="#canModifyAnswers"><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/boolean" target="_blank" >boolean</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>true</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:60</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="creationDate"></a>
|
|
<span class="name">
|
|
<b>
|
|
creationDate</b>
|
|
<a href="#creationDate"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new Date()</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:45</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="currentPoll"></a>
|
|
<span class="name">
|
|
<b>
|
|
currentPoll</b>
|
|
<a href="#currentPoll"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:50</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="customUrl"></a>
|
|
<span class="name">
|
|
<b>
|
|
customUrl</b>
|
|
<a href="#customUrl"><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>''</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:53</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="customUrlIsUnique"></a>
|
|
<span class="name">
|
|
<b>
|
|
customUrlIsUnique</b>
|
|
<a href="#customUrlIsUnique"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>null</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>null</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:54</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="dateList"></a>
|
|
<span class="name">
|
|
<b>
|
|
dateList</b>
|
|
<a href="#dateList"><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>otherDefaultDates</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:63</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="deletionDateAfterLastModification"></a>
|
|
<span class="name">
|
|
<b>
|
|
deletionDateAfterLastModification</b>
|
|
<a href="#deletionDateAfterLastModification"><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>180</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:27</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="description"></a>
|
|
<span class="name">
|
|
<b>
|
|
description</b>
|
|
<a href="#description"><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>'ma description'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:32</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="expiracyDateDefaultInDays"></a>
|
|
<span class="name">
|
|
<b>
|
|
expiracyDateDefaultInDays</b>
|
|
<a href="#expiracyDateDefaultInDays"><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>60</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:26</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="expirationDate"></a>
|
|
<span class="name">
|
|
<b>
|
|
expirationDate</b>
|
|
<a href="#expirationDate"><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>''</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:46</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="isAdmin"></a>
|
|
<span class="name">
|
|
<b>
|
|
isAdmin</b>
|
|
<a href="#isAdmin"><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/boolean" target="_blank" >boolean</a></code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>true</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:35</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myComment"></a>
|
|
<span class="name">
|
|
<b>
|
|
myComment</b>
|
|
<a href="#myComment"><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>'wouah trop bien framadate!'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:34</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myEmail"></a>
|
|
<span class="name">
|
|
<b>
|
|
myEmail</b>
|
|
<a href="#myEmail"><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>"tktest@tktest.com"</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:38</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myName"></a>
|
|
<span class="name">
|
|
<b>
|
|
myName</b>
|
|
<a href="#myName"><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>'mon pseudo'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:33</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myPolls"></a>
|
|
<span class="name">
|
|
<b>
|
|
myPolls</b>
|
|
<a href="#myPolls"><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>[]</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:39</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myTempVoteStack"></a>
|
|
<span class="name">
|
|
<b>
|
|
myTempVoteStack</b>
|
|
<a href="#myTempVoteStack"><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>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:37</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="myVoteStack"></a>
|
|
<span class="name">
|
|
<b>
|
|
myVoteStack</b>
|
|
<a href="#myVoteStack"><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">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:36</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="owner_modifier_token"></a>
|
|
<span class="name">
|
|
<b>
|
|
owner_modifier_token</b>
|
|
<a href="#owner_modifier_token"><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>''</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:59</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="password"></a>
|
|
<span class="name">
|
|
<b>
|
|
password</b>
|
|
<a href="#password"><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>''</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:52</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="passwordAccess"></a>
|
|
<span class="name">
|
|
<b>
|
|
passwordAccess</b>
|
|
<a href="#passwordAccess"><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>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:51</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="pollId"></a>
|
|
<span class="name">
|
|
<b>
|
|
pollId</b>
|
|
<a href="#pollId"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>null</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>null</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:48</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="pollSlug"></a>
|
|
<span class="name">
|
|
<b>
|
|
pollSlug</b>
|
|
<a href="#pollSlug"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>null</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>null</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:49</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="pollType"></a>
|
|
<span class="name">
|
|
<b>
|
|
pollType</b>
|
|
<a href="#pollType"><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>'dates'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:30</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="step"></a>
|
|
<span class="name">
|
|
<b>
|
|
step</b>
|
|
<a href="#step"><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>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:28</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="stepMax"></a>
|
|
<span class="name">
|
|
<b>
|
|
stepMax</b>
|
|
<a href="#stepMax"><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>3</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:29</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="timeList"></a>
|
|
<span class="name">
|
|
<b>
|
|
timeList</b>
|
|
<a href="#timeList"><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>otherDefaultDates</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:64</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="title"></a>
|
|
<span class="name">
|
|
<b>
|
|
title</b>
|
|
<a href="#title"><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>'titre'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:31</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="urlAdmin"></a>
|
|
<span class="name">
|
|
<b>
|
|
urlAdmin</b>
|
|
<a href="#urlAdmin"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>environment.baseHref + '/#/admin/d65es45fd45sdf45sd345f312sdf31sgfd345'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:57</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="urlPublic"></a>
|
|
<span class="name">
|
|
<b>
|
|
urlPublic</b>
|
|
<a href="#urlPublic"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>environment.baseHref + '/#/poll/id/4'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:56</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="urlSlugPublic"></a>
|
|
<span class="name">
|
|
<b>
|
|
urlSlugPublic</b>
|
|
<a href="#urlSlugPublic"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>null</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>null</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:55</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="visibility"></a>
|
|
<span class="name">
|
|
<b>
|
|
visibility</b>
|
|
<a href="#visibility"><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>'link_only'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:43</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="voteChoices"></a>
|
|
<span class="name">
|
|
<b>
|
|
voteChoices</b>
|
|
<a href="#voteChoices"><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>'only_yes'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:44</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="voteStackId"></a>
|
|
<span class="name">
|
|
<b>
|
|
voteStackId</b>
|
|
<a href="#voteStackId"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Type : </i> <code>null</code>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>null</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:47</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="whoCanChangeAnswers"></a>
|
|
<span class="name">
|
|
<b>
|
|
whoCanChangeAnswers</b>
|
|
<a href="#whoCanChangeAnswers"><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>'everybody'</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:62</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="whoModifiesAnswers"></a>
|
|
<span class="name">
|
|
<b>
|
|
whoModifiesAnswers</b>
|
|
<a href="#whoModifiesAnswers"><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>"everybody"</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Inherited from <code><a href="../classes/PollConfig.html" target="_self" >PollConfig</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <code><a href="../classes/PollConfig.html#source" target="_self" >PollConfig:61</a></code>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tab-pane fade tab-source-code" id="c-source">
|
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {Injectable} from '@angular/core';
|
|
import {PollConfig} from '../config/PollConfig';
|
|
import {HttpClient} from "@angular/common/http";
|
|
import {environment} from "../../environments/environment";
|
|
import {ConfirmationService, MessageService} from 'primeng/api';
|
|
import {Router} from "@angular/router";
|
|
import {mockMyPolls} from "../config/mocks/mockmypolls";
|
|
import {mockPoll3} from "../config/mocks/mock-poll3";
|
|
import {mockSuccessVote} from "../config/mocks/mock-success-vote";
|
|
import {PollUtilities} from "../config/PollUtilities";
|
|
|
|
/**
|
|
* le service transverse à chaque page qui permet de syncroniser la configuration de sondage souhaitée
|
|
*/
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ConfigService extends PollConfig {
|
|
|
|
loading: boolean = false;
|
|
baseHref: any = environment.baseApiHref;
|
|
|
|
|
|
constructor(private http: HttpClient,
|
|
private messageService: MessageService,
|
|
private router: Router,
|
|
private utils: PollUtilities,
|
|
private confirmationService: ConfirmationService,
|
|
) {
|
|
super();
|
|
this.fillValuesOnDevEnv();
|
|
}
|
|
|
|
set(key, val) {
|
|
this[key] = val;
|
|
}
|
|
|
|
// fill in mock values if we are not in production environment
|
|
fillValuesOnDevEnv() {
|
|
|
|
if (!environment.production) {
|
|
console.info(' ######### framadate ######### we are not in production env, filling with mock values');
|
|
this.currentPoll = mockPoll3;
|
|
this.myPolls = mockMyPolls;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* add some days to a date, to compute intervals
|
|
* @param days
|
|
* @param date
|
|
*/
|
|
addDaysToDate(days: number, date: Date) {
|
|
date = new Date(date.valueOf());
|
|
date.setDate(date.getDate() + days);
|
|
return date;
|
|
};
|
|
|
|
/** ==================================
|
|
*
|
|
* poll public calls to get non authenticated info
|
|
*
|
|
* ==================================/
|
|
/**
|
|
* convert current poll config to a payload to send to the backend API
|
|
*/
|
|
getPollConfig() {
|
|
const jsonConfig = {
|
|
owner: {
|
|
email: this.myEmail,
|
|
pseudo: this.myName,
|
|
},
|
|
title: this.title,
|
|
description: this.description,
|
|
pollType: this.pollType,
|
|
visibility: this.visibility,
|
|
voteChoices: this.voteChoices,
|
|
allowSeveralHours: this.allowSeveralHours,
|
|
expirationDate: this.expirationDate,
|
|
passwordAccess: this.passwordAccess,
|
|
password: this.password,
|
|
customUrl: this.customUrl,
|
|
canModifyAnswers: this.canModifyAnswers,
|
|
whoModifiesAnswers: this.whoModifiesAnswers,
|
|
dateList: this.dateList,
|
|
timeList: this.timeList,
|
|
answers: this.answers,
|
|
expiracyDateDefaultInDays: this.expiracyDateDefaultInDays,
|
|
deletionDateAfterLastModification: this.deletionDateAfterLastModification,
|
|
};
|
|
return jsonConfig
|
|
}
|
|
|
|
|
|
checkIfSlugIsUniqueInDatabase(slug: string = '') {
|
|
this.customUrlIsUnique = null;
|
|
if (!slug) {
|
|
slug = this.utils.makeSlug(this);
|
|
}
|
|
|
|
this.loading = true;
|
|
// TODO
|
|
this.todo('check slug is unique');
|
|
this.http.get(`${this.baseHref}/check-slug-is-uniq/${slug}`,
|
|
this.utils.makeHeaders({slug: this.customUrl}),
|
|
)
|
|
.subscribe((res: any) => {
|
|
|
|
this.customUrlIsUnique = res.poll.isUnique;
|
|
this.loading = false;
|
|
},
|
|
(e) => this.handleError(e))
|
|
;
|
|
}
|
|
|
|
/**
|
|
* search in localstorage, fallback asking the backend to send an email to the owner if it exists
|
|
* @param email
|
|
*/
|
|
findPollsByEmail(email: string) {
|
|
|
|
this.findLocalStorageData();
|
|
// If no key is found in the localstorage, ask the backend to send an email to the user
|
|
|
|
this.myEmail = email;
|
|
|
|
|
|
this.todo('send email for real : TODO');
|
|
this.loading = true;
|
|
this.http.get(`${this.baseHref}/send-polls-to-user/${this.myEmail}`,
|
|
this.utils.makeHeaders(),
|
|
)
|
|
.subscribe(res => {
|
|
// message: 'Trouvé! Allez voir votre boite email',
|
|
this.myPolls = res;
|
|
this.loading = false;
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Succès',
|
|
detail: `Vos infos de sondages vous ont été transmises. Allez voir votre boite email ${this.myEmail}`
|
|
});
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
)
|
|
}
|
|
|
|
|
|
/**
|
|
* display error message depending on the response of the backend
|
|
* @param err
|
|
*/
|
|
handleError(err: any) {
|
|
console.error('err', err);
|
|
this.loading = false;
|
|
this.messageService.add({severity: 'warning', summary: "Erreur lors de l'appel ", detail: err.message});
|
|
}
|
|
|
|
|
|
findLocalStorageData() {
|
|
// TODO check if the person has a key to retrieve her polls
|
|
console.log('localStorage', localStorage);
|
|
if (localStorage) {
|
|
console.log('localStorage', localStorage)
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* get one poll by its slug name
|
|
* @param url
|
|
*/
|
|
getPollByURL(url: string) {
|
|
|
|
this.todo();
|
|
return this.http.get(`${this.baseHref}/poll/slug/${url}`, this.utils.makeHeaders())
|
|
}
|
|
|
|
/**
|
|
* GET
|
|
* api/v1/poll/{id}
|
|
* @param id
|
|
*/
|
|
getPollById(id: string, password?: string) {
|
|
|
|
return this.http
|
|
.get(`${this.baseHref}/poll/${id}`,
|
|
this.utils.makeHeaders({body: password}))
|
|
}
|
|
|
|
fetchPollFromRoute(event) {
|
|
console.log('time to fetch poll', event)
|
|
}
|
|
|
|
/**
|
|
* GET
|
|
* api/v1/my-polls
|
|
* @param ownerEmail
|
|
*/
|
|
getMyPolls(ownerEmail: string) {
|
|
this.http
|
|
.get(`${this.baseHref}/my-polls`,
|
|
this.utils.makeHeaders({ownerEmail: ownerEmail})
|
|
)
|
|
.subscribe(
|
|
(res: any) => {
|
|
// this.myPolls = res.poll;
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
/**
|
|
* launch creation call to the api
|
|
*/
|
|
createPoll() {
|
|
this.loading = true;
|
|
this.createPollFromConfig(this.getPollConfig())
|
|
}
|
|
|
|
updateCurrentPollFromResponse(res: any) {
|
|
console.log('update res', res);
|
|
this.currentPoll = res;
|
|
this.pollId = res.poll.id;
|
|
this.owner_modifier_token = res.owner_modifier_token;
|
|
this.urlPublic = this.baseHref + '#/vote/poll/id/' + res.poll.id;
|
|
this.urlSlugPublic = this.baseHref + '#/vote/poll/slug/' + res.poll.id;
|
|
if (res.poll.customUrl) {
|
|
this.urlSlugPublic = this.baseHref + '#/vote/poll/id/' + res.poll.customUrl;
|
|
}
|
|
if (res.voteStack) {
|
|
this.loadVoteStack(res.voteStack);
|
|
}
|
|
this.adminKey = res.admin_key;
|
|
this.urlAdmin = this.baseHref + '#/admin/' + res.admin_key;
|
|
}
|
|
|
|
resetCurrentChoicesAnswers() {
|
|
this.currentPoll.choices.map(choice => {
|
|
choice.answer = null;
|
|
})
|
|
}
|
|
|
|
/**
|
|
* update current answers with a previous vote
|
|
* @param voteStack
|
|
*/
|
|
loadVoteStack(voteStack: any) {
|
|
|
|
// load the pseudo and email
|
|
this.myName = voteStack.pseudo;
|
|
this.myEmail = voteStack.email;
|
|
this.voteStackId = voteStack.id;
|
|
this.myVoteStack = voteStack;
|
|
let keys = Object.keys(voteStack.votes);
|
|
console.log('voteStack', voteStack);
|
|
this.resetCurrentChoicesAnswers();
|
|
keys.forEach((id: any) => {
|
|
let voteItem = voteStack.votes[id];
|
|
|
|
/**
|
|
* the display of the poll uses the choices data, so we update the choices answers of the current poll to reflect the vote stack we have taken
|
|
*/
|
|
if (voteItem.choice_id && voteItem.value) {
|
|
let foundChoiceToModify = this.currentPoll.choices.find(choicesItem => {
|
|
return voteItem.choice_id == choicesItem.id
|
|
});
|
|
console.log('foundChoiceToModify', foundChoiceToModify);
|
|
if (foundChoiceToModify) {
|
|
foundChoiceToModify.answer = voteItem.value;
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
/**
|
|
* POST
|
|
* /api/v1/poll/{id}/poll
|
|
* @param config
|
|
*/
|
|
createPollFromConfig(config: any) {
|
|
this.loading = true;
|
|
console.log('config', config);
|
|
return this.http.post(`${this.baseHref}/poll`,
|
|
config,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
// redirect to the page to administrate the new poll
|
|
this.messageService.add({severity: 'success', summary: 'Sondage Créé',});
|
|
|
|
this.updateCurrentPollFromResponse(res);
|
|
|
|
this.loading = false;
|
|
if (!this.myPolls) {
|
|
this.myPolls = [];
|
|
}
|
|
this.myPolls.push(res);
|
|
this.router.navigate(['step/end']);
|
|
// TODO save new poll to localstorage
|
|
// reset all fields in current config
|
|
this.resetConfig();
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* conversion to send to back
|
|
* @param choiceList
|
|
*/
|
|
convertChoicesAnsweredToSend(choiceList) {
|
|
choiceList = choiceList.filter(c => c.answer ? c : null); // remove choices where we did not answer
|
|
const converted = choiceList.map(elem => {
|
|
if (elem.answer) {
|
|
return {
|
|
choice_id: elem.id,
|
|
value: elem.answer
|
|
}
|
|
}
|
|
});
|
|
console.log('converted', converted);
|
|
return converted;
|
|
}
|
|
|
|
/**
|
|
* POST
|
|
* /api/v1/poll/{id}/vote
|
|
* @param voteStack
|
|
*/
|
|
addVote(voteStack?: any) {
|
|
if (!voteStack) {
|
|
voteStack = {
|
|
pseudo: this.myName,
|
|
email: this.myEmail,
|
|
votes: this.convertChoicesAnsweredToSend(this.currentPoll.choices),
|
|
}
|
|
}
|
|
this.myVoteStack = voteStack;
|
|
|
|
if (!environment.production) {
|
|
this.handleVoteAdded(mockSuccessVote);
|
|
return;
|
|
}
|
|
this.http.post(
|
|
`${this.baseHref}/poll/${this.pollId}/vote`,
|
|
voteStack,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
|
|
this.handleVoteAdded(res);
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
|
|
handleVoteAdded(res) {
|
|
this.messageService.add({severity: 'success', summary: 'Vote ajouté'});
|
|
// save modifier token
|
|
this.myVoteStack['modifier_token'] = res.modifier_token;
|
|
this.myVoteStack['id'] = res.vote_stack.id;
|
|
this.updateCurrentPollFromResponse(res);
|
|
}
|
|
|
|
/**
|
|
* UPDATE
|
|
* /api/v1/poll/{id}/vote
|
|
* @param voteStack
|
|
*/
|
|
updateVote(voteStack?: any) {
|
|
if (!this.myVoteStack) {
|
|
return;
|
|
|
|
} else {
|
|
voteStack = this.myVoteStack;
|
|
}
|
|
this.http.patch(
|
|
`${this.baseHref}/vote-stack/${voteStack.id}/token/${this.owner_modifier_token}`,
|
|
voteStack,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({severity: 'success', summary: 'Vote mis à jour'});
|
|
this.updateCurrentPollFromResponse(res);
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* POST
|
|
* /api/v1/poll/{id}/comment
|
|
* @param comment
|
|
*/
|
|
addComment(comment?: any) {
|
|
if (!comment && this.myComment) {
|
|
comment = {
|
|
name: this.myName,
|
|
pseudo: this.myName,
|
|
email: this.myEmail,
|
|
date: new Date(),
|
|
text: this.myComment,
|
|
}
|
|
}
|
|
console.log('comment', comment);
|
|
this.http.post(
|
|
`${this.baseHref}/poll/${this.pollId}/comment`,
|
|
comment,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Commentaire Créé',
|
|
detail: comment.text
|
|
});
|
|
// empty comment after success
|
|
this.myComment = '';
|
|
comment.date = {
|
|
date: comment.date
|
|
};
|
|
this.currentPoll.comments.push(comment);
|
|
}, (e) => {
|
|
this.handleError(e);
|
|
}
|
|
);
|
|
}
|
|
|
|
|
|
/**
|
|
* administrator calls
|
|
*/
|
|
|
|
deleteComments() {
|
|
// prompt for confirmation
|
|
this.confirmationService.confirm({
|
|
message: 'Are you sure that you want to completely delete the comments of this poll (' + this.title + ') permanentely?',
|
|
accept: () => {
|
|
this.http.delete(
|
|
`${this.baseHref}/poll/${this.pollId}/comments`,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Commentaires bien supprimés',
|
|
detail: 'Commentaires du sondage "' + this.title + '" supprimé'
|
|
});
|
|
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
deleteVotes() {
|
|
// prompt for confirmation
|
|
this.confirmationService.confirm({
|
|
message: 'Are you sure that you want to completely delete the votes of this poll (' + this.title + ') permanentely?',
|
|
accept: () => {
|
|
this.http.delete(
|
|
`${this.baseHref}/poll/${this.pollId}/votes`,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Votes bien supprimés',
|
|
detail: 'Votes du sondage "' + this.title + '" supprimé'
|
|
});
|
|
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
deletePoll() {
|
|
if (!this.pollId) {
|
|
this.messageService.add({
|
|
summary: 'this poll is not administrable, it has no ID',
|
|
severity: 'warning'
|
|
});
|
|
return;
|
|
}
|
|
let self = this;
|
|
// prompt for confirmation
|
|
this.confirmationService.confirm({
|
|
message: 'Are you sure that you want to completely delete this poll (' + self.title + ') and all is data permanentely?',
|
|
accept: () => {
|
|
this.http.delete(
|
|
`${this.baseHref}/poll/${this.pollId}`,
|
|
this.utils.makeHeaders())
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Sondage bien supprimé',
|
|
detail: 'sondage "' + this.title + '" supprimé'
|
|
});
|
|
|
|
this.router.navigate(['home']);
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
/**
|
|
* UPDATE
|
|
* /api/v1/poll/{id}/vote
|
|
* @param voteStack
|
|
* TODO
|
|
*/
|
|
updatePoll(voteStack: any) {
|
|
this.http.put(
|
|
`${this.baseHref}/poll/${this.pollId}`,
|
|
voteStack,
|
|
this.utils.makeHeaders()
|
|
)
|
|
.subscribe((res: any) => {
|
|
this.messageService.add({
|
|
severity: 'success',
|
|
summary: 'Sondage mis à jour',
|
|
});
|
|
this.updateCurrentPollFromResponse(res);
|
|
}, (e) => {
|
|
this.handleError(e)
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* TODO
|
|
* export all the poll data available to the public as a CSV single file
|
|
*/
|
|
exportCSV() {
|
|
|
|
|
|
let rows = [];
|
|
let now = new Date();
|
|
const headers = [
|
|
['export de sondage Framadate ', this.customUrl],
|
|
['le', now.toISOString()],
|
|
[this.currentPoll.pollId, this.currentPoll.title, this.customUrl, this.creationDate],
|
|
['pseudo']];
|
|
|
|
|
|
let listOfChoices = ['choices : '];
|
|
this.currentPoll.choices.map(choice => {
|
|
listOfChoices.push(choice.text)
|
|
});
|
|
listOfChoices.push('pseudo');
|
|
|
|
this.currentPoll.stacks.map(voteStack => {
|
|
let voteStackInArray = [voteStack.pseudo];
|
|
let keysVotes = Object.keys(voteStack.votes);
|
|
|
|
keysVotes.map(id => {
|
|
voteStackInArray.push(voteStack.votes[id].value ? voteStack.votes[id].value : "")
|
|
});
|
|
rows.push(
|
|
voteStackInArray
|
|
);
|
|
});
|
|
const headersComments = [
|
|
['comments'],
|
|
['pseudo', 'text', 'creation_date'],
|
|
];
|
|
const comments = [];
|
|
this.currentPoll.comments.map(item => {
|
|
comments.push(
|
|
[item.pseudo,
|
|
item.text,
|
|
item.date.date,
|
|
'\n']
|
|
)
|
|
});
|
|
headers.push(listOfChoices);
|
|
rows = [headers, listOfChoices, rows, headersComments, comments];
|
|
|
|
let convertedCsv = rows.map(elem => {
|
|
console.log('elem', elem);
|
|
return elem.map(item => {
|
|
console.log('item', item);
|
|
if (typeof item === typeof Array) {
|
|
return item.join('\n')
|
|
}
|
|
return item;
|
|
}).join('\n')
|
|
}).join('\n');
|
|
console.log('rows', rows);
|
|
console.log('convertedCsv', convertedCsv);
|
|
|
|
let csvContent = "data:text/csv;charset=utf-8,"
|
|
+ convertedCsv;
|
|
console.log('csvContent', csvContent);
|
|
var encodedUri = encodeURI(csvContent);
|
|
var link = document.createElement("a");
|
|
link.setAttribute("href", encodedUri);
|
|
let exportFileName = (this.urlPublic ? this.urlPublic : this.utils.makeSlug(this)) + "_export_" + new Date() + ".csv";
|
|
link.setAttribute("download", exportFileName);
|
|
document.body.appendChild(link); // Required for FF
|
|
link.click(); // This will download the data file named "my_data.csv".
|
|
}
|
|
|
|
print() {
|
|
alert('TODO');
|
|
}
|
|
|
|
todo(message = '') {
|
|
this.messageService.add({
|
|
severity: 'info' + message,
|
|
detail: "cette fonctionnalité n'est pas encore disponible. Venez en discuter sur framateam.org / Ux et design libre / Framasoft",
|
|
summary: "Work in progress",
|
|
});
|
|
}
|
|
}
|
|
</code></pre>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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 = 'injectable';
|
|
var COMPODOC_CURRENT_PAGE_URL = 'ConfigService.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>
|