mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
fix some production build warnings
This commit is contained in:
parent
3c3dddafa5
commit
2993fc5cb5
@ -22,9 +22,12 @@
|
|||||||
<p class="subtitle">
|
<p class="subtitle">
|
||||||
{{ 'creation.want' | translate }}
|
{{ 'creation.want' | translate }}
|
||||||
</p>
|
</p>
|
||||||
<!-- <app-kind-select [form]="form"></app-kind-select>-->
|
<app-kind-select [form]="form"></app-kind-select>
|
||||||
<!-- <app-base-config [form]="form"></app-base-config>-->
|
<app-base-config [form]="form"></app-base-config>
|
||||||
<app-date-select *ngIf="form.value.configuration.isAboutDate" [form]="form"></app-date-select>
|
<app-date-select
|
||||||
|
*ngIf="form.value.configuration && form.value.configuration.isAboutDate"
|
||||||
|
[form]="form"
|
||||||
|
></app-date-select>
|
||||||
<!-- <app-text-select ng-if="!form.value.isAboutDate" [form]="form"></app-text-select>-->
|
<!-- <app-text-select ng-if="!form.value.isAboutDate" [form]="form"></app-text-select>-->
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
@ -26,7 +26,7 @@ export class FormComponent implements OnInit {
|
|||||||
private uuidService: UuidService,
|
private uuidService: UuidService,
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
private pollService: PollService,
|
private pollService: PollService,
|
||||||
private apiService: ApiService,
|
public apiService: ApiService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
@Inject(DOCUMENT) private document: any
|
@Inject(DOCUMENT) private document: any
|
||||||
) {}
|
) {}
|
||||||
|
@ -1,55 +1,53 @@
|
|||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<form [formGroup]="form">
|
<form [formGroup]="form">
|
||||||
<span>
|
<span class="columns">
|
||||||
<span class="columns">
|
<span class="column">
|
||||||
<span class="column">
|
<button class="btn is-primary" (click)="addChoice()">
|
||||||
<button class="btn is-primary" (click)="addChoice()">
|
<i class="fa fa-plus"></i>
|
||||||
<i class="fa fa-plus"></i>
|
Ajouter un choix
|
||||||
Ajouter un choix
|
</button>
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
<span class="column pull-right">
|
|
||||||
<button class="btn is-warning" (click)="reinitChoices()">
|
|
||||||
<i class="fa fa-recycle"></i>
|
|
||||||
Réinitialiser
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
|
<span class="column pull-right">
|
||||||
<p class="hint">
|
<button class="btn is-warning" (click)="reinitChoices()">
|
||||||
{{ 'creation.choices_hint' | translate }}
|
<i class="fa fa-recycle"></i>
|
||||||
</p>
|
Réinitialiser
|
||||||
<span *ngFor="let choice of choices.controls; let i = index">
|
</button>
|
||||||
<div class="form-row" [formGroup]="choice">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column">
|
|
||||||
<button class="btn btn-warning" (click)="deleteChoiceField(i)">
|
|
||||||
<i class="fa fa-times"></i>
|
|
||||||
</button>
|
|
||||||
{{ i * 1 + 1 }})
|
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<label [for]="'choice_label_' + i" class="hidden">label</label>
|
|
||||||
<input
|
|
||||||
formControlName="label"
|
|
||||||
[id]="'choice_label_' + i"
|
|
||||||
placeholder="Enter a choice description"
|
|
||||||
(keyup)="keyOnChoice($event, i)"
|
|
||||||
(keyup.backspace)="deleteChoiceField(i)"
|
|
||||||
/>
|
|
||||||
<br />
|
|
||||||
<label [for]="'image_url_' + i" class="hidden">image Url</label>
|
|
||||||
<input
|
|
||||||
formControlName="imageUrl"
|
|
||||||
[id]="'image_url_' + i"
|
|
||||||
placeholder="URL de l' image"
|
|
||||||
(keyup)="keyOnChoice($event, i)"
|
|
||||||
(keyup.backspace)="deleteChoiceField(i)"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span class="hint">
|
||||||
|
{{ 'creation.choices_hint' | translate }}
|
||||||
|
</span>
|
||||||
|
<div *ngFor="let choice of choices; let i = index">
|
||||||
|
<div class="form-row" [formGroup]="choice">
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column">
|
||||||
|
<button class="btn btn-warning" (click)="deleteChoiceField(i)">
|
||||||
|
<i class="fa fa-times"></i>
|
||||||
|
</button>
|
||||||
|
{{ i * 1 + 1 }})
|
||||||
|
</div>
|
||||||
|
<div class="column">
|
||||||
|
<label [for]="'choice_label_' + i" class="hidden">label</label>
|
||||||
|
<input
|
||||||
|
formControlName="label"
|
||||||
|
[id]="'choice_label_' + i"
|
||||||
|
placeholder="Enter a choice description"
|
||||||
|
(keyup)="keyOnChoice($event, i)"
|
||||||
|
(keyup.backspace)="deleteChoiceField(i)"
|
||||||
|
/>
|
||||||
|
<br />
|
||||||
|
<label [for]="'image_url_' + i" class="hidden">image Url</label>
|
||||||
|
<input
|
||||||
|
formControlName="imageUrl"
|
||||||
|
[id]="'image_url_' + i"
|
||||||
|
placeholder="URL de l' image"
|
||||||
|
(keyup)="keyOnChoice($event, i)"
|
||||||
|
(keyup.backspace)="deleteChoiceField(i)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,8 +9,13 @@ import { FormGroup } from '@angular/forms';
|
|||||||
export class TextSelectComponent implements OnInit {
|
export class TextSelectComponent implements OnInit {
|
||||||
@Input()
|
@Input()
|
||||||
public form: FormGroup;
|
public form: FormGroup;
|
||||||
|
public choices = [];
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {}
|
ngOnInit(): void {}
|
||||||
|
reinitChoices(): void {}
|
||||||
|
addChoice(): void {}
|
||||||
|
deleteChoiceField(i): void {}
|
||||||
|
keyOnChoice($event, i): void {}
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
suffit donc de les convertir en nombre et faire des opérations plus ou moins complexes avec.
|
suffit donc de les convertir en nombre et faire des opérations plus ou moins complexes avec.
|
||||||
</div>
|
</div>
|
||||||
Voici un texte que l'on voudrait chiffrer: <br />
|
Voici un texte que l'on voudrait chiffrer: <br />
|
||||||
<input type="text" [(ngModel)]="plainText" (ngModelChange)="encrypt(plainText)" />
|
<input type="text" [(ngModel)]="plainText" (ngModelChange)="encrypt(codingMatrice, plainText)" />
|
||||||
<br />
|
<br />
|
||||||
Vous pouvez le changer, la page se met à jour automatiquement. Le texte clair fait
|
Vous pouvez le changer, la page se met à jour automatiquement. Le texte clair fait
|
||||||
{{ plainText.length }} caractères.
|
{{ plainText.length }} caractères.
|
||||||
@ -194,7 +194,7 @@
|
|||||||
<h3 class="title">Déchiffrement simple</h3>
|
<h3 class="title">Déchiffrement simple</h3>
|
||||||
|
|
||||||
Collez ici le texte chiffré à convertir en truc lisible par l'opération
|
Collez ici le texte chiffré à convertir en truc lisible par l'opération
|
||||||
<strike>du saint esprit</strike> réalisée dans l'autre sens.
|
<s>du saint esprit</s> réalisée dans l'autre sens.
|
||||||
<br />
|
<br />
|
||||||
<input type="text" [(ngModel)]="cipheredText" />
|
<input type="text" [(ngModel)]="cipheredText" />
|
||||||
<br />
|
<br />
|
||||||
@ -229,7 +229,9 @@
|
|||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ getEntropy(plainText).toFixed(3) }}</td>
|
<td>{{ getEntropy(plainText).toFixed(3) }}</td>
|
||||||
<td><input type="text" [(ngModel)]="plainText" (ngModelChange)="encrypt(plainText)" /></td>
|
<td>
|
||||||
|
<input type="text" [(ngModel)]="plainText" (ngModelChange)="encrypt(codingMatrice, plainText)" />
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ getEntropy(simpleCipheredText).toFixed(3) }}</td>
|
<td>{{ getEntropy(simpleCipheredText).toFixed(3) }}</td>
|
||||||
|
@ -26,7 +26,7 @@ export class CipheringComponent implements OnInit {
|
|||||||
public dico: string[];
|
public dico: string[];
|
||||||
public separatedCouples: any[];
|
public separatedCouples: any[];
|
||||||
public codingMatrice = '2 3 5 8';
|
public codingMatrice = '2 3 5 8';
|
||||||
private cipheredTextCIL: string;
|
public cipheredTextCIL: string;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.alphab = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .+-*/_!?,éèêëàçôî'âù()@&$";
|
this.alphab = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .+-*/_!?,éèêëàçôî'âù()@&$";
|
||||||
|
Loading…
Reference in New Issue
Block a user