Skip to content

Commit

Permalink
Prepeare for UIX@0.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Oct 12, 2024
1 parent e0503db commit 26004f9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 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.dev.json -Aqr https://dev.cdn.unyt.org/uix1/run.ts --stage prod --detach"
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
1 change: 0 additions & 1 deletion common/TOR-Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const ed = await import("https://unpkg.com/@noble/ed25519@2.0.0/index.js");
const base32 = await import("https://cdn.jsdelivr.net/npm/hi-base32@0.5.1/+esm");
await import("https://cdn.jsdelivr.net/npm/js-sha3@0.9.2/src/sha3.min.js");


export type AddressData = {
address: string;
public: {
Expand Down
4 changes: 2 additions & 2 deletions common/components/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { template } from "uix/html/template.ts";
import { Component } from "uix/components/Component.ts";
import { spawnThreads, spawnThread } from "unyt_core/threads/threads.ts";
import { always, map } from "unyt_core/functions.ts";
import { spawnThreads, spawnThread } from "datex-core-legacy/threads/threads.ts";
import { always, map } from "datex-core-legacy/functions.ts";
import type { AddressData } from "common/TOR-Worker.ts";

@template(function(this: MainPage) {
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_publicImportMap": "./importmap.json",
"_publicImportMap": "./importmap.dev.json",
"importMap": "./.datex-cache/importmap.lock.json",
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
5 changes: 3 additions & 2 deletions frontend/entrypoint.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { MainPage } from "../common/components/MainPage.tsx";
export default <MainPage/>
import { type Entrypoint } from "uix/providers/entrypoints.ts";
import { MainPage } from "common/components/MainPage.tsx";
export default <MainPage/> satisfies Entrypoint;
3 changes: 0 additions & 3 deletions importmap.dev.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"imports": {
"components/": "https://cdn.unyt.org/uix-components-new/",
"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",
Expand Down

0 comments on commit 26004f9

Please sign in to comment.