owned this note
owned this note
Published
Linked with GitHub
###### tags: `temporary` `framadate`
Framadate WIP things
==
## Anciens champs pas encore déplacé ailleurs
public voteStackId = null,
public whoModifiesAnswers = 'everybody',
public whoCanChangeAnswers = 'everybody',
public dateList: any = otherDefaultDates,
public timeList: Choice[] = otherDefaultDates,
public currentPoll,
public passwordAccess = 0, // isPollProtectedByPassword
public password = '', // pollPassword
public customUrl = '', // customSlug
public customUrlIsUnique:boolean|null, // when creation, check availability of a customSlug
public urlSlugPublic = null,
public urlPublic = '',
public urlAdmin = '', // url to poll administration page
public adminKey = '', // key to access to poll administration page
public owner_modifier_token = '', // token of a user to modify its vote for a poll
## Nouvelle structure
**Poll**
public pollId = null,
public pollSlug = null,
public pollType = 'dates',
public title: string = '',
public description: string = '',
public owner: User,
public pollConfig: PollConfig,
public answers: PollAnswer[] = defaultAnswers,
**PollConfig**
public allowSeveralHours = true,
public visibility: Visibility = Visibility.LINK_ONLY,
public voteChoices: VotesChoices = VotesChoices.ONLY_YES,
public creationDate: Date = new Date(),
public expirationDate = '',
public canModifyAnswers = true,
public isPollProtectedByPassword: boolean
**PollOption**
public label: string,
public url?: string,
public subOptions?: PollOption[]
**Workflow(steps de création d'un sondage)**
public step = 0,
public stepMax = 3,
**UIConfig**
public menuVisible = true,
public theme:string
public locale = 'fr',
public localeChoices = LocalChoice[],
**LocaleChoice** -> enum
label: string, // "Français"
code: string, // "fr_FR"
**GlobalConfig(env)**
public expiracyDateDefaultInDays = 60,
public deletionDateAfterLastModification = 180,
public baseApi: string
**User**
public isOwner: boolean = false,
public myName: string = '',
public myComment: string = '',
public myVoteStack: any,
public myTempVoteStack = 0,
public myEmail: string = '',
public myPolls: any = [],
## À mettre ailleurs, champs interne à un composant, etc.
displayConfirmVoteModalAdmin = false
### api backend
-------------------------- -------- -------- ------ ------------------------------------------------
Name Method Scheme Host Path
-------------------------- -------- -------- ------ ------------------------------------------------
_twig_error_test ANY ANY ANY /_error/{code}.{_format}
api_get_poll_comment GET ANY ANY /api/v1/poll/{id}/comments
api_new_comment POST ANY ANY /api/v1/poll/{id}/comment
api_poll_comments_delete DELETE ANY ANY /api/v1/poll/{id}/comments
api_send_user_polls GET ANY ANY /api/v1/send-polls-to-user/{email}
homepageget_default GET ANY ANY /
api_get_all_polls GET ANY ANY /api/v1/poll/
api_get_poll GET ANY ANY /api/v1/poll/{id}
api_update_poll PUT ANY ANY /api/v1/poll/{id}/{token}
api_new_poll POST ANY ANY /api/v1/poll/
api_test-mail-poll GET ANY ANY /api/v1/poll/mail/test-mail-poll/{emailChoice}
api_poll_delete DELETE ANY ANY /api/v1/poll/{id}
api_clean_expired_polls GET ANY ANY /api/v1/poll/clean-polls
api_check_slug_is_unique GET ANY ANY /api/v1/poll/admin/{token}
api_new_vote_stack POST ANY ANY /api/v1/poll/{id}/vote
api_update_vote_stack PATCH ANY ANY /api/v1/vote-stack/{id}/token/{modifierToken}
api_poll_votes_delete DELETE ANY ANY /api/v1/poll/{id}/votes/{accessToken}
app.swagger GET ANY ANY /api/doc.json
-------------------------- -------- -------- ------ ------------------------------------------------