Skip to content

Commit

Permalink
Update to pinned version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Nov 3, 2023
1 parent 4e39fc5 commit d33eafa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions common/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ const languages = {
"fr": "🇫🇷"
}
@template(function(this: Main) {
const ENV = Datex.Runtime.ENV;
return <div class="main">
<h1>{this.strings.title}</h1>
<div class="flags">
{
Object.entries(languages).map(([lang, flag]) =>
<div
data-active={always(() => 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}
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion frontend/entrypoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin: auto;
text-align: center;
flex-direction: column;
height: 100%;
height: 100vh;
&>.flags {
display: flex;
grid-gap: 20px;
Expand Down
16 changes: 8 additions & 8 deletions importmap.json
Original file line number Diff line number Diff line change
@@ -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/"
}
}

0 comments on commit d33eafa

Please sign in to comment.