rename to tono
This commit is contained in:
@@ -705,8 +705,8 @@
|
||||
<span class="cline-any cline-yes">5x</span>
|
||||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { sortNodesForParentOrder } from './nodeHierarchy.js';
|
||||
|
||||
export const NODE_CLIPBOARD_KIND = 'argonode/node-selection';
|
||||
export const NODE_CLIPBOARD_MIME = 'application/x-argonode-node-selection';
|
||||
export const NODE_CLIPBOARD_KIND = 'tono/node-selection';
|
||||
export const NODE_CLIPBOARD_MIME = 'application/x-tono-node-selection';
|
||||
|
||||
function cloneValue(value) {
|
||||
if (value == null) <span class="branch-0 cbranch-no" title="branch not covered" >return value;</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>argonode — Image Analysis</title>
|
||||
<title>tono — Image Analysis</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
4
frontend/package-lock.json
generated
4
frontend/package-lock.json
generated
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "argonode-frontend",
|
||||
"name": "tono-frontend",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "argonode-frontend",
|
||||
"name": "tono-frontend",
|
||||
"dependencies": {
|
||||
"@xyflow/react": "^12.0.0",
|
||||
"html-to-image": "^1.11.13",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "argonode-frontend",
|
||||
"name": "tono-frontend",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"engines": {
|
||||
|
||||
@@ -1278,7 +1278,7 @@ function Flow() {
|
||||
|
||||
useEffect(() => {
|
||||
api.setMessageHandler((msg) => {
|
||||
console.log('[argonode] WS:', msg.type, msg.data?.node_id || msg.data?.node || '');
|
||||
console.log('[tono] WS:', msg.type, msg.data?.node_id || msg.data?.node || '');
|
||||
switch (msg.type) {
|
||||
case 'execution_start':
|
||||
setNodes((ns) => ns.map((n) => ({
|
||||
@@ -1295,7 +1295,7 @@ function Flow() {
|
||||
break;
|
||||
case 'execution_error':
|
||||
setStatus({ text: 'Error: ' + msg.data.message, level: 'error' });
|
||||
console.error('[argonode] execution error', msg.data);
|
||||
console.error('[tono] execution error', msg.data);
|
||||
break;
|
||||
case 'preview':
|
||||
updateNodeData(msg.data.node_id, { previewImage: msg.data.image });
|
||||
@@ -2799,7 +2799,7 @@ function Flow() {
|
||||
<div className="app-container">
|
||||
{/* Toolbar */}
|
||||
<div id="toolbar">
|
||||
<span id="app-title">argonode</span>
|
||||
<span id="app-title">tono</span>
|
||||
|
||||
<div className="toolbar-group">
|
||||
<button className="btn btn-primary" onClick={runWorkflow} title="Run workflow (Ctrl+Enter)">
|
||||
|
||||
@@ -224,7 +224,7 @@ class PreviewBoundary extends React.Component {
|
||||
}
|
||||
|
||||
componentDidCatch(error) {
|
||||
console.error('[argonode] preview render failed', error);
|
||||
console.error('[tono] preview render failed', error);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import React, { useRef, useEffect, useCallback, useState } from 'react';
|
||||
import * as THREE from 'three';
|
||||
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
||||
|
||||
const VIEW3D_DIAGNOSTICS_STORAGE_KEY = 'argonode:view3d-diagnostics';
|
||||
const VIEW3D_DIAGNOSTICS_STORAGE_KEY = 'tono:view3d-diagnostics';
|
||||
const DEFAULT_CAMERA_STATE = {
|
||||
// A diagonal home view avoids edge-on framing when one lateral axis is much smaller.
|
||||
azimuth: Math.PI / 4,
|
||||
@@ -109,7 +109,7 @@ export default function SurfaceView({ meshData, nodeId, widgetValues, runtimeVal
|
||||
try {
|
||||
return canvas.toDataURL('image/png');
|
||||
} catch (error) {
|
||||
console.warn('[argonode] Failed to capture View3D viewport snapshot', error);
|
||||
console.warn('[tono] Failed to capture View3D viewport snapshot', error);
|
||||
updateDiagnostics({
|
||||
status: 'snapshot error',
|
||||
error: error?.message || String(error),
|
||||
@@ -454,7 +454,7 @@ export default function SurfaceView({ meshData, nodeId, widgetValues, runtimeVal
|
||||
}
|
||||
scheduleViewportSync(0, false);
|
||||
} catch (error) {
|
||||
console.error('[argonode] View3D mesh build failed', error);
|
||||
console.error('[tono] View3D mesh build failed', error);
|
||||
updateDiagnostics({
|
||||
status: 'mesh build error',
|
||||
error: error?.message || String(error),
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* api.js — REST + WebSocket client for argonode backend.
|
||||
* api.js — REST + WebSocket client for tono backend.
|
||||
*
|
||||
* Uses relative URLs so the Vite dev proxy (port 5173 → 8188)
|
||||
* and production same-origin serving both work transparently.
|
||||
*/
|
||||
|
||||
const SESSION_STORAGE_KEY = 'argonode-session-id';
|
||||
const SESSION_STORAGE_KEY = 'tono-session-id';
|
||||
|
||||
let _sessionId = null;
|
||||
let _ws = null;
|
||||
@@ -127,17 +127,17 @@ export function initWS() {
|
||||
_ws = new WebSocket(`${protocol}//${window.location.host}/ws?session=${session}`);
|
||||
|
||||
_ws.onopen = () => {
|
||||
console.log('[argonode] WebSocket connected');
|
||||
console.log('[tono] WebSocket connected');
|
||||
};
|
||||
|
||||
_ws.onclose = () => {
|
||||
console.log('[argonode] WebSocket closed, reconnecting in 3s…');
|
||||
console.log('[tono] WebSocket closed, reconnecting in 3s…');
|
||||
clearTimeout(_reconnectTimer);
|
||||
_reconnectTimer = setTimeout(() => initWS(), 3000);
|
||||
};
|
||||
|
||||
_ws.onerror = (e) => {
|
||||
console.error('[argonode] WebSocket error', e);
|
||||
console.error('[tono] WebSocket error', e);
|
||||
};
|
||||
|
||||
_ws.onmessage = (e) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { sortNodesForParentOrder } from './nodeHierarchy.js';
|
||||
|
||||
export const NODE_CLIPBOARD_KIND = 'argonode/node-selection';
|
||||
export const NODE_CLIPBOARD_MIME = 'application/x-argonode-node-selection';
|
||||
export const NODE_CLIPBOARD_KIND = 'tono/node-selection';
|
||||
export const NODE_CLIPBOARD_MIME = 'application/x-tono-node-selection';
|
||||
|
||||
function cloneValue(value) {
|
||||
if (value == null) return value;
|
||||
|
||||
Reference in New Issue
Block a user