PT
apps/winzik / forms / CloudForm.form.yaml · commit 6576d6f
# The WinZik account (the cloud): pseudo + password, no e-mail. Connexion / Créer un compte / Mes appareils.form:  title: 'Mon compte WinZik'  dialog: true  width: 580  theme: dark  accent: '#3fa9ff'  gap: 8  children:    - type: row      gap: 8      children:        - {type: label, id: heading, text: 'Playlist cloud : mon compte WinZik', bold: true, color: '#3fa9ff', wrap: false}        - {type: spacer}        - {type: label, id: state, text: '', style: small, wrap: false}    - type: row      gap: 4      children:        - {type: button, id: tabLogin, text: 'Connexion', events: {click: onTabLoginClick}}        - {type: button, id: tabSignup, text: 'Créer un compte', events: {click: onTabSignupClick}}        - {type: button, id: tabDevices, text: 'Mes appareils', events: {click: onTabDevicesClick}}    - type: panel      id: enterPanel      gap: 6      children:        - {type: label, id: intro, text: '', style: small}        - type: row          gap: 8          children:            - {type: label, text: 'Pseudo :', width: 170, wrap: false}            - {type: textbox, id: pseudo, grow: 1, maxLength: 32, placeholder: 'ex. : ada_78 (pas d''adresse e-mail)', events: {submit: onFieldSubmit}}        - type: row          id: recoveryRow          gap: 8          visible: false          children:            - {type: label, text: 'Code de secours :', width: 170, wrap: false}            - {type: textbox, id: recovery, grow: 1, maxLength: 40, placeholder: 'XXXX-XXXX-XXXX-XXXX-XXXX', events: {submit: onFieldSubmit}}        - type: row          gap: 8          children:            - {type: label, id: passwordLabel, text: 'Mot de passe :', width: 170, wrap: false}            - {type: textbox, id: password, grow: 1, password: true, maxLength: 200, placeholder: '8 caractères au moins', events: {submit: onFieldSubmit}}        - type: row          gap: 8          children:            - {type: label, text: 'Nom de cet appareil :', width: 170, wrap: false}            - {type: textbox, id: deviceName, grow: 1, maxLength: 40, tooltip: 'Ce que vos autres appareils voient (modifiable)', events: {submit: onFieldSubmit}}        - type: row          gap: 8          children:            - {type: button, id: enter, text: 'Se connecter', style: primary, default: true, events: {click: onEnterClick}}            - {type: spacer}            - {type: button, id: forgot, text: 'Mot de passe oublié…', style: flat, events: {click: onForgotClick}}    - type: panel      id: codePanel      visible: false      gap: 6      children:        - {type: label, text: 'Votre code de secours :', bold: true}        - {type: textbox, id: code, readonly: true}        - {type: label, text: "Notez ce code : sans e-mail, c'est le seul moyen de récupérer le compte.", color: '#ffd84a', bold: true}        - type: row          children:            - {type: spacer}            - {type: button, id: noted, text: "J'ai noté le code", style: primary, events: {click: onNotedClick}}    - type: panel      id: devicesPanel      visible: false      gap: 6      children:        - {type: label, id: account, text: '', bold: true}        - {type: listbox, id: devices, height: 150}        - type: row          gap: 8          children:            - {type: button, id: revoke, text: 'Déconnecter cet appareil', events: {click: onRevokeClick}}            - {type: button, id: refresh, text: 'Actualiser', events: {click: onRefreshClick}}            - {type: spacer}            - {type: button, id: signOut, text: 'Déconnexion', events: {click: onSignOutClick}}        - {type: checkbox, id: playSync, text: 'Lecture synchronisée avec mes appareils', events: {change: onPlaySyncChange}}        - {type: label, id: playSyncInfo, text: "Le morceau, la pause, la position et le volume suivent le dernier appareil touché. Décochez pour que cet appareil joue seul.", style: small}        - {type: label, id: syncState, text: '', style: small, color: '#3fa9ff'}        - {type: checkbox, id: autoCopy, text: 'Copier tout seul les morceaux du cloud sur cet appareil', events: {change: onAutoCopyChange}}        - {type: label, text: "Les MP3 ne sont jamais gardés sur le serveur : le PC les envoie au téléphone (réseau de la maison, sinon le relais chiffré). Le PC doit être allumé, WinZik ouvert.", style: small}    - type: row      children:        - {type: label, id: status, text: '', style: small, grow: 1}        - {type: button, id: quit, text: Fermer, cancel: true, events: {click: onQuitClick}}