dist files

This commit is contained in:
Weixuan Fu
2024-02-04 02:21:38 +08:00
parent fc16343456
commit 7e7eb073fd
13 changed files with 26 additions and 24 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
import{r as a,j as p,B as m}from"./input.js";import{app as e}from"/scripts/app.js";function d({}){const[o,i]=a.useState(0);return a.useEffect(()=>{const l=e.queuePrompt;e.queuePrompt=async function(){try{await l.apply(e,[...arguments])}finally{console.log("queuePrompt app.node err",e.lastNodeErrors);const s=e.lastNodeErrors??{};i(Object.keys(s).length),Object.values(s).forEach(n=>{n.errors.forEach(r=>{if(r.type==="value_not_in_list"){const{input_name:u,received_value:c}=r.extra_info;console.log("invalid_input",n.class_type,u,c)}})})}};const t=e.graph.serialize();console.log(t),fetch("/model_manager/find_missing_models",{method:"POST",body:JSON.stringify({workflow:t})}).then(s=>s.json()).then(s=>{console.log(s)})},[]),p.jsxs(m,{size:"sm","aria-label":"missing models",px:2,children:["Missing Models ",o>0?`(${o})`:""]})}export{d as default};
@@ -0,0 +1 @@
import{r as n,j as e,P as x,B as p}from"./input.js";import{app as t}from"/scripts/app.js";import{I as f,G as j,a as g}from"./ModelManagerTopbar-Clt4PNkc.js";import{B as v,a2 as y,ai as M,F as _,a9 as w,T as i,L as I}from"./App-Eqg3V87d.js";import{G as E}from"./chunk-JARCRF6W-po8hqWTL.js";import{V as S}from"./chunk-NTCQBYKE-qX6uHBx-.js";import"/scripts/api.js";import"./chunk-6RSEZNRH-3Efv3ksN.js";function b({onClose:r,missingModels:a}){const[o,c]=n.useState(!1),[d,u]=n.useState("");n.useEffect(()=>(t.canvasEl.addEventListener("click",r),()=>{t.canvasEl.removeEventListener("click",r)}),[]);const l=440;return e.jsxs(e.Fragment,{children:[e.jsx(x,{children:e.jsx(v,{style:{width:l},children:e.jsxs(y,{width:l,height:"100vh",p:4,gap:2,position:"fixed",top:0,left:0,shadow:"xl",zIndex:1e3,overflowY:"auto",children:[e.jsx(M,{children:e.jsxs(_,{justifyContent:"space-between",alignContent:"center",children:[e.jsx(w,{size:"md",mr:2,children:"Models"}),e.jsx(f,{})]})}),e.jsx(E,{templateColumns:"1",gap:1,marginTop:2,children:a.map(s=>e.jsxs(j,{p:3,shadow:"md",borderWidth:"1px",children:[e.jsxs(S,{align:"start",children:[e.jsx(i,{children:s.class_type}),e.jsx(i,{fontWeight:"bold",children:"Input:"}),e.jsx(i,{children:s.input_name}),e.jsx(i,{fontWeight:"bold",children:"Received Value:"}),e.jsx(i,{color:"red.400",children:s.received_value})]}),e.jsx(p,{colorScheme:"blue",mt:5,iconSpacing:1,leftIcon:e.jsx(I,{size:20}),size:"sm",onClick:()=>{window.open(`https://civitai.com/search/models?sortBy=models_v5&query=${C(s.received_value)}`,"_blank")},children:"Search in CivitAI"})]}))})]})})}),o&&e.jsx(g,{searchQuery:d,onclose:()=>c(!1)})]})}function C(r){return r.replace(/\.[^/.]+$/,"").trim()}function F({}){const[r,a]=n.useState(!1),[o,c]=n.useState([]);return n.useEffect(()=>{const d=t.queuePrompt;t.queuePrompt=async function(){try{await d.apply(t,[...arguments])}finally{console.log("queuePrompt app.node err",t.lastNodeErrors);const u=t.lastNodeErrors??{};c(Object.values(u).flatMap(l=>l.errors.filter(s=>s.type==="value_not_in_list").map(s=>{const{input_name:m,received_value:h}=s.extra_info;return{class_type:l.class_type,input_name:m,received_value:h}})))}}},[]),o.length===0?null:e.jsxs(e.Fragment,{children:[e.jsxs(p,{size:"sm","aria-label":"missing models",px:2,onClick:()=>a(!0),children:["Install Missing (",o.length,")"]}),r&&e.jsx(b,{onClose:()=>a(!1),missingModels:o})]})}export{F as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
.dragPanelIcon{display:none!important}.workspaceManagerPanel:hover .dragPanelIcon{display:block!important}
+1
View File
@@ -0,0 +1 @@
import{n as t}from"./App-Eqg3V87d.js";import{f as o,j as s}from"./input.js";var e=o((a,r)=>s.jsx(t,{align:"center",...a,direction:"column",ref:r}));e.displayName="VStack";export{e as V};
+2 -2
View File
@@ -678,10 +678,10 @@ Error generating stack: `+i.message+`
}
${oB}
`}),Fw=document.createElement("div");document.body.append(Fw);const aB=Ar.lazy(()=>Qk(()=>import("./App-ddGdajIL.js").then(e=>e.aj),__vite__mapDeps([])).then(({default:e})=>({default:e})));yd.createRoot(Fw).render(E.jsx(Ar.StrictMode,{children:E.jsxs(LI,{resetCSS:!1,disableGlobalStyle:!0,children:[E.jsx(iB,{scope:".workspace_manager"}),E.jsx(OP,{}),E.jsx(nB,{children:E.jsx(S.Suspense,{children:E.jsx(aB,{})})})]})}));const Kf=document.body,sB={attributes:!0,attributeFilter:["class"]},lB=function(e,t){let r=document.documentElement;r.style.colorScheme==="dark"&&r.style.removeProperty("color-scheme");for(const n of e)if(n.type==="attributes"&&n.attributeName==="class")for(const o of Kf.classList)o.includes("chakra")&&Kf.classList.remove(o)},uB=new MutationObserver(lB);uB.observe(Kf,sB);export{cB as $,ar as A,zx as B,ii as C,pB as D,vB as E,Ka as F,$w as G,Pw as H,Ya as I,Ew as J,Rw as K,Aw as L,bw as M,Tw as N,TB as O,ja as P,bB as Q,Ar as R,Dp as S,Fu as T,lL as U,YI as V,sL as W,Vf as X,Aa as Y,bP as Z,Qk as _,yB as a,Hn as a0,Wh as a1,yP as a2,Mp as a3,dB as a4,os as a5,fB as a6,mB as a7,eB as a8,tB as a9,BP as aa,wB as ab,xB as ac,_e as b,mn as c,Be as d,qb as e,pt as f,Av as g,ju as h,hB as i,E as j,$i as k,Yf as l,Of as m,cw as n,Lu as o,gB as p,dr as q,S as r,kg as s,wa as t,n3 as u,sO as v,_B as w,PB as x,CB as y,AP as z};
`}),Fw=document.createElement("div");document.body.append(Fw);const aB=Ar.lazy(()=>Qk(()=>import("./App-Eqg3V87d.js").then(e=>e.aj),__vite__mapDeps([0,1])).then(({default:e})=>({default:e})));yd.createRoot(Fw).render(E.jsx(Ar.StrictMode,{children:E.jsxs(LI,{resetCSS:!1,disableGlobalStyle:!0,children:[E.jsx(iB,{scope:".workspace_manager"}),E.jsx(OP,{}),E.jsx(nB,{children:E.jsx(S.Suspense,{children:E.jsx(aB,{})})})]})}));const Kf=document.body,sB={attributes:!0,attributeFilter:["class"]},lB=function(e,t){let r=document.documentElement;r.style.colorScheme==="dark"&&r.style.removeProperty("color-scheme");for(const n of e)if(n.type==="attributes"&&n.attributeName==="class")for(const o of Kf.classList)o.includes("chakra")&&Kf.classList.remove(o)},uB=new MutationObserver(lB);uB.observe(Kf,sB);export{cB as $,ar as A,zx as B,ii as C,pB as D,vB as E,Ka as F,$w as G,Pw as H,Ya as I,Ew as J,Rw as K,Aw as L,bw as M,Tw as N,TB as O,ja as P,bB as Q,Ar as R,Dp as S,Fu as T,lL as U,YI as V,sL as W,Vf as X,Aa as Y,bP as Z,Qk as _,yB as a,Hn as a0,Wh as a1,yP as a2,Mp as a3,dB as a4,os as a5,fB as a6,mB as a7,eB as a8,tB as a9,BP as aa,wB as ab,xB as ac,_e as b,mn as c,Be as d,qb as e,pt as f,Av as g,ju as h,hB as i,E as j,$i as k,Yf as l,Of as m,cw as n,Lu as o,gB as p,dr as q,S as r,kg as s,wa as t,n3 as u,sO as v,_B as w,PB as x,CB as y,AP as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
__vite__mapDeps.viteFileDeps = ["workspace_web/App-Eqg3V87d.js","workspace_web/assets/App-JXePnJiV.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}