Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
82c2f08a56
|
|||
|
a00db400bb
|
|||
|
2d9eb0c087
|
|||
|
1e28ded99b
|
|||
|
5fae518392
|
|||
| 954f5726c3 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nodarium/app",
|
"name": "@nodarium/app",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ export class GraphManager extends EventEmitter<{
|
|||||||
'groupId': {
|
'groupId': {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: '',
|
label: '',
|
||||||
value: this.groups[0].id,
|
value: this.groups?.[0]?.id,
|
||||||
internal: true,
|
internal: true,
|
||||||
options: this.groups.map((g) => ({
|
options: this.groups.map((g) => ({
|
||||||
value: g.id,
|
value: g.id,
|
||||||
|
|||||||
@@ -172,6 +172,7 @@
|
|||||||
config={tutorialConfig}
|
config={tutorialConfig}
|
||||||
actions={{
|
actions={{
|
||||||
'setup-default': () => {
|
'setup-default': () => {
|
||||||
|
console.log('setup-default');
|
||||||
const ts = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
|
const ts = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
|
||||||
pm.handleCreateProject(
|
pm.handleCreateProject(
|
||||||
structuredClone(templates.defaultPlant) as unknown as Graph,
|
structuredClone(templates.defaultPlant) as unknown as Graph,
|
||||||
@@ -179,15 +180,16 @@
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
'load-tutorial-template': () => {
|
'load-tutorial-template': () => {
|
||||||
|
console.log('load-tutorial-template');
|
||||||
if (!pm.graph) return;
|
if (!pm.graph) return;
|
||||||
const g = structuredClone(templates.tutorial) as unknown as Graph;
|
const g = structuredClone(templates.tutorial) as unknown as Graph;
|
||||||
g.id = pm.graph.id;
|
g.id = pm.graph.id;
|
||||||
g.meta = { ...pm.graph.meta };
|
g.meta = { ...pm.graph.meta };
|
||||||
pm.graph = g;
|
manager.load(g);
|
||||||
pm.saveGraph(g);
|
|
||||||
graphInterface.state.centerNode(graphInterface.manager.getAllNodes()[0]);
|
graphInterface.state.centerNode(graphInterface.manager.getAllNodes()[0]);
|
||||||
},
|
},
|
||||||
'open-github-nodes': () => {
|
'open-github-nodes': () => {
|
||||||
|
console.log('open-github-nodes');
|
||||||
window.open(
|
window.open(
|
||||||
'https://github.com/jim-fx/nodarium/tree/main/nodes/max/plantarium',
|
'https://github.com/jim-fx/nodarium/tree/main/nodes/max/plantarium',
|
||||||
'__blank'
|
'__blank'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nodarium/planty",
|
"name": "@nodarium/planty",
|
||||||
"version": "0.0.1",
|
"version": "0.0.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nodarium/types",
|
"name": "@nodarium/types",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nodarium/ui",
|
"name": "@nodarium/ui",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nodarium/utils",
|
"name": "@nodarium/utils",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Reference in New Issue
Block a user