Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1be2210
make editor work
Weixuanf Jul 6, 2024
6321916
fix server nodedefs not correct
Weixuanf Jul 6, 2024
c3e56dd
override api.js for serverless comfyui
Weixuanf Jul 19, 2024
b736366
cleanup api.js code
Weixuanf Jul 19, 2024
b8030a8
keep cleanup commit
Weixuanf Jul 19, 2024
711cdbc
load comfy/workflowid url show the name and workflow json
Weixuanf Jul 19, 2024
9ee5d74
add ability to save workflow
Weixuanf Jul 19, 2024
43b0814
fix load subsequent refreshes from client session storage
Weixuanf Jul 19, 2024
4b3c80a
load machine selector button on menu, support image upload
Weixuanf Jul 22, 2024
6db646f
can upload image
Weixuanf Jul 22, 2024
7feae19
creating runpod template log
Weixuanf Jul 22, 2024
91c844d
integrate model selector to comfyui
Weixuanf Jul 22, 2024
313a9d9
comfyui runworkflow and save workflow
Weixuanf Jul 22, 2024
eae9897
create workflow with machineid
Weixuanf Jul 23, 2024
71698f7
fix workflow viewer not showing workflow
Weixuanf Jul 23, 2024
4895c70
fix node_error error, error highlight of validation
Weixuanf Jul 23, 2024
55f4e5b
add workspace manager extension to menu left bar
Weixuanf Jul 25, 2024
5cad841
show workflow name on change workflow
Weixuanf Jul 25, 2024
8349155
add tailwind css
Weixuanf Jul 26, 2024
db39c7a
add inject css method to import css to html
Weixuanf Jul 26, 2024
4785f31
add shadcn
Weixuanf Jul 26, 2024
f6a5131
integrate tailwind css
Weixuanf Jul 26, 2024
987ce86
scoped tailwind css
Weixuanf Jul 27, 2024
b6e6270
tailwind css scoping is working
Weixuanf Jul 27, 2024
ed2263b
models drawer
Weixuanf Jul 27, 2024
3fa9429
add install/refresh models api and actions
Weixuanf Jul 28, 2024
534401b
model browser, refresh node defs button
Weixuanf Jul 28, 2024
9bae1b9
make refresh node defs work
Weixuanf Jul 28, 2024
c30427c
cleanup logs
Weixuanf Jul 28, 2024
51ad66a
update fetch node defs api
Weixuanf Jul 31, 2024
e8ef43e
add job manager
Weixuanf Jul 31, 2024
4ade471
fix validate job input for machine
Weixuanf Aug 1, 2024
baa83e8
separate npm run build and build:watch
Weixuanf Aug 1, 2024
9387b28
remove deps.models from workflow api
Weixuanf Aug 1, 2024
6759501
add runjob cache before redirect to job page
Weixuanf Aug 1, 2024
026b088
change theme of shadcn to zinc
Weixuanf Aug 1, 2024
f1b1c9f
use observer to wait for comfy menu to load before loading my buttons…
Weixuanf Aug 1, 2024
396b0a2
add machine model list drawer cache in localstorage
Weixuanf Aug 2, 2024
aa2302e
fix workflow details page view workflow app showing menu
Weixuanf Aug 2, 2024
dfdb9ad
hide path files in model list
Weixuanf Aug 3, 2024
187cf0f
show workflows manager drawer on comfyui
Weixuanf Aug 3, 2024
71b8f7f
better wait for element, show app button
Weixuanf Aug 4, 2024
8fa7a53
update top field is working
Weixuanf Aug 4, 2024
21d24e9
add validations to show error message
Weixuanf Aug 5, 2024
6ca70a6
fix machine not found in metaform
Weixuanf Aug 6, 2024
1cb67f8
add profile bar in comfyui
Weixuanf Aug 6, 2024
a7626b4
dd share workflow dialog
Weixuanf Aug 8, 2024
0a35571
share dialog
Weixuanf Aug 8, 2024
830cf52
workflow status change on share
Weixuanf Aug 8, 2024
dd791d2
fix app queue buttong
Weixuanf Aug 8, 2024
726311a
add ability to create new workflow, fixed url changing when saving wo…
Weixuanf Aug 12, 2024
2c3fd6e
cleanup
Weixuanf Aug 12, 2024
baec6ae
fix image
Weixuanf Aug 13, 2024
9ec7b0f
remove logs
Weixuanf Aug 14, 2024
5bdeb07
fix error saving workflow when machine is null
Weixuanf Aug 14, 2024
da17df2
better comfyui styling
Weixuanf Aug 14, 2024
069ea14
fix login button on comfyui editor not working
Weixuanf Aug 14, 2024
fc90c1e
fix workflow privacy
Weixuanf Aug 15, 2024
967c066
fix machine not found on app
Weixuanf Aug 15, 2024
8e59c9f
no fallback to default nodeDefs when machine.object_info not available
Weixuanf Aug 19, 2024
dfae531
feat: Add a custom save button
Aller05 Aug 25, 2024
8f61235
Merge pull request #14 from 11cafe/aller
Weixuanf Aug 28, 2024
97ced40
fix empty machine, unsaved workflow cannot save
Weixuanf Aug 28, 2024
c39a38b
show save copy for workflows that don't belong to you, add is loading…
Weixuanf Aug 30, 2024
13ab249
better toast with icon
Weixuanf Aug 30, 2024
53612ce
feat: add workflow overview button
Aller05 Sep 2, 2024
3fd1f89
Merge pull request #15 from 11cafe/aller
Weixuanf Sep 3, 2024
e6918ec
add workflow as global context, extract share button as independeng c…
Weixuanf Sep 3, 2024
6c83e41
fix share dialog copy link copying iframe link
Weixuanf Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ venv/
/tests-ui/data/object_info.json
/user/
*.log
web_custom_versions/
web_custom_versions/
!/web/extensions/workspace-manager/
18 changes: 18 additions & 0 deletions web/extensions/workspace-manager/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions web/extensions/workspace-manager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
30 changes: 30 additions & 0 deletions web/extensions/workspace-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
17 changes: 17 additions & 0 deletions web/extensions/workspace-manager/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/App.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/utils"
}
}
31 changes: 31 additions & 0 deletions web/extensions/workspace-manager/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// setTimeout(() => {
// import(api.api_base + "/extensions/workspace-manager/dist/input.js");
// }, 1);

//@ts-ignore
import { api } from "../../scripts/api.js";

function waitForElement(selector) {
return new Promise((resolve) => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}

const observer = new MutationObserver((mutations) => {
if (document.querySelector(selector)) {
resolve(document.querySelector(selector));
observer.disconnect();
}
});

observer.observe(document.body, {
childList: true,
subtree: true,
});
});
}

// wait for graph-canvas element to load so that the top menu is loaded and my react component has place to mount
waitForElement(".comfyui-queue-button").then(() => {
import(api.api_base + "/extensions/workspace-manager/dist/input.js");
});
13 changes: 13 additions & 0 deletions web/extensions/workspace-manager/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading