From eff0068c580766ee1c9d83554e812f925c70df92 Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Mon, 8 Apr 2024 16:40:47 +0200 Subject: [PATCH] apply lint --- .../occhab-map-list.component.html | 4 +- .../delete-modal/delete-modal.component.html | 32 +- .../destinations/destinations.component.html | 14 +- .../import_errors.component.html | 211 +++-- .../import_errors.component.scss | 3 +- .../import_list/import-list.component.html | 4 +- .../content-mapping-step.component.html | 770 ++++++++++-------- .../content-mapping-step.component.scss | 2 +- .../decode-file-step.component.html | 233 +++--- .../decode-file-step.component.scss | 10 +- .../fields-mapping-step.component.html | 123 ++- .../fields-mapping-step.component.scss | 9 +- .../footer-stepper.component.html | 38 +- .../import-step/import-step.component.html | 433 +++++----- .../import-step/import-step.component.scss | 5 +- .../stepper/stepper.component.html | 40 +- .../stepper/stepper.component.scss | 24 +- .../upload-file-step.component.html | 170 ++-- .../upload-file-step.component.scss | 8 +- .../import_report.component.html | 690 ++++++++++------ .../import_report.component.scss | 4 +- .../import-modal-destination.component.html | 95 +-- .../synthese-list.component.html | 4 +- .../synthese-list.component.scss | 3 +- 24 files changed, 1670 insertions(+), 1259 deletions(-) diff --git a/contrib/gn_module_occhab/frontend/app/components/occhab-map-list/occhab-map-list.component.html b/contrib/gn_module_occhab/frontend/app/components/occhab-map-list/occhab-map-list.component.html index 173e574be7..f5998d8512 100644 --- a/contrib/gn_module_occhab/frontend/app/components/occhab-map-list/occhab-map-list.component.html +++ b/contrib/gn_module_occhab/frontend/app/components/occhab-map-list/occhab-map-list.component.html @@ -217,8 +217,8 @@ let-row="row" maxWidth="50" > - - {{ row.date_min | date : 'dd-MM-yyyy' }} + + {{ row.date_min | date: 'dd-MM-yyyy' }} diff --git a/frontend/src/app/modules/imports/components/delete-modal/delete-modal.component.html b/frontend/src/app/modules/imports/components/delete-modal/delete-modal.component.html index 1c637ed8c4..5c803f46c5 100644 --- a/frontend/src/app/modules/imports/components/delete-modal/delete-modal.component.html +++ b/frontend/src/app/modules/imports/components/delete-modal/delete-modal.component.html @@ -1,31 +1,35 @@ - - - diff --git a/frontend/src/app/modules/imports/components/destinations/destinations.component.html b/frontend/src/app/modules/imports/components/destinations/destinations.component.html index 739097f7fd..0a47581ac9 100644 --- a/frontend/src/app/modules/imports/components/destinations/destinations.component.html +++ b/frontend/src/app/modules/imports/components/destinations/destinations.component.html @@ -1,4 +1,4 @@ - {{ label }} +{{ label }} - -
+ +
{{ item.label }}
diff --git a/frontend/src/app/modules/imports/components/import_errors/import_errors.component.html b/frontend/src/app/modules/imports/components/import_errors/import_errors.component.html index d3a803556a..46fb3f07b4 100644 --- a/frontend/src/app/modules/imports/components/import_errors/import_errors.component.html +++ b/frontend/src/app/modules/imports/components/import_errors/import_errors.component.html @@ -1,81 +1,136 @@
-
-
- Rapport d'erreur(s) +
+
+ Rapport d'erreur(s) +
+
+

Description de l'import

+
+
+

+ Nom du fichier : + {{ importData.full_file_name }} +

+

+ Jeu de données : + {{ importData.dataset.dataset_name }} +

+

+ Date de soumission de l'import : + {{ importData.date_create_import | date: 'dd/MM/yyyy' }} +

+

+ Auteur(s) : + {{ importData.authors_name }} +

+

+ Nombre de lignes : + {{ importData.source_count }} +

-
-

- Description de l'import -

-
-
-

Nom du fichier : {{importData.full_file_name}}

-

Jeu de données : {{importData.dataset.dataset_name}}

-

Date de soumission de l'import : {{importData.date_create_import | date:'dd/MM/yyyy'}}

-

Auteur(s) : {{importData.authors_name}}

-

Nombre de lignes : {{importData.source_count}}

-
-
-

SRID : {{importData.srid}}

-

Encodage : {{importData.encoding}}

-

Format : {{importData.format_source_file}}

-
-
+
+

+ SRID : + {{ importData.srid }} +

+

+ Encodage : + {{ importData.encoding }} +

+

+ Format : + {{ importData.format_source_file }} +

+
+
-

Erreurs

-
- -

La soumission comporte {{importErrors.length}} erreur(s)

- - - - - - - - - - - - - - - - - - - - - -
Type d'erreur Champ Description erreurNombre d'erreur(s)Numéro des lignes en erreur {{ "Import.Report.Errors.Entity" | translate }}
{{error.type.name}} {{error.column}} {{error.type.description}}
{{error.comment}}
{{error.rows.length || ''}} {{error.rows.join(', ')}} {{error.entity ? error.entity.label : ""}}
-
-

Alertes

-
- -

La soumission comporte {{importWarnings.length}} alertes(s)

- - - - - - - - - - - - - - - - - - - - - -
Type d'alert Champ Description alertNombre d'erreur(s)Numéro des lignes en erreur {{ "Import.Report.Errors.Entity" | translate }}
{{warning.type.name}} {{warning.column}} {{warning.type.description}}
{{warning.comment}}
{{warning.rows.length || ''}} {{warning.rows.join(', ')}} {{error.entity ? error.entity.label : ""}}
-
-
-
-
+

+ Erreurs +

+
+ +

+ La soumission comporte + {{ importErrors.length }} + erreur(s) +

+ + + + + + + + + + + + + + + + + + + + + +
Type d'erreurChampDescription erreurNombre d'erreur(s)Numéro des lignes en erreur{{ 'Import.Report.Errors.Entity' | translate }}
{{ error.type.name }}{{ error.column }} + {{ error.type.description }} + +
+ {{ error.comment }} +
+
{{ error.rows.length || '' }}{{ error.rows.join(', ') }}{{ error.entity ? error.entity.label : '' }}
+
+

+ Alertes +

+
+ +

+ La soumission comporte + {{ importWarnings.length }} + alertes(s) +

+ + + + + + + + + + + + + + + + + + + + + +
Type d'alertChampDescription alertNombre d'erreur(s)Numéro des lignes en erreur{{ 'Import.Report.Errors.Entity' | translate }}
{{ warning.type.name }}{{ warning.column }} + {{ warning.type.description }} + +
+ {{ warning.comment }} +
+
{{ warning.rows.length || '' }}{{ warning.rows.join(', ') }}{{ error.entity ? error.entity.label : '' }}
+
+
+ +
+ +
+ diff --git a/frontend/src/app/modules/imports/components/import_errors/import_errors.component.scss b/frontend/src/app/modules/imports/components/import_errors/import_errors.component.scss index 688959748e..51b92cd50c 100644 --- a/frontend/src/app/modules/imports/components/import_errors/import_errors.component.scss +++ b/frontend/src/app/modules/imports/components/import_errors/import_errors.component.scss @@ -1,4 +1,3 @@ .card-body p { - margin-bottom: 5px; + margin-bottom: 5px; } - diff --git a/frontend/src/app/modules/imports/components/import_list/import-list.component.html b/frontend/src/app/modules/imports/components/import_list/import-list.component.html index 9ec95f93d1..c293ca0d11 100644 --- a/frontend/src/app/modules/imports/components/import_list/import-list.component.html +++ b/frontend/src/app/modules/imports/components/import_list/import-list.component.html @@ -11,8 +11,8 @@
Liste des imports
'Import.Destinations' | translate | lowercase }}" [parentFormControl]="selectDestinationForm" - (onChange) = "resetPage()" - (onClear) = "resetPage()" + (onChange)="resetPage()" + (onClear)="resetPage()" class="flex-fill pr-1" >
diff --git a/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.html b/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.html index 8d754fdc44..a87aabab09 100644 --- a/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.html +++ b/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.html @@ -1,59 +1,55 @@ -
-
-
Correspondance des nomenclatures
+
+
+
Correspondance des nomenclatures
+
+
+ +
+
+
+ Choix du modèle d'import +
+ +
-
- - -
-
- - Choix du modèle d'import - -
- -
-
-
-
- - -
- -
-
- - - -
-
-
- L'ensemble des valeurs du fichier a été automatiquement associé aux nomenclatures. -
-
- Une seule valeur du fichier a été automatiquement associée aux valeurs des nomenclatures. -
- {{unmappedFields.size}} restent à associer manuellement. -
-
- {{mappedFields.size}} champs du fichier ont été automatiquement associés aux champs du modèle - d'import.
- {{unmappedFields.size}} restent à associer manuellement. -
-
- Aucune valeur du fichier n'a pu être associée aux valeurs des nomenclatures. -
-
-
- - - -
-
- - -
-
-
-
-
- {{targetField.value.nomenclature_type.label_default}} - -
- keyboard_arrow_down - keyboard_arrow_up -
-
-
-
- -
- -
-
-
- -
-
-
-
- - -
-
-
- -
- - -
- - - - - + +
+ + +
+ +
+
+ +
+ +
+ + + + + + Ne pas enregistrer + + + +
+ - + + + + + + + + + + diff --git a/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.scss b/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.scss index e7b1193f71..010f540c94 100644 --- a/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.scss +++ b/frontend/src/app/modules/imports/components/import_process/content-mapping-step/content-mapping-step.component.scss @@ -67,7 +67,7 @@ tr:nth-child(even) { /* Transparent Overlay */ .spinner:before { - content: ""; + content: ''; display: block; position: fixed; top: 0; diff --git a/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.html b/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.html index 71ceb46ff1..c970440d25 100644 --- a/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.html +++ b/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.html @@ -1,123 +1,120 @@ -
-
-
Configuration du fichier
-
-
-
- -
- - -
Sélectionnez un encodage
-
- -
- - -
Sélectionnez un format
-
- -
- - -
-
- - -
Sélectionnez un SRID
-
-
- -
- - -
-
+
+
+
Configuration du fichier
+
+
+
+ +
+ + +
Sélectionnez un encodage
+
+ +
+ + +
Sélectionnez un format
+
+ +
+ + +
+
+ + +
Sélectionnez un SRID
+
+
+ +
+ +
+
+
- - +
diff --git a/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.scss b/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.scss index 306a01e4a1..9b5d1d7cf7 100644 --- a/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.scss +++ b/frontend/src/app/modules/imports/components/import_process/decode-file-step/decode-file-step.component.scss @@ -62,11 +62,9 @@ tr:nth-child(even) { cursor: pointer; } - - .error-file { border-left: 5px solid #ff0000 !important; - border-color: #ff0000 !important; + border-color: #ff0000 !important; } .navigate-btn { @@ -76,9 +74,9 @@ tr:nth-child(even) { } .card-body { - padding: 30px 40px + padding: 30px 40px; } .file-validation { - margin-top: 40px -} \ No newline at end of file + margin-top: 40px; +} diff --git a/frontend/src/app/modules/imports/components/import_process/fields-mapping-step/fields-mapping-step.component.html b/frontend/src/app/modules/imports/components/import_process/fields-mapping-step/fields-mapping-step.component.html index 49c8387bcf..ed6281601f 100644 --- a/frontend/src/app/modules/imports/components/import_process/fields-mapping-step/fields-mapping-step.component.html +++ b/frontend/src/app/modules/imports/components/import_process/fields-mapping-step/fields-mapping-step.component.html @@ -2,11 +2,17 @@
Correspondance des champs avec le modèle
-
+
-
+
Choix d’un modèle d'import prédéfini Correspondance des champs avec le modèle [compareWith]="areMappingFieldEqual" [disableControl]="!userFieldMappings.length" > - +
{{ item.label }} @@ -161,7 +172,10 @@
Correspondance des champs avec le modèle
du fichier d’import ne sont actuellement associés à aucun champs cible et seront donc ignorés. -
+
  • {{ sourceField }}
@@ -171,30 +185,43 @@
Correspondance des champs avec le modèle
- + {{ entitythemes.entity.label }} -
+
{{ themefields.theme.fr_label_theme }}
-
-
- {{ field.fr_label }} : +
+
+ + {{ field.fr_label }} : Correspondance des champs avec le modèle {{ mappingFormControl.controls[field.name_field].getError('conflict') }}
-
-

+

+

Attention les identifiants SINP ne seront pas générés

-
- - +
+
- +