From 49726cf49fa8e0bc82679bbafd84d07abecef401 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 15 Feb 2023 01:32:45 +0330 Subject: [PATCH] lint: imports order --- .eslintrc.json | 6 ++++-- core/router/src/type.ts | 2 +- core/signal/src/requestable-context-consumer.ts | 2 +- core/signal/src/type.ts | 2 +- services/comment/src/index.ts | 2 +- services/form-registration/src/index.ts | 1 - services/storage-server/src/index.ts | 6 +++--- services/telegram-notifier/src/index.ts | 4 ++-- ui/demo-pwa/src/alwatr-pwa.ts | 11 +++++------ ui/demo-pwa/src/page-card.ts | 5 ++--- ui/demo-pwa/src/page-chat.ts | 1 - ui/pwa-helper/src/pwa-element.ts | 7 +++---- ui/ui-kit/src/button/button.ts | 1 - ui/ui-kit/src/button/icon-button.ts | 3 +-- ui/ui-kit/src/card/icon-box.ts | 1 - ui/ui-kit/src/card/image-box.ts | 5 +++-- ui/ui-kit/src/chat/chat-list.ts | 1 + ui/ui-kit/src/chat/chat-message.ts | 4 ++-- ui/ui-kit/src/chat/chat.ts | 4 ++-- ui/ui-kit/src/snackbar/controller.ts | 1 + ui/ui-kit/src/snackbar/element.ts | 3 +-- ui/ui-kit/src/text-field/text-field.ts | 3 +-- ui/ui-kit/src/top-app-bar/top-app-bar.ts | 3 +-- uniquely/com-api/src/index.ts | 9 ++++----- uniquely/com-pwa/src/alwatr-pwa.ts | 5 ++--- uniquely/com-pwa/src/director/index.ts | 6 +++--- uniquely/com-pwa/src/page-404.ts | 7 +++---- uniquely/flight-finder-api/src/index.ts | 4 ++-- uniquely/flight-finder-pwa/src/alwatr-pwa.ts | 9 +++++---- .../flight-finder-pwa/src/component/job-add-form.ts | 3 +-- uniquely/flight-finder-pwa/src/component/job-item.ts | 5 ++--- .../src/component/page-flight-finder.ts | 4 ++-- uniquely/soffit-pwa/src/alwatr-pwa.ts | 5 ++--- uniquely/soffit-pwa/src/director/index.ts | 4 ++-- uniquely/soffit-pwa/src/lottery-box.ts | 5 +++-- uniquely/soffit-pwa/src/lottery-form.ts | 8 ++++---- uniquely/soffit-pwa/src/page-home.ts | 2 +- uniquely/soffit-pwa/src/page-product.ts | 1 - uniquely/soffit-pwa/src/supply-chain-box.ts | 3 +-- uniquely/soffit-pwa/src/supply-chain-form.ts | 5 ++--- 40 files changed, 75 insertions(+), 88 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bad1abdc5..8e0e91f20 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -26,7 +26,8 @@ "alwaysTryTypes": true, "project": ["**/tsconfig.json"], "projectFolderIgnoreList": ["**/node_modules/**"] - } + }, + "node": true }, "wc": { "elementBaseClasses": ["LitElement"] @@ -44,8 +45,9 @@ "import/order": [ "error", { - "groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "type"], + "groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "object", "unknown", "type"], "newlines-between": "always", + "warnOnUnassignedImports": true, "alphabetize": { "order": "asc", "caseInsensitive": true diff --git a/core/router/src/type.ts b/core/router/src/type.ts index 44ca552a4..a19017920 100644 --- a/core/router/src/type.ts +++ b/core/router/src/type.ts @@ -1,4 +1,4 @@ -import {QueryParameters} from '@alwatr/type'; +import type {QueryParameters} from '@alwatr/type'; /** * Route context base type. diff --git a/core/signal/src/requestable-context-consumer.ts b/core/signal/src/requestable-context-consumer.ts index 1190b7082..2e1740737 100644 --- a/core/signal/src/requestable-context-consumer.ts +++ b/core/signal/src/requestable-context-consumer.ts @@ -1,7 +1,7 @@ import {contextConsumer} from './context-consumer.js'; import {requestContext} from './core.js'; -import type{Stringifyable, OmitFirstParam} from '@alwatr/type'; +import type {Stringifyable, OmitFirstParam} from '@alwatr/type'; /** * Requestable context consumer interface. diff --git a/core/signal/src/type.ts b/core/signal/src/type.ts index b48666998..8fe4916b3 100644 --- a/core/signal/src/type.ts +++ b/core/signal/src/type.ts @@ -1,4 +1,4 @@ -import {MaybePromise, Stringifyable} from '@alwatr/type'; +import type {MaybePromise, Stringifyable} from '@alwatr/type'; export type DebounceType = 'No' | 'AnimationFrame' | 'Timeout'; diff --git a/services/comment/src/index.ts b/services/comment/src/index.ts index 8e44cc5ec..8def085fc 100644 --- a/services/comment/src/index.ts +++ b/services/comment/src/index.ts @@ -1,6 +1,6 @@ +import {logger} from './config.js'; import './route/home.js'; import './route/patch.js'; import './route/storage.js'; -import {logger} from './config.js'; logger.logOther('..:: Alwatr Comment API Nanoservice ::..'); diff --git a/services/form-registration/src/index.ts b/services/form-registration/src/index.ts index d37a33d4d..62db5d309 100644 --- a/services/form-registration/src/index.ts +++ b/services/form-registration/src/index.ts @@ -1,5 +1,4 @@ import {logger} from './config.js'; - import './route/home.js'; import './route/put.js'; diff --git a/services/storage-server/src/index.ts b/services/storage-server/src/index.ts index 592907c8b..6c423f72f 100644 --- a/services/storage-server/src/index.ts +++ b/services/storage-server/src/index.ts @@ -1,9 +1,9 @@ +import {logger} from './config.js'; +import './route/delete.js'; import './route/get.js'; import './route/has.js'; -import './route/patch.js'; -import './route/delete.js'; import './route/keys.js'; +import './route/patch.js'; import './route/storage.js'; -import {logger} from './config.js'; logger.logOther('..:: Alwatr Storage Server ::..'); diff --git a/services/telegram-notifier/src/index.ts b/services/telegram-notifier/src/index.ts index 19b3d3bb2..c717f2487 100644 --- a/services/telegram-notifier/src/index.ts +++ b/services/telegram-notifier/src/index.ts @@ -1,8 +1,8 @@ import './bot/command/start.js'; -import './route/home.js'; -import './route/notify.js'; import {launchBot} from './bot/launch.js'; import {logger} from './config.js'; +import './route/home.js'; +import './route/notify.js'; logger.logOther('..:: Alwatr Telegram Notify Nanoservice ::..'); diff --git a/ui/demo-pwa/src/alwatr-pwa.ts b/ui/demo-pwa/src/alwatr-pwa.ts index 966073bca..e351626fd 100644 --- a/ui/demo-pwa/src/alwatr-pwa.ts +++ b/ui/demo-pwa/src/alwatr-pwa.ts @@ -1,14 +1,13 @@ import {html, customElement} from '@alwatr/element'; +import '@alwatr/font/vazirmatn.css'; import {AlwatrPwaElement} from '@alwatr/pwa-helper/pwa-element.js'; - -import type {RoutesConfig} from '@alwatr/router'; - -import '@alwatr/ui-kit/style/theme/palette-300.css'; import '@alwatr/ui-kit/style/theme/color.css'; -import '@alwatr/font/vazirmatn.css'; +import '@alwatr/ui-kit/style/theme/palette-300.css'; -import './page-chat.js'; import './page-card.js'; +import './page-chat.js'; + +import type {RoutesConfig} from '@alwatr/router'; declare global { interface HTMLElementTagNameMap { diff --git a/ui/demo-pwa/src/page-card.ts b/ui/demo-pwa/src/page-card.ts index 3f339fc57..6bf005ff5 100644 --- a/ui/demo-pwa/src/page-card.ts +++ b/ui/demo-pwa/src/page-card.ts @@ -1,7 +1,6 @@ import {customElement, AlwatrSmartElement, css, html} from '@alwatr/element'; - -import '@alwatr/ui-kit/card/surface.js'; import '@alwatr/ui-kit/card/icon-box.js'; +import '@alwatr/ui-kit/card/surface.js'; declare global { interface HTMLElementTagNameMap { @@ -49,7 +48,7 @@ export class AlwatrPageCard extends AlwatrSmartElement { } input:focus { - border-bottom-color: currentColor; + border-bottom-color: currentcolor; outline: 0; } `; diff --git a/ui/demo-pwa/src/page-chat.ts b/ui/demo-pwa/src/page-chat.ts index ab3861c4a..58dfb2d03 100644 --- a/ui/demo-pwa/src/page-chat.ts +++ b/ui/demo-pwa/src/page-chat.ts @@ -1,5 +1,4 @@ import {customElement, AlwatrSmartElement, css, html} from '@alwatr/element'; - import '@alwatr/ui-kit/chat/chat.js'; declare global { diff --git a/ui/pwa-helper/src/pwa-element.ts b/ui/pwa-helper/src/pwa-element.ts index d6866c5fe..835774c88 100644 --- a/ui/pwa-helper/src/pwa-element.ts +++ b/ui/pwa-helper/src/pwa-element.ts @@ -2,14 +2,13 @@ import {AlwatrSmartElement, cache, html, css, type CSSResultGroup, type Property import {localeContextConsumer, setLocale} from '@alwatr/i18n'; import {routeContextConsumer, routerOutlet, type RoutesConfig} from '@alwatr/router'; import {commandTrigger} from '@alwatr/signal'; - import '@alwatr/ui-kit/snackbar/controller.js'; -import '@alwatr/ui-kit/style/token.css'; import '@alwatr/ui-kit/style/pwa.css'; +import '@alwatr/ui-kit/style/token.css'; -import './signal/sw-user-notify.js'; -import './signal/register-service-worker-command.js'; import './signal/back-click-event.js'; +import './signal/register-service-worker-command.js'; +import './signal/sw-user-notify.js'; /** * Alwatr Root Base Element diff --git a/ui/ui-kit/src/button/button.ts b/ui/ui-kit/src/button/button.ts index cdd0cfa40..392ff9425 100644 --- a/ui/ui-kit/src/button/button.ts +++ b/ui/ui-kit/src/button/button.ts @@ -1,5 +1,4 @@ import {css, customElement, html} from '@alwatr/element'; - import '@alwatr/icon'; import {AlwatrSurface} from '../card/surface.js'; diff --git a/ui/ui-kit/src/button/icon-button.ts b/ui/ui-kit/src/button/icon-button.ts index 70de60de6..232f1a22d 100644 --- a/ui/ui-kit/src/button/icon-button.ts +++ b/ui/ui-kit/src/button/icon-button.ts @@ -1,12 +1,11 @@ import {css, customElement, html, property, type PropertyValues} from '@alwatr/element'; +import '@alwatr/icon'; import {eventTrigger} from '@alwatr/signal'; import {AlwatrSurface} from '../card/surface.js'; import type {StringifyableRecord, ClickSignalType} from '@alwatr/type'; -import '@alwatr/icon'; - declare global { interface HTMLElementTagNameMap { 'alwatr-icon-button': AlwatrStandardIconButton; diff --git a/ui/ui-kit/src/card/icon-box.ts b/ui/ui-kit/src/card/icon-box.ts index d57061683..971a85e83 100644 --- a/ui/ui-kit/src/card/icon-box.ts +++ b/ui/ui-kit/src/card/icon-box.ts @@ -1,5 +1,4 @@ import {css, customElement, html, property, nothing, ifDefined, PropertyValues, when} from '@alwatr/element'; - import '@alwatr/icon'; import {AlwatrSurface} from './surface.js'; diff --git a/ui/ui-kit/src/card/image-box.ts b/ui/ui-kit/src/card/image-box.ts index 2372a7949..ffcea752c 100644 --- a/ui/ui-kit/src/card/image-box.ts +++ b/ui/ui-kit/src/card/image-box.ts @@ -1,10 +1,11 @@ import {css, customElement, html, property, nothing, ifDefined, type PropertyValues} from '@alwatr/element'; -import {StringifyableRecord} from '@alwatr/type'; - import '@alwatr/icon'; import {AlwatrSurface} from './surface.js'; +import type {StringifyableRecord} from '@alwatr/type'; + + declare global { interface HTMLElementTagNameMap { 'alwatr-image-box': AlwatrImageBox; diff --git a/ui/ui-kit/src/chat/chat-list.ts b/ui/ui-kit/src/chat/chat-list.ts index 9e3be6ca5..be0256890 100644 --- a/ui/ui-kit/src/chat/chat-list.ts +++ b/ui/ui-kit/src/chat/chat-list.ts @@ -1,4 +1,5 @@ import {AlwatrDummyElement, css, customElement, html, nothing, property} from '@alwatr/element'; + import './chat-message.js'; import type {ChatStorage} from '@alwatr/type'; diff --git a/ui/ui-kit/src/chat/chat-message.ts b/ui/ui-kit/src/chat/chat-message.ts index 24e8f6112..db7a5b675 100644 --- a/ui/ui-kit/src/chat/chat-message.ts +++ b/ui/ui-kit/src/chat/chat-message.ts @@ -9,11 +9,11 @@ import { SignalMixin, } from '@alwatr/element'; -import type {ChatMessage} from '@alwatr/type'; - import './chat-avatar.js'; import './chat-bubble.js'; +import type {ChatMessage} from '@alwatr/type'; + declare global { interface HTMLElementTagNameMap { 'alwatr-chat-message': AlwatrChatMessage; diff --git a/ui/ui-kit/src/chat/chat.ts b/ui/ui-kit/src/chat/chat.ts index 7b5d19d5a..8b8eb576c 100644 --- a/ui/ui-kit/src/chat/chat.ts +++ b/ui/ui-kit/src/chat/chat.ts @@ -1,10 +1,10 @@ import {customElement, AlwatrSmartElement, css, html} from '@alwatr/element'; -import type {ChatStorage} from '@alwatr/type'; - import './chat-footer.js'; import './chat-list.js'; +import type {ChatStorage} from '@alwatr/type'; + declare global { interface HTMLElementTagNameMap { 'alwatr-chat': AlwatrChat; diff --git a/ui/ui-kit/src/snackbar/controller.ts b/ui/ui-kit/src/snackbar/controller.ts index 0bb5aabc9..e0064a025 100644 --- a/ui/ui-kit/src/snackbar/controller.ts +++ b/ui/ui-kit/src/snackbar/controller.ts @@ -1,6 +1,7 @@ import {createLogger} from '@alwatr/logger'; import {clamp} from '@alwatr/math'; import {commandHandler} from '@alwatr/signal'; + import './element.js'; import type {SnackbarOptions, SnackbarResponse} from './type.js'; diff --git a/ui/ui-kit/src/snackbar/element.ts b/ui/ui-kit/src/snackbar/element.ts index daec35f1a..95fd88396 100644 --- a/ui/ui-kit/src/snackbar/element.ts +++ b/ui/ui-kit/src/snackbar/element.ts @@ -1,9 +1,8 @@ import {html, css, customElement, property, when} from '@alwatr/element'; import {untilEvent} from '@alwatr/util'; -import {AlwatrSurface} from '../card/surface.js'; - import '../button/button.js'; +import {AlwatrSurface} from '../card/surface.js'; declare global { interface HTMLElementTagNameMap { diff --git a/ui/ui-kit/src/text-field/text-field.ts b/ui/ui-kit/src/text-field/text-field.ts index a3adcabde..4cd172af5 100644 --- a/ui/ui-kit/src/text-field/text-field.ts +++ b/ui/ui-kit/src/text-field/text-field.ts @@ -1,7 +1,6 @@ import {css, customElement, html, property, ifDefined, type PropertyValues} from '@alwatr/element'; -import {UnicodeDigits} from '@alwatr/math'; - import '@alwatr/icon'; +import {UnicodeDigits} from '@alwatr/math'; import {AlwatrSurface} from '../card/surface.js'; diff --git a/ui/ui-kit/src/top-app-bar/top-app-bar.ts b/ui/ui-kit/src/top-app-bar/top-app-bar.ts index 3e796273c..70320023a 100644 --- a/ui/ui-kit/src/top-app-bar/top-app-bar.ts +++ b/ui/ui-kit/src/top-app-bar/top-app-bar.ts @@ -10,9 +10,8 @@ import { type PropertyValues, } from '@alwatr/element'; -import {AlwatrSurface} from '../card/surface.js'; - import '../button/icon-button.js'; +import {AlwatrSurface} from '../card/surface.js'; import type {IconButtonContent} from '../button/icon-button.js'; import type {StringifyableRecord} from '@alwatr/type'; diff --git a/uniquely/com-api/src/index.ts b/uniquely/com-api/src/index.ts index ae4284ac0..efa8739f4 100644 --- a/uniquely/com-api/src/index.ts +++ b/uniquely/com-api/src/index.ts @@ -1,11 +1,10 @@ import {logger} from './lib/config.js'; - -import './route/home.js'; import './route/get-order-list.js'; -import './route/get-product-list.js'; import './route/get-price-list.js'; -import './route/put-order.js'; -import './route/patch-product-list.js'; +import './route/get-product-list.js'; +import './route/home.js'; import './route/patch-price-list.js'; +import './route/patch-product-list.js'; +import './route/put-order.js'; logger.logOther('..:: Alwatr Customer Order Management API ::..'); diff --git a/uniquely/com-pwa/src/alwatr-pwa.ts b/uniquely/com-pwa/src/alwatr-pwa.ts index 0b3b8d09e..01d9f8e10 100644 --- a/uniquely/com-pwa/src/alwatr-pwa.ts +++ b/uniquely/com-pwa/src/alwatr-pwa.ts @@ -1,10 +1,9 @@ import {html, customElement} from '@alwatr/element'; +import '@alwatr/font/vazirmatn.css'; import {AlwatrPwaElement} from '@alwatr/pwa-helper/pwa-element.js'; - import '@alwatr/ui-kit/style/mobile-only.css'; -import '@alwatr/ui-kit/style/theme/palette-85.css'; import '@alwatr/ui-kit/style/theme/color.css'; -import '@alwatr/font/vazirmatn.css'; +import '@alwatr/ui-kit/style/theme/palette-85.css'; import './director/index.js'; diff --git a/uniquely/com-pwa/src/director/index.ts b/uniquely/com-pwa/src/director/index.ts index c74812ac1..4734af38a 100644 --- a/uniquely/com-pwa/src/director/index.ts +++ b/uniquely/com-pwa/src/director/index.ts @@ -1,6 +1,6 @@ -import './l18e-loader.js'; import './content-provider.js'; -import './product-storage-context-provider.js'; -import './user-context-provider.js'; +import './l18e-loader.js'; import './order-storage-context-provider.js'; +import './product-storage-context-provider.js'; import './submit-order-command-handler.js'; +import './user-context-provider.js'; diff --git a/uniquely/com-pwa/src/page-404.ts b/uniquely/com-pwa/src/page-404.ts index 34e4c687e..14494c610 100644 --- a/uniquely/com-pwa/src/page-404.ts +++ b/uniquely/com-pwa/src/page-404.ts @@ -1,15 +1,14 @@ import {customElement, AlwatrSmartElement, css, html, LocalizeMixin} from '@alwatr/element'; import {message} from '@alwatr/i18n'; +import '@alwatr/ui-kit/card/icon-box.js'; +import '@alwatr/ui-kit/top-app-bar/top-app-bar.js'; +import './app-footer'; import {submitOrderCommandTrigger} from './context.js'; import type {IconBoxContent} from '@alwatr/ui-kit/card/icon-box.js'; import type {TopAppBarContent} from '@alwatr/ui-kit/top-app-bar/top-app-bar.js'; -import '@alwatr/ui-kit/card/icon-box.js'; -import '@alwatr/ui-kit/top-app-bar/top-app-bar.js'; -import './app-footer'; - declare global { interface HTMLElementTagNameMap { 'alwatr-page-404': AlwatrPage404; diff --git a/uniquely/flight-finder-api/src/index.ts b/uniquely/flight-finder-api/src/index.ts index 603742e7e..7085329af 100644 --- a/uniquely/flight-finder-api/src/index.ts +++ b/uniquely/flight-finder-api/src/index.ts @@ -1,7 +1,7 @@ +import {logger} from './config.js'; import './route/home.js'; -import './route/job/put.js'; import './route/job/delete.js'; import './route/job/get.js'; -import {logger} from './config.js'; +import './route/job/put.js'; logger.logOther('..:: Alwatr Flight Finder Application API ::..'); diff --git a/uniquely/flight-finder-pwa/src/alwatr-pwa.ts b/uniquely/flight-finder-pwa/src/alwatr-pwa.ts index c89a1ee4d..a39e8f3cb 100644 --- a/uniquely/flight-finder-pwa/src/alwatr-pwa.ts +++ b/uniquely/flight-finder-pwa/src/alwatr-pwa.ts @@ -1,12 +1,13 @@ import {customElement, html} from '@alwatr/element'; -import {AlwatrPwaElement} from '@alwatr/element/pwa-element.js'; -import {type RoutesConfig} from '@alwatr/router'; +import {AlwatrPwaElement} from '@alwatr/pwa-helper/pwa-element.js'; +import './component/ionic-components.js'; +import './component/page-flight-finder.js'; import ionNormalize from './style/ionic.normalize.js'; import ionTheming from './style/ionic.theming.js'; -import './component/page-flight-finder.js'; -import './component/ionic-components.js'; +import type {RoutesConfig} from '@alwatr/router'; + declare global { interface HTMLElementTagNameMap { diff --git a/uniquely/flight-finder-pwa/src/component/job-add-form.ts b/uniquely/flight-finder-pwa/src/component/job-add-form.ts index 4ba797cb7..d51357b29 100644 --- a/uniquely/flight-finder-pwa/src/component/job-add-form.ts +++ b/uniquely/flight-finder-pwa/src/component/job-add-form.ts @@ -2,6 +2,7 @@ import {AlwatrSmartElement, customElement, css, html} from '@alwatr/element'; import {message, localeContextConsumer, number} from '@alwatr/i18n'; import {eventTrigger} from '@alwatr/signal'; +import './ionic-components'; import {cityList} from '../city-list.js'; import ionNormalize from '../style/ionic.normalize.js'; import ionTheming from '../style/ionic.theming.js'; @@ -9,8 +10,6 @@ import ionTheming from '../style/ionic.theming.js'; import type {NewJobDetail} from '../type.js'; import type {InputCustomEvent, SelectCustomEvent} from '@ionic/core'; -import './ionic-components'; - declare global { interface HTMLElementTagNameMap { 'job-add-form': JobAddForm; diff --git a/uniquely/flight-finder-pwa/src/component/job-item.ts b/uniquely/flight-finder-pwa/src/component/job-item.ts index 78ce1736f..a6d91d2ab 100644 --- a/uniquely/flight-finder-pwa/src/component/job-item.ts +++ b/uniquely/flight-finder-pwa/src/component/job-item.ts @@ -10,17 +10,16 @@ import { nothing, } from '@alwatr/element'; import {message, number} from '@alwatr/i18n'; +import '@alwatr/icon'; import {eventTrigger} from '@alwatr/signal'; +import './ionic-components.js'; import {cityList} from '../city-list.js'; import ionNormalize from '../style/ionic.normalize.js'; import ionTheming from '../style/ionic.theming.js'; import type {Job, JobResult} from '@alwatr/type/flight-finder.js'; -import '@alwatr/icon'; -import './ionic-components.js'; - declare global { interface HTMLElementTagNameMap { 'job-item': JobItem; diff --git a/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts b/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts index af0952155..07414a3ec 100644 --- a/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts +++ b/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts @@ -3,14 +3,14 @@ import {message, number} from '@alwatr/i18n'; import {requestableContextConsumer} from '@alwatr/signal'; import {modalController} from '@ionic/core'; +import './job-add-form.js'; +import './job-item.js'; import ionNormalize from '../style/ionic.normalize.js'; import ionTheming from '../style/ionic.theming.js'; import type {AlwatrDocumentStorage} from '@alwatr/type'; import type {Job} from '@alwatr/type/flight-finder.js'; -import './job-item.js'; -import './job-add-form.js'; declare global { interface HTMLElementTagNameMap { diff --git a/uniquely/soffit-pwa/src/alwatr-pwa.ts b/uniquely/soffit-pwa/src/alwatr-pwa.ts index ebb029aa2..de865a04c 100644 --- a/uniquely/soffit-pwa/src/alwatr-pwa.ts +++ b/uniquely/soffit-pwa/src/alwatr-pwa.ts @@ -1,10 +1,9 @@ import {html, customElement} from '@alwatr/element'; +import '@alwatr/font/vazirmatn.css'; import {AlwatrPwaElement} from '@alwatr/pwa-helper/pwa-element.js'; - import '@alwatr/ui-kit/style/mobile-only.css'; -import '@alwatr/ui-kit/style/theme/palette-270.css'; import '@alwatr/ui-kit/style/theme/color.css'; -import '@alwatr/font/vazirmatn.css'; +import '@alwatr/ui-kit/style/theme/palette-270.css'; import './director/index.js'; diff --git a/uniquely/soffit-pwa/src/director/index.ts b/uniquely/soffit-pwa/src/director/index.ts index 5368aff01..6dcd30fa7 100644 --- a/uniquely/soffit-pwa/src/director/index.ts +++ b/uniquely/soffit-pwa/src/director/index.ts @@ -1,4 +1,4 @@ -import './l18e-loader.js'; +import './change-language.js'; import './content-provider.js'; +import './l18e-loader.js'; import './submit-form-command-handler.js'; -import './change-language.js'; diff --git a/uniquely/soffit-pwa/src/lottery-box.ts b/uniquely/soffit-pwa/src/lottery-box.ts index cec3c79d0..dd75e54f0 100644 --- a/uniquely/soffit-pwa/src/lottery-box.ts +++ b/uniquely/soffit-pwa/src/lottery-box.ts @@ -8,13 +8,14 @@ import { type PropertyValues, } from '@alwatr/element'; import {message} from '@alwatr/i18n'; +import '@alwatr/ui-kit/card/icon-box.js'; import {untilNextFrame, untilEvent, delay} from '@alwatr/util'; +import './lottery-form.js'; + import type {AlwatrLotteryForm} from './lottery-form.js'; import type {AlwatrIconBox, IconBoxContent} from '@alwatr/ui-kit/card/icon-box.js'; -import '@alwatr/ui-kit/card/icon-box.js'; -import './lottery-form.js'; declare global { interface HTMLElementTagNameMap { diff --git a/uniquely/soffit-pwa/src/lottery-form.ts b/uniquely/soffit-pwa/src/lottery-form.ts index 2df219514..de8fad2c4 100644 --- a/uniquely/soffit-pwa/src/lottery-form.ts +++ b/uniquely/soffit-pwa/src/lottery-form.ts @@ -1,15 +1,15 @@ import {customElement, css, html, property, AlwatrSmartElement, LocalizeMixin} from '@alwatr/element'; import {message} from '@alwatr/i18n'; import {commandTrigger} from '@alwatr/signal'; +import '@alwatr/ui-kit/button/button.js'; +import '@alwatr/ui-kit/text-field/text-field.js'; + +import './tech-dep/radio-group.js'; import type {RadioGroupOptions} from './tech-dep/radio-group.js'; import type {FormData} from './type.js'; import type {AlwatrTextField} from '@alwatr/ui-kit/text-field/text-field.js'; -import '@alwatr/ui-kit/text-field/text-field.js'; -import '@alwatr/ui-kit/button/button.js'; -import './tech-dep/radio-group.js'; - declare global { interface HTMLElementTagNameMap { 'alwatr-lottery-form': AlwatrLotteryForm; diff --git a/uniquely/soffit-pwa/src/page-home.ts b/uniquely/soffit-pwa/src/page-home.ts index 1cdcd6577..310dc9a9d 100644 --- a/uniquely/soffit-pwa/src/page-home.ts +++ b/uniquely/soffit-pwa/src/page-home.ts @@ -1,8 +1,8 @@ import {customElement, AlwatrSmartElement, css, html, unsafeHTML, map, state, nothing} from '@alwatr/element'; import {contextConsumer} from '@alwatr/signal'; - import '@alwatr/ui-kit/card/icon-box.js'; import '@alwatr/ui-kit/top-app-bar/top-app-bar.js'; + import './lottery-box.js'; import './supply-chain-box.js'; diff --git a/uniquely/soffit-pwa/src/page-product.ts b/uniquely/soffit-pwa/src/page-product.ts index e66efe122..44bf2b9cf 100644 --- a/uniquely/soffit-pwa/src/page-product.ts +++ b/uniquely/soffit-pwa/src/page-product.ts @@ -1,6 +1,5 @@ import {customElement, AlwatrSmartElement, css, html, state, map, nothing, unsafeHTML} from '@alwatr/element'; import {contextConsumer} from '@alwatr/signal'; - import '@alwatr/ui-kit/button/icon-button.js'; import '@alwatr/ui-kit/card/image-box.js'; import '@alwatr/ui-kit/top-app-bar/top-app-bar.js'; diff --git a/uniquely/soffit-pwa/src/supply-chain-box.ts b/uniquely/soffit-pwa/src/supply-chain-box.ts index 0c433284e..02b51dac4 100644 --- a/uniquely/soffit-pwa/src/supply-chain-box.ts +++ b/uniquely/soffit-pwa/src/supply-chain-box.ts @@ -2,11 +2,10 @@ import {customElement, html} from '@alwatr/element'; import {message} from '@alwatr/i18n'; import {AlwatrLotteryBox} from './lottery-box.js'; +import './supply-chain-form.js'; import type {IconBoxContent} from '@alwatr/ui-kit/card/icon-box.js'; -import './supply-chain-form.js'; - declare global { interface HTMLElementTagNameMap { 'alwatr-supply-chain-box': AlwatrSupplyChainBox; diff --git a/uniquely/soffit-pwa/src/supply-chain-form.ts b/uniquely/soffit-pwa/src/supply-chain-form.ts index bdf1c867a..ef05537de 100644 --- a/uniquely/soffit-pwa/src/supply-chain-form.ts +++ b/uniquely/soffit-pwa/src/supply-chain-form.ts @@ -1,10 +1,9 @@ import {customElement, html} from '@alwatr/element'; import {message} from '@alwatr/i18n'; +import '@alwatr/ui-kit/button/button.js'; +import '@alwatr/ui-kit/text-field/text-field.js'; import {AlwatrLotteryForm} from './lottery-form.js'; - -import '@alwatr/ui-kit/text-field/text-field.js'; -import '@alwatr/ui-kit/button/button.js'; import './tech-dep/radio-group.js'; declare global {