From d3f6a755149a5b38c4d34e469f53e881f9e77bd7 Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 28 May 2024 15:47:11 +0200 Subject: [PATCH] Upgrade (#11) --- .eslintrc.js | 4 ++ README.md | 2 +- app/components/forms/register.gts | 2 +- app/templates/404.gts | 6 +- app/templates/login.gts | 2 +- app/templates/register.gts | 8 +-- app/templates/reset-password.gts | 2 +- images/Dockerfile | 4 +- lefthook.yml | 2 +- .../{component-test.ts => component-test.gts} | 68 +++++++------------ .../forms/{login-test.ts => login-test.gts} | 62 ++++++++++------- .../components/pages/404/component-test.ts | 10 --- .../yeti-table/pagination/component.ts | 67 ------------------ .../yeti-table/pagination/template.hbs | 58 ---------------- .../{pages => templates}/404/fr-fr.yaml | 0 .../forgot-password/fr-fr.yaml | 0 .../{pages => templates}/login/fr-fr.yaml | 0 .../{pages => templates}/register/fr-fr.yaml | 0 .../reset-password/fr-fr.yaml | 0 types/template-registry.d.ts | 6 +- 20 files changed, 82 insertions(+), 221 deletions(-) rename tests/integration/components/forms/register/{component-test.ts => component-test.gts} (58%) rename tests/integration/components/login/forms/{login-test.ts => login-test.gts} (61%) delete mode 100644 tests/integration/components/pages/404/component-test.ts delete mode 100644 tests/integration/components/yeti-table/pagination/component.ts delete mode 100644 tests/integration/components/yeti-table/pagination/template.hbs rename translations/components/{pages => templates}/404/fr-fr.yaml (100%) rename translations/components/{pages => templates}/forgot-password/fr-fr.yaml (100%) rename translations/components/{pages => templates}/login/fr-fr.yaml (100%) rename translations/components/{pages => templates}/register/fr-fr.yaml (100%) rename translations/components/{pages => templates}/reset-password/fr-fr.yaml (100%) diff --git a/.eslintrc.js b/.eslintrc.js index fa8f035..27858cb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -48,6 +48,10 @@ module.exports = { parser: 'ember-eslint-parser', plugins: ['ember'], extends: ['eslint:recommended', 'plugin:ember/recommended', 'plugin:ember/recommended-gts'], + rules: { + 'no-unused-vars': 'off', + 'no-undef': 'off', + } }, // node files { diff --git a/README.md b/README.md index 62b360d..21ae30b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - Flash messages (ember-cli-flash) - Tests (ember-test-selectors, ember-cli-page-object, playwright) - Sessions,Login,Logout,... (ember-simple-auth,ember-simple-auth-token) -- Base ember adapter, serializer and controller +- Ember data next gen (RequestManager based) - Ember concurrency - Test seeding & parallelization (ember-exam) - dev & test mocking (msw) diff --git a/app/components/forms/register.gts b/app/components/forms/register.gts index 29786d0..80c426f 100644 --- a/app/components/forms/register.gts +++ b/app/components/forms/register.gts @@ -21,7 +21,7 @@ export interface FormsRegisterSignature { Element: HTMLFormElement; } -export default class FormsRegister extends Component { +export default class RegisterForm extends Component { maskForEuro = { mask: 'num €', lazy: false, diff --git a/app/templates/404.gts b/app/templates/404.gts index 6e983c3..f4cb0a4 100644 --- a/app/templates/404.gts +++ b/app/templates/404.gts @@ -17,10 +17,10 @@ class NotFoundRouteComponent extends Component

- {{t "components.pages.404.title"}} + {{t "components.templates.404.title"}}

- {{t "components.pages.404.content"}} + {{t "components.templates.404.content"}}

diff --git a/app/templates/login.gts b/app/templates/login.gts index 7a1900c..9639a48 100644 --- a/app/templates/login.gts +++ b/app/templates/login.gts @@ -52,7 +52,7 @@ class PagesLogin extends Component { }