Add files via upload

This commit is contained in:
JAlB- 2023-03-28 12:07:02 +03:00 committed by GitHub
parent 31dd6c0531
commit b859e17dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 217 additions and 218 deletions

View File

@ -1,17 +1,20 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="lib/litegraph.css" /> <link rel="stylesheet" type="text/css" href="lib/litegraph.css" />
<link rel="stylesheet" type="text/css" href="style.css" /> <link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="lib/litegraph.core.js"></script> <script type="text/javascript" src="lib/litegraph.core.js"></script>
<script type="module"> <script type="text/javascript" src="lib/SednaLib.js"></script>
import { app } from "/scripts/app.js"; <script type="module">
await app.setup(); import { app } from "/scripts/app.js";
window.app = app; await app.setup();
window.graph = app.graph; window.app = app;
</script> window.graph = app.graph;
</head> </script>
<body></body> </head>
</html> <body>
<script type="text/javascript" src="scripts/WorkflowCollection.js">
</script></body>
</html>

View File

@ -1,201 +1,197 @@
:root { :root {
--fg-color: #000; --fg-color: #d5d5d5;
--bg-color: #fff; --bg-color: #202020;
} --sel-color: #332222;
--item-color: #252525;
@media (prefers-color-scheme: dark) { }
:root {
--fg-color: #fff; @media (prefers-color-scheme: dark) {
--bg-color: #202020; :root {
} --fg-color: #fff;
} --bg-color: #202020;
}
body { }
width: 100vw;
height: 100vh; body {
margin: 0; width: 100vw;
overflow: hidden; height: 100vh;
background-color: var(--bg-color); margin: 0;
color: var(--fg-color); overflow: hidden;
} background-color: var(--bg-color);
color: var(--fg-color);
#graph-canvas { }
width: 100%;
height: 100%; #graph-canvas {
} width: 100%;
height: 100%;
.comfy-multiline-input { }
background-color: var(--bg-color);
color: var(--fg-color); .comfy-multiline-input {
overflow: hidden; background-color: var(--bg-color);
overflow-y: auto; color: var(--fg-color);
padding: 2px; overflow: hidden;
resize: none; overflow-y: auto;
border: none; padding: 2px;
} resize: none;
border: none;
.comfy-modal { }
display: none; /* Hidden by default */
position: fixed; /* Stay in place */ .comfy-modal {
z-index: 100; /* Sit on top */ display: none; /* Hidden by default */
padding: 30px 30px 10px 30px; position: fixed; /* Stay in place */
background-color: #ff0000; /* Modal background */ z-index: 100; /* Sit on top */
box-shadow: 0px 0px 20px #888888; padding: 30px 30px 10px 30px;
border-radius: 10px; background-color: #ff0000; /* Modal background */
text-align: center; box-shadow: 0px 0px 20px #888888;
top: 50%; border-radius: 10px;
left: 50%; text-align: center;
max-width: 80vw; top: 50%;
max-height: 80vh; left: 50%;
transform: translate(-50%, -50%); max-width: 80vw;
overflow: hidden; max-height: 80vh;
min-width: 60%; transform: translate(-50%, -50%);
justify-content: center; overflow: hidden;
} min-width: 60%;
justify-content: center;
.comfy-modal-content { }
display: flex;
flex-direction: column; .comfy-modal-content {
} display: flex;
flex-direction: column;
.comfy-modal p { }
overflow: auto;
white-space: pre-line; /* This will respect line breaks */ .comfy-modal p {
margin-bottom: 20px; /* Add some margin between the text and the close button*/ overflow: auto;
} white-space: pre-line; /* This will respect line breaks */
margin-bottom: 20px; /* Add some margin between the text and the close button*/
.comfy-modal select, }
.comfy-modal input[type=button],
.comfy-modal input[type=checkbox] { .comfy-modal button {
margin: 3px 3px 3px 4px; cursor: pointer;
} color: #aaaaaa;
border: none;
.comfy-modal button { background-color: transparent;
cursor: pointer; font-size: 24px;
color: #aaaaaa; font-weight: bold;
border: none; width: 100%;
background-color: transparent; }
font-size: 24px;
font-weight: bold; .comfy-modal button:hover,
width: 100%; .comfy-modal button:focus {
} color: #000;
text-decoration: none;
.comfy-modal button:hover, cursor: pointer;
.comfy-modal button:focus { }
color: #000;
text-decoration: none; .comfy-menu {
cursor: pointer; width: 200px;
} font-size: 15px;
position: absolute;
.comfy-menu { top: 50%;
width: 200px; right: 0%;
font-size: 15px; background-color: white;
position: absolute; color: #000;
top: 50%; text-align: center;
right: 0%; z-index: 100;
background-color: white; width: 170px;
color: #000; display: flex;
text-align: center; flex-direction: column;
z-index: 100; align-items: center;
width: 170px; }
display: flex;
flex-direction: column; .comfy-menu button {
align-items: center; font-size: 20px;
} }
.comfy-menu button { .comfy-menu-btns {
font-size: 20px; margin-bottom: 10px;
} width: 100%;
}
.comfy-menu-btns {
margin-bottom: 10px; .comfy-menu-btns button {
width: 100%; font-size: 10px;
} width: 50%;
}
.comfy-menu-btns button {
font-size: 10px; .comfy-menu span.drag-handle {
width: 50%; width: 10px;
} height: 20px;
display: inline-block;
.comfy-menu span.drag-handle { overflow: hidden;
width: 10px; line-height: 5px;
height: 20px; padding: 3px 4px;
display: inline-block; cursor: move;
overflow: hidden; vertical-align: middle;
line-height: 5px; margin-top: -.4em;
padding: 3px 4px; margin-left: -.2em;
cursor: move; font-size: 12px;
vertical-align: middle; font-family: sans-serif;
margin-top: -.4em; letter-spacing: 2px;
margin-left: -.2em; color: #cccccc;
font-size: 12px; text-shadow: 1px 0 1px black;
font-family: sans-serif; position: absolute;
letter-spacing: 2px; top: 0;
color: #cccccc; left: 0;
text-shadow: 1px 0 1px black; }
position: absolute;
top: 0; .comfy-menu span.drag-handle::after {
left: 0; content: '.. .. ..';
} }
.comfy-menu span.drag-handle::after { .comfy-queue-btn {
content: '.. .. ..'; width: 100%;
} }
.comfy-queue-btn { .comfy-list {
width: 100%; background-color: rgb(225, 225, 225);
} margin-bottom: 10px;
}
.comfy-list {
background-color: rgb(225, 225, 225); .comfy-list-items {
margin-bottom: 10px; overflow-y: scroll;
} max-height: 100px;
background-color: #d0d0d0;
.comfy-list-items { padding: 5px;
overflow-y: scroll; }
max-height: 100px;
background-color: #d0d0d0; .comfy-list h4 {
padding: 5px; min-width: 160px;
} margin: 0;
padding: 3px;
.comfy-list h4 { font-weight: normal;
min-width: 160px; }
margin: 0;
padding: 3px; .comfy-list-items button {
font-weight: normal; font-size: 10px;
} }
.comfy-list-items button { .comfy-list-actions {
font-size: 10px; margin: 5px;
} display: flex;
gap: 5px;
.comfy-list-actions { justify-content: center;
margin: 5px; }
display: flex;
gap: 5px; .comfy-list-actions button {
justify-content: center; font-size: 12px;
} }
.comfy-list-actions button { button.comfy-settings-btn {
font-size: 12px; font-size: 12px;
} padding: 0;
position: absolute;
button.comfy-settings-btn { right: 0;
font-size: 12px; border: none;
padding: 0; }
position: absolute;
right: 0; .comfy-modal.comfy-settings {
border: none; background-color: var(--bg-color);
} color: var(--fg-color);
z-index: 99;
.comfy-modal.comfy-settings { }
background-color: var(--bg-color);
color: var(--fg-color); @media only screen and (max-height: 850px) {
z-index: 99; .comfy-menu {
} margin-top: -70px;
}
@media only screen and (max-height: 850px) { }
.comfy-menu {
margin-top: -70px;
}
}