Browse Source

Make live modeling demo consistent with publication (edge label: design -> model)

Joeri Exelmans 1 year ago
parent
commit
0dd80918bd
3 changed files with 5 additions and 8 deletions
  1. 1 1
      package.json
  2. 3 6
      pnpm-lock.yaml
  3. 1 1
      src/frontend/demos/demo_live.tsx

+ 1 - 1
package.json

@@ -1,5 +1,5 @@
 {
-	"name": "onioncollab",
+	"name": "onion-demo",
 	"sideEffects": false,
 	"dependencies": {
 		"@mantine/core": "^6.0.19",

+ 3 - 6
pnpm-lock.yaml

@@ -46,7 +46,7 @@ dependencies:
     version: 3.0.0
   onion-core:
     specifier: git+https://msdl.uantwerpen.be/git/jexelmans/onion-core.git
-    version: msdl.uantwerpen.be/git/jexelmans/onion-core/aee2d0551819f57307957c082fc03e2141fda80a
+    version: msdl.uantwerpen.be/git/jexelmans/onion-core/c21e6eff05758f0343225fc259280e479b6f0f10
   react:
     specifier: ^18.2.0
     version: 18.2.0
@@ -4701,14 +4701,11 @@ packages:
     engines: {node: '>=10'}
     dev: true
 
-  msdl.uantwerpen.be/git/jexelmans/onion-core/aee2d0551819f57307957c082fc03e2141fda80a:
-    resolution: {commit: aee2d0551819f57307957c082fc03e2141fda80a, repo: https://msdl.uantwerpen.be/git/jexelmans/onion-core.git, type: git}
+  msdl.uantwerpen.be/git/jexelmans/onion-core/c21e6eff05758f0343225fc259280e479b6f0f10:
+    resolution: {commit: c21e6eff05758f0343225fc259280e479b6f0f10, repo: https://msdl.uantwerpen.be/git/jexelmans/onion-core.git, type: git}
     name: onion-core
     version: 0.0.0
     requiresBuild: true
     dependencies:
-      buffer: 6.0.3
-      crypto-browserify: 3.12.0
-      stream-browserify: 3.0.0
       typescript: 4.9.5
     dev: false

+ 1 - 1
src/frontend/demos/demo_live.tsx

@@ -399,7 +399,7 @@ export function getDemoLive() {
           const nodeCreation = deltaRegistry.newNodeCreation(runtimeId);
           graphState.exec(nodeCreation);
           graphState.exec(deltaRegistry.newEdgeUpdate(nodeCreation.createOutgoingEdge("type"), "RuntimeModel"));
-          graphState.exec(deltaRegistry.newEdgeUpdate(nodeCreation.createOutgoingEdge("design"), runtimeStuff.modelNode!.creation));
+          graphState.exec(deltaRegistry.newEdgeUpdate(nodeCreation.createOutgoingEdge("model"), runtimeStuff.modelNode!.creation));
           // set the 'current' pointer - read dependency on 'initial'.
           graphState.exec(deltaRegistry.newEdgeUpdate(nodeCreation.createOutgoingEdge("current"), runtimeStuff.initial!.creation, [(runtimeStuff.modelNode!.outgoingDeltas.get("initial")!.read())]));
           return {compositeLabel: "initialize"};