From 1035fd39fda32de7a3c44c64bb126a3ad90bfef5 Mon Sep 17 00:00:00 2001 From: AmauryD Date: Wed, 18 Oct 2023 21:48:54 +0200 Subject: [PATCH] styles are back --- app/adapters/application.ts | 4 +- app/components/inputs/select-validation.gts | 21 +++-- app/controllers/reset-password.ts | 1 - .../users.js => app/handlers/users.ts | 4 +- app/helpers/.gitkeep | 0 app/models/document.ts | 11 +-- app/models/user.ts | 1 - app/routes/application.ts | 12 +-- app/services/base-document.ts | 85 ------------------ app/services/error-handler.ts | 3 +- app/services/store.js | 45 +++++++++- app/templates/index.gts | 6 +- app/utils/get-config.ts | 14 --- ember-cli-build.js | 13 ++- package.json | 14 ++- pnpm-lock.yaml | 82 ++++++++--------- postcss.config.js => postcss.config.cjs | 0 public/assets/images/triptyk.png | Bin 0 -> 29495 bytes public/config.json | 2 - public/mocks/handlers.js | 3 - public/mocks/index.js | 4 - public/setup-worker.js | 3 + read-cov.js | 2 +- .../tailwind.config.js => tailwind.config.js | 8 +- tests/unit/adapters/application-test.ts | 5 -- tsconfig.json | 3 +- with-backend.js | 6 +- 27 files changed, 148 insertions(+), 204 deletions(-) rename public/mocks/handlers/users.js => app/handlers/users.ts (93%) delete mode 100644 app/helpers/.gitkeep delete mode 100644 app/services/base-document.ts delete mode 100644 app/utils/get-config.ts rename postcss.config.js => postcss.config.cjs (100%) create mode 100644 public/assets/images/triptyk.png delete mode 100644 public/config.json delete mode 100644 public/mocks/handlers.js delete mode 100644 public/mocks/index.js create mode 100644 public/setup-worker.js rename app/tailwind/tailwind.config.js => tailwind.config.js (79%) diff --git a/app/adapters/application.ts b/app/adapters/application.ts index 651f1c1..09aa041 100644 --- a/app/adapters/application.ts +++ b/app/adapters/application.ts @@ -1,8 +1,6 @@ import { service } from '@ember/service'; import JSONAPIAdapter from '@ember-data/adapter/json-api'; -import { mergedConfig } from 'ember-boilerplate/utils/get-config'; - import config from '../config/environment'; import type SessionService from 'ember-boilerplate/services/session'; @@ -13,7 +11,7 @@ export default class ApplicationAdapter extends JSONAPIAdapter { @service declare flashMessages: FlashMessageService; get host() { - return mergedConfig.host; + return config.host; } namespace = config.namespace; diff --git a/app/components/inputs/select-validation.gts b/app/components/inputs/select-validation.gts index 2d96073..051a14a 100644 --- a/app/components/inputs/select-validation.gts +++ b/app/components/inputs/select-validation.gts @@ -29,6 +29,15 @@ export interface InputsSelectValidationSignature { }; } +function isArray(value: unknown): value is unknown[] { + return Array.isArray(value); +} + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function toString(value: unknown): string { + return String(value); +} + const InputsSelectValidationComponent: TOC =