From 6914edbeb73f7b2704062cdd66e775e8bece6e7c Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 12 May 2021 15:25:25 +0100 Subject: [PATCH] Make code compile again due to broken imports sorting. --- src/main.ts | 4 +++- src/pages/SetLanguage.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index b088aa2..3affb6c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ /* eslint-disable */ import "./scss/main.scss"; import UIkit from 'uikit'; +// Don't Sort These! import Icons from 'uikit/dist/js/uikit-icons'; // @ts-ignore UIkit.use(Icons); @@ -24,12 +25,13 @@ import { getSealStatus } from "./api/sys/getSealStatus"; import { makeElement } from "./htmlUtils"; import { pageState } from "./globalPageState"; import { playground } from "./playground"; +import { TitleBar } from "./elements/TitleBar"; // Translations import { formatDistance } from './formatDistance'; import i18next from 'i18next'; + // @ts-ignore -import { TitleBar } from "./elements/TitleBar"; import translations from './translations/index.mjs'; declare global { diff --git a/src/pages/SetLanguage.ts b/src/pages/SetLanguage.ts index cc4419b..d10815c 100644 --- a/src/pages/SetLanguage.ts +++ b/src/pages/SetLanguage.ts @@ -4,8 +4,9 @@ import { changePage, setPageContent } from "../pageUtils"; import { makeElement } from "../htmlUtils"; import { pageState } from "../globalPageState"; import i18next from 'i18next'; -// @ts-ignore import { reloadTitleBar } from "../elements/TitleBar"; + +// @ts-ignore import translations from "../translations/index.mjs"; const languageIDs = Object.getOwnPropertyNames(translations);