diff --git a/back/src/org/kar/karusic/WebLauncher.java b/back/src/org/kar/karusic/WebLauncher.java
index 301cb24..0a2190b 100755
--- a/back/src/org/kar/karusic/WebLauncher.java
+++ b/back/src/org/kar/karusic/WebLauncher.java
@@ -70,7 +70,7 @@ public class WebLauncher {
}
- public void process() throws InterruptedException {
+ public void process() throws InterruptedException {
// ===================================================================
// Configure resources
// ===================================================================
diff --git a/back/src/org/kar/karusic/api/UserResource.java b/back/src/org/kar/karusic/api/UserResource.java
index 9ba0285..f38cbd1 100755
--- a/back/src/org/kar/karusic/api/UserResource.java
+++ b/back/src/org/kar/karusic/api/UserResource.java
@@ -2,7 +2,6 @@ package org.kar.karusic.api;
import org.kar.archidata.SqlWrapper;
import org.kar.archidata.filter.GenericContext;
-import org.kar.archidata.model.User;
import org.kar.karusic.model.UserKarusic;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/front/src/common/component/async-action-status/async-status-component.html b/front/src/common/component/async-action-status/async-status-component.html
deleted file mode 100644
index 0940770..0000000
--- a/front/src/common/component/async-action-status/async-status-component.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/front/src/common/component/async-action-status/async-status-component.less b/front/src/common/component/async-action-status/async-status-component.less
deleted file mode 100644
index e69de29..0000000
diff --git a/front/src/common/component/async-action-status/async-status-component.spec.ts b/front/src/common/component/async-action-status/async-status-component.spec.ts
deleted file mode 100644
index 0f9ce47..0000000
--- a/front/src/common/component/async-action-status/async-status-component.spec.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
-import { PasswordEntryComponent } from './async-status-component';
-
-describe('PasswordEntryComponent global test', () => {
- let component: PasswordEntryComponent;
- let fixture: ComponentFixture;
- let input: HTMLInputElement;
- let button: HTMLButtonElement;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [PasswordEntryComponent],
- }).compileComponents();
- fixture = TestBed.createComponent(PasswordEntryComponent);
- component = fixture.componentInstance;
- input = fixture.nativeElement.querySelector('div').querySelector('input');
- button = fixture.nativeElement.querySelector('div').querySelector('button');
- });
-
- it('Test mode password (default)', () => {
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- });
-
- it('Test mode text', () => {
- component.passwordVisibility = true;
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- });
-
- it('test click on hide button', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(true);
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- }));
-
- it('Set password', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- let tmpData = 'My beautifull Password';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- tmpData = '';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- }));
-});
diff --git a/front/src/common/component/async-action-status/async-status-component.ts b/front/src/common/component/async-action-status/async-status-component.ts
deleted file mode 100644
index 00582f8..0000000
--- a/front/src/common/component/async-action-status/async-status-component.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, Input } from '@angular/core';
-
-export enum AsyncActionState {
- IDLE = "idle",
- LOADING = "loading",
- DONE = "done",
- FAIL = "fail",
-}
-
-@Component({
- selector: 'app-async-status-component',
- templateUrl: 'async-status-component.html',
- styleUrls: ['async-status-component.less'],
-})
-export class AsyncActionStatusComponent {
- /// Value of the password
- @Input() value: AsyncActionState = AsyncActionState.IDLE;
-
- public getImage(): string {
- switch(this.value) {
- case AsyncActionState.IDLE:
- return '';
- case AsyncActionState.LOADING:
- return 'assets/images/load.svg';
- case AsyncActionState.DONE:
- return 'assets/images/validate.svg';
- case AsyncActionState.FAIL:
- return 'assets/images/validate-not.svg';
-
- }
- }
-}
diff --git a/front/src/common/component/burger-property/burger-property.html b/front/src/common/component/burger-property/burger-property.html
deleted file mode 100644
index 765d0fb..0000000
--- a/front/src/common/component/burger-property/burger-property.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
\ No newline at end of file
diff --git a/front/src/common/component/burger-property/burger-property.less b/front/src/common/component/burger-property/burger-property.less
deleted file mode 100644
index 060015b..0000000
--- a/front/src/common/component/burger-property/burger-property.less
+++ /dev/null
@@ -1,78 +0,0 @@
-.bmp-title {
- width: 80%;
- border: solid;
- border-width: 1px;
- margin: auto;
- padding: 10px 20px;
-
- border-color: black;
- border-radius: 10px 10px 0px 0px;
- background-color: gray;
-
- .title {
- font-size: 24px;
- font-weight: bold;
- line-height: 24px;
- vertical-align: middle;
- margin: 10px 0 10px 0;
- text-align: Left;
- }
- .description {
- font-size: 16px;
- line-height: 16px;
- vertical-align: middle;
- margin: 10px 0 10px 0;
- text-align: Left;
- }
-}
-
-.bmp-elements {
- width: 80%;
- border: solid;
- border-width: 0px 1px;
- margin: auto;
- padding: 10px 20px;
-
- border-color: black;
- border-radius: 0px;
- background-color: lightgray;
- vertical-align: middle;
- text-align: Left;
- /*
- .elem-hr {
- width: 100%;
- border-color: black;
- border: dashed;
- border-width: 1px 0 0 0;
- margin: 10px auto;
- }
- .elem-title {
- font-size: 18px;
- font-weight: bold;
- margin: 0 10px 0 36px;
- }
- .elem-description {
- font-size: 14px;
- margin: 0 20px 10px 50px;
- font-style: italic;
- }
- .elem-input {
- font-size: 14px;
- margin: 0 20px 10px 36px;
- input {
- width: 100%;
- }
- }*/
-}
-
-.bmp-validation {
- width: 80%;
- border: solid;
- border-width: 1px;
- margin: auto;
- padding: 10px 20px;
-
- border-color: black;
- border-radius: 0px 0px 10px 10px;
- background-color: gray;
-}
diff --git a/front/src/common/component/burger-property/burger-property.ts b/front/src/common/component/burger-property/burger-property.ts
deleted file mode 100644
index db81e81..0000000
--- a/front/src/common/component/burger-property/burger-property.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2020, Edouard DUPIN, all right reserved
- * @license MPL-2 (see license file)
- */
-
-import { Component } from '@angular/core';
-
-@Component({
- // moduleId: module.id.toString(),
- selector: 'burger-property',
- templateUrl: './burger-property.html',
- styleUrls: ['./burger-property.less'],
-})
-export class BurgerPropertyComponent {
-
- constructor() {}
-}
diff --git a/front/src/common/component/checkbox/checkbox.html b/front/src/common/component/checkbox/checkbox.html
deleted file mode 100644
index c0b63f3..0000000
--- a/front/src/common/component/checkbox/checkbox.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- {{comment}}
-
diff --git a/front/src/common/component/checkbox/checkbox.less b/front/src/common/component/checkbox/checkbox.less
deleted file mode 100644
index f9efe12..0000000
--- a/front/src/common/component/checkbox/checkbox.less
+++ /dev/null
@@ -1,6 +0,0 @@
-
-.elem-checkbox {
- font-size: 18px;
- font-weight: bold;
- margin: 0 10px 0 10px;
-}
\ No newline at end of file
diff --git a/front/src/common/component/checkbox/checkbox.ts b/front/src/common/component/checkbox/checkbox.ts
deleted file mode 100644
index 0877516..0000000
--- a/front/src/common/component/checkbox/checkbox.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, EventEmitter, Input, Output } from '@angular/core';
-
-@Component({
- selector: 'app-checkbox',
- templateUrl: 'checkbox.html',
- styleUrls: ['checkbox.less'],
-})
-export class CheckboxComponent {
- /// Checkbox value
- @Input() value: boolean = false;
- /// Description of the checkbox
- @Input() comment: string = "";
- /// event when change the value of the password
- @Output() changeValue: EventEmitter = new EventEmitter();
-
- /**
- * When input value change, need update the display and change the internal value.
- * @param newValue New value set on the password
- */
- onChange(newValue: boolean): void {
- this.value = newValue;
- this.changeValue.emit(this.value);
- }
-}
diff --git a/front/src/common/component/entry-number/entry-number.html b/front/src/common/component/entry-number/entry-number.html
deleted file mode 100644
index 50eab6e..0000000
--- a/front/src/common/component/entry-number/entry-number.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
diff --git a/front/src/common/component/entry-number/entry-number.less b/front/src/common/component/entry-number/entry-number.less
deleted file mode 100644
index 30e3b2d..0000000
--- a/front/src/common/component/entry-number/entry-number.less
+++ /dev/null
@@ -1,39 +0,0 @@
-input {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- z-index: 5;
-}
-.eye-button {
- margin-left: -44px;
- margin-top: 15px;
- float: right;
- position: relative;
- display: block;
- border: none;
- z-index: 15;
- background: none;
- padding: 4 1 13 1;
- :hover {
- background: none;
- color: red;
- }
-}
-.eye-button-2 {
- margin-left: -70px;
- margin-top: 12px;
- float: right;
- position: relative;
- display: block;
- border: none;
- z-index: 15;
- background: none;
- padding: 4px 30px 4px 1px;
- :hover {
- background: none;
- color: red;
- }
-}
\ No newline at end of file
diff --git a/front/src/common/component/entry-number/entry-number.ts b/front/src/common/component/entry-number/entry-number.ts
deleted file mode 100644
index 06fd391..0000000
--- a/front/src/common/component/entry-number/entry-number.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-import { isNumeric } from 'common/utils';
-
-@Component({
- selector: 'app-entry-number',
- templateUrl: 'entry-number.html',
- styleUrls: ['entry-number.less'],
-})
-export class EntryNumberComponent implements OnInit {
- /// Value of the password
- @Input() value: string|undefined = '';
- /// Placeholder of the Value
- @Input() placeholder: string|undefined = '';
- /// The element has an error
- @Input() hasError: boolean = false;
- /// event when change the value of the password
- @Output() changeValue: EventEmitter = new EventEmitter();
-
- public notANumber: boolean = false;
- ngOnInit(): void {
- //if (value)
- }
-
- /**
- * When input value change, need update the display and change the internal value.
- * @param newValue New value set on the password
- */
- onChangeValue(newValue: string): void {
- if (newValue === "") {
- this.value = undefined;
- this.notANumber = false;
- this.changeValue.emit(undefined);
- return;
- }
- this.value = newValue;
- this.notANumber = false;
- if (!isNumeric(this.value)) {
- this.notANumber = true;
- }
- const numValue = Number(this.value);
- this.changeValue.emit(numValue);
- }
- onIncrement() {
- this.notANumber = false;
- let newValue = undefined;
- if (!isNumeric(this.value)) {
- newValue = 0;
- } else {
- newValue = Number(this.value) + 1;
- }
- this.value = "" + newValue;
- this.changeValue.emit(newValue);
- }
- onDecrement() {
- this.notANumber = false;
- let newValue = undefined;
- if (!isNumeric(this.value)) {
- newValue = 0;
- } else {
- newValue = Number(this.value) - 1;
- }
- this.value = "" + newValue;
- this.changeValue.emit(newValue);
- }
-}
diff --git a/front/src/common/component/entry-validator/entry-validator.html b/front/src/common/component/entry-validator/entry-validator.html
deleted file mode 100644
index ead991a..0000000
--- a/front/src/common/component/entry-validator/entry-validator.html
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/front/src/common/component/entry-validator/entry-validator.less b/front/src/common/component/entry-validator/entry-validator.less
deleted file mode 100644
index d3c122b..0000000
--- a/front/src/common/component/entry-validator/entry-validator.less
+++ /dev/null
@@ -1,9 +0,0 @@
-input[type='text'] {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- z-index: 5;
-}
diff --git a/front/src/common/component/entry-validator/entry-validator.ts b/front/src/common/component/entry-validator/entry-validator.ts
deleted file mode 100644
index e358fd5..0000000
--- a/front/src/common/component/entry-validator/entry-validator.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-import { isNullOrUndefined } from 'common/utils';
-
-export type ReturnFunction = (a: boolean|string) => void;
-
-export type CheckerParameter = {
- value: string,
- result: ReturnFunction
-}
-
-@Component({
- selector: 'app-entry-validator',
- templateUrl: 'entry-validator.html',
- styleUrls: ['entry-validator.less'],
-})
-export class EntryValidatorComponent implements OnInit {
- /// Value of the password
- @Input() value: string = '';
- /// Placeholder of the Value
- @Input() placeholder: string = '';
- /// The element has an error
- @Output() checker: EventEmitter = new EventEmitter();
- /// event when change the value of the password
- @Output() changeValue: EventEmitter = new EventEmitter();
-
-
- public state: boolean|string = false;
-
- ngOnInit(): void {
- //if (value)
- }
-
- updateStatus(value: boolean|string): void {
- this.state = value
- if (this.state === true) {
- this.changeValue.emit(this.value);
- }
- }
-
- check(newValue: string): void {
- let self = this;
- let lambdaCallBack = (value: boolean|string) => {self.updateStatus(value)};
- this.value = newValue;
- if (isNullOrUndefined(this.checker)) {
- this.changeValue.emit(this.value);
- return;
- }
- this.checker.emit({
- value: newValue,
- result: lambdaCallBack,
- });
- }
-}
-
diff --git a/front/src/common/component/entry/entry.html b/front/src/common/component/entry/entry.html
deleted file mode 100644
index 4b2a2e4..0000000
--- a/front/src/common/component/entry/entry.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/front/src/common/component/entry/entry.less b/front/src/common/component/entry/entry.less
deleted file mode 100644
index d3c122b..0000000
--- a/front/src/common/component/entry/entry.less
+++ /dev/null
@@ -1,9 +0,0 @@
-input[type='text'] {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- z-index: 5;
-}
diff --git a/front/src/common/component/entry/entry.spec.ts b/front/src/common/component/entry/entry.spec.ts
deleted file mode 100644
index 7276a8b..0000000
--- a/front/src/common/component/entry/entry.spec.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
-import { PasswordEntryComponent } from './entry';
-
-describe('PasswordEntryComponent global test', () => {
- let component: PasswordEntryComponent;
- let fixture: ComponentFixture;
- let input: HTMLInputElement;
- let button: HTMLButtonElement;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [PasswordEntryComponent],
- }).compileComponents();
- fixture = TestBed.createComponent(PasswordEntryComponent);
- component = fixture.componentInstance;
- input = fixture.nativeElement.querySelector('div').querySelector('input');
- button = fixture.nativeElement.querySelector('div').querySelector('button');
- });
-
- it('Test mode password (default)', () => {
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- });
-
- it('Test mode text', () => {
- component.passwordVisibility = true;
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- });
-
- it('test click on hide button', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(true);
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- }));
-
- it('Set password', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- let tmpData = 'My beautifull Password';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- tmpData = '';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- }));
-});
diff --git a/front/src/common/component/entry/entry.ts b/front/src/common/component/entry/entry.ts
deleted file mode 100644
index 1425eff..0000000
--- a/front/src/common/component/entry/entry.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-
-@Component({
- selector: 'app-entry',
- templateUrl: 'entry.html',
- styleUrls: ['entry.less'],
-})
-export class EntryComponent implements OnInit {
- /// Value of the password
- @Input() value: string|undefined = '';
- /// Placeholder of the Value
- @Input() placeholder: string|undefined = '';
- /// The element has an error
- @Input() hasError: boolean = false;
- /// event when change the value of the password
- @Output() changeValue: EventEmitter = new EventEmitter();
-
- ngOnInit(): void {
- //if (value)
- }
-
- /**
- * When input value change, need update the display and change the internal value.
- * @param newValue New value set on the password
- */
- onChangeValue(newValue: string): void {
- this.value = newValue;
- this.changeValue.emit(this.value);
- }
-}
diff --git a/front/src/common/component/error-message-state/error-message-state.html b/front/src/common/component/error-message-state/error-message-state.html
deleted file mode 100644
index 5ded0f7..0000000
--- a/front/src/common/component/error-message-state/error-message-state.html
+++ /dev/null
@@ -1 +0,0 @@
-{{value}}
\ No newline at end of file
diff --git a/front/src/common/component/error-message-state/error-message-state.less b/front/src/common/component/error-message-state/error-message-state.less
deleted file mode 100644
index c9b427a..0000000
--- a/front/src/common/component/error-message-state/error-message-state.less
+++ /dev/null
@@ -1,34 +0,0 @@
-
-.error {
- background-color: #f44336;
- position: absolute;
- z-index: 10;
- display: block;
- max-width: 450px;
- padding: 5px 8px;
- margin: 2px 0 0;
- font-size: 16px;
- font-weight: 400;
- border-style: solid;
- border-width: 0px;
- box-sizing: border-box;
-
- &:after,
- &:before {
- bottom: 100%;
- left: 25px;
- border: solid transparent;
- content: ' ';
- height: 0;
- width: 0;
- position: absolute;
- pointer-events: none;
- }
-
- &:after {
- border-bottom-color: #f44336;
- border-width: 10px;
- margin-left: -10px;
- }
-}
-
diff --git a/front/src/common/component/error-message-state/error-message-state.ts b/front/src/common/component/error-message-state/error-message-state.ts
deleted file mode 100644
index 6a4f7e3..0000000
--- a/front/src/common/component/error-message-state/error-message-state.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, Input } from '@angular/core';
-
-@Component({
- selector: 'app-error-message-state',
- templateUrl: 'error-message-state.html',
- styleUrls: ['error-message-state.less'],
-})
-export class ErrorMessageStateComponent {
- /// Value of the password
- @Input() value: boolean|string = false;
-
-}
diff --git a/front/src/common/component/error/error.html b/front/src/common/component/error/error.html
deleted file mode 100644
index 27d6bed..0000000
--- a/front/src/common/component/error/error.html
+++ /dev/null
@@ -1 +0,0 @@
-error works!
diff --git a/front/src/common/component/error/error.less b/front/src/common/component/error/error.less
deleted file mode 100644
index e69de29..0000000
diff --git a/front/src/common/component/error/error.ts b/front/src/common/component/error/error.ts
deleted file mode 100644
index 75901eb..0000000
--- a/front/src/common/component/error/error.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-
-import { Component, OnInit } from '@angular/core';
-
-@Component({
- selector: 'app-error',
- templateUrl: './error.html',
- styleUrls: ['./error.less'],
-})
-export class ErrorComponent implements OnInit {
- constructor() {}
-
- ngOnInit() {}
-}
diff --git a/front/src/common/component/index.ts b/front/src/common/component/index.ts
deleted file mode 100644
index 31ee500..0000000
--- a/front/src/common/component/index.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { AsyncActionState, AsyncActionStatusComponent } from './async-action-status/async-status-component';
-import { BurgerPropertyComponent } from './burger-property/burger-property';
-import { CheckboxComponent } from './checkbox/checkbox';
-import { EntryNumberComponent } from './entry-number/entry-number';
-import { EntryValidatorComponent } from './entry-validator/entry-validator';
-import { EntryComponent } from './entry/entry';
-import { ErrorMessageStateComponent } from './error-message-state/error-message-state';
-import { ErrorComponent } from './error/error';
-import { PasswordEntryComponent } from './password-entry/password-entry';
-import { PopInComponent } from './popin/popin';
-import { RenderFormComponent } from './render-settings/render-form';
-import { RenderSettingsComponent } from './render-settings/render-settings';
-import { SpinerComponent } from './spiner/spiner';
-import { TopMenuComponent } from './top-menu/top-menu';
-import { UploadFileComponent } from './upload-file/upload-file';
-
-export { BurgerPropertyComponent, EntryNumberComponent, CheckboxComponent, RenderFormComponent, RenderSettingsComponent, ErrorMessageStateComponent, AsyncActionState, AsyncActionStatusComponent, EntryValidatorComponent, PopInComponent, TopMenuComponent, UploadFileComponent, ErrorComponent, SpinerComponent, PasswordEntryComponent, EntryComponent };
diff --git a/front/src/common/component/password-entry/password-entry.html b/front/src/common/component/password-entry/password-entry.html
deleted file mode 100644
index c7c41a5..0000000
--- a/front/src/common/component/password-entry/password-entry.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/front/src/common/component/password-entry/password-entry.less b/front/src/common/component/password-entry/password-entry.less
deleted file mode 100644
index 9f54357..0000000
--- a/front/src/common/component/password-entry/password-entry.less
+++ /dev/null
@@ -1,25 +0,0 @@
-.eye-button {
- margin-left: -44px;
- margin-top: 15px;
- float: right;
- position: relative;
- display: block;
- border: none;
- z-index: 15;
- background: none;
- padding: 4 1 13 1;
- :hover {
- background: none;
- }
-}
-
-input[type='text'],
-input[type='password'] {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- z-index: 5;
-}
diff --git a/front/src/common/component/password-entry/password-entry.spec.ts b/front/src/common/component/password-entry/password-entry.spec.ts
deleted file mode 100644
index 975c381..0000000
--- a/front/src/common/component/password-entry/password-entry.spec.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
-import { PasswordEntryComponent } from './password-entry';
-
-describe('PasswordEntryComponent global test', () => {
- let component: PasswordEntryComponent;
- let fixture: ComponentFixture;
- let input: HTMLInputElement;
- let button: HTMLButtonElement;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [PasswordEntryComponent],
- }).compileComponents();
- fixture = TestBed.createComponent(PasswordEntryComponent);
- component = fixture.componentInstance;
- input = fixture.nativeElement.querySelector('div').querySelector('input');
- button = fixture.nativeElement.querySelector('div').querySelector('button');
- });
-
- it('Test mode password (default)', () => {
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- });
-
- it('Test mode text', () => {
- component.passwordVisibility = true;
- fixture.detectChanges();
- expect(input.textContent).toEqual('');
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- });
-
- it('test click on hide button', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(true);
- expect(button.textContent).toEqual('visibility');
- expect(input.type).toEqual('text');
- button.click();
- tick();
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- expect(button.textContent).toEqual('visibility_off');
- expect(input.type).toEqual('password');
- }));
-
- it('Set password', fakeAsync(() => {
- fixture.detectChanges();
- expect(component.passwordVisibility).toEqual(false);
- let tmpData = 'My beautifull Password';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- tmpData = '';
- input.value = tmpData;
- input.dispatchEvent(new Event('input'));
- fixture.detectChanges();
- expect(input.textContent).toEqual(tmpData);
- expect(component.value).toEqual(tmpData);
- }));
-});
diff --git a/front/src/common/component/password-entry/password-entry.ts b/front/src/common/component/password-entry/password-entry.ts
deleted file mode 100644
index 68218a7..0000000
--- a/front/src/common/component/password-entry/password-entry.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2018, Edouard DUPIN, all right reserved
- * @license PROPRIETARY (see license file)
- */
-import { Component, EventEmitter, Input, Output } from '@angular/core';
-
-@Component({
- selector: 'app-password-entry',
- templateUrl: 'password-entry.html',
- styleUrls: ['password-entry.less'],
-})
-export class PasswordEntryComponent {
- /// Value of the password
- @Input() value: string = '';
- /// Placeholder of the Value
- @Input() placeholder: string = 'Write password.';
- /// The element has an error
- @Input() hasError: boolean = false;
- /// event when change the value of the password
- @Output() changeValue: EventEmitter = new EventEmitter();
- /// Local value of the password viwibility
- public passwordVisibility: boolean = false;
- /**
- * Ov visibility request change (toggle the visibility)
- */
- onVisibility(): void {
- this.passwordVisibility = !this.passwordVisibility;
- }
-
- /**
- * When input value change, need update the display and change the internal value.
- * @param newValue New value set on the password
- */
- onChangeValue(newValue: string): void {
- this.value = newValue;
- this.changeValue.emit(this.value);
- }
-}
diff --git a/front/src/common/component/popin/popin.html b/front/src/common/component/popin/popin.html
deleted file mode 100644
index 9bc2b22..0000000
--- a/front/src/common/component/popin/popin.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
diff --git a/front/src/common/component/popin/popin.less b/front/src/common/component/popin/popin.less
deleted file mode 100644
index f5d5352..0000000
--- a/front/src/common/component/popin/popin.less
+++ /dev/null
@@ -1,87 +0,0 @@
-/* popin STYLES
--------------------------------*/
-
-/* popins are hidden by default */
-.popin {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 800;
- .small {
- top: 15%;
- right: 35%;
- bottom: 15%;
- left: 35%;
- }
- .medium {
- top: 15%;
- right: 25%;
- bottom: 15%;
- left: 25%;
- }
- .big {
- top: 15%;
- right: 15%;
- bottom: 15%;
- left: 15%;
- }
- .element {
- /* popin container fixed across whole screen */
- position: fixed;
- display: block;
- /* z-index must be higher than .popin-background */
- z-index: 1000;
- /* enables scrolling for tall popins */
- overflow: auto;
-
- .header {
- padding: 10px;
- //display: block;
- background: #88f;
- //margin: 40px;
- //margin: auto;
- height: 40px;
- line-height: 36px;
- .close {
- display: block;
- float: right;
- }
- }
-
- .body {
- //display: block;
- padding: 20px;
- background: #fff;
- /* margin exposes part of the popin background */
- //margin: 40px;
- //margin: auto;
- }
- .footer {
- padding: 10px;
- //display: block;
- background: #888;
- //margin: 40px;
- //margin: auto;
- height: 40px;
- line-height: 36px;
- .action {
- padding: 0 10px;
- display: block;
- float: right;
- }
- }
- }
- // Pop in mush have a background over all the windows ...
- .background {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: #000;
- opacity: 0.85;
- z-index: 900;
- }
-}
diff --git a/front/src/common/component/popin/popin.ts b/front/src/common/component/popin/popin.ts
deleted file mode 100644
index 1dd3c80..0000000
--- a/front/src/common/component/popin/popin.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-/** @file
- * @author Edouard DUPIN
- * @copyright 2020, Edouard DUPIN, all right reserved
- * @license MPL-2 (see license file)
- */
-
-import { Component, Input, Output, OnInit, OnDestroy, EventEmitter } from '@angular/core';
-import { PopInService } from 'common/service';
-
-@Component({
- // moduleId: module.id.toString(),
- selector: 'app-popin',
- templateUrl: './popin.html',
- styleUrls: ['./popin.less'],
-})
-export class PopInComponent implements OnInit, OnDestroy {
- @Input() id: string;
- @Input() popTitle: string = 'No title';
- @Input() closeTopRight: any = 'false';
- @Input() popSize: string = 'medium';
-
- @Output() callback: EventEmitter = new EventEmitter();
- @Input() closeTitle: any = null;
- @Input() validateTitle: any = null;
- @Input() saveTitle: any = null;
- @Input() otherTitle: any = null;
-
- public displayPopIn: boolean = false;
-
- constructor(private popInService: PopInService) {}
- ngOnInit(): void {
- // ensure id attribute exists
- if (!this.id) {
- console.error('popin must have an id');
- return;
- }
- // move element to bottom of page (just before