[chore] Reformat
This commit is contained in:
parent
5e6fcd28b2
commit
9dcc23825a
|
@ -906,7 +906,6 @@ async function validateComfyUrl() {
|
||||||
throw new Error('URL is not set.');
|
throw new Error('URL is not set.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const result = await fetch(`/api/sd/comfy/ping`, {
|
const result = await fetch(`/api/sd/comfy/ping`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: getRequestHeaders(),
|
headers: getRequestHeaders(),
|
||||||
|
@ -1180,7 +1179,6 @@ async function loadComfySamplers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const result = await fetch(`/api/sd/comfy/samplers`, {
|
const result = await fetch(`/api/sd/comfy/samplers`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: getRequestHeaders(),
|
headers: getRequestHeaders(),
|
||||||
|
|
|
@ -34,28 +34,35 @@
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sd_comfy_workflow_editor_template {
|
#sd_comfy_workflow_editor_template {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor {
|
.sd_comfy_workflow_editor {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_content {
|
.sd_comfy_workflow_editor_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_workflow_container {
|
.sd_comfy_workflow_editor_workflow_container {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sd_comfy_workflow_editor_workflow {
|
#sd_comfy_workflow_editor_workflow {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_placeholder_container {
|
.sd_comfy_workflow_editor_placeholder_container {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_placeholder_list {
|
.sd_comfy_workflow_editor_placeholder_list {
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
@ -63,12 +70,15 @@
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_placeholder_list>li[data-placeholder]:before {
|
.sd_comfy_workflow_editor_placeholder_list>li[data-placeholder]:before {
|
||||||
content: "✅ ";
|
content: "✅ ";
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_placeholder_list>li.sd_comfy_workflow_editor_not_found:before {
|
.sd_comfy_workflow_editor_placeholder_list>li.sd_comfy_workflow_editor_not_found:before {
|
||||||
content: "❌ ";
|
content: "❌ ";
|
||||||
}
|
}
|
||||||
|
|
||||||
.sd_comfy_workflow_editor_placeholder_list>li>.notes-link {
|
.sd_comfy_workflow_editor_placeholder_list>li>.notes-link {
|
||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
|
@ -348,7 +348,6 @@ function registerEndpoints(app, jsonParser) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.post('/api/sd/comfy/ping', jsonParser, async (request, response) => {
|
app.post('/api/sd/comfy/ping', jsonParser, async (request, response) => {
|
||||||
try {
|
try {
|
||||||
const url = new URL(request.body.url);
|
const url = new URL(request.body.url);
|
||||||
|
|
Loading…
Reference in New Issue