Commit Graph

39 Commits

Author SHA1 Message Date
Chenlei Hu
bd68617c82 Fix theme toggle (#200)
* Use builtin event on color change

* Fix theme toggle

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-22 16:46:02 -04:00
Chenlei Hu
396e0c9525 Sync #4044 (#168) 2024-07-19 15:47:53 -04:00
Chenlei Hu
050fd4eb32 Sync #4043 (#169) 2024-07-19 15:47:43 -04:00
Chenlei Hu
f1acdf976a Shift node color's brightness for light mode (#123)
* Shift node color's brightness for light mode

* nit

* Fix test
2024-07-13 09:01:35 -04:00
Chenlei Hu
a28ac0c0fa New searchbox with fuzzy search (WIP) (#83)
* Disable default searchbox

Add headlessui and vue

Add vite's vue plugin

Vue app helloworld

Format vue

Add vue shim

minimal working searchbox

Add primevue dark mode

Use primevue

nit

Add fuse fuzzy search

Add tailwindcss / center searchbox

Fix style

Add node source chip

desc text wrapping

Add placeholder

inputbox filter support wip

Revert some filter designs

Add filter modal

Drop down show all nodes

Change modal font

Add filtered search

nit

Complete on focus

Auto fill filterOption

Fix dropdown

Fix z-index

Fix search bug

Properly remove chip

Adjust node source detection

Resolve merge conflict

nit

* Refactor

* Use badge to display filter type

* nit

* Trigger on canvas event

* nit

* Auto add data type filter when link released

* nit

* Auto focus when shown

* Focus on add/remvoe filter

* close dialog when escape pressed

* Add node at fixed location

* nit

* Update litegraph

* nit

* Change theme

* Increase search limit

* Add node on event location

* Clear filter when dialog closed

* Enable/Disable new search bx

* Improve app loading

* Fix copy node

* Update test expectations

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-10 19:46:35 -04:00
pythongosssss
9762b7884c Convert more js to ts (#101)
* Add testing for ComfyUI examples

* Remove examples, add test to github action

* Create dir

* Update readme

* Convert additional files to ts
2024-07-08 17:20:35 +01:00
Chenlei Hu
d1934f27c8 Use '@' path mapping (#94) 2024-07-05 22:04:29 -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
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
ee6788a35e Add object_info schema (#67) 2024-06-30 10:14:16 -04:00
Chenlei Hu
5746b130bb Preview audio node support (#63) 2024-06-29 09:39:34 -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
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
3fca50b997 Migrate (#42) 2024-06-18 17:23:42 -04:00
Chenlei Hu
9e758929dd Migrate snap to grid (#41)
* rename

* migrate
2024-06-18 17:19:35 -04:00
Chenlei Hu
584051b22f Migrate node templates (#40)
* rename

* Migrate node templates
2024-06-18 17:04:54 -04:00
Chenlei Hu
4588dbe8f1 Migrate mask editor (#39)
* rename

* Migrate mask editor

* nit
2024-06-18 16:46:45 -04:00
Chenlei Hu
f2b8f6ac59 Migrate misc (#38) 2024-06-18 16:25:42 -04:00
Chenlei Hu
917d6cc494 Migrate groupOptions (#37)
* rename

* migrate
2024-06-18 15:27:46 -04:00
Chenlei Hu
641c0fa01f Migrate groupNodeManage (#36)
* rename

* Migrate node manager
2024-06-18 15:24:28 -04:00
Chenlei Hu
e444a86ffe Migrate groupNode (#35) 2024-06-18 15:02:50 -04:00
Chenlei Hu
a624d411cb Migrate editAttention (#34)
* Rename

* nit
2024-06-18 14:34:02 -04:00
Chenlei Hu
40754f198a Rename (#33) 2024-06-18 14:30:56 -04:00
Chenlei Hu
63677a4709 Migrate context menu to ts (#32)
* rename

* Migrate context
2024-06-18 14:28:53 -04:00
Chenlei Hu
f22bcdf2b2 Migrate ColorPlatte to ts (#31)
* rename

* Migrate colorPlatte to ts
2024-06-18 14:22:11 -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
eadcc5e72e Bundle all core extensions (#27) 2024-06-18 12:48:52 -04:00
Chenlei Hu
e4b9cbbe17 Add back .js suffix on extension imports (#25) 2024-06-17 23:06:35 -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
92b08c0808 Migrate widgets.js (#4)
* Rename js to ts

* Fix ts error

* nit
2024-06-14 09:23:21 -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
ee0b054cde Move extensions to public folder 2024-06-13 14:23:31 -04:00
huchenlei
c8ea8132bc Move 2024-06-13 14:19:15 -04:00