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 0ff236d commit 448460d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 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 @@ -4,6 +4,7 @@ name: Deploy prod
on: push
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
HOST_TOKEN: ${{secrets.HOST_TOKEN}}
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -15,4 +16,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"
2 changes: 1 addition & 1 deletion backend/.dx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ endpoint: stage {
},

location: stage {
prod: @+unyt-host-1
prod: @+unyt-private-1
},

domain: stage {
Expand Down
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"_publicImportMap": "./importmap.json",
"importMap": "./.datex-cache/importmap.lock.json",
"importMap": "./importmap.json",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "uix",
Expand Down
2 changes: 1 addition & 1 deletion frontend/Textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Pointer } from "unyt_core/datex_all.ts";
import { type Pointer } from "datex-core-legacy/datex_all.ts";

// Textarea functional component
export const Textarea = template<{value: any}>(({value}: {value: Pointer<string>}) => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/entrypoint.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Icon } from "components/Defaults/Icon.tsx";
import { Textarea } from "./Textarea.tsx";
import { History } from "unyt_core/utils/history.ts";
import { Entrypoint } from "uix/html/entrypoints.ts";
import { History } from "datex-core-legacy/utils/history.ts";
import { Entrypoint } from "uix/providers/entrypoints.ts";

// Initializing a pointer with the content of the LoremIpsum file
const content = $$<string>(await datex.get("./LoremIpsum.txt"));
Expand Down
14 changes: 7 additions & 7 deletions importmap.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"imports": {
"components/": "https://cdn.unyt.org/uix-components-new@0.1.x/",
"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 448460d

Please sign in to comment.