From d93661b4d1c9f9c8c75555a6d3353f6383c8aae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20Fran=C3=A7ois?= Date: Tue, 28 Jan 2025 15:43:01 +0100 Subject: [PATCH] :broom: clean to follow eslint rules --- .../actions-on-users-role-in-organization.gjs | 4 +- .../access/anonymize-gar-import.gjs | 2 +- .../access/oidc-providers-import.gjs | 2 +- .../certification-scoring-configuration.gjs | 2 +- .../competence-scoring-configuration.gjs | 2 +- .../flash-algorithm-configuration/index.gjs | 2 +- .../sco-whitelist-configuration.gjs | 4 +- .../add-organization-features-in-batch.gjs | 2 +- .../common/learning-content.gjs | 4 +- .../deployment/organization-tags-import.gjs | 2 +- .../update-organizations-in-batch.gjs | 2 +- .../certifications/candidate-edit-modal.gjs | 2 +- .../target-profile-selector/index.gjs | 2 +- .../organizations/places/delete-modal.gjs | 2 +- .../target-profiles/target-profile.gjs | 2 +- .../user-detail-personal-information.gjs | 2 +- .../campaigns/campaign/participations.js | 2 +- .../certification-centers/get/invitations.js | 2 +- .../certification-centers/get/team.js | 4 +- .../certification-centers/new.js | 2 +- .../certification/informations.js | 10 +- .../certification/neutralization.js | 4 +- .../organizations/get/invitations.js | 2 +- .../organizations/get/places/new.js | 2 +- .../authenticated/organizations/get/team.js | 2 +- .../authenticated/organizations/new.js | 2 +- .../sessions/session/informations.js | 10 +- .../target-profile/organizations.js | 2 +- .../authenticated/trainings/training.js | 2 +- .../trainings/training/triggers/edit.js | 2 +- .../users/get/campaign-participations.js | 2 +- .../get/certification-center-memberships.js | 4 +- .../authenticated/organizations/list.js | 2 +- .../routes/authenticated/sessions/list/all.js | 2 +- .../target-profile/organizations.js | 2 +- admin/app/routes/authenticated/users/list.js | 2 +- admin/app/services/current-user.js | 2 +- admin/translations/en.json | 114 ++++++++--------- admin/translations/fr.json | 120 +++++++++--------- 39 files changed, 168 insertions(+), 168 deletions(-) diff --git a/admin/app/components/actions-on-users-role-in-organization.gjs b/admin/app/components/actions-on-users-role-in-organization.gjs index d1524b2ca4e..1be0df961ad 100644 --- a/admin/app/components/actions-on-users-role-in-organization.gjs +++ b/admin/app/components/actions-on-users-role-in-organization.gjs @@ -38,7 +38,7 @@ export default class ActionsOnUsersRoleInOrganization extends Component { this.args.organizationMembership.organizationRole = this.selectedNewRole; await this.args.organizationMembership.save(); this.pixToast.sendSuccessNotification({ message: 'Le rôle du membre a été mis à jour avec succès.' }); - } catch (e) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue lors de la mise à jour du rôle du membre.', }); @@ -69,7 +69,7 @@ export default class ActionsOnUsersRoleInOrganization extends Component { try { await this.args.organizationMembership.destroyRecord({ adapterOptions: { disable: true } }); this.pixToast.sendSuccessNotification({ message: 'Le membre a été désactivé avec succès.' }); - } catch (e) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue lors de la désactivation du membre.' }); } finally { this.displayConfirm = false; diff --git a/admin/app/components/administration/access/anonymize-gar-import.gjs b/admin/app/components/administration/access/anonymize-gar-import.gjs index d4eb37bc611..36d6f2a92a6 100644 --- a/admin/app/components/administration/access/anonymize-gar-import.gjs +++ b/admin/app/components/administration/access/anonymize-gar-import.gjs @@ -63,7 +63,7 @@ export default class AnonymizeGarImport extends Component { } this.errorResponseHandler.notify(await response.json()); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('common.notifications.generic-error') }); } finally { this.isLoading = false; diff --git a/admin/app/components/administration/access/oidc-providers-import.gjs b/admin/app/components/administration/access/oidc-providers-import.gjs index 2008d5d5d49..e2997f56366 100644 --- a/admin/app/components/administration/access/oidc-providers-import.gjs +++ b/admin/app/components/administration/access/oidc-providers-import.gjs @@ -44,7 +44,7 @@ export default class OidcProvidersImport extends Component { jsonResponse.errors.forEach((error) => { this.pixToast.sendErrorNotification({ message: error.detail }); }); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('common.notifications.generic-error') }); } finally { this.isLoading = false; diff --git a/admin/app/components/administration/certification/certification-scoring-configuration.gjs b/admin/app/components/administration/certification/certification-scoring-configuration.gjs index a055a1bc520..824f77f07d9 100644 --- a/admin/app/components/administration/certification/certification-scoring-configuration.gjs +++ b/admin/app/components/administration/certification/certification-scoring-configuration.gjs @@ -25,7 +25,7 @@ export default class CertificationScoringConfiguration extends Component { try { await adapter.updateCertificationScoringConfiguration(this.certificationScoringConfiguration); this.pixToast.sendSuccessNotification({ message: 'Configuration enregistrée' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "La config n'a pas pu être ajoutée" }); } } diff --git a/admin/app/components/administration/certification/competence-scoring-configuration.gjs b/admin/app/components/administration/certification/competence-scoring-configuration.gjs index 6fabeb216ac..4ee6288f310 100644 --- a/admin/app/components/administration/certification/competence-scoring-configuration.gjs +++ b/admin/app/components/administration/certification/competence-scoring-configuration.gjs @@ -25,7 +25,7 @@ export default class CompetenceScoringConfiguration extends Component { try { await adapter.updateCompetenceScoringConfiguration(this.competenceScoringConfiguration); this.pixToast.sendSuccessNotification({ message: 'Configuration enregistrée' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "La config n'a pas pu être ajoutée" }); } } diff --git a/admin/app/components/administration/certification/flash-algorithm-configuration/index.gjs b/admin/app/components/administration/certification/flash-algorithm-configuration/index.gjs index cba75547d4a..a6bee5f1ba1 100644 --- a/admin/app/components/administration/certification/flash-algorithm-configuration/index.gjs +++ b/admin/app/components/administration/certification/flash-algorithm-configuration/index.gjs @@ -25,7 +25,7 @@ export default class FlashAlgorithmConfiguration extends Component { try { await adapter.createRecord(this.form); this.pixToast.sendSuccessNotification({ message: 'La configuration a été créée' }); - } catch (errorResponse) { + } catch { this.pixToast.sendErrorNotification({ message: "La configuration n'a pu être créée" }); } } diff --git a/admin/app/components/administration/certification/sco-whitelist-configuration.gjs b/admin/app/components/administration/certification/sco-whitelist-configuration.gjs index 15ca866b226..2cc40976020 100644 --- a/admin/app/components/administration/certification/sco-whitelist-configuration.gjs +++ b/admin/app/components/administration/certification/sco-whitelist-configuration.gjs @@ -45,7 +45,7 @@ export default class ScoWhitelistConfiguration extends Component { message: this.intl.t(`pages.administration.certification.sco-whitelist.import.${errorKey}`), }); } - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('pages.administration.certification.sco-whitelist.import.error'), }); @@ -60,7 +60,7 @@ export default class ScoWhitelistConfiguration extends Component { const fileName = 'sco-whitelist.csv'; const token = this.session.data.authenticated.access_token; await this.fileSaver.save({ url, fileName, token }); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('pages.administration.certification.sco-whitelist.export.error'), }); diff --git a/admin/app/components/administration/common/add-organization-features-in-batch.gjs b/admin/app/components/administration/common/add-organization-features-in-batch.gjs index 870a89ac468..7aba1045d58 100644 --- a/admin/app/components/administration/common/add-organization-features-in-batch.gjs +++ b/admin/app/components/administration/common/add-organization-features-in-batch.gjs @@ -37,7 +37,7 @@ export default class AddOrganizationFeaturesInBatch extends Component { } else { this.errorResponseHandler.notify(await response.json()); } - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('common.notifications.generic-error') }); } finally { this.isLoading = false; diff --git a/admin/app/components/administration/common/learning-content.gjs b/admin/app/components/administration/common/learning-content.gjs index 533518e0e9c..8bc8111075a 100644 --- a/admin/app/components/administration/common/learning-content.gjs +++ b/admin/app/components/administration/common/learning-content.gjs @@ -18,7 +18,7 @@ export default class LearningContent extends Component { this.pixToast.sendSuccessNotification({ message: 'La demande de rechargement du cache a bien été prise en compte.', }); - } catch (_) { + } catch { const genericErrorMessage = this.intl.t('common.notifications.generic-error'); this.pixToast.sendErrorNotification({ message: genericErrorMessage }); } @@ -31,7 +31,7 @@ export default class LearningContent extends Component { this.pixToast.sendSuccessNotification({ message: 'La création de la version du référentiel et le rechargement du cache a bien été prise en compte.', }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/components/administration/deployment/organization-tags-import.gjs b/admin/app/components/administration/deployment/organization-tags-import.gjs index b6181ab7530..dc71a85437f 100644 --- a/admin/app/components/administration/deployment/organization-tags-import.gjs +++ b/admin/app/components/administration/deployment/organization-tags-import.gjs @@ -50,7 +50,7 @@ export default class OrganizationTagsImport extends Component { this.errorResponseHandler.notify(json); } - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('common.notifications.generic-error') }); } finally { this.isLoading = false; diff --git a/admin/app/components/administration/deployment/update-organizations-in-batch.gjs b/admin/app/components/administration/deployment/update-organizations-in-batch.gjs index b94826170bd..9baa1c1a339 100644 --- a/admin/app/components/administration/deployment/update-organizations-in-batch.gjs +++ b/admin/app/components/administration/deployment/update-organizations-in-batch.gjs @@ -71,7 +71,7 @@ export default class UpdateOrganizationsInBatch extends Component { } this.errorResponseHandler.notify(await response.json()); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('common.notifications.generic-error') }); } finally { this.isLoading = false; diff --git a/admin/app/components/certifications/candidate-edit-modal.gjs b/admin/app/components/certifications/candidate-edit-modal.gjs index 47e110ee8c8..adf8310fe51 100644 --- a/admin/app/components/certifications/candidate-edit-modal.gjs +++ b/admin/app/components/certifications/candidate-edit-modal.gjs @@ -122,7 +122,7 @@ export default class CandidateEditModal extends Component { try { await this.args.onFormSubmit(); this._initForm(); - } catch (_) { + } catch { this.args.candidate.updateInformation(informationBeforeUpdate); } } diff --git a/admin/app/components/complementary-certifications/attach-badges/target-profile-selector/index.gjs b/admin/app/components/complementary-certifications/attach-badges/target-profile-selector/index.gjs index d4404609d28..cb128f96c2c 100644 --- a/admin/app/components/complementary-certifications/attach-badges/target-profile-selector/index.gjs +++ b/admin/app/components/complementary-certifications/attach-badges/target-profile-selector/index.gjs @@ -42,7 +42,7 @@ export default class TargetProfileSelectorComponent extends Component { label: `${attachableTargetProfile.id} - ${attachableTargetProfile.name}`, value: attachableTargetProfile, })); - } catch (e) { + } catch { this.args.onError('Une erreur est survenue lors de la recherche de profils cibles.'); } finally { this.isAttachableTargetProfilesLoading = false; diff --git a/admin/app/components/organizations/places/delete-modal.gjs b/admin/app/components/organizations/places/delete-modal.gjs index 7654722c121..7dd3fe3aae3 100644 --- a/admin/app/components/organizations/places/delete-modal.gjs +++ b/admin/app/components/organizations/places/delete-modal.gjs @@ -22,7 +22,7 @@ export default class DeleteModal extends Component { message: `Le lot de place ${this.args.organizationPlacesLot.reference} a été supprimé.`, }); this.args.refreshModel(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: `Le lot de place ${this.args.organizationPlacesLot.reference} n'a pas été supprimé.`, }); diff --git a/admin/app/components/target-profiles/target-profile.gjs b/admin/app/components/target-profiles/target-profile.gjs index b9ad6ce95e3..76f23de5b6f 100644 --- a/admin/app/components/target-profiles/target-profile.gjs +++ b/admin/app/components/target-profiles/target-profile.gjs @@ -93,7 +93,7 @@ export default class TargetProfile extends Component { await this.args.model.save({ adapterOptions: { markTargetProfileAsSimplifiedAccess: true } }); this.pixToast.sendSuccessNotification({ message: 'Ce profil cible a bien été marqué comme accès simplifié.' }); - } catch (responseError) { + } catch { const genericErrorMessage = this.intl.t('common.notifications.generic-error'); this.pixToast.sendErrorNotification({ message: genericErrorMessage }); } diff --git a/admin/app/components/users/user-detail-personal-information.gjs b/admin/app/components/users/user-detail-personal-information.gjs index 29cd0b58df6..247860d6d5a 100644 --- a/admin/app/components/users/user-detail-personal-information.gjs +++ b/admin/app/components/users/user-detail-personal-information.gjs @@ -28,7 +28,7 @@ export default class UserDetailPersonalInformationComponent extends Component { try { await this.organizationLearnerToDissociate.destroyRecord(); this.pixToast.sendSuccessNotification({ message: DISSOCIATE_SUCCESS_NOTIFICATION_MESSAGE }); - } catch (response) { + } catch { const errorMessage = 'Une erreur est survenue !'; this.pixToast.sendErrorNotification({ message: errorMessage }); } finally { diff --git a/admin/app/controllers/authenticated/campaigns/campaign/participations.js b/admin/app/controllers/authenticated/campaigns/campaign/participations.js index 9f24be0ff2d..9c633a14276 100644 --- a/admin/app/controllers/authenticated/campaigns/campaign/participations.js +++ b/admin/app/controllers/authenticated/campaigns/campaign/participations.js @@ -18,7 +18,7 @@ export default class CampaignParticipationsController extends Controller { try { await campaignParticipation.save(); this.pixToast.sendSuccessNotification({ message: "L'id externe du participant été mis à jour avec succès." }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "Une erreur est survenue lors de la mise à jour de l'id externe du participant.", }); diff --git a/admin/app/controllers/authenticated/certification-centers/get/invitations.js b/admin/app/controllers/authenticated/certification-centers/get/invitations.js index 01d7fa5d5b2..2607515fde0 100644 --- a/admin/app/controllers/authenticated/certification-centers/get/invitations.js +++ b/admin/app/controllers/authenticated/certification-centers/get/invitations.js @@ -73,7 +73,7 @@ export default class AuthenticatedCertificationCentersGetInvitationsController e }, }); this.pixToast.sendSuccessNotification({ message: 'Cette invitation a bien été annulée.' }); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur s’est produite, veuillez réessayer.' }); } } diff --git a/admin/app/controllers/authenticated/certification-centers/get/team.js b/admin/app/controllers/authenticated/certification-centers/get/team.js index e47c1c6d0c0..4d6457b3395 100644 --- a/admin/app/controllers/authenticated/certification-centers/get/team.js +++ b/admin/app/controllers/authenticated/certification-centers/get/team.js @@ -65,7 +65,7 @@ export default class AuthenticatedCertificationCentersGetTeamController extends certificationCenterMembership.deleteRecord(); await certificationCenterMembership.save(); this.pixToast.sendSuccessNotification({ message: 'Le membre a correctement été désactivé.' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "Une erreur est survenue, le membre n'a pas été désactivé." }); } } @@ -79,7 +79,7 @@ export default class AuthenticatedCertificationCentersGetTeamController extends 'pages.certification-centers.notifications.success.update-certification-center-membership-role', ), }); - } catch (_) { + } catch { certificationCenterMembership.rollbackAttributes(); this.pixToast.sendErrorNotification({ message: this.intl.t( diff --git a/admin/app/controllers/authenticated/certification-centers/new.js b/admin/app/controllers/authenticated/certification-centers/new.js index b2492381520..3585073649c 100644 --- a/admin/app/controllers/authenticated/certification-centers/new.js +++ b/admin/app/controllers/authenticated/certification-centers/new.js @@ -24,7 +24,7 @@ export default class NewController extends Controller { await certificationCenter.save(); this.pixToast.sendSuccessNotification({ message: 'Le centre de certification a été créé avec succès.' }); this.router.transitionTo('authenticated.certification-centers.get', certificationCenter.id); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/certifications/certification/informations.js b/admin/app/controllers/authenticated/certifications/certification/informations.js index 5cbec156502..0a27ebcba66 100644 --- a/admin/app/controllers/authenticated/certifications/certification/informations.js +++ b/admin/app/controllers/authenticated/certifications/certification/informations.js @@ -162,7 +162,7 @@ export default class CertificationInformationsController extends Controller { try { await this.certification.save({ adapterOptions: { isCertificationCancel: true } }); await this.certification.reload(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } @@ -174,7 +174,7 @@ export default class CertificationInformationsController extends Controller { try { await this.certification.save({ adapterOptions: { isCertificationUncancel: true } }); await this.certification.reload(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } @@ -186,7 +186,7 @@ export default class CertificationInformationsController extends Controller { try { await this.certification.save({ adapterOptions: { isCertificationReject: true } }); await this.certification.reload(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } @@ -198,7 +198,7 @@ export default class CertificationInformationsController extends Controller { try { await this.certification.save({ adapterOptions: { isCertificationUnreject: true } }); await this.certification.reload(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } @@ -229,7 +229,7 @@ export default class CertificationInformationsController extends Controller { await this.saveAssessmentResult(commentByJury); this.pixToast.sendSuccessNotification({ message: 'Le commentaire du jury a bien été enregistré.' }); return true; - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "Le commentaire du jury n'a pas pu être enregistré." }); return false; } diff --git a/admin/app/controllers/authenticated/certifications/certification/neutralization.js b/admin/app/controllers/authenticated/certifications/certification/neutralization.js index 62be2ecddaa..ceb5e759070 100644 --- a/admin/app/controllers/authenticated/certifications/certification/neutralization.js +++ b/admin/app/controllers/authenticated/certifications/certification/neutralization.js @@ -23,7 +23,7 @@ export default class NeutralizationController extends Controller { return this.pixToast.sendSuccessNotification({ message: `La question n°${questionIndex} a été neutralisée avec succès.`, }); - } catch (_) { + } catch { return this.pixToast.sendErrorNotification({ message: `Une erreur est survenue lors de la neutralisation de la question n°${questionIndex}.`, }); @@ -44,7 +44,7 @@ export default class NeutralizationController extends Controller { return this.pixToast.sendSuccessNotification({ message: `La question n°${questionIndex} a été dé-neutralisée avec succès.`, }); - } catch (_) { + } catch { return this.pixToast.sendErrorNotification({ message: `Une erreur est survenue lors de la dé-neutralisation de la question n°${questionIndex}.`, }); diff --git a/admin/app/controllers/authenticated/organizations/get/invitations.js b/admin/app/controllers/authenticated/organizations/get/invitations.js index d4babd0649a..f09ce3684c7 100644 --- a/admin/app/controllers/authenticated/organizations/get/invitations.js +++ b/admin/app/controllers/authenticated/organizations/get/invitations.js @@ -77,7 +77,7 @@ export default class InvitationsController extends Controller { }, }); this.pixToast.sendSuccessNotification({ message: `Cette invitation a bien été annulée.` }); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur s’est produite, veuillez réessayer.' }); } } diff --git a/admin/app/controllers/authenticated/organizations/get/places/new.js b/admin/app/controllers/authenticated/organizations/get/places/new.js index ba14f9cb92c..4d11edba78f 100644 --- a/admin/app/controllers/authenticated/organizations/get/places/new.js +++ b/admin/app/controllers/authenticated/organizations/get/places/new.js @@ -17,7 +17,7 @@ export default class New extends Controller { try { this.model.setProperties(attributes); await this.model.save({ adapterOptions: { organizationId: this.model.organizationId } }); - } catch (errorResponse) { + } catch { this.pixToast.sendErrorNotification({ message: 'Erreur lors de la création du lot de place.' }); this.errors = this.model.errors; } diff --git a/admin/app/controllers/authenticated/organizations/get/team.js b/admin/app/controllers/authenticated/organizations/get/team.js index e3ce441e2ea..c6640e60a43 100644 --- a/admin/app/controllers/authenticated/organizations/get/team.js +++ b/admin/app/controllers/authenticated/organizations/get/team.js @@ -77,7 +77,7 @@ export default class GetTeamController extends Controller { this.userEmailToAdd = null; this.pixToast.sendSuccessNotification({ message: 'Accès attribué avec succès.' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/organizations/new.js b/admin/app/controllers/authenticated/organizations/new.js index 4a09cf7cad7..afdd462821c 100644 --- a/admin/app/controllers/authenticated/organizations/new.js +++ b/admin/app/controllers/authenticated/organizations/new.js @@ -18,7 +18,7 @@ export default class NewController extends Controller { await this.model.save(); this.pixToast.sendSuccessNotification({ message: 'L’organisation a été créée avec succès.' }); this.router.transitionTo('authenticated.organizations.get.all-tags', this.model.id); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/sessions/session/informations.js b/admin/app/controllers/authenticated/sessions/session/informations.js index 82ff8056a2c..2bedbde250e 100644 --- a/admin/app/controllers/authenticated/sessions/session/informations.js +++ b/admin/app/controllers/authenticated/sessions/session/informations.js @@ -46,7 +46,7 @@ export default class IndexController extends Controller { await this.sessionModel.save({ adapterOptions: { unfinalize: true } }); await this.sessionModel.reload(); this.pixToast.sendSuccessNotification({ message: 'La session a bien été définalisée' }); - } catch (err) { + } catch { this.pixToast.sendErrorNotification({ message: 'Erreur lors de la définalisation de la session' }); } this.cancelModal(); @@ -94,7 +94,7 @@ export default class IndexController extends Controller { const link = await adapter.getDownloadLink({ id: this.model.id, lang: this.intl.primaryLocale }); await navigator.clipboard.writeText(link.sessionResultsLink); this._displaySuccessTooltip(); - } catch (err) { + } catch { this._displayErrorTooltip(); } window.setTimeout(() => this._hideTooltip(), 2000); @@ -107,7 +107,7 @@ export default class IndexController extends Controller { const token = this.session.data.authenticated.access_token; try { await this.fileSaver.save({ url, token }); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: "Une erreur est survenue, les attestations n'ont pas pu être téléchargées.", }); @@ -119,7 +119,7 @@ export default class IndexController extends Controller { try { await this.sessionModel.save({ adapterOptions: { isComment: true, comment } }); this.sessionModel.reload(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: "Une erreur est survenue pendant l'enregistrement du commentaire. ", }); @@ -157,7 +157,7 @@ export default class IndexController extends Controller { try { await this.sessionModel.save({ adapterOptions: { certificationOfficerAssignment: true } }); this.pixToast.sendSuccessNotification({ message: 'La session vous a correctement été assignée' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: "Erreur lors de l'assignation à la session" }); } } diff --git a/admin/app/controllers/authenticated/target-profiles/target-profile/organizations.js b/admin/app/controllers/authenticated/target-profiles/target-profile/organizations.js index bcc78ccf8bb..436ff9825f2 100644 --- a/admin/app/controllers/authenticated/target-profiles/target-profile/organizations.js +++ b/admin/app/controllers/authenticated/target-profiles/target-profile/organizations.js @@ -51,7 +51,7 @@ export default class TargetProfileOrganizationsController extends Controller { await this.pixToast.sendSuccessNotification({ message }); this.router.transitionTo('authenticated.target-profiles.target-profile.organizations'); } - } catch (responseError) { + } catch { return this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/trainings/training.js b/admin/app/controllers/authenticated/trainings/training.js index d1054fa4d1b..f004243e0ac 100644 --- a/admin/app/controllers/authenticated/trainings/training.js +++ b/admin/app/controllers/authenticated/trainings/training.js @@ -27,7 +27,7 @@ export default class Training extends Controller { await this.model.save(); this.pixToast.sendSuccessNotification({ message: 'Le contenu formatif a été mis à jour avec succès.' }); this.toggleEditMode(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/trainings/training/triggers/edit.js b/admin/app/controllers/authenticated/trainings/training/triggers/edit.js index 10bd5604068..ac4eae4bd8f 100644 --- a/admin/app/controllers/authenticated/trainings/training/triggers/edit.js +++ b/admin/app/controllers/authenticated/trainings/training/triggers/edit.js @@ -45,7 +45,7 @@ export default class TrainingEditTriggersController extends Controller { .save({ adapterOptions: { tubes: this.selectedTubes, trainingId: this.model.training.id } }); this.pixToast.sendSuccessNotification({ message: 'Le déclencheur a été créé avec succès.' }); this.goBackToTraining(); - } catch (error) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue.' }); } } diff --git a/admin/app/controllers/authenticated/users/get/campaign-participations.js b/admin/app/controllers/authenticated/users/get/campaign-participations.js index 0a9467801ce..f2360d006fa 100644 --- a/admin/app/controllers/authenticated/users/get/campaign-participations.js +++ b/admin/app/controllers/authenticated/users/get/campaign-participations.js @@ -14,7 +14,7 @@ export default class UserCampaignParticipationsController extends Controller { await this.model.reload(); this.send('refreshModel'); this.pixToast.sendSuccessNotification({ message: 'La participation du prescrit a été supprimée avec succès.' }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: 'Une erreur est survenue lors de la suppression de la participation.', }); diff --git a/admin/app/controllers/authenticated/users/get/certification-center-memberships.js b/admin/app/controllers/authenticated/users/get/certification-center-memberships.js index 16da37d73a1..91d5d16ebfa 100644 --- a/admin/app/controllers/authenticated/users/get/certification-center-memberships.js +++ b/admin/app/controllers/authenticated/users/get/certification-center-memberships.js @@ -14,7 +14,7 @@ export default class UsersCertificationCenterMembershipsController extends Contr this.pixToast.sendSuccessNotification({ message: this.intl.t('pages.user-details.notifications.success.update-certification-center-membership-role'), }); - } catch (_) { + } catch { certificationCenterMembership.rollbackAttributes(); this.pixToast.sendErrorNotification({ message: this.intl.t('pages.user-details.notifications.failure.update-certification-center-membership-role'), @@ -29,7 +29,7 @@ export default class UsersCertificationCenterMembershipsController extends Contr this.pixToast.sendSuccessNotification({ message: this.intl.t('pages.user-details.notifications.success.deactivate-certification-center-membership'), }); - } catch (_) { + } catch { this.pixToast.sendErrorNotification({ message: this.intl.t('pages.user-details.notifications.failure.deactivate-certification-center-membership'), }); diff --git a/admin/app/routes/authenticated/organizations/list.js b/admin/app/routes/authenticated/organizations/list.js index 2838fc0144c..955013e8c6c 100644 --- a/admin/app/routes/authenticated/organizations/list.js +++ b/admin/app/routes/authenticated/organizations/list.js @@ -30,7 +30,7 @@ export default class ListRoute extends Route { size: params.pageSize, }, }); - } catch (error) { + } catch { model = []; } return model; diff --git a/admin/app/routes/authenticated/sessions/list/all.js b/admin/app/routes/authenticated/sessions/list/all.js index cfc3f79130e..98c7810a923 100644 --- a/admin/app/routes/authenticated/sessions/list/all.js +++ b/admin/app/routes/authenticated/sessions/list/all.js @@ -34,7 +34,7 @@ export default class AuthenticatedSessionsAllRoute extends Route { size: params.pageSize, }, }); - } catch (err) { + } catch { return []; } diff --git a/admin/app/routes/authenticated/target-profiles/target-profile/organizations.js b/admin/app/routes/authenticated/target-profiles/target-profile/organizations.js index 4bacd6ec0c9..b22c93342a6 100644 --- a/admin/app/routes/authenticated/target-profiles/target-profile/organizations.js +++ b/admin/app/routes/authenticated/target-profiles/target-profile/organizations.js @@ -36,7 +36,7 @@ export default class TargetProfileOrganizationsRoute extends Route { }; try { organizations = await this.store.query('organization', queryParams); - } catch (e) { + } catch { organizations = []; } diff --git a/admin/app/routes/authenticated/users/list.js b/admin/app/routes/authenticated/users/list.js index f992477e227..91b3af0e5db 100644 --- a/admin/app/routes/authenticated/users/list.js +++ b/admin/app/routes/authenticated/users/list.js @@ -34,7 +34,7 @@ export default class ListRoute extends Route { queryType: params.queryType, }); return users; - } catch (error) { + } catch { return []; } } diff --git a/admin/app/services/current-user.js b/admin/app/services/current-user.js index 81c9dec5564..349344116dd 100644 --- a/admin/app/services/current-user.js +++ b/admin/app/services/current-user.js @@ -10,7 +10,7 @@ export default class CurrentUserService extends Service { if (this.session.isAuthenticated) { try { this.adminMember = await this.store.queryRecord('admin-member', { me: true }); - } catch (error) { + } catch { this.adminMember = null; return this.session.invalidate(); } diff --git a/admin/translations/en.json b/admin/translations/en.json index 0632089eaf2..0ef9e7921f2 100644 --- a/admin/translations/en.json +++ b/admin/translations/en.json @@ -41,14 +41,14 @@ } }, "filters": { - "title": "Filters", "actions": { "clear": "Clear filters" }, "target-profile": { "label": "Category", "placeholder": "Pix+, Other ..." - } + }, + "title": "Filters" }, "forms": { "loading": "Loading...", @@ -74,15 +74,14 @@ "components": { "administration": { "add-organization-features-in-batch": { - "title": "Enable features on organizations", "description": "Note: Trying to enable already existing features on organizations would produce an error.", "notifications": { "success": "Features have been enabled." }, + "title": "Enable features on organizations", "upload-button": "Import CSV file" }, "anonymize-gar-import": { - "title": "Anonymize GAR Data", "description": "Note: Anonymization should be done once a year. Provide the list of user IDs to be anonymized.", "notifications": { "error": { @@ -93,26 +92,26 @@ "partial": "GAR data has been anonymized for {garAnonymizedUserCount} users for a total of {total}." } }, + "title": "Anonymize GAR Data", "upload-button": "Anonymize from a CSV file" }, "oidc-providers-import": { - "title": "OIDC Providers import", "description": "Note: Trying to import already existing OIDC Providers would produce an error.", "notifications": { "success": "The OIDC Providers have been created." }, + "title": "OIDC Providers import", "upload-button": "Import JSON file" }, "organization-import-format": { - "title": "Update existing import formats", "description": "Only existing format imports will be updated. If the name does not match, no format import will be created.", "notifications": { "success": "Format imports are updated correctly" }, + "title": "Update existing import formats", "upload-button": "Importing a JSON file" }, "organization-tags-import": { - "title": "Bulk addition of tags on organisations", "description": "Allow to add tags to organisations. Each line of the CSV file must be made of the ID of an organisation, followed by the name of a tag.", "notifications": { "errors": { @@ -120,18 +119,18 @@ }, "success": "Tags have been added to the organisations." }, + "title": "Bulk addition of tags on organisations", "upload-button": "Import CSV file" }, "organizations-import": { - "title": "Mass creation of organizations", "description": "Existing organizations will not be changed.", "notifications": { "success": "The organizations have been created." }, + "title": "Mass creation of organizations", "upload-button": "Import CSV file" }, "swap-campaign-codes": { - "title": "Switch campaign codes", "description": "Allow to switch campaign codes from two different campaigns. Campaigns must be on the same organization.", "form": { "button": "Switch", @@ -144,10 +143,10 @@ "swap-code-error": "May be one of your campaign id doesn't exist. Check and retry." }, "success": "Campaign code switch success" - } + }, + "title": "Switch campaign codes" }, "update-campaign-code": { - "title": "Update campaign code", "description": "Allow to modify the campaign code from the campaign ID. The campaign's code must be unique and composed of 9 uppercase alphanumeric characters.", "form": { "button": "Update", @@ -161,10 +160,10 @@ "unique-code-error": "Campaign's code is not unique." }, "success": "Campaign code update succeed." - } + }, + "title": "Update campaign code" }, "update-organizations-in-batch": { - "title": "Mass modification of organisations", "description": "Note: Only columns with a value will be modified.", "notifications": { "errors": { @@ -175,16 +174,15 @@ }, "success": "The organisations have been modified." }, + "title": "Mass modification of organisations", "upload-button": "Import CSV file" } }, "autonomous-courses": { - "title": "Tous les parcours autonomes", "actions": { "new": "Nouveau parcours autonome" }, "list": { - "title": "Liste des parcours autonomes", "headers": { "createdAt": "Date de création", "id": "Id", @@ -195,10 +193,10 @@ "status": { "active": "Actif", "archived": "Archivé" - } + }, + "title": "Liste des parcours autonomes" }, "new": { - "title": "Nouveau parcours autonome", "create-autonomous-course": "Créer le parcours autonome", "target-profile": { "category-label": "Sélectionner une ou plusieurs catégories de profils cibles", @@ -208,11 +206,11 @@ "sub-label": "Le profil cible doit être en accès simplifié et relié à l’organisation \"Organisation pour les parcours autonomes\"" }, "technical-informations": { - "title": "Informations techniques", - "label": "Nom interne" + "label": "Nom interne", + "title": "Informations techniques" }, + "title": "Nouveau parcours autonome", "user-information": { - "title": "Informations pour les utilisateurs", "homepage": { "label": "Texte de la page d'accueil", "placeholder": "Exemple : description, objectifs..." @@ -221,9 +219,11 @@ "label": "Nom public (50 caractères maximum)", "placeholder": "Exemple : Le super nom de mon parcours autonome", "sub-label": "Le nom du parcours autonome sera affiché sur la page de démarrage du candidat." - } + }, + "title": "Informations pour les utilisateurs" } }, + "title": "Tous les parcours autonomes", "update": { "custom-landing-page": { "label": "Texte de la page d'accueil", @@ -284,14 +284,14 @@ "complementary-certifications": { "target-profiles": { "badges-list": { - "title": "Badges certifiés du profil cible actuel", "header": { "id": "ID du RT certifiant", "image-url": "Image du badge certifié", "level": "Niveau du badge certifié", "minimum-earned-pix": "Nombre de pix minimum", "name": "Nom du badge certifié" - } + }, + "title": "Badges certifiés du profil cible actuel" } } }, @@ -402,29 +402,28 @@ "administration": { "certification": { "certification-scoring-configuration": { - "title": "Mesh configuration for global score", "form": { "label": "Add certification score configuration (JSON)" - } + }, + "title": "Mesh configuration for global score" }, "competence-scoring-configuration": { - "title": "Configuration of thresholds by skill", "form": { "label": "Level configuration by skill added (JSON)" - } + }, + "title": "Configuration of thresholds by skill" }, "flash-algorithm-configuration": { - "title": "Configuration de l’algorithme de déroulé du test", "form": { "challengesBetweenSameCompetence": "Nombre de questions entre 2 questions de la même compétence", "enablePassageByAllCompetences": "Forcer le passage par les 16 compétences", "limitToOneQuestionPerTube": "Limiter à une question par sujet", "maximumAssessmentLength": "Nombre de questions", "variationPercent": "Capage de la capacité (en % )" - } + }, + "title": "Configuration de l’algorithme de déroulé du test" }, "sco-whitelist": { - "title": "SCO whitelist", "export": { "button": "Export whitelist (CSV)", "error": "Could not download SCO whitelist." @@ -435,10 +434,10 @@ "error": "Could not save SCO whitelist", "success": "SCO whitelist saved." }, - "instructions": "Recommended: make an export, modify the export, and import the modified version." + "instructions": "Recommended: make an export, modify the export, and import the modified version.", + "title": "SCO whitelist" }, "scoring-simulator": { - "title": "Scoring simulator", "actions": { "submit": "Generate profile" }, @@ -460,7 +459,8 @@ "level": "Level" }, "label": "Level by competence" - } + }, + "title": "Scoring simulator" } }, "navigation": { @@ -488,14 +488,13 @@ "certification-centers": { "information-view": { "habilitations": { - "title": "Habilitated to the following complementary certifications", "aria-label": { "active": "Habilitated to {complementaryCertificationLabel}", "inactive": "Not habilitated to {complementaryCertificationLabel}" - } + }, + "title": "Habilitated to the following complementary certifications" }, "pilot-features": { - "title": "Pilot features", "is-complementary-alone-pilot": { "aria-label": { "active": "is pilot Pix/Pix+ compatibility test phase", @@ -509,7 +508,8 @@ "inactive": "is not V3 certification pilot" }, "label": "V3 certification pilot" - } + }, + "title": "Pilot features" } }, "notifications": { @@ -527,14 +527,12 @@ } }, "certifications": { - "title": "Certifications", "actions": { "load": { "label": "Charger" } }, "certification": { - "title": "Certif", "details": { "title": "Details", "v3": { @@ -567,14 +565,14 @@ "ended-due-to-finalization": "Date et heure d’affichage de la dernière question proposée au candidat." }, "general-informations": { - "title": "Certification N°{certificationCourseId}", "labels": { "abort-reason": "Reason for withdrawal", "created-at": "Created on", "ended-at": "Completed on", "ended-by": "Certification completed by", "pix-score": "Score (in pix)" - } + }, + "title": "Certification N°{certificationCourseId}" }, "live-alert-modal": { "title": { @@ -583,7 +581,6 @@ } }, "more-informations": { - "title": "Additional information", "labels": { "numberof-aband-answers": "Number of questions abandoned", "numberof-answered-questions": "Number of questions answered", @@ -591,10 +588,10 @@ "numberof-ok-questions": "Number of questions OK", "numberof-validated-live-alerts": "Number of technical problems validated", "total-numberof-questions": "Total number of questions" - } + }, + "title": "Additional information" }, "questions-list": { - "title": "List of questions", "actions": { "challenge-preview": { "extra-information": "Link to test preview (opens in new window)", @@ -620,7 +617,8 @@ "competence": "Competence concerned", "number": "N°", "skill": "Name of the asset" - } + }, + "title": "List of questions" } } }, @@ -633,11 +631,12 @@ }, "label": "Result details by competence" } - } - } + }, + "title": "Certif" + }, + "title": "Certifications" }, "login": { - "title": "Access to this Pix Admin space is limited to administrators.", "api-error-messages": { "login-no-permission": "You don't have the permission to connect." }, @@ -652,7 +651,8 @@ }, "google": { "label": "Log in via Google" - } + }, + "title": "Access to this Pix Admin space is limited to administrators." }, "organization": { "navbar": { @@ -660,7 +660,6 @@ } }, "organization-children": { - "title": "Children organisations", "empty-table": "No child organisation", "notifications": { "error": { @@ -673,7 +672,8 @@ "success": { "attach-child-organization": "The child organization has been linked to the parent organization" } - } + }, + "title": "Children organisations" }, "sessions": { "informations": { @@ -691,8 +691,8 @@ "label": "Duplicate this target profile" }, "modal": { - "title": "Confirm the target profile duplication ?", - "label": "Confirming will duplicate the current target profiles with tubes, badges and stages." + "label": "Confirming will duplicate the current target profiles with tubes, badges and stages.", + "title": "Confirm the target profile duplication ?" }, "notifications": { "success": "The target profile has been duplicated." @@ -722,12 +722,12 @@ }, "triggers": { "goal": { - "title": "Goal", - "alternative-title": "Add a goal threshold to not exceed" + "alternative-title": "Add a goal threshold to not exceed", + "title": "Goal" }, "prerequisite": { - "title": "Prerequisite", - "alternative-title": "Add a prerequisite threshold to reach" + "alternative-title": "Add a prerequisite threshold to reach", + "title": "Prerequisite" }, "tabName": "Triggers" } diff --git a/admin/translations/fr.json b/admin/translations/fr.json index 40b8f0dac05..45d7fc901c2 100644 --- a/admin/translations/fr.json +++ b/admin/translations/fr.json @@ -41,14 +41,14 @@ } }, "filters": { - "title": "Filtres", "actions": { "clear": "Effacer les filtres" }, "target-profile": { "label": "Catégorie", "placeholder": "Pix+, Autres..." - } + }, + "title": "Filtres" }, "forms": { "loading": "Chargement...", @@ -74,15 +74,14 @@ "components": { "administration": { "add-organization-features-in-batch": { - "title": "Activation de fonctionnalités", "description": "Note: Chercher à activer à nouveau des fonctionnalités déjà existantes sur une organisation renverrait une erreur.", "notifications": { "success": "Les fonctionnalités ont bien été activés." }, + "title": "Activation de fonctionnalités", "upload-button": "Importer un fichier CSV" }, "anonymize-gar-import": { - "title": "Anonymiser les données du GAR", "description": "Note: Anonymisation à effectuer 1 fois par an. Fournir la liste des identifiants utilisateurs à anonymiser.", "notifications": { "error": { @@ -93,34 +92,34 @@ "partial": "Les données du GAR ont été anonymisées pour {garAnonymizedUserCount} utilisateurs sur un total de {total}." } }, + "title": "Anonymiser les données du GAR", "upload-button": "Anonymiser à partir d'un fichier CSV" }, "campaigns-import": { - "title": "Création de campagnes en masse", "description": "Les campagnes déjà existantes ne seront pas modifiées. Il n'y a pas de contrôle pour empêcher les doublons.", "notifications": { "success": "Les campagnes ont bien été créées." }, + "title": "Création de campagnes en masse", "upload-button": "Importer un fichier CSV" }, "oidc-providers-import": { - "title": "Import d’OIDC Providers", "description": "Note: Chercher à importer à nouveau des OIDC Providers déjà existants renverrait une erreur.", "notifications": { "success": "Les OIDC Providers ont bien été créés." }, + "title": "Import d’OIDC Providers", "upload-button": "Importer un fichier JSON" }, "organization-import-format": { - "title": "Mise à jour d'import à format existants", "description": "Seul les imports à format existants seront mis à jour. Dans le cas où le nom ne correspond pas, il n'y aura pas de création d'import à format.", "notifications": { "success": "Les imports à formats sont bien mis à jour" }, + "title": "Mise à jour d'import à format existants", "upload-button": "Importer un fichier JSON" }, "organization-tags-import": { - "title": "Ajout de tags en masse sur des organisations", "description": "Permet d’ajouter des tags à des organisations. Chaque ligne du fichier CSV doit être constituée de l’ID d’une organisation, suivie du nom d’un tag.", "notifications": { "errors": { @@ -128,18 +127,18 @@ }, "success": "Les tags ont bien été ajoutés aux organisations." }, + "title": "Ajout de tags en masse sur des organisations", "upload-button": "Importer un fichier CSV" }, "organizations-import": { - "title": "Création d'organisations en masse", "description": "Les organisations déjà existantes ne seront pas modifiées.", "notifications": { "success": "Les organisations ont bien été créées." }, + "title": "Création d'organisations en masse", "upload-button": "Importer un fichier CSV" }, "swap-campaign-codes": { - "title": "Échanger les codes campagnes", "description": "Permet d'échanger le code campagne entre de deux campagnes. Les campagnes doivent faire partie de la même organisation.", "form": { "button": "Échanger", @@ -152,10 +151,10 @@ "swap-code-error": "Vérifiez que les ID de campagnes saisies existent" }, "success": "Les codes campagnes ont bien été échangé." - } + }, + "title": "Échanger les codes campagnes" }, "update-campaign-code": { - "title": "Modifier le code d'une campagne", "description": "Permet de modifier le code campagne à partir de l'identifiant d'une campagne. Le code campagne doit être unique et composé de 9 caractères alphanumériques en majuscules.", "form": { "button": "Modifier", @@ -169,10 +168,10 @@ "unique-code-error": "Le code est déjà utilisé dans une autre campagne." }, "success": "Le code campagne a bien été modifié." - } + }, + "title": "Modifier le code d'une campagne" }, "update-organizations-in-batch": { - "title": "Modification des organisations en masse", "description": "Note: Seules les colonnes ayant une valeur seront modifiées.", "notifications": { "errors": { @@ -183,16 +182,15 @@ }, "success": "Les organisations ont bien été modifiées." }, + "title": "Modification des organisations en masse", "upload-button": "Importer un fichier CSV" } }, "autonomous-courses": { - "title": "Tous les parcours autonomes", "actions": { "new": "Nouveau parcours autonome" }, "list": { - "title": "Liste des parcours autonomes", "headers": { "createdAt": "Date de création", "id": "Id", @@ -203,10 +201,10 @@ "status": { "active": "Actif", "archived": "Archivé" - } + }, + "title": "Liste des parcours autonomes" }, "new": { - "title": "Nouveau parcours autonome", "create-autonomous-course": "Créer le parcours autonome", "target-profile": { "category-label": "Sélectionner une ou plusieurs catégories de profils cibles", @@ -216,11 +214,11 @@ "sub-label": "Le profil cible doit être en accès simplifié et relié à l’organisation \"Organisation pour les parcours autonomes\"" }, "technical-informations": { - "title": "Informations techniques", - "label": "Nom interne" + "label": "Nom interne", + "title": "Informations techniques" }, + "title": "Nouveau parcours autonome", "user-information": { - "title": "Informations pour les utilisateurs", "homepage": { "label": "Texte de la page d'accueil", "placeholder": "Exemple : description, objectifs..." @@ -229,9 +227,11 @@ "label": "Nom public (50 caractères maximum)", "placeholder": "Exemple : Le super nom de mon parcours autonome", "sub-label": "Le nom du parcours autonome sera affiché sur la page de démarrage du candidat." - } + }, + "title": "Informations pour les utilisateurs" } }, + "title": "Tous les parcours autonomes", "update": { "custom-landing-page": { "label": "Texte de la page d'accueil", @@ -292,14 +292,14 @@ "complementary-certifications": { "target-profiles": { "badges-list": { - "title": "Badges certifiés du profil cible actuel", "header": { "id": "ID du RT certifiant", "image-url": "Image du badge certifié", "level": "Niveau du badge certifié", "minimum-earned-pix": "Nombre de pix minimum", "name": "Nom du badge certifié" - } + }, + "title": "Badges certifiés du profil cible actuel" } } }, @@ -412,29 +412,28 @@ "administration": { "certification": { "certification-scoring-configuration": { - "title": "Configuration des mailles pour le score global", "form": { "label": "Ajout de la configuration de score de certification (JSON)" - } + }, + "title": "Configuration des mailles pour le score global" }, "competence-scoring-configuration": { - "title": "Configuration des seuils par compétence", "form": { "label": "Ajout de la configuration de niveau par compétence (JSON)" - } + }, + "title": "Configuration des seuils par compétence" }, "flash-algorithm-configuration": { - "title": "Configuration de l’algorithme de déroulé du test", "form": { "challengesBetweenSameCompetence": "Nombre de questions entre 2 questions de la même compétence", "enablePassageByAllCompetences": "Forcer le passage par les 16 compétences", "limitToOneQuestionPerTube": "Limiter à une question par sujet", "maximumAssessmentLength": "Nombre de questions", "variationPercent": "Capage de la capacité (en % )" - } + }, + "title": "Configuration de l’algorithme de déroulé du test" }, "sco-whitelist": { - "title": "Liste blanche centres SCO", "export": { "button": "Exporter la liste blanche (format CSV)", "error": "Échec de la récupération de la liste blanche." @@ -445,10 +444,10 @@ "error": "Échec de l'enregistrement de la liste blanche", "success": "Liste blanche enregistrée." }, - "instructions": "Recommandation: exporter la liste, modifier l'export, et envoyer la version modifiée." + "instructions": "Recommandation: exporter la liste, modifier l'export, et envoyer la version modifiée.", + "title": "Liste blanche centres SCO" }, "scoring-simulator": { - "title": "Simulateur de scoring", "actions": { "submit": "Générer un profil" }, @@ -470,7 +469,8 @@ "level": "Niveau" }, "label": "Niveau par compétence" - } + }, + "title": "Simulateur de scoring" } }, "navigation": { @@ -498,14 +498,13 @@ "certification-centers": { "information-view": { "habilitations": { - "title": "Habilitations aux certifications complémentaires", "aria-label": { "active": "Habilité pour {complementaryCertificationLabel}", "inactive": "Non habilité pour {complementaryCertificationLabel}" - } + }, + "title": "Habilitations aux certifications complémentaires" }, "pilot-features": { - "title": "Fonctionnalités pilotes", "is-complementary-alone-pilot": { "aria-label": { "active": "Est pilote phase test compatibilité Pix v3 / Pix+", @@ -519,7 +518,8 @@ "inactive": "N'est pas pilote certification V3" }, "label": "pilote certification V3" - } + }, + "title": "Fonctionnalités pilotes" } }, "notifications": { @@ -537,14 +537,12 @@ } }, "certifications": { - "title": "Certifications", "actions": { "load": { "label": "Charger" } }, "certification": { - "title": "Certif", "details": { "title": "Détails", "v3": { @@ -577,14 +575,14 @@ "ended-due-to-finalization": "Date et heure d’affichage de la dernière question proposée au candidat." }, "general-informations": { - "title": "Certification N°{certificationCourseId}", "labels": { "abort-reason": "Raison de l'abandon", "created-at": "Créée le", "ended-at": "Terminée le", "ended-by": "Certification terminée par", "pix-score": "Score (en pix)" - } + }, + "title": "Certification N°{certificationCourseId}" }, "live-alert-modal": { "title": { @@ -593,7 +591,6 @@ } }, "more-informations": { - "title": "Informations complémentaires", "labels": { "numberof-aband-answers": "Nombre de question abandonnées", "numberof-answered-questions": "Nombre de question répondues", @@ -601,10 +598,10 @@ "numberof-ok-questions": "Nombre de question OK", "numberof-validated-live-alerts": "Nombre de problèmes techniques validés", "total-numberof-questions": "Nombre total de questions" - } + }, + "title": "Informations complémentaires" }, "questions-list": { - "title": "Liste des questions", "actions": { "challenge-preview": { "extra-information": "Lien vers l'aperçu de l'épreuve (Ouverture dans une nouvelle fenêtre)", @@ -630,7 +627,8 @@ "competence": "Compétence concernée", "number": "N°", "skill": "Nom de l'acquis" - } + }, + "title": "Liste des questions" } } }, @@ -643,11 +641,12 @@ }, "label": "Détails du résultat par compétence" } - } - } + }, + "title": "Certif" + }, + "title": "Certifications" }, "login": { - "title": "L'accès à Pix Admin est limité aux administrateurs de la plateforme", "api-error-messages": { "login-no-permission": "Vous n'avez pas les droits pour vous connecter." }, @@ -662,7 +661,8 @@ }, "google": { "label": "Se connecter avec Google" - } + }, + "title": "L'accès à Pix Admin est limité aux administrateurs de la plateforme" }, "organization": { "navbar": { @@ -670,7 +670,6 @@ } }, "organization-children": { - "title": "Organisations filles", "empty-table": "Aucune organisation fille", "notifications": { "error": { @@ -683,7 +682,8 @@ "success": { "attach-child-organization": "L'organisation fille a bien été liée à l'organisation mère" } - } + }, + "title": "Organisations filles" }, "organizations": { "notifications": { @@ -708,8 +708,8 @@ "label": "Dupliquer ce profil cible" }, "modal": { - "title": "Dupliquer le profil cible ?", - "label": "Cette action dupliquera le profil cible avec ses sujets, résultats thématiques et paliers." + "label": "Cette action dupliquera le profil cible avec ses sujets, résultats thématiques et paliers.", + "title": "Dupliquer le profil cible ?" }, "notifications": { "success": "Le profil cible a bien été copié." @@ -735,23 +735,23 @@ "trainings": { "training": { "targetProfiles": { - "title": "Rattacher un ou plusieurs profils cibles", - "tabName": "Profils cibles associés" + "tabName": "Profils cibles associés", + "title": "Rattacher un ou plusieurs profils cibles" }, "triggers": { "goal": { - "title": "Objectif à ne pas dépasser", "alternative-title": "Ajouter un objectif à ne pas dépasser", "edit": { "description": "Si l’apprenant réussit les acquis des sujets sélectionnés alors le contenu formatif ne lui sera pas proposé." - } + }, + "title": "Objectif à ne pas dépasser" }, "prerequisite": { - "title": "Prérequis", "alternative-title": "Ajouter un prérequis", "edit": { "description": "Si l’apprenant réussit tous les acquis des sujets sélectionnés alors le contenu formatif lui sera proposé." - } + }, + "title": "Prérequis" }, "tabName": "Déclencheurs" }