Spaces:
Sleeping
Sleeping
File size: 3,043 Bytes
4450790 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
<!doctype html>
<html>
<head>
<title>rgthree's comfy: Workflow Link Fixer</title>
<style>
html, body {
}
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
box-sizing: border-box
}
*, *:before, *:after {
box-sizing: inherit
}
body {
background: #222;
font-family: Arial, sans-serif;
font-size: calc(16 * 0.0625rem);
font-weight: 400;
margin: 0;
color: #ffffff;
padding-bottom: 64px;
display: flex;
}
.box, figure, picture {
display: flex;
flex-direction: column;
align-items: center;
}
.box {
margin: 32px auto;
max-width: 720px;
padding: 16px 16px 32px;
background: rgba(125,125,125,0.33);
box-shadow: 0px 8px 10px rgba(0,0,0,0.85);
border-radius: 8px;
}
h1 {
margin-top: 0;
}
.box > * {
text-align: center;
}
.box > p {
margin: 0 0 .6em;
text-align: left;
line-height: 1.25;
}
picture > img {
display: block;
height: 256px;
min-width: 256px;
border: 10px dashed rgba(125,125,125,0.66);
border-radius: 32px;
object-fit: contain;
pointer-events: none;
}
figcaption {
opacity: 0.66;
padding: 4px;
font-size: calc(11 * 0.0625rem);
}
.-has-file picture > img {
border-color: transparent;
border-radius: 32px;
}
.output {
margin: 8px 8px 32px;
border-radius: 4px;
border: 1px solid rgba(125,125,125,0.66);
padding: 4px 8px;
min-width: 80%;
}
.output:empty {
display: none;
}
.btn-fix {
display: none;
cursor: pointer;
font-size: calc(24 * 0.0625rem);
}
.-has-fixable-results .btn-fix {
display: inline-block;
}
</style>
</head>
<body>
<div class="box">
<h1>rgthree's Workflow Link Fixer</h1>
<p>Early versions of the reroute node would occasionally leave behind stale node-linking data in the graph, which could sometimes cause erratic workflow loading. This tool will look at the metadata and attempt to fix these errors.</p>
<p>Drag and drop a comfy-generated image or workflow json into this window to check its serialized links and fix.</p>
<figure>
<picture>
<img class="output-image" />
</picture>
<figcaption></figcaption>
</figure>
<div class="output"></div>
<button class="btn-fix">Fix & Save new workflow</button>
</div>
<script type="module">
import {LinkPage} from './link_page.js';
new LinkPage();
</script>
</body>
</html> |