diff --git a/bun.lockb b/bun.lockb index ce79e9c..73c25fe 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 4d63e16..570a1ee 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "prettier-plugin-svelte": "^3.5.1", "prettier-plugin-tailwindcss": "^0.7.2", "storybook": "^10.3.5", - "svelte": "^5.55.2", + "svelte": "^5.56.3", "svelte-adapter-bun": "^1.0.1", "svelte-check": "^4.4.6", "svelte-sonner": "^1.1.0", diff --git a/src/lib/components/dashboard-quick-adb.svelte b/src/lib/components/dashboard-quick-adb.svelte index bec5fc8..452fb94 100644 --- a/src/lib/components/dashboard-quick-adb.svelte +++ b/src/lib/components/dashboard-quick-adb.svelte @@ -83,12 +83,12 @@ errors: [] }); - handleIncomingMessages( - JSON.stringify({ - type: 'chat', - payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has connected to ${boxid}` - }) - ); + // handleIncomingMessages( + // JSON.stringify({ + // type: 'chat', + // payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has connected to ${boxid}` + // }) + // ); } else { machineStatus = 'Instance lost, try disconnect and re-connect again'; toast.error('Unexpected Error'); @@ -221,12 +221,12 @@ connectDeviceOk = false; - handleIncomingMessages( - JSON.stringify({ - type: 'chat', - payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has disconnected!` - }) - ); + // handleIncomingMessages( + // JSON.stringify({ + // type: 'chat', + // payload: `${new Date().toLocaleTimeString()}: ${get(authStore)?.displayName} has disconnected!` + // }) + // ); } function checkDeviceConnection() { diff --git a/src/lib/core/handlers/adbPayloadHandler.ts b/src/lib/core/handlers/adbPayloadHandler.ts index fbc3f2b..a27f993 100644 --- a/src/lib/core/handlers/adbPayloadHandler.ts +++ b/src/lib/core/handlers/adbPayloadHandler.ts @@ -59,16 +59,16 @@ async function handleAdbPayload(raw_payload: string) { } if (raw_payload.startsWith('save_recipe_machine')) { - handleIncomingMessages( - JSON.stringify({ - type: 'ui_action', - payload: { - action: uiAction, - from: 'brew', - ref: `${pd}.${action}` - } - }) - ); + // handleIncomingMessages( + // JSON.stringify({ + // type: 'ui_action', + // payload: { + // action: uiAction, + // from: 'brew', + // ref: `${pd}.${action}` + // } + // }) + // ); } } else if (raw_payload.startsWith('state')) { let res = raw_payload.split('/'); diff --git a/src/routes/(authed)/sheet/add/[country]/[catalog]/+page.svelte b/src/routes/(authed)/sheet/add/[country]/[catalog]/+page.svelte index 3a88e2f..00a1b59 100644 --- a/src/routes/(authed)/sheet/add/[country]/[catalog]/+page.svelte +++ b/src/routes/(authed)/sheet/add/[country]/[catalog]/+page.svelte @@ -465,7 +465,7 @@ await loadAvailableProductCodes(); // Enter room to get lock - const entered = enterRoom(country, catalog); + const entered = await enterRoom(country, catalog); if (entered) { addNotification(`INFO:Entered ${getCatalogDisplayName(catalog)} for adding menu`); @@ -815,13 +815,15 @@ +