From d33eafa53cd8e06e5ed45dcd7b2b09290846a129 Mon Sep 17 00:00:00 2001 From: Jonas Strehle Date: Fri, 3 Nov 2023 18:14:24 +0100 Subject: [PATCH] Update to pinned version --- common/components/Main.tsx | 5 ++--- frontend/entrypoint.scss | 2 +- importmap.json | 16 ++++++++-------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/common/components/Main.tsx b/common/components/Main.tsx index 14c2a34..f070dc4 100644 --- a/common/components/Main.tsx +++ b/common/components/Main.tsx @@ -9,15 +9,14 @@ const languages = { "fr": "🇫🇷" } @template(function(this: Main) { - const ENV = Datex.Runtime.ENV; return

{this.strings.title}

{ Object.entries(languages).map(([lang, flag]) =>
ENV.LANG === lang)} - onclick={() => ENV.LANG = lang} class="toggle"> + data-active={always(() => use(lang) && Datex.Runtime.ENV.LANG === lang)} + onclick:frontend={() => use(lang) && (Datex.Runtime.ENV.LANG = lang)} class="toggle"> {flag}
) diff --git a/frontend/entrypoint.scss b/frontend/entrypoint.scss index aee7b15..1b27317 100644 --- a/frontend/entrypoint.scss +++ b/frontend/entrypoint.scss @@ -5,7 +5,7 @@ margin: auto; text-align: center; flex-direction: column; - height: 100%; + height: 100vh; &>.flags { display: flex; grid-gap: 20px; diff --git a/importmap.json b/importmap.json index 2001c4d..b055b5c 100644 --- a/importmap.json +++ b/importmap.json @@ -1,12 +1,12 @@ { "imports": { - "datex-core-legacy": "https://dev.cdn.unyt.org/unyt_core/datex.ts", - "datex-core-legacy/": "https://dev.cdn.unyt.org/unyt_core/", - "unyt_core": "https://dev.cdn.unyt.org/unyt_core/datex.ts", - "unyt_core/": "https://dev.cdn.unyt.org/unyt_core/", - "uix": "https://dev.cdn.unyt.org/uix1/uix.ts", - "uix/": "https://dev.cdn.unyt.org/uix1/src/", - "uix/jsx-runtime": "https://dev.cdn.unyt.org/uix1/src/jsx-runtime/jsx.ts", - "unyt-tests/": "https://dev.cdn.unyt.org/unyt_tests/" + "datex-core-legacy": "https://cdn.unyt.org/datex-core-js-legacy@0.0.x/datex.ts", + "datex-core-legacy/": "https://cdn.unyt.org/datex-core-js-legacy@0.0.x/", + "unyt_core": "https://cdn.unyt.org/datex-core-js-legacy@0.0.x/datex.ts", + "unyt_core/": "https://cdn.unyt.org/datex-core-js-legacy@0.0.x/", + "uix": "https://cdn.unyt.org/uix@0.1.x/uix.ts", + "uix/": "https://cdn.unyt.org/uix@0.1.x/src/", + "uix/jsx-runtime": "https://cdn.unyt.org/uix@0.1.x/src/jsx-runtime/jsx.ts", + "unyt-tests/": "https://cdn.unyt.org/unyt_tests/" } } \ No newline at end of file