Skip to content

Commit

Permalink
Upgrade for UIX@0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Oct 16, 2024
1 parent ef43373 commit a8cfc4d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/uix-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- main
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
HOST_TOKEN: ${{secrets.HOST_TOKEN}}
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -18,4 +19,4 @@ jobs:
- name: Setup Deno
uses: "denoland/setup-deno@v1"
- name: Deploy UIX App
run: "deno run --importmap ./importmap.json -Aqr https://cdn.unyt.org/uix@0.2.x/run.ts --stage prod --detach"
run: "deno run --importmap ./importmap.json -Aqr https://cdn.unyt.org/uix@0.3.x/run.ts --stage prod --detach"
4 changes: 2 additions & 2 deletions backend/entrypoint.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Main } from "../common/components/Main.tsx";
import { Entrypoint } from "uix/html/entrypoints.ts";
import { Main } from "common/components/Main.tsx";
import { Entrypoint } from "uix/providers/entrypoints.ts";
import { renderBackend } from 'uix/base/render-methods.ts';

export default {
Expand Down
4 changes: 2 additions & 2 deletions common/components/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { include } from "uix/base/decorators.ts";
import { Component } from "uix/components/Component.ts";
import { template } from "uix/html/template.ts";
import { always, Datex } from "unyt_core/datex.ts";
import { always, Datex } from "datex-core-legacy/datex.ts";

const languages = {
"en": "🇺🇸",
Expand All @@ -15,7 +15,7 @@ const languages = {
{
Object.entries(languages).map(([lang, flag]) =>
<div
data-active={always(() => Datex.Runtime.ENV.LANG === lang)}
data-active={Datex.Runtime.ENV.LANG === lang}
onclick:frontend={() => use("standalone", lang) && (Datex.Runtime.ENV.LANG = lang)} class="toggle">
{flag}
</div>
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"dom"
]
}
}
}
4 changes: 2 additions & 2 deletions frontend/entrypoint.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Main } from '../common/components/Main.tsx';
import { Entrypoint } from "uix/html/entrypoints.ts";
import { Main } from 'common/components/Main.tsx';
import { Entrypoint } from "uix/providers/entrypoints.ts";

export default {
'/': <Main/>,
Expand Down
14 changes: 7 additions & 7 deletions importmap.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"imports": {
"datex-core-legacy": "https://cdn.unyt.org/datex-core-js-legacy@0.1.x/datex.ts",
"datex-core-legacy/": "https://cdn.unyt.org/datex-core-js-legacy@0.1.x/",
"unyt_core": "https://cdn.unyt.org/datex-core-js-legacy@0.1.x/datex.ts",
"unyt_core/": "https://cdn.unyt.org/datex-core-js-legacy@0.1.x/",
"uix": "https://cdn.unyt.org/uix@0.2.x/uix.ts",
"uix/": "https://cdn.unyt.org/uix@0.2.x/src/",
"uix/jsx-runtime": "https://cdn.unyt.org/uix@0.2.x/src/jsx-runtime/jsx.ts"
"datex-core-legacy": "https://cdn.unyt.org/datex-core-js-legacy@0.2.x/datex.ts",
"datex-core-legacy/": "https://cdn.unyt.org/datex-core-js-legacy@0.2.x/",
"uix": "https://cdn.unyt.org/uix@0.3.x/uix.ts",
"uix/": "https://cdn.unyt.org/uix@0.3.x/src/",
"uix/jsx-runtime": "https://cdn.unyt.org/uix@0.3.x/src/jsx-runtime/jsx.ts",
"jusix/jsx-runtime": "https://cdn.unyt.org/uix@0.3.x/src/jsx-runtime/jsx.ts",
"unyt-tests/": "https://cdn.unyt.org/unyt_tests/"
}
}

0 comments on commit a8cfc4d

Please sign in to comment.