Mel Massadian 114db05be0 refactor: 🔨 migrate comfy_shared to typescript and modularize
Split monolithic 1400-line comfy_shared.js into focused TypeScript modules in web_source/src/comfy_shared/:
- api.ts: server API utilities (runAction, getServerInfo, setServerInfo)
- colors.ts: color brightness utilities
- documentation.ts: node documentation widget system
- dom.ts: DOM and HTML utilities
- dynamic-connections.ts: dynamic input/output management
- logger.ts: logging utilities with toast notifications
- node-extensions.ts: node type extension helpers
- storage.ts: namespaced localStorage management
- types.ts: comprehensive type definitions
- utils.ts: base utilities (UUID, debounce, deep merge)
- widgets.ts: LiteGraph widget utilities

Benefits:
- ~200 LOC reduction through proper typing and elimination of redundant code
- Better code organization with single-responsibility modules
- Full TypeScript type safety with proper generics
- Improved documentation and maintainability
- Easier to tree-shake unused utilities

Updated vite.config.ts to build comfy_shared as separate entry point and marked external dependencies (/mtb_async modules).

Modified InspectorItem.svelte to use extracted item.value instead of always pulling from widgets[0].

Renamed panel.ts to panel.svelte.ts to enable Svelte 5 runes and made APIPanel reactive using $state instead of $$set.
2025-12-07 19:54:31 +01:00
2025-05-23 02:11:22 +02:00
2024-03-07 06:12:04 +01:00
2024-07-06 18:26:45 +02:00
2023-07-07 14:24:51 +02:00
2023-09-02 21:09:37 +02:00
2024-02-29 19:07:01 +01:00
2025-02-01 14:40:43 +01:00
2024-12-27 19:29:34 +01:00
2025-09-07 11:55:05 +00:00
2024-04-25 20:42:34 +02:00
2025-05-23 01:34:56 +02:00
2024-04-25 03:21:49 +02:00
2024-04-02 17:23:49 +02:00
2024-06-21 20:44:46 +02:00
2023-07-24 22:24:38 +02:00
2025-09-07 11:55:05 +00:00
2025-04-17 01:25:02 +02:00
2024-02-04 17:18:11 +01:00
2025-05-07 10:56:29 +02:00
2025-05-07 10:56:29 +02:00
2025-09-07 11:55:05 +00:00
2023-10-21 03:14:12 +02:00
2025-06-05 16:37:27 +02:00
2023-07-09 18:04:01 +02:00
2025-09-07 11:55:06 +00:00
2023-11-29 15:41:47 +01:00
2025-09-07 11:55:06 +00:00
2025-09-06 11:03:42 +02:00
2025-09-07 11:55:06 +00:00
2025-02-20 00:58:06 +01:00
2023-06-23 04:00:22 +02:00
2025-09-07 11:55:05 +00:00

MTB Nodes

Caution

A lot of recent changes to comfy broke many things in mtb (colors, dynamic inputs and probably more) dev/0.6.0 partially address these. My time is limited lately so it might take time to finish and merge

embedded test

home

Buy Me A Coffee

Wiki | Install Guide | Examples

S
Description
No description provided
Readme MIT
8.1 MiB
Languages
JavaScript 75.9%
Python 23.6%
Nushell 0.3%
CSS 0.2%