frontend wip

feat/orm
Laurin Weger 6 days ago
parent 0267abb31c
commit 58d9f7759e
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 3
      pnpm-lock.yaml
  2. 1
      sdk/ng-sdk-js/ng-signals/package.json
  3. 6
      sdk/ng-sdk-js/ng-signals/src/connector/createSignalObjectForShape.ts

@ -221,6 +221,9 @@ importers:
'@nextgraph-monorepo/ng-alien-deepsignals':
specifier: workspace:*
version: link:../ng-alien-deepsignals
'@nextgraph-monorepo/ng-sdk-js':
specifier: workspace:*
version: link:../pkg
'@nextgraph-monorepo/ng-shex-orm':
specifier: workspace:*
version: link:../ng-shex-orm

@ -46,6 +46,7 @@
"@gn8/alien-signals-solid": "^0.1.1",
"@gn8/alien-signals-svelte": "^0.1.1",
"@gn8/alien-signals-vue": "^0.1.1",
"@nextgraph-monorepo/ng-sdk-js": "workspace:*",
"@nextgraph-monorepo/ng-shex-orm": "workspace:*",
"@types/react": "19.1.10",
"@types/react-dom": "19.1.7",

@ -1,7 +1,7 @@
import type { Diff, Scope } from "../types.ts";
import { applyDiff } from "./applyDiff.ts";
import ng from "@nextgraph-monorepo/ng-sdk-js";
import * as ng from "@nextgraph-monorepo/ng-sdk-js";
import {
deepSignal,
@ -126,7 +126,9 @@ const onMessage = (event: MessageEvent<WasmMessage>) => {
if (type === "Request") {
// TODO: Handle message from wasm land and js land
// in different functions
ng.orm_start(undefined, event.data.shapeType, sessionId, (res) =>
console.log("result arrived on orm initial", res)
);
return;
}
if (type === "Stop") return;

Loading…
Cancel
Save