Commit Graph

51 Commits

Author SHA1 Message Date
pythongosssss
32d81c13ad Add testing for ComfyUI examples (#95)
* Add testing for ComfyUI examples

* Remove examples, add test to github action

* Create dir

* Update readme
2024-07-07 10:38:28 -04:00
Chenlei Hu
7dae2eb6ba Fix clipboard (#100)
* Fix clipboard

* Add clipboard tests

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-06 21:56:48 -04:00
Chenlei Hu
d1934f27c8 Use '@' path mapping (#94) 2024-07-05 22:04:29 -04:00
Chenlei Hu
e05a33cb17 Rename to ts (#92)
Rename

Remove ts-nocheck, fix errors

Update state when graph cleared via UI (#88)

Convert to ts, fix imports

Co-authored-by: pythongosssss <125205205+pythongosssss@users.noreply.github.com>
2024-07-05 21:18:32 -04:00
Chenlei Hu
84c939cf71 Rename ComfyWorkflow to ComfyWorkflowJSON (#91) 2024-07-05 21:04:32 -04:00
Chenlei Hu
d6b2d5fb4f Use npm package @ComfyOrg/litegraph (#89)
* Use npm to manage litegraph

* Fix merge issues caused by BetaUI change

* Switch to @comfyorg/litegraph

* Fix various import

* Fix css apply order bug

* Fix package lock

* Update litegraph

* Update litegraph

* Update browsertest expectations

* Update test expectations [skip ci]

* Fix default view screenshot

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-05 20:53:47 -04:00
bymyself
27c5bc1581 Update state when graph cleared via UI (#88) 2024-07-05 18:28:39 +01:00
Chenlei Hu
c4b6c9f63e [Sync] Skip state check hook on first load (#87) 2024-07-04 09:44:55 -04:00
Chenlei Hu
acdaa6a594 Format all code / Add pre-commit format hook (#81)
* Add format-guard

* Format code
2024-07-02 13:22:37 -04:00
Chenlei Hu
fc020e08c5 Replace \t with spaces (#80) 2024-07-02 12:29:17 -04:00
Chenlei Hu
5f979e844c Relands BetaUI (#77)
* PR1

* PR2

* pr3

* Fix

* Revert 3909

* Ignore/fix type errors

* Fix import
2024-07-01 18:07:12 -04:00
Chenlei Hu
b69f15e5d7 Revert "Beta UI by pythongosssss (#70)" (#72)
This reverts commit 0d084e2cb0.
2024-07-01 12:58:45 -04:00
Chenlei Hu
0d084e2cb0 Beta UI by pythongosssss (#70)
* PR1

* PR2

* pr3

* Fix

* Revert 3909

* Ignore/fix type errors
2024-07-01 12:55:16 -04:00
Chenlei Hu
3799100811 Fix workflow not importing from flac files on some systems. (#71) 2024-07-01 09:59:44 -04:00
Chenlei Hu
ee6788a35e Add object_info schema (#67) 2024-06-30 10:14:16 -04:00
Chenlei Hu
3238acd9c9 Sync flac metadata (#66) 2024-06-29 09:39:01 -04:00
Chenlei Hu
d4c8992356 Audio node widgets (#54)
* Add audio widgets

* Change rendering order

* Proper output node

* Change indent

* Fix param

* Hide audio widget when output is empty

* Load default value

* populate audio widget from history

* Prevent init if no audio selection
2024-06-27 09:11:31 -04:00
Chenlei Hu
8264eb4fee Add zod schema for TaskItem (#59)
* Add zod schema for TaskItem

* nit
2024-06-26 22:33:05 -04:00
Chenlei Hu
3ace859106 Revert "Use npm to manage litegraph dependency (#45)" (#47)
This reverts commit 4640eaf0ac.
2024-06-20 13:55:36 -04:00
Chenlei Hu
4640eaf0ac Use npm to manage litegraph dependency (#45)
* Add comfyui-litegraph dep

* remove static copy

* Remove litegraph impl

* Fix various issues

* LiteGraph import

* Fix test ref issue

* Change to stable version of litegraph

* update README
2024-06-19 23:08:43 -04:00
Chenlei Hu
3225d7cb6f Make dev server ready for use (#43)
* basic dev server

* nit

* Return empty extensions list for dev server

* Update readme
2024-06-18 21:07:45 -04:00
Chenlei Hu
584051b22f Migrate node templates (#40)
* rename

* Migrate node templates
2024-06-18 17:04:54 -04:00
Chenlei Hu
641c0fa01f Migrate groupNodeManage (#36)
* rename

* Migrate node manager
2024-06-18 15:24:28 -04:00
Chenlei Hu
681bb69217 Migrate Clipspace to ts (#30)
* rename

* Migrate to ts
2024-06-18 14:05:49 -04:00
Chenlei Hu
d7bf368cec Bundle all dynamically loaded css (#28)
* static css

* Fix css import in tests
2024-06-18 13:58:21 -04:00
Chenlei Hu
c064e2cc80 Fix extension script load timing (#29) 2024-06-18 13:55:27 -04:00
Chenlei Hu
eadcc5e72e Bundle all core extensions (#27) 2024-06-18 12:48:52 -04:00
Chenlei Hu
b11a12d925 Add workflow schema with zod (#22)
* Safe parse with zod

* Fix zod issue

* Fix all validation errors

* nit

* Add tests

* Add color fields

* Passthrough
2024-06-17 17:28:52 -04:00
Chenlei Hu
cc7ee23b91 Force import DraggableList (#24)
* Force import

* Fix circular import
2024-06-17 17:24:59 -04:00
huchenlei
d133d664b5 nit 2024-06-17 16:47:29 -04:00
Chenlei Hu
b794d96eff Bundle frontend app (#15)
* Add shim in vite build

* shim

* Move public back to src
2024-06-17 12:18:53 -04:00
Chenlei Hu
f85cb3d5e9 Migrate all tests to TypeScript (#19)
* Merge 2 npm repos

* Install ts-jest

* Update jestconfig

* Fix jest types

* jest fix

* Fix babel config ref issue

* Fix import

* Fix import meta issue

* fix generate

* Skip multi-user tests
2024-06-17 11:25:56 -04:00
Chenlei Hu
48d5870d9c Sync with upstream (#20) 2024-06-17 09:37:25 -04:00
Chenlei Hu
0ef74392ca Migrate ui/ (#14)
* Rename js to ts

* Fix all tsc errors
2024-06-14 20:53:25 -04:00
Chenlei Hu
1376459cd8 Migrate app.js (#12)
* Rename js to ts

* Fix all tsc errors

* nit
2024-06-14 17:11:19 -04:00
Chenlei Hu
23074eb823 Migrate api.js (#11)
* Rename file

* Migrate api.js
2024-06-14 15:11:09 -04:00
Chenlei Hu
42cf977ca1 Migrate pnginfo (#10) 2024-06-14 14:55:37 -04:00
Chenlei Hu
d85cff385d Migrate utils.js (#9)
* Rename js to ts

* Migrate utils
2024-06-14 14:38:49 -04:00
Chenlei Hu
bcf3a39de7 Migreate ui.js (#8)
* Rename js to ts

* Migrate ui.js
2024-06-14 14:28:39 -04:00
Chenlei Hu
92f5da72a4 Migrate ui/settings.js (#7)
* Migrate ui/settings.js

* nit
2024-06-14 13:43:25 -04:00
Chenlei Hu
cefa452c3b Migrate logging.js (#6)
* Rename js to ts

* Format code

* Fix all tsc errors
2024-06-14 13:22:09 -04:00
Chenlei Hu
2595d12a84 Re-enable TSC on build (#5)
* Fix fall through

* Re-enable tsc
2024-06-14 09:55:33 -04:00
Chenlei Hu
92b08c0808 Migrate widgets.js (#4)
* Rename js to ts

* Fix ts error

* nit
2024-06-14 09:23:21 -04:00
Chenlei Hu
74abc34624 Migrate domWidget from js to ts (#3)
* Rename js to ts

* Migrate domWidget.js

* Fix global declare
2024-06-13 23:57:14 -04:00
Chenlei Hu
3fbb75ce76 Configure vite to copy from src to dist (#2)
* nit

* move

* direct copy lib dir

* nit

* disable treeshake
2024-06-13 23:09:10 -04:00
huchenlei
e50259cefb Move everything under public 2024-06-13 15:59:56 -04:00
huchenlei
c8ea8132bc Move 2024-06-13 14:19:15 -04:00
huchenlei
36f55018ce Add extensions core 2024-06-13 14:08:38 -04:00
huchenlei
b4ff842058 format code 2024-06-12 21:39:31 -04:00
huchenlei
4f093a147a Format code 2024-06-12 20:50:09 -04:00