@autocode-cli/autocode 0.38.2 → 0.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/9gK7KPMv.js +1 -0
- package/.output/public/_nuxt/{DJjCRJhp.js → B0mo0uqY.js} +1 -1
- package/.output/public/_nuxt/{vmoRsjSo.js → B2kf_m6C.js} +1 -1
- package/.output/public/_nuxt/{D6PNtP0_.js → B4SA9X-a.js} +1 -1
- package/.output/public/_nuxt/B4wMOrGF.js +1 -0
- package/.output/public/_nuxt/{BYF8gHRW.js → BBj9FZvo.js} +1 -1
- package/.output/public/_nuxt/{CLW3obj5.js → BGp8YvuN.js} +1 -1
- package/.output/public/_nuxt/{DKgemWiE.js → BH_01oUJ.js} +1 -1
- package/.output/public/_nuxt/{RgNv66WU.js → BJMGsUpo.js} +1 -1
- package/.output/public/_nuxt/{ZwekkJkt.js → BLZ5VH7t.js} +1 -1
- package/.output/public/_nuxt/{_NYypPKu.js → BP5Ux6fH.js} +1 -1
- package/.output/public/_nuxt/{COSxhdDS.js → BQ3bbdDh.js} +1 -1
- package/.output/public/_nuxt/{6guOtdqw.js → BROSb6Q-.js} +1 -1
- package/.output/public/_nuxt/{oFSgMRDY.js → BTlB8J5k.js} +1 -1
- package/.output/public/_nuxt/{DNy56O1k.js → BWtNGTwE.js} +1 -1
- package/.output/public/_nuxt/{DTcXWbr5.js → BZgps0X6.js} +1 -1
- package/.output/public/_nuxt/{BVsyb2e6.js → BbxWU3pf.js} +1 -1
- package/.output/public/_nuxt/{Dred22d0.js → BeGS-B6D.js} +1 -1
- package/.output/public/_nuxt/{BnQis2Wb.js → Bgakki82.js} +1 -1
- package/.output/public/_nuxt/{DlO36yMp.js → BsdrvKkE.js} +1 -1
- package/.output/public/_nuxt/{BajA-R3t.js → Bt9SJD2w.js} +3 -3
- package/.output/public/_nuxt/CBB8YzCG.js +1 -0
- package/.output/public/_nuxt/{CRQzIZYM.js → CExZFYAd.js} +1 -1
- package/.output/public/_nuxt/{0HczxCVv.js → CIl_Ss5o.js} +1 -1
- package/.output/public/_nuxt/{CIrlkMnL.js → CKq-o50X.js} +1 -1
- package/.output/public/_nuxt/{BNy2STaj.js → CQWwIj8_.js} +1 -1
- package/.output/public/_nuxt/{DDABJbm9.js → CSScY24L.js} +1 -1
- package/.output/public/_nuxt/{B1XzNfSL.js → CUAkHKXg.js} +1 -1
- package/.output/public/_nuxt/{DQcftxMR.js → CX-W21V-.js} +1 -1
- package/.output/public/_nuxt/{0fb47W2G.js → Cb9gbUoa.js} +1 -1
- package/.output/public/_nuxt/{DKB4Mc1Q.js → CfX6M68B.js} +3 -3
- package/.output/public/_nuxt/{-f1liQz1.js → CgQoEUd2.js} +1 -1
- package/.output/public/_nuxt/{DxfoOa6c.js → CjUob8wT.js} +1 -1
- package/.output/public/_nuxt/{GnKgiMOf.js → Cjum7edO.js} +1 -1
- package/.output/public/_nuxt/{DEvRa3of.js → CjwSiblu.js} +1 -1
- package/.output/public/_nuxt/{B5fw33KK.js → CkKT-c7e.js} +1 -1
- package/.output/public/_nuxt/{DcNcSmJ0.js → ClyG0FEr.js} +1 -1
- package/.output/public/_nuxt/{C5fz81dA.js → Ct_UoqdU.js} +1 -1
- package/.output/public/_nuxt/{CxIMD2YC.js → Cvz8hXR5.js} +1 -1
- package/.output/public/_nuxt/{C_xNnhFc.js → D-5XOZh1.js} +1 -1
- package/.output/public/_nuxt/{Da1dX7RW.js → D0YsLD9c.js} +1 -1
- package/.output/public/_nuxt/{CDrMVkFg.js → D1ZHD2YO.js} +1 -1
- package/.output/public/_nuxt/{PakvrKeO.js → D9kSURBB.js} +1 -1
- package/.output/public/_nuxt/{BZ6FzmBL.js → DBbUUxUe.js} +1 -1
- package/.output/public/_nuxt/{B2RgqbNO.js → DCoyLE6i.js} +1 -1
- package/.output/public/_nuxt/{Bc3I1G9W.js → DM-FWuh7.js} +1 -1
- package/.output/public/_nuxt/{DU_LmBMB.js → DOBYm3ey.js} +1 -1
- package/.output/public/_nuxt/{rEg4ipuK.js → DQqeYRHW.js} +1 -1
- package/.output/public/_nuxt/{B3P4PwA5.js → DWVSbXSA.js} +1 -1
- package/.output/public/_nuxt/{DGy8YoXT.js → DeKcIehA.js} +1 -1
- package/.output/public/_nuxt/{DzaPzzsO.js → Di9DNWFc.js} +1 -1
- package/.output/public/_nuxt/{DqEU6TSY.js → DmrBSt6T.js} +1 -1
- package/.output/public/_nuxt/{N7kSzZAV.js → DoMHqyvz.js} +1 -1
- package/.output/public/_nuxt/{D0qgRfni.js → Drb7y3jx.js} +1 -1
- package/.output/public/_nuxt/{WK5WZELE.js → DsY01CVv.js} +1 -1
- package/.output/public/_nuxt/{DpcTyoGM.js → DtkAtC_w.js} +1 -1
- package/.output/public/_nuxt/{CBvW1gAI.js → DxKcaf4M.js} +1 -1
- package/.output/public/_nuxt/{PvSILeNu.js → Higd80F6.js} +1 -1
- package/.output/public/_nuxt/{Dy-CBgLm.js → ND3qLMiK.js} +1 -1
- package/.output/public/_nuxt/{jNB-5CTq.js → OGWprgQz.js} +1 -1
- package/.output/public/_nuxt/{CsTVNF-2.js → UOstWU-9.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/c43952fe-8633-4dd5-9431-caeec08106b1.json +1 -0
- package/.output/public/_nuxt/{BS8cve1k.js → dsUD-RPo.js} +1 -1
- package/.output/public/_nuxt/{BJqVHY5h.js → fZy4ko4U.js} +1 -1
- package/.output/public/_nuxt/{CZqTwjXm.js → lUhfo_8K.js} +1 -1
- package/.output/public/_nuxt/{tYdwqztA.js → qnjdBA9-.js} +1 -1
- package/.output/public/_nuxt/{CIXkncWO.js → wzNr8bfZ.js} +1 -1
- package/.output/public/api/_openapi.json +1 -1
- package/.output/public/docs/api/index.html +1 -1
- package/.output/public/docs/cli/index.html +1 -1
- package/.output/public/index.html +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/server.mjs +2 -2
- package/.output/server/chunks/build/styles.mjs +19 -19
- package/.output/server/chunks/nitro/nitro.mjs +405 -405
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/BCNjSdYq.js +0 -1
- package/.output/public/_nuxt/Bn4DFtby.js +0 -1
- package/.output/public/_nuxt/D4nTCY0i.js +0 -1
- package/.output/public/_nuxt/builds/meta/9a1c9664-8962-4c8a-9520-847d9c1906db.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aV as x,ax as U,aW as T,aX as P,aE as H,N as W,a1 as y,aY as S,U as d,aI as j,z as E}from"./BajA-R3t.js";import{d as R,m as v,j as k,c as C,b,w as q,e as g,s as h,h as p,t as f}from"./DKB4Mc1Q.js";const $=["post","put","patch","delete"],F=o=>$.includes(o.toLowerCase()),O={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",color:"var(--scalar-color-blue)"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101",color:"var(--scalar-color-blue)"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102",color:"var(--scalar-color-blue)"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103",color:"var(--scalar-color-blue)"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200",color:"var(--scalar-color-green)"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201",color:"var(--scalar-color-green)"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202",color:"var(--scalar-color-green)"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203",color:"var(--scalar-color-green)"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204",color:"var(--scalar-color-green)"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205",color:"var(--scalar-color-green)"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206",color:"var(--scalar-color-green)"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207",color:"var(--scalar-color-green)"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208",color:"var(--scalar-color-green)"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226",color:"var(--scalar-color-green)"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300",color:"var(--scalar-color-yellow)"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301",color:"var(--scalar-color-yellow)"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302",color:"var(--scalar-color-yellow)"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303",color:"var(--scalar-color-yellow)"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304",color:"var(--scalar-color-yellow)"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305",color:"var(--scalar-color-yellow)"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306",color:"var(--scalar-color-yellow)"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307",color:"var(--scalar-color-yellow)"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308",color:"var(--scalar-color-yellow)"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",color:"var(--scalar-color-red)"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401",color:"var(--scalar-color-red)"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402",color:"var(--scalar-color-red)"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403",color:"var(--scalar-color-red)"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404",color:"var(--scalar-color-red)"},405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405",color:"var(--scalar-color-red)"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406",color:"var(--scalar-color-red)"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407",color:"var(--scalar-color-red)"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408",color:"var(--scalar-color-red)"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409",color:"var(--scalar-color-red)"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410",color:"var(--scalar-color-red)"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411",color:"var(--scalar-color-red)"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412",color:"var(--scalar-color-red)"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413",color:"var(--scalar-color-red)"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414",color:"var(--scalar-color-red)"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415",color:"var(--scalar-color-red)"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416",color:"var(--scalar-color-red)"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417",color:"var(--scalar-color-red)"},418:{name:"I'm a teapot",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418",color:"var(--scalar-color-red)"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421",color:"var(--scalar-color-red)"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422",color:"var(--scalar-color-red)"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423",color:"var(--scalar-color-red)"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424",color:"var(--scalar-color-red)"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425",color:"var(--scalar-color-red)"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426",color:"var(--scalar-color-red)"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428",color:"var(--scalar-color-red)"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429",color:"var(--scalar-color-red)"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431",color:"var(--scalar-color-red)"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451",color:"var(--scalar-color-red)"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500",color:"var(--scalar-color-red)"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501",color:"var(--scalar-color-red)"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502",color:"var(--scalar-color-red)"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503",color:"var(--scalar-color-red)"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504",color:"var(--scalar-color-red)"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505",color:"var(--scalar-color-red)"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506",color:"var(--scalar-color-red)"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507",color:"var(--scalar-color-red)"},508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508",color:"var(--scalar-color-red)"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510",color:"var(--scalar-color-red)"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511",color:"var(--scalar-color-red)"}},M=R({__name:"HttpMethod",props:{isSquare:{type:Boolean,default:!1},method:{},isEditable:{type:Boolean,default:!1}},emits:["change"],setup(o,{emit:e}){const n=o,t=e,s=v(()=>x(n.method)),c=Object.entries(U).map(([r])=>({id:r,label:r.toUpperCase(),color:x(r).colorClass})),a=v({get:()=>c.find(({id:r})=>r===n.method),set:r=>r?.id&&t("change",r.id)}),l=P({base:"text-center font-code text-3xs justify-center items-center flex",variants:{isSquare:{true:"px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",false:"rounded-full"},isEditable:{true:"http-bg-gradient rounded-md border border-r",false:"cursor-auto"}}}),i=v(()=>s.value.short);return(r,u)=>r.isEditable?(b(),k(p(H),{key:0,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=m=>a.value=m),class:"font-code scalar-client mt-1 text-sm",options:p(c)},{default:q(()=>[g("div",{class:h(["h-full",{"pointer-events-none":!r.isEditable}])},[g("button",{class:h(["relative h-full",p(T)(p(l)({isSquare:r.isSquare,isEditable:r.isEditable}),s.value.colorClass)]),type:"button"},[g("span",null,f(i.value),1)],2)],2)]),_:1},8,["modelValue","options"])):(b(),C("div",{key:1,class:h(["relative gap-1 whitespace-nowrap",p(T)(p(l)({isSquare:r.isSquare,isEditable:r.isEditable}),s.value.colorClass)]),type:"button"},f(s.value.short),3))}}),V=W(M,[["__scopeId","data-v-076b14a1"]]),N="/";function _({example:o,env:e,globalCookies:n,serverUrl:t,proxyUrl:s}){const c=[],a=y(s,t),l=B(a?s:t??"http://localhost");return n.forEach(i=>{const{name:r,value:u,domain:m,...z}=i;!A(t,m)||!r||c.push(S.parse({name:r,value:u,domain:m,path:z.path}))}),o.parameters.cookies.forEach(i=>{!i.enabled||!i.key||c.push(S.parse({name:i.key,value:d(i.value,e),domain:l,path:N}))}),{cookieParams:c}}const B=o=>{const e=new URL(o.startsWith("http")?o:`http://${o}`).hostname;return e.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)||e.match(/^[a-fA-F0-9:]+$/)||e.startsWith(".")?e:`.${e}`},A=(o,e)=>{if(!o||!e)return!0;try{const n=o.startsWith("http")?o:`http://${o}`,t=new URL(n).hostname,s=!e,c=e===t,a=e.startsWith(".")&&e===`.${t}`,l=e.startsWith(".")&&t?.endsWith(e);return s||c||l||a}catch{return!1}},G=(o,e)=>{const n=o.map(t=>`${t.name}=${t.value}`).join("; ");return e?`${e}; ${n}`.trim():n.trim()},K=(o=[],e={},n="")=>{const t={},s=[],c=new URLSearchParams;return o.forEach(a=>{if(a.type==="apiKey"){const l=d(a.value,e)||n;a.in==="header"&&(t[a.name]=l),a.in==="query"&&c.append(a.name,l),a.in==="cookie"&&s.push(S.parse({uid:a.uid,name:a.name,value:l,path:"/"}))}if(a.type==="http")if(a.scheme==="basic"){const l=d(a.username,e),i=d(a.password,e),r=`${l}:${i}`;t.Authorization=`Basic ${r===":"?"username:password":j(r)}`}else{const l=d(a.token,e);t.Authorization=`Bearer ${l||n}`}if(a.type==="oauth2"){const l=Object.values(a.flows).filter(E).find(i=>i.token)?.token;t.Authorization=`Bearer ${l||n}`}}),{headers:t,cookies:s,urlParams:c}},w={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}};Object.entries(w).filter(([,o])=>o?.raw).map(([o])=>o);function L(o){const e=w[o];if(e)return e;if(o.endsWith("+json"))return{extension:".json",raw:!0,language:"json"}}function Y(o){return!!L(o)?.raw}export{_ as C,G as D,F as c,O as h,A as k,V as m,Y as o,L as t,K as y};
|
|
1
|
+
import{aV as x,ax as U,aW as T,aX as P,aE as H,N as W,a1 as y,aY as S,U as d,aI as j,z as E}from"./Bt9SJD2w.js";import{d as R,m as v,j as k,c as C,b,w as q,e as g,s as h,h as p,t as f}from"./CfX6M68B.js";const $=["post","put","patch","delete"],F=o=>$.includes(o.toLowerCase()),O={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",color:"var(--scalar-color-blue)"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101",color:"var(--scalar-color-blue)"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102",color:"var(--scalar-color-blue)"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103",color:"var(--scalar-color-blue)"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200",color:"var(--scalar-color-green)"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201",color:"var(--scalar-color-green)"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202",color:"var(--scalar-color-green)"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203",color:"var(--scalar-color-green)"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204",color:"var(--scalar-color-green)"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205",color:"var(--scalar-color-green)"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206",color:"var(--scalar-color-green)"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207",color:"var(--scalar-color-green)"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208",color:"var(--scalar-color-green)"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226",color:"var(--scalar-color-green)"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300",color:"var(--scalar-color-yellow)"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301",color:"var(--scalar-color-yellow)"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302",color:"var(--scalar-color-yellow)"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303",color:"var(--scalar-color-yellow)"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304",color:"var(--scalar-color-yellow)"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305",color:"var(--scalar-color-yellow)"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306",color:"var(--scalar-color-yellow)"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307",color:"var(--scalar-color-yellow)"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308",color:"var(--scalar-color-yellow)"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",color:"var(--scalar-color-red)"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401",color:"var(--scalar-color-red)"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402",color:"var(--scalar-color-red)"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403",color:"var(--scalar-color-red)"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404",color:"var(--scalar-color-red)"},405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405",color:"var(--scalar-color-red)"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406",color:"var(--scalar-color-red)"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407",color:"var(--scalar-color-red)"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408",color:"var(--scalar-color-red)"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409",color:"var(--scalar-color-red)"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410",color:"var(--scalar-color-red)"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411",color:"var(--scalar-color-red)"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412",color:"var(--scalar-color-red)"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413",color:"var(--scalar-color-red)"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414",color:"var(--scalar-color-red)"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415",color:"var(--scalar-color-red)"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416",color:"var(--scalar-color-red)"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417",color:"var(--scalar-color-red)"},418:{name:"I'm a teapot",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418",color:"var(--scalar-color-red)"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421",color:"var(--scalar-color-red)"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422",color:"var(--scalar-color-red)"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423",color:"var(--scalar-color-red)"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424",color:"var(--scalar-color-red)"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425",color:"var(--scalar-color-red)"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426",color:"var(--scalar-color-red)"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428",color:"var(--scalar-color-red)"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429",color:"var(--scalar-color-red)"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431",color:"var(--scalar-color-red)"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451",color:"var(--scalar-color-red)"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500",color:"var(--scalar-color-red)"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501",color:"var(--scalar-color-red)"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502",color:"var(--scalar-color-red)"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503",color:"var(--scalar-color-red)"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504",color:"var(--scalar-color-red)"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505",color:"var(--scalar-color-red)"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506",color:"var(--scalar-color-red)"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507",color:"var(--scalar-color-red)"},508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508",color:"var(--scalar-color-red)"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510",color:"var(--scalar-color-red)"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511",color:"var(--scalar-color-red)"}},M=R({__name:"HttpMethod",props:{isSquare:{type:Boolean,default:!1},method:{},isEditable:{type:Boolean,default:!1}},emits:["change"],setup(o,{emit:e}){const n=o,t=e,s=v(()=>x(n.method)),c=Object.entries(U).map(([r])=>({id:r,label:r.toUpperCase(),color:x(r).colorClass})),a=v({get:()=>c.find(({id:r})=>r===n.method),set:r=>r?.id&&t("change",r.id)}),l=P({base:"text-center font-code text-3xs justify-center items-center flex",variants:{isSquare:{true:"px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",false:"rounded-full"},isEditable:{true:"http-bg-gradient rounded-md border border-r",false:"cursor-auto"}}}),i=v(()=>s.value.short);return(r,u)=>r.isEditable?(b(),k(p(H),{key:0,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=m=>a.value=m),class:"font-code scalar-client mt-1 text-sm",options:p(c)},{default:q(()=>[g("div",{class:h(["h-full",{"pointer-events-none":!r.isEditable}])},[g("button",{class:h(["relative h-full",p(T)(p(l)({isSquare:r.isSquare,isEditable:r.isEditable}),s.value.colorClass)]),type:"button"},[g("span",null,f(i.value),1)],2)],2)]),_:1},8,["modelValue","options"])):(b(),C("div",{key:1,class:h(["relative gap-1 whitespace-nowrap",p(T)(p(l)({isSquare:r.isSquare,isEditable:r.isEditable}),s.value.colorClass)]),type:"button"},f(s.value.short),3))}}),V=W(M,[["__scopeId","data-v-076b14a1"]]),N="/";function _({example:o,env:e,globalCookies:n,serverUrl:t,proxyUrl:s}){const c=[],a=y(s,t),l=B(a?s:t??"http://localhost");return n.forEach(i=>{const{name:r,value:u,domain:m,...z}=i;!A(t,m)||!r||c.push(S.parse({name:r,value:u,domain:m,path:z.path}))}),o.parameters.cookies.forEach(i=>{!i.enabled||!i.key||c.push(S.parse({name:i.key,value:d(i.value,e),domain:l,path:N}))}),{cookieParams:c}}const B=o=>{const e=new URL(o.startsWith("http")?o:`http://${o}`).hostname;return e.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)||e.match(/^[a-fA-F0-9:]+$/)||e.startsWith(".")?e:`.${e}`},A=(o,e)=>{if(!o||!e)return!0;try{const n=o.startsWith("http")?o:`http://${o}`,t=new URL(n).hostname,s=!e,c=e===t,a=e.startsWith(".")&&e===`.${t}`,l=e.startsWith(".")&&t?.endsWith(e);return s||c||l||a}catch{return!1}},G=(o,e)=>{const n=o.map(t=>`${t.name}=${t.value}`).join("; ");return e?`${e}; ${n}`.trim():n.trim()},K=(o=[],e={},n="")=>{const t={},s=[],c=new URLSearchParams;return o.forEach(a=>{if(a.type==="apiKey"){const l=d(a.value,e)||n;a.in==="header"&&(t[a.name]=l),a.in==="query"&&c.append(a.name,l),a.in==="cookie"&&s.push(S.parse({uid:a.uid,name:a.name,value:l,path:"/"}))}if(a.type==="http")if(a.scheme==="basic"){const l=d(a.username,e),i=d(a.password,e),r=`${l}:${i}`;t.Authorization=`Basic ${r===":"?"username:password":j(r)}`}else{const l=d(a.token,e);t.Authorization=`Bearer ${l||n}`}if(a.type==="oauth2"){const l=Object.values(a.flows).filter(E).find(i=>i.token)?.token;t.Authorization=`Bearer ${l||n}`}}),{headers:t,cookies:s,urlParams:c}},w={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}};Object.entries(w).filter(([,o])=>o?.raw).map(([o])=>o);function L(o){const e=w[o];if(e)return e;if(o.endsWith("+json"))return{extension:".json",raw:!0,language:"json"}}function Y(o){return!!L(o)?.raw}export{_ as C,G as D,F as c,O as h,A as k,V as m,Y as o,L as t,K as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,g as m,bs as p,N as v}from"./
|
|
1
|
+
import{d,g as m,bs as p,N as v}from"./Bt9SJD2w.js";import{f}from"./ND3qLMiK.js";import{d as h,c as y,b as s,e as l,j as x,k as S,f as V,h as e,s as b}from"./CfX6M68B.js";import"./92s3wAHG.js";import"./BGp8YvuN.js";import"./DoMHqyvz.js";import"./DM-FWuh7.js";const C={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},k={class:"flex flex-col gap-4"},g={class:"flex flex-col gap-2"},w={class:"flex h-8 items-center justify-between"},N=h({__name:"CollectionAuthentication",setup(A){const{activeCollection:t,activeEnvVariables:c,activeEnvironment:i,activeServer:n,activeWorkspace:a}=d(),{collectionMutators:r}=m(),u=()=>{t.value?.uid&&r.edit(t.value.uid,"useCollectionSecurity",!t.value.useCollectionSecurity)};return(B,o)=>(s(),y("div",C,[l("div",k,[l("div",g,[l("div",w,[o[0]||(o[0]=l("h3",{class:"font-bold"},"Authentication",-1)),V(e(p),{class:"w-4",modelValue:e(t)?.useCollectionSecurity??!1,"onUpdate:modelValue":u},null,8,["modelValue"])]),o[1]||(o[1]=l("p",{class:"pr-6 text-sm"}," Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ",-1))]),e(t)&&e(a)?(s(),x(e(f),{key:0,class:b(["scalar-collection-auth",!e(t)?.useCollectionSecurity&&"pointer-events-none opacity-50 mix-blend-luminosity"]),collection:e(t),envVariables:e(c),environment:e(i),layout:"client",selectedSecuritySchemeUids:e(t)?.selectedSecuritySchemeUids??[],server:e(n),title:"Authentication",workspace:e(a)},null,8,["class","collection","envVariables","environment","selectedSecuritySchemeUids","server","workspace"])):S("",!0)])]))}}),M=v(N,[["__scopeId","data-v-cc87292e"]]);export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as P}from"./
|
|
1
|
+
import{_ as P}from"./CSScY24L.js";import{_ as T}from"./DCoyLE6i.js";import{d as A}from"./C0Rlrcoy.js";import{d as F,H as M,r as V,x as $,m as w,v as B,c as n,f as b,e as c,h as s,k as C,t as e,w as D,b as r,g as L,_ as O}from"./CfX6M68B.js";import{u as I}from"./BGp8YvuN.js";const S={class:"prompt-page"},E={class:"card"},R={class:"section-header"},Y={class:"session-badge"},G={key:0,class:"column-badge"},K=["title"],Q={key:0,class:"loading"},j={key:1,class:"error-message"},q={key:2,class:"empty"},z=["innerHTML"],J={key:4,class:"prompt-content prompt-raw"},U={class:"actions"},W=F({__name:"prompt",async setup(X){let o,p;const y=M(),m=y.params.id,h=y.params.sessionId,u=V(!0),{data:i}=([o,p]=$(()=>I(`/api/issues/${m}`,"$a3ca3_CGOD")),o=await o,p(),o),x=w(()=>{if(!i.value)return null;const t={id:i.value.key,title:i.value.title,column:i.value.column_slug};return i.value.priority&&(t.priority=i.value.priority),t}),{data:a,status:H,error:k}=([o,p]=$(()=>I(`/api/issues/${m}/history/${h}/prompt`,"$QrPKfenAcg")),o=await o,p(),o),N=w(()=>{if(!a.value?.content)return"";let t=a.value.content;if(t.includes("## Column Instructions")){const d="## Column Instructions\n\n```markdown\n",_="```\n\n## Your Task",l=t.indexOf(d);if(l!==-1){const v=l+d.length,f=t.indexOf(_,v);if(f!==-1){const g=t.substring(v,f);g.includes("```")&&(t=t.substring(0,l)+"## Column Instructions\n\n````markdown\n"+g+"````\n\n## Your Task"+t.substring(f+_.length))}}}return A(t)});return B({title:`Prompt ${h} - ${m} - AutoCode`}),(t,d)=>{const _=P,l=T;return r(),n("div",S,[b(_,{issue:s(x),"active-tab":"history"},null,8,["issue"]),c("div",E,[c("div",R,[c("h2",null,e(t.$t("history.viewPrompt")),1),c("span",Y,e(s(h)),1),s(a)?.column?(r(),n("span",G,e(s(a).column),1)):C("",!0),s(a)?.content?(r(),n("button",{key:1,class:"view-toggle",title:s(u)?t.$t("history.viewRaw"):t.$t("history.viewFormatted"),onClick:d[0]||(d[0]=v=>u.value=!s(u))},e(s(u)?"{ }":"Aa"),9,K)):C("",!0)]),s(H)==="pending"?(r(),n("div",Q,e(t.$t("app.loading")),1)):s(k)?(r(),n("div",j,e(s(k).message),1)):s(a)?.content?s(u)?(r(),n("div",{key:3,class:"prompt-content prompt-markdown",innerHTML:s(N)},null,8,z)):(r(),n("div",J,[c("pre",null,e(s(a).content),1)])):(r(),n("div",q,e(t.$t("column.noPrompt")),1))]),c("div",U,[b(l,{to:`/issue/${s(m)}/history`,class:"btn-secondary"},{default:D(()=>[L(e(t.$t("nav.back")),1)]),_:1},8,["to"])])])}}}),nt=O(W,[["__scopeId","data-v-9e0cebf5"]]);export{nt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as q,j as S,b as n,w as a,e as w,t as T,f as c,h as s,g as b,m as I,s as R,k as V,A as Q,c as y,F as C,q as D,a9 as X,al as M,ak as A,r as E,o as re,R as H,n as G}from"./DKB4Mc1Q.js";import{g as P,T as B,L as ne,bc as L,bd as N,z as J,be as ce,bf as ie,r as ue,bg as de,aA as g,ay as Y,aB as pe,bh as me,aS as fe,bi as he,k as ye,bj as ve,bk as be,M as Z,aD as we,N as ee,bl as xe,bm as ke,bn as Ve,bo as ge,bp as Se,bq as _e,n as $e,C as Ue,aC as Ce,aF as Ae}from"./BajA-R3t.js";const Oe={class:"text-c-2 mb-4 text-sm leading-normal"},ze={class:"flex justify-between gap-2"},te=q({__name:"DeleteRequestAuthModal",props:{state:{},scheme:{}},emits:["close","delete"],setup(l,{emit:U}){const f=l,h=U,{securitySchemeMutators:x}=P(),k=()=>{f.scheme?.id&&x.delete(f.scheme.id),h("delete")};return(o,p)=>(n(),S(s(ne),{size:"xxs",state:o.state,title:"Delete Security Scheme"},{default:a(()=>[w("p",Oe," This cannot be undone. You're about to delete the "+T(o.scheme?.label)+" security scheme from the collection. ",1),w("div",ze,[c(s(B),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:p[0]||(p[0]=i=>h("close"))},{default:a(()=>[...p[1]||(p[1]=[b(" Cancel ",-1)])]),_:1}),c(s(B),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"submit",onClick:k},{default:a(()=>[b(" Delete "+T(o.scheme?.label),1)]),_:1})])]),_:1},8,["state"]))}}),le=(l,U,f,{securitySchemeMutators:h,securitySchemes:x},k=!1)=>{if(h.edit(l,U,f),!!k)try{const o=JSON.parse(L().getItem(N.AUTH)??"{}"),p=x[l];if(o&&p?.nameKey){const i=o[p.nameKey]||={};i[U]=f,L().setItem(N.AUTH,JSON.stringify(o))}}catch(o){console.error(o)}},Te=(l,U)=>{try{const{collectionMutators:f,securitySchemes:h,securitySchemeMutators:x}=l,k=JSON.parse(L().getItem(N.AUTH)??"{}"),o=Object.keys(h).reduce((i,t)=>{const e=h[t];return e&&(i[e.nameKey]=e.uid),i},{});Object.entries(k).forEach(([i,t])=>{const e=o[i];e&&Object.entries(t).forEach(([r,u])=>{x.edit(e,r,u)})});const p=JSON.parse(L().getItem(N.SELECTED_SECURITY_SCHEMES)??"[]").map(i=>Array.isArray(i)?i.map(t=>o[t]).filter(J):o[i]).filter(J);f.edit(U,"selectedSecuritySchemeUids",p)}catch(f){console.error(f)}},Ie={class:"flex h-fit w-full"},Re={class:"flex-1"},Be={class:"flex items-center gap-1.75"},qe={class:"grid auto-rows-auto",style:{gridTemplateColumns:"1fr auto"}},je={key:0},Ee={class:"font-code text-xs"},Me=q({__name:"OAuthScopesInput",props:{flow:{},updateScheme:{type:Function}},setup(l){const U=I(()=>Object.entries(l.flow?.scopes??{}).map(([p,i])=>({id:p,label:p,description:i}))),f=I(()=>l.flow?.selectedScopes||[]);function h(p,i){i?l.updateScheme(`flows.${l.flow.type}.selectedScopes`,[...f.value,p]):l.updateScheme(`flows.${l.flow.type}.selectedScopes`,f.value.filter(t=>t!==p))}const x=I(()=>l.flow?.selectedScopes?.length===Object.keys(l.flow?.scopes??{}).length),k=()=>{l.updateScheme(`flows.${l.flow.type}.selectedScopes`,Object.keys(l.flow?.scopes??{}))},o=()=>{l.updateScheme(`flows.${l.flow.type}.selectedScopes`,[])};return(p,i)=>(n(),S(s(Y),{class:"h-auto !max-h-[initial] min-h-8 items-center"},{default:a(()=>[w("div",Ie,[i[2]||(i[2]=w("div",{class:"text-c-1 h-full items-center"},null,-1)),c(s(ce),{as:"div",class:"bl flex w-full flex-col"},{default:a(()=>[c(s(ie),{class:R(["group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",(p.flow?.selectedScopes?.length||0)>0?"text-c-1":"text-c-3"])},{default:a(({open:t})=>[w("div",Re," Scopes Selected "+T(p.flow?.selectedScopes?.length||0)+" / "+T(Object.keys(p.flow?.scopes??{}).length||0),1),w("div",Be,[x.value?(n(),S(s(B),{key:0,class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:Q(o,["stop"])},{default:a(()=>[...i[0]||(i[0]=[b(" Deselect All ",-1)])]),_:1})):V("",!0),x.value?V("",!0):(n(),S(s(B),{key:1,class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:Q(k,["stop"])},{default:a(()=>[...i[1]||(i[1]=[b(" Select All ",-1)])]),_:1})),c(s(ue),{class:"text-c-3 group-hover/scopes-accordion:text-c-2",icon:t?"ChevronDown":"ChevronRight",size:"md"},null,8,["icon"])])]),_:1},8,["class"]),c(s(de),{as:"template"},{default:a(()=>[w("table",qe,[(n(!0),y(C,null,D(U.value,({id:t,label:e,description:r})=>(n(),S(s(g),{key:t,class:"text-c-2",onClick:u=>h(t,!f.value.includes(t))},{default:a(()=>[c(s(Y),{class:"hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5"},{default:a(()=>[r?(n(),y("div",je,[w("span",Ee,T(e),1),b(" – "+T(r),1)])):V("",!0)]),_:2},1024),c(s(pe),{modelValue:f.value.includes(t),"onUpdate:modelValue":()=>{}},null,8,["modelValue"])]),_:2},1032,["onClick"]))),128))])]),_:1})]),_:1})])]),_:1}))}}),Fe=["for"],z=q({__name:"RequestAuthDataTableInput",props:{type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},readOnly:{type:Boolean,default:!1},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],setup(l,{emit:U}){const f=l,h=U,x=X();return(k,o)=>(n(),S(me,A({id:s(x),canAddCustomEnumValue:!f.readOnly,containerClass:f.containerClass},k.$attrs,{envVariables:f.envVariables,environment:f.environment,lineWrapping:"",modelValue:f.modelValue,readOnly:f.readOnly,required:f.required,type:f.type,workspace:f.workspace,onInputBlur:o[0]||(o[0]=p=>h("inputBlur")),onInputFocus:o[1]||(o[1]=p=>h("inputFocus")),onSelectVariable:o[2]||(o[2]=p=>h("selectVariable",p)),"onUpdate:modelValue":o[3]||(o[3]=p=>h("update:modelValue",p))}),{default:a(()=>[w("label",{for:s(x)},[M(k.$slots,"default")],8,Fe)]),icon:a(()=>[M(k.$slots,"icon")]),_:3},16,["id","canAddCustomEnumValue","containerClass","envVariables","environment","modelValue","readOnly","required","type","workspace"]))}}),De={class:"flex h-8 items-center justify-end border-t"},Le={class:"flex h-8 w-full items-center justify-end border-t"},Ne=q({__name:"OAuth2",props:{collection:{},environment:{},envVariables:{},flow:{},persistAuth:{type:Boolean,default:!1},scheme:{},server:{},workspace:{}},emits:["authorized"],setup(l,{emit:U}){const f=U,h=fe(),{toast:x}=ye(),k=P(),o=(t,e)=>le(l.scheme.uid,t,e,k,l.persistAuth),p=async()=>{if(h.isActive||!l.collection?.uid)return;if(!l.server){x("No server selected","error");return}h.start();const[t,e]=await ve(l.flow,l.server,l.workspace?.proxyUrl);await h.clear(),e?(o(`flows.${l.flow.type}.token`,e),f("authorized")):(console.error(t),x(t?.message??"Failed to authorize","error"))},i={environment:l.environment,envVariables:l.envVariables,workspace:l.workspace};return(t,e)=>(n(),y(C,null,[t.flow.token?(n(),y(C,{key:0},[c(s(g),null,{default:a(()=>[c(z,A(i,{class:"border-r-transparent",modelValue:t.flow.token,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":e[0]||(e[0]=r=>o(`flows.${t.flow.type}.token`,r))}),{default:a(()=>[...e[10]||(e[10]=[b(" Access Token ",-1)])]),_:1},16,["modelValue"])]),_:1}),c(s(g),{class:"min-w-full"},{default:a(()=>[w("div",De,[c(s(B),{class:"mr-1 p-0 px-2 py-0.5",loader:s(h),size:"sm",variant:"outlined",onClick:e[1]||(e[1]=r=>o(`flows.${t.flow.type}.token`,""))},{default:a(()=>[...e[11]||(e[11]=[b(" Clear ",-1)])]),_:1},8,["loader"]),M(t.$slots,"oauth-actions")])]),_:3})],64)):(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>["authorizationUrl"in t.flow?(n(),S(z,A({key:0},i,{containerClass:"border-r-0",modelValue:t.flow.authorizationUrl,placeholder:"https://galaxy.scalar.com/authorize","onUpdate:modelValue":e[2]||(e[2]=r=>o(`flows.${t.flow.type}.authorizationUrl`,r))}),{default:a(()=>[...e[12]||(e[12]=[b(" Auth URL ",-1)])]),_:1},16,["modelValue"])):V("",!0),"tokenUrl"in t.flow?(n(),S(z,A({key:1},i,{modelValue:t.flow.tokenUrl,placeholder:"https://galaxy.scalar.com/token","onUpdate:modelValue":e[3]||(e[3]=r=>o(`flows.${t.flow.type}.tokenUrl`,r))}),{default:a(()=>[...e[13]||(e[13]=[b(" Token URL ",-1)])]),_:1},16,["modelValue"])):V("",!0)]),_:1}),"x-scalar-redirect-uri"in t.flow?(n(),S(s(g),{key:0},{default:a(()=>[c(z,A(i,{modelValue:t.flow["x-scalar-redirect-uri"],placeholder:"https://galaxy.scalar.com/callback","onUpdate:modelValue":e[4]||(e[4]=r=>o(`flows.${t.flow.type}.x-scalar-redirect-uri`,r))}),{default:a(()=>[...e[14]||(e[14]=[b(" Redirect URL ",-1)])]),_:1},16,["modelValue"])]),_:1})):V("",!0),t.flow.type==="password"?(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>[c(z,A(i,{class:"text-c-2",modelValue:t.flow.username,placeholder:"janedoe","onUpdate:modelValue":e[5]||(e[5]=r=>o(`flows.${t.flow.type}.username`,r))}),{default:a(()=>[...e[15]||(e[15]=[b(" Username ",-1)])]),_:1},16,["modelValue"])]),_:1}),c(s(g),null,{default:a(()=>[c(z,A(i,{modelValue:t.flow.password,placeholder:"********",type:"password","onUpdate:modelValue":e[6]||(e[6]=r=>o(`flows.${t.flow.type}.password`,r))}),{default:a(()=>[...e[16]||(e[16]=[b(" Password ",-1)])]),_:1},16,["modelValue"])]),_:1})],64)):V("",!0),c(s(g),null,{default:a(()=>[c(z,A(i,{modelValue:t.flow["x-scalar-client-id"],placeholder:"12345","onUpdate:modelValue":e[7]||(e[7]=r=>o(`flows.${t.flow.type}.x-scalar-client-id`,r))}),{default:a(()=>[...e[17]||(e[17]=[b(" Client ID ",-1)])]),_:1},16,["modelValue"])]),_:1}),"clientSecret"in t.flow?(n(),S(s(g),{key:2},{default:a(()=>[c(z,A(i,{modelValue:t.flow.clientSecret,placeholder:"XYZ123",type:"password","onUpdate:modelValue":e[8]||(e[8]=r=>o(`flows.${t.flow.type}.clientSecret`,r))}),{default:a(()=>[...e[18]||(e[18]=[b(" Client Secret ",-1)])]),_:1},16,["modelValue"])]),_:1})):V("",!0),"x-usePkce"in t.flow?(n(),S(s(g),{key:3},{default:a(()=>[c(z,A(i,{enum:s(he),modelValue:t.flow["x-usePkce"],readOnly:"","onUpdate:modelValue":e[9]||(e[9]=r=>o(`flows.${t.flow.type}.x-usePkce`,r))}),{default:a(()=>[...e[19]||(e[19]=[b(" Use PKCE ",-1)])]),_:1},16,["enum","modelValue"])]),_:1})):V("",!0),Object.keys(t.flow.scopes??{}).length?(n(),S(s(g),{key:4},{default:a(()=>[c(Me,{flow:t.flow,updateScheme:o},null,8,["flow"])]),_:1})):V("",!0)],64)),t.flow.token?V("",!0):(n(),S(s(g),{key:2,class:"min-w-full"},{default:a(()=>[w("div",Le,[c(s(B),{class:"mr-0.75 p-0 px-2 py-0.5",loader:s(h),size:"sm",variant:"outlined",onClick:p},{default:a(()=>[...e[20]||(e[20]=[b(" Authorize ",-1)])]),_:1},8,["loader"])])]),_:1}))],64))}}),Pe={class:"bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none"},Ke={key:0,class:"flex min-h-8 border-t text-base"},He={class:"flex h-8 max-w-full gap-2.5 overflow-x-auto px-3"},Qe=["onClick"],Je={class:"relative z-10"},Ye=q({__name:"RequestAuthTab",props:{collection:{},environment:{},envVariables:{},layout:{},persistAuth:{type:Boolean,default:!1},securitySchemeUids:{},server:{},workspace:{}},emits:["authorized"],setup(l,{emit:U}){const f=U,h=P(),{securitySchemes:x}=h,k=I(()=>l.securitySchemeUids.map(e=>({scheme:x[e]}))),o=E(""),p=e=>{const r=e.description?`: ${e.description}`:"",u=`${H(e.nameKey)}${r||`: ${e.type}`}`;if(e.type==="apiKey")return`${H(e.nameKey)}${r||`: ${e.in}`}`;if(e.type==="oauth2"){const _=Object.values(e.flows??{})[0];return`${H(e.nameKey)}: ${o.value?o.value:_?.type??""}${r}`}return e.type==="http"?`${H(e.nameKey)}: ${e.scheme}${r}`:`${u}${r}`},i=(e,r,u)=>{le(e,r,u,h,l.persistAuth)};re(()=>{l.persistAuth&&Te(h,l.collection.uid)});const t={environment:l.environment,envVariables:l.envVariables,workspace:l.workspace};return(e,r)=>(n(!0),y(C,null,D(k.value,({scheme:u})=>(n(),y(C,{key:u?.uid},[k.value.length>1&&u?(n(),S(s(g),{key:0},{default:a(()=>[c(s(Y),{"aria-label":p(u),class:"text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"},{default:a(()=>[w("p",Pe,T(p(u)),1)]),_:2},1032,["aria-label"])]),_:2},1024)):V("",!0),u?.description&&k.value.length<=1?(n(),S(s(g),{key:1},{default:a(()=>[c(s(Y),{"aria-label":u.description,class:"max-h-[auto]"},{default:a(()=>[c(s(be),{class:"auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",value:u.description},null,8,["value"])]),_:2},1032,["aria-label"])]),_:2},1024)):V("",!0),u?.type==="http"?(n(),y(C,{key:2},[u.scheme==="bearer"?(n(),S(s(g),{key:0},{default:a(()=>[c(z,A({ref_for:!0},t,{containerClass:e.layout==="reference"&&"border-t",modelValue:u.token,placeholder:"Token",type:"password","onUpdate:modelValue":_=>i(u.uid,"token",_)}),{default:a(()=>[...r[1]||(r[1]=[b(" Bearer Token ",-1)])]),_:1},16,["containerClass","modelValue","onUpdate:modelValue"])]),_:2},1024)):u?.scheme==="basic"?(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{class:"text-c-2",modelValue:u.username,placeholder:"janedoe",required:"","onUpdate:modelValue":_=>i(u.uid,"username",_)}),{default:a(()=>[...r[2]||(r[2]=[b(" Username ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024),c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{modelValue:u.password,placeholder:"********",type:"password","onUpdate:modelValue":_=>i(u.uid,"password",_)}),{default:a(()=>[...r[3]||(r[3]=[b(" Password ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):V("",!0)],64)):u?.type==="apiKey"?(n(),y(C,{key:3},[c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{containerClass:e.layout==="reference"&&"border-t",modelValue:u.name,placeholder:"api-key","onUpdate:modelValue":_=>i(u.uid,"name",_)}),{default:a(()=>[...r[4]||(r[4]=[b(" Name ",-1)])]),_:1},16,["containerClass","modelValue","onUpdate:modelValue"])]),_:2},1024),c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{modelValue:u.value,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":_=>i(u.uid,"value",_)}),{default:a(()=>[...r[5]||(r[5]=[b(" Value ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):u?.type==="oauth2"?(n(),y(C,{key:4},[c(s(g),null,{default:a(()=>[Object.keys(u.flows).length>1?(n(),y("div",Ke,[w("div",He,[(n(!0),y(C,null,D(u?.flows,(_,O,j)=>(n(),y("button",{key:O,class:R(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium",{"!text-c-1 !rounded-none border-b-[1px] !border-current":e.layout!=="reference"&&(o.value===O||j===0&&!o.value),"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100":e.layout==="reference"&&(o.value===O||j===0&&!o.value)}]),type:"button",onClick:K=>o.value=O},[w("span",Je,T(O),1)],10,Qe))),128))])])):V("",!0)]),_:2},1024),(n(!0),y(C,null,D(u?.flows,(_,O,j)=>(n(),y(C,{key:O},[o.value===O||j===0&&!o.value?(n(),S(Ne,A({key:0,ref_for:!0},t,{collection:e.collection,flow:_,persistAuth:e.persistAuth,scheme:u,server:e.server,workspace:e.workspace,onAuthorized:r[0]||(r[0]=K=>f("authorized"))}),{"oauth-actions":a(()=>[M(e.$slots,"oauth-actions")]),_:3},16,["collection","flow","persistAuth","scheme","server","workspace"])):V("",!0)],64))),128))],64)):u?.type==="openIdConnect"?(n(),y("div",{key:5,class:R(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base",{"rounded-b-lg":e.layout==="reference"}])}," Coming soon ",2)):V("",!0)],64))),128))}}),We=["onClick"],Ge={class:"relative z-10 font-medium whitespace-nowrap"},Xe={key:0,class:"absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"},Ze=q({__name:"RequestAuthDataTable",props:{collection:{},environment:{},envVariables:{},layout:{default:"client"},persistAuth:{type:Boolean,default:!1},selectedSchemeOptions:{default:()=>[]},server:{},workspace:{}},emits:["authorized","activeSchemes"],setup(l,{emit:U}){const f=U,{securitySchemes:h}=P(),x=Z(),k=E(null),o=E(0),p=I(()=>{if(!l.selectedSchemeOptions||l.selectedSchemeOptions.length===0)return[];const t=l.selectedSchemeOptions[o.value];if(!t)return[];const e=t.id.split(",").filter(Boolean);return e.length>1?e:[t.id]});G(p,t=>{f("activeSchemes",t.map(e=>h[e]).filter(J))},{immediate:!0});const i=I(()=>p.value.length>0);return G(()=>l.selectedSchemeOptions,t=>{(!t||!t[o.value])&&(o.value=Math.max(0,o.value-1))}),(t,e)=>(n(),y("form",{onSubmit:e[2]||(e[2]=Q(()=>{},["prevent"]))},[t.selectedSchemeOptions.length>1?(n(),y("div",{key:0,class:R(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3",t.layout==="client"&&"border-x-0"])},[(n(!0),y(C,null,D(t.selectedSchemeOptions,(r,u)=>(n(),y("div",{key:r.id,class:R(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer",[o.value===u?"text-c-1":"text-c-3"]])},[w("button",{class:"floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",type:"button",onClick:_=>o.value=u},[w("span",Ge,T(r.label),1)],8,We),o.value===u?(n(),y("div",Xe)):V("",!0)],2))),128))],2)):V("",!0),i.value?(n(),S(s(we),{key:1,class:R(["flex-1",t.layout==="reference"&&"bg-b-1 rounded-b-lg border border-t-0"]),columns:[""],presentational:""},{default:a(()=>[c(Ye,{collection:t.collection,envVariables:t.envVariables,environment:t.environment,layout:t.layout,persistAuth:t.persistAuth,securitySchemeUids:p.value,server:t.server,workspace:t.workspace,onAuthorized:e[0]||(e[0]=r=>f("authorized"))},{"oauth-actions":a(()=>[M(t.$slots,"oauth-actions",{},void 0,!0)]),_:3},8,["collection","envVariables","environment","layout","persistAuth","securitySchemeUids","server","workspace"])]),_:3},8,["class"])):(n(),y("div",{key:2,class:R(["text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",t.layout==="reference"&&"min-h-[calc(4rem+0.5px)] rounded-b-lg border"])}," No authentication selected ",2)),c(te,{scheme:k.value,state:s(x),onClose:e[1]||(e[1]=r=>s(x).hide())},null,8,["scheme","state"])],32))}}),et=ee(Ze,[["__scopeId","data-v-0bb98074"]]),tt=["id"],lt={class:"flex flex-1"},at={class:"min-w-0 flex-1 truncate"},ot=q({__name:"RequestAuth",props:{collection:{},isReadOnly:{type:Boolean,default:!1},environment:{},envVariables:{},layout:{},operation:{},persistAuth:{type:Boolean,default:!1},selectedSecuritySchemeUids:{},server:{},title:{},workspace:{}},emits:["authorized","activeSchemes"],setup(l,{emit:U}){const f=U,{securitySchemes:h,securitySchemeMutators:x,requestMutators:k,collectionMutators:o}=P(),p=X(),i=E(null),t=Z(),e=E(null),r=E(!1),u=I(()=>{const m=xe(l.operation,l.collection);return{filteredRequirements:m.filter(d=>Object.keys(d).length),requirements:m}}),_=I(()=>{const{filteredRequirements:m,requirements:d}=u.value;if(!d.length)return null;const v=!d.some($=>Object.keys($).length>1)&&m.length<d.length;return{icon:v?"Unlock":"Lock",text:v?"Optional":"Required"}}),O=I(()=>l.selectedSecuritySchemeUids.map(m=>{if(Array.isArray(m))return ke(m,h);const d=h[m??""];if(d)return Ve(d)}).filter(J));function j(m){const d=m.find($=>$.payload),v=m.filter($=>!$.payload).map(({id:$})=>{const F=$.split(",");return F.length>1?F:$});if(d?.payload){const $=x.add(d.payload,l.collection?.uid);$&&v.push($.uid)}K(v)}const K=m=>{if(l.collection.useCollectionSecurity){if(o.edit(l.collection.uid,"selectedSecuritySchemeUids",m),!l.persistAuth)return;const d=m.map(v=>Array.isArray(v)?v.map($=>h[$]?.nameKey):h[v]?.nameKey);L().setItem(N.SELECTED_SECURITY_SCHEMES,JSON.stringify(d))}else l.operation?.uid&&k.edit(l.operation.uid,"selectedSecuritySchemeUids",m)};function W({id:m,label:d}){e.value={id:m,label:d},t.show()}const ae=m=>{if(!m)return;const d=l.selectedSecuritySchemeUids.filter(v=>{const $=m.split(",");return $.length>1&&Array.isArray(v)&&$.length===v.length?v.every(F=>!$.includes(F)):v!==m});K(d),i.value?.$el.focus(),t.hide()},oe=I(()=>ge(u.value.filteredRequirements,l.collection?.securitySchemes??[],h,l.isReadOnly)),se=m=>{r.value&&m.stopPropagation(),i.value?.$el.click()};return(m,d)=>(n(),S(Ae,{class:"group/params relative",itemCount:O.value.length,layout:m.layout,"onUpdate:modelValue":d[4]||(d[4]=v=>r.value=v)},{title:a(()=>[w("div",{id:s(p),class:"inline-flex items-center gap-0.5 leading-[20px]"},[w("span",null,T(m.title),1),_.value?(n(),y("span",{key:0,class:R(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]",{"text-c-1":_.value.text==="Required"}]),onClick:se},T(_.value.text),3)):V("",!0)],8,tt)]),actions:a(()=>[w("div",lt,[c(s(Se),{class:"w-72 text-xs",modelValue:O.value,multiple:"",options:oe.value,placement:"bottom-end",teleport:"",onDelete:W,"onUpdate:modelValue":j},{option:a(({option:v,selected:$})=>[c(s($e),{multiselect:"",selected:$},null,8,["selected"]),w("div",at,T(v.label),1),v.isDeletable??!m.isReadOnly?(n(),S(s(Ue),{key:0,class:"-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",icon:s(Ce),label:`Delete ${v.label}`,size:"xs",onClick:Q(F=>W(v),["stop"])},null,8,["icon","label","onClick"])):V("",!0)]),default:a(()=>[c(s(B),{ref_key:"comboboxButtonRef",ref:i,"aria-describedby":s(p),class:"group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",variant:"ghost"},{default:a(()=>[O.value.length===1?(n(),y(C,{key:0},[d[5]||(d[5]=w("span",{class:"sr-only"},"Selected Auth Type:",-1)),b(" "+T(O.value[0]?.label),1)],64)):O.value.length>1?(n(),y(C,{key:1},[d[6]||(d[6]=b(" Multiple ",-1)),d[7]||(d[7]=w("span",{class:"sr-only"},"Auth Types Selected",-1))],64)):(n(),y(C,{key:2},[d[8]||(d[8]=w("span",{class:"sr-only"},"Select",-1)),d[9]||(d[9]=b(" Auth Type ",-1))],64)),c(s(_e),{class:"size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",weight:"bold"})]),_:1},8,["aria-describedby"])]),_:1},8,["modelValue","options"])])]),default:a(()=>[c(et,{collection:m.collection,envVariables:m.envVariables,environment:m.environment,layout:m.layout,persistAuth:m.persistAuth,selectedSchemeOptions:O.value,server:m.server,workspace:m.workspace,onActiveSchemes:d[0]||(d[0]=v=>f("activeSchemes",v)),onAuthorized:d[1]||(d[1]=v=>f("authorized"))},{"oauth-actions":a(()=>[M(m.$slots,"oauth-actions",{},void 0,!0)]),_:3},8,["collection","envVariables","environment","layout","persistAuth","selectedSchemeOptions","server","workspace"]),c(te,{scheme:e.value,state:s(t),onClose:d[2]||(d[2]=v=>s(t).hide()),onDelete:d[3]||(d[3]=v=>ae(e.value?.id))},null,8,["scheme","state"])]),_:3},8,["itemCount","layout"]))}}),nt=ee(ot,[["__scopeId","data-v-3f1067a4"]]);export{nt as f};
|
|
1
|
+
import{d as q,j as S,b as n,w as a,e as w,t as T,f as c,h as s,g as b,m as I,s as R,k as V,A as Q,c as y,F as C,q as D,a9 as X,al as M,ak as A,r as E,o as re,R as H,n as G}from"./CfX6M68B.js";import{g as P,T as B,L as ne,bc as L,bd as N,z as J,be as ce,bf as ie,r as ue,bg as de,aA as g,ay as Y,aB as pe,bh as me,aS as fe,bi as he,k as ye,bj as ve,bk as be,M as Z,aD as we,N as ee,bl as xe,bm as ke,bn as Ve,bo as ge,bp as Se,bq as _e,n as $e,C as Ue,aC as Ce,aF as Ae}from"./Bt9SJD2w.js";const Oe={class:"text-c-2 mb-4 text-sm leading-normal"},ze={class:"flex justify-between gap-2"},te=q({__name:"DeleteRequestAuthModal",props:{state:{},scheme:{}},emits:["close","delete"],setup(l,{emit:U}){const f=l,h=U,{securitySchemeMutators:x}=P(),k=()=>{f.scheme?.id&&x.delete(f.scheme.id),h("delete")};return(o,p)=>(n(),S(s(ne),{size:"xxs",state:o.state,title:"Delete Security Scheme"},{default:a(()=>[w("p",Oe," This cannot be undone. You're about to delete the "+T(o.scheme?.label)+" security scheme from the collection. ",1),w("div",ze,[c(s(B),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:p[0]||(p[0]=i=>h("close"))},{default:a(()=>[...p[1]||(p[1]=[b(" Cancel ",-1)])]),_:1}),c(s(B),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",type:"submit",onClick:k},{default:a(()=>[b(" Delete "+T(o.scheme?.label),1)]),_:1})])]),_:1},8,["state"]))}}),le=(l,U,f,{securitySchemeMutators:h,securitySchemes:x},k=!1)=>{if(h.edit(l,U,f),!!k)try{const o=JSON.parse(L().getItem(N.AUTH)??"{}"),p=x[l];if(o&&p?.nameKey){const i=o[p.nameKey]||={};i[U]=f,L().setItem(N.AUTH,JSON.stringify(o))}}catch(o){console.error(o)}},Te=(l,U)=>{try{const{collectionMutators:f,securitySchemes:h,securitySchemeMutators:x}=l,k=JSON.parse(L().getItem(N.AUTH)??"{}"),o=Object.keys(h).reduce((i,t)=>{const e=h[t];return e&&(i[e.nameKey]=e.uid),i},{});Object.entries(k).forEach(([i,t])=>{const e=o[i];e&&Object.entries(t).forEach(([r,u])=>{x.edit(e,r,u)})});const p=JSON.parse(L().getItem(N.SELECTED_SECURITY_SCHEMES)??"[]").map(i=>Array.isArray(i)?i.map(t=>o[t]).filter(J):o[i]).filter(J);f.edit(U,"selectedSecuritySchemeUids",p)}catch(f){console.error(f)}},Ie={class:"flex h-fit w-full"},Re={class:"flex-1"},Be={class:"flex items-center gap-1.75"},qe={class:"grid auto-rows-auto",style:{gridTemplateColumns:"1fr auto"}},je={key:0},Ee={class:"font-code text-xs"},Me=q({__name:"OAuthScopesInput",props:{flow:{},updateScheme:{type:Function}},setup(l){const U=I(()=>Object.entries(l.flow?.scopes??{}).map(([p,i])=>({id:p,label:p,description:i}))),f=I(()=>l.flow?.selectedScopes||[]);function h(p,i){i?l.updateScheme(`flows.${l.flow.type}.selectedScopes`,[...f.value,p]):l.updateScheme(`flows.${l.flow.type}.selectedScopes`,f.value.filter(t=>t!==p))}const x=I(()=>l.flow?.selectedScopes?.length===Object.keys(l.flow?.scopes??{}).length),k=()=>{l.updateScheme(`flows.${l.flow.type}.selectedScopes`,Object.keys(l.flow?.scopes??{}))},o=()=>{l.updateScheme(`flows.${l.flow.type}.selectedScopes`,[])};return(p,i)=>(n(),S(s(Y),{class:"h-auto !max-h-[initial] min-h-8 items-center"},{default:a(()=>[w("div",Ie,[i[2]||(i[2]=w("div",{class:"text-c-1 h-full items-center"},null,-1)),c(s(ce),{as:"div",class:"bl flex w-full flex-col"},{default:a(()=>[c(s(ie),{class:R(["group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",(p.flow?.selectedScopes?.length||0)>0?"text-c-1":"text-c-3"])},{default:a(({open:t})=>[w("div",Re," Scopes Selected "+T(p.flow?.selectedScopes?.length||0)+" / "+T(Object.keys(p.flow?.scopes??{}).length||0),1),w("div",Be,[x.value?(n(),S(s(B),{key:0,class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:Q(o,["stop"])},{default:a(()=>[...i[0]||(i[0]=[b(" Deselect All ",-1)])]),_:1})):V("",!0),x.value?V("",!0):(n(),S(s(B),{key:1,class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:Q(k,["stop"])},{default:a(()=>[...i[1]||(i[1]=[b(" Select All ",-1)])]),_:1})),c(s(ue),{class:"text-c-3 group-hover/scopes-accordion:text-c-2",icon:t?"ChevronDown":"ChevronRight",size:"md"},null,8,["icon"])])]),_:1},8,["class"]),c(s(de),{as:"template"},{default:a(()=>[w("table",qe,[(n(!0),y(C,null,D(U.value,({id:t,label:e,description:r})=>(n(),S(s(g),{key:t,class:"text-c-2",onClick:u=>h(t,!f.value.includes(t))},{default:a(()=>[c(s(Y),{class:"hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5"},{default:a(()=>[r?(n(),y("div",je,[w("span",Ee,T(e),1),b(" – "+T(r),1)])):V("",!0)]),_:2},1024),c(s(pe),{modelValue:f.value.includes(t),"onUpdate:modelValue":()=>{}},null,8,["modelValue"])]),_:2},1032,["onClick"]))),128))])]),_:1})]),_:1})])]),_:1}))}}),Fe=["for"],z=q({__name:"RequestAuthDataTableInput",props:{type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},readOnly:{type:Boolean,default:!1},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],setup(l,{emit:U}){const f=l,h=U,x=X();return(k,o)=>(n(),S(me,A({id:s(x),canAddCustomEnumValue:!f.readOnly,containerClass:f.containerClass},k.$attrs,{envVariables:f.envVariables,environment:f.environment,lineWrapping:"",modelValue:f.modelValue,readOnly:f.readOnly,required:f.required,type:f.type,workspace:f.workspace,onInputBlur:o[0]||(o[0]=p=>h("inputBlur")),onInputFocus:o[1]||(o[1]=p=>h("inputFocus")),onSelectVariable:o[2]||(o[2]=p=>h("selectVariable",p)),"onUpdate:modelValue":o[3]||(o[3]=p=>h("update:modelValue",p))}),{default:a(()=>[w("label",{for:s(x)},[M(k.$slots,"default")],8,Fe)]),icon:a(()=>[M(k.$slots,"icon")]),_:3},16,["id","canAddCustomEnumValue","containerClass","envVariables","environment","modelValue","readOnly","required","type","workspace"]))}}),De={class:"flex h-8 items-center justify-end border-t"},Le={class:"flex h-8 w-full items-center justify-end border-t"},Ne=q({__name:"OAuth2",props:{collection:{},environment:{},envVariables:{},flow:{},persistAuth:{type:Boolean,default:!1},scheme:{},server:{},workspace:{}},emits:["authorized"],setup(l,{emit:U}){const f=U,h=fe(),{toast:x}=ye(),k=P(),o=(t,e)=>le(l.scheme.uid,t,e,k,l.persistAuth),p=async()=>{if(h.isActive||!l.collection?.uid)return;if(!l.server){x("No server selected","error");return}h.start();const[t,e]=await ve(l.flow,l.server,l.workspace?.proxyUrl);await h.clear(),e?(o(`flows.${l.flow.type}.token`,e),f("authorized")):(console.error(t),x(t?.message??"Failed to authorize","error"))},i={environment:l.environment,envVariables:l.envVariables,workspace:l.workspace};return(t,e)=>(n(),y(C,null,[t.flow.token?(n(),y(C,{key:0},[c(s(g),null,{default:a(()=>[c(z,A(i,{class:"border-r-transparent",modelValue:t.flow.token,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":e[0]||(e[0]=r=>o(`flows.${t.flow.type}.token`,r))}),{default:a(()=>[...e[10]||(e[10]=[b(" Access Token ",-1)])]),_:1},16,["modelValue"])]),_:1}),c(s(g),{class:"min-w-full"},{default:a(()=>[w("div",De,[c(s(B),{class:"mr-1 p-0 px-2 py-0.5",loader:s(h),size:"sm",variant:"outlined",onClick:e[1]||(e[1]=r=>o(`flows.${t.flow.type}.token`,""))},{default:a(()=>[...e[11]||(e[11]=[b(" Clear ",-1)])]),_:1},8,["loader"]),M(t.$slots,"oauth-actions")])]),_:3})],64)):(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>["authorizationUrl"in t.flow?(n(),S(z,A({key:0},i,{containerClass:"border-r-0",modelValue:t.flow.authorizationUrl,placeholder:"https://galaxy.scalar.com/authorize","onUpdate:modelValue":e[2]||(e[2]=r=>o(`flows.${t.flow.type}.authorizationUrl`,r))}),{default:a(()=>[...e[12]||(e[12]=[b(" Auth URL ",-1)])]),_:1},16,["modelValue"])):V("",!0),"tokenUrl"in t.flow?(n(),S(z,A({key:1},i,{modelValue:t.flow.tokenUrl,placeholder:"https://galaxy.scalar.com/token","onUpdate:modelValue":e[3]||(e[3]=r=>o(`flows.${t.flow.type}.tokenUrl`,r))}),{default:a(()=>[...e[13]||(e[13]=[b(" Token URL ",-1)])]),_:1},16,["modelValue"])):V("",!0)]),_:1}),"x-scalar-redirect-uri"in t.flow?(n(),S(s(g),{key:0},{default:a(()=>[c(z,A(i,{modelValue:t.flow["x-scalar-redirect-uri"],placeholder:"https://galaxy.scalar.com/callback","onUpdate:modelValue":e[4]||(e[4]=r=>o(`flows.${t.flow.type}.x-scalar-redirect-uri`,r))}),{default:a(()=>[...e[14]||(e[14]=[b(" Redirect URL ",-1)])]),_:1},16,["modelValue"])]),_:1})):V("",!0),t.flow.type==="password"?(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>[c(z,A(i,{class:"text-c-2",modelValue:t.flow.username,placeholder:"janedoe","onUpdate:modelValue":e[5]||(e[5]=r=>o(`flows.${t.flow.type}.username`,r))}),{default:a(()=>[...e[15]||(e[15]=[b(" Username ",-1)])]),_:1},16,["modelValue"])]),_:1}),c(s(g),null,{default:a(()=>[c(z,A(i,{modelValue:t.flow.password,placeholder:"********",type:"password","onUpdate:modelValue":e[6]||(e[6]=r=>o(`flows.${t.flow.type}.password`,r))}),{default:a(()=>[...e[16]||(e[16]=[b(" Password ",-1)])]),_:1},16,["modelValue"])]),_:1})],64)):V("",!0),c(s(g),null,{default:a(()=>[c(z,A(i,{modelValue:t.flow["x-scalar-client-id"],placeholder:"12345","onUpdate:modelValue":e[7]||(e[7]=r=>o(`flows.${t.flow.type}.x-scalar-client-id`,r))}),{default:a(()=>[...e[17]||(e[17]=[b(" Client ID ",-1)])]),_:1},16,["modelValue"])]),_:1}),"clientSecret"in t.flow?(n(),S(s(g),{key:2},{default:a(()=>[c(z,A(i,{modelValue:t.flow.clientSecret,placeholder:"XYZ123",type:"password","onUpdate:modelValue":e[8]||(e[8]=r=>o(`flows.${t.flow.type}.clientSecret`,r))}),{default:a(()=>[...e[18]||(e[18]=[b(" Client Secret ",-1)])]),_:1},16,["modelValue"])]),_:1})):V("",!0),"x-usePkce"in t.flow?(n(),S(s(g),{key:3},{default:a(()=>[c(z,A(i,{enum:s(he),modelValue:t.flow["x-usePkce"],readOnly:"","onUpdate:modelValue":e[9]||(e[9]=r=>o(`flows.${t.flow.type}.x-usePkce`,r))}),{default:a(()=>[...e[19]||(e[19]=[b(" Use PKCE ",-1)])]),_:1},16,["enum","modelValue"])]),_:1})):V("",!0),Object.keys(t.flow.scopes??{}).length?(n(),S(s(g),{key:4},{default:a(()=>[c(Me,{flow:t.flow,updateScheme:o},null,8,["flow"])]),_:1})):V("",!0)],64)),t.flow.token?V("",!0):(n(),S(s(g),{key:2,class:"min-w-full"},{default:a(()=>[w("div",Le,[c(s(B),{class:"mr-0.75 p-0 px-2 py-0.5",loader:s(h),size:"sm",variant:"outlined",onClick:p},{default:a(()=>[...e[20]||(e[20]=[b(" Authorize ",-1)])]),_:1},8,["loader"])])]),_:1}))],64))}}),Pe={class:"bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none"},Ke={key:0,class:"flex min-h-8 border-t text-base"},He={class:"flex h-8 max-w-full gap-2.5 overflow-x-auto px-3"},Qe=["onClick"],Je={class:"relative z-10"},Ye=q({__name:"RequestAuthTab",props:{collection:{},environment:{},envVariables:{},layout:{},persistAuth:{type:Boolean,default:!1},securitySchemeUids:{},server:{},workspace:{}},emits:["authorized"],setup(l,{emit:U}){const f=U,h=P(),{securitySchemes:x}=h,k=I(()=>l.securitySchemeUids.map(e=>({scheme:x[e]}))),o=E(""),p=e=>{const r=e.description?`: ${e.description}`:"",u=`${H(e.nameKey)}${r||`: ${e.type}`}`;if(e.type==="apiKey")return`${H(e.nameKey)}${r||`: ${e.in}`}`;if(e.type==="oauth2"){const _=Object.values(e.flows??{})[0];return`${H(e.nameKey)}: ${o.value?o.value:_?.type??""}${r}`}return e.type==="http"?`${H(e.nameKey)}: ${e.scheme}${r}`:`${u}${r}`},i=(e,r,u)=>{le(e,r,u,h,l.persistAuth)};re(()=>{l.persistAuth&&Te(h,l.collection.uid)});const t={environment:l.environment,envVariables:l.envVariables,workspace:l.workspace};return(e,r)=>(n(!0),y(C,null,D(k.value,({scheme:u})=>(n(),y(C,{key:u?.uid},[k.value.length>1&&u?(n(),S(s(g),{key:0},{default:a(()=>[c(s(Y),{"aria-label":p(u),class:"text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"},{default:a(()=>[w("p",Pe,T(p(u)),1)]),_:2},1032,["aria-label"])]),_:2},1024)):V("",!0),u?.description&&k.value.length<=1?(n(),S(s(g),{key:1},{default:a(()=>[c(s(Y),{"aria-label":u.description,class:"max-h-[auto]"},{default:a(()=>[c(s(be),{class:"auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",value:u.description},null,8,["value"])]),_:2},1032,["aria-label"])]),_:2},1024)):V("",!0),u?.type==="http"?(n(),y(C,{key:2},[u.scheme==="bearer"?(n(),S(s(g),{key:0},{default:a(()=>[c(z,A({ref_for:!0},t,{containerClass:e.layout==="reference"&&"border-t",modelValue:u.token,placeholder:"Token",type:"password","onUpdate:modelValue":_=>i(u.uid,"token",_)}),{default:a(()=>[...r[1]||(r[1]=[b(" Bearer Token ",-1)])]),_:1},16,["containerClass","modelValue","onUpdate:modelValue"])]),_:2},1024)):u?.scheme==="basic"?(n(),y(C,{key:1},[c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{class:"text-c-2",modelValue:u.username,placeholder:"janedoe",required:"","onUpdate:modelValue":_=>i(u.uid,"username",_)}),{default:a(()=>[...r[2]||(r[2]=[b(" Username ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024),c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{modelValue:u.password,placeholder:"********",type:"password","onUpdate:modelValue":_=>i(u.uid,"password",_)}),{default:a(()=>[...r[3]||(r[3]=[b(" Password ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):V("",!0)],64)):u?.type==="apiKey"?(n(),y(C,{key:3},[c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{containerClass:e.layout==="reference"&&"border-t",modelValue:u.name,placeholder:"api-key","onUpdate:modelValue":_=>i(u.uid,"name",_)}),{default:a(()=>[...r[4]||(r[4]=[b(" Name ",-1)])]),_:1},16,["containerClass","modelValue","onUpdate:modelValue"])]),_:2},1024),c(s(g),null,{default:a(()=>[c(z,A({ref_for:!0},t,{modelValue:u.value,placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password","onUpdate:modelValue":_=>i(u.uid,"value",_)}),{default:a(()=>[...r[5]||(r[5]=[b(" Value ",-1)])]),_:1},16,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):u?.type==="oauth2"?(n(),y(C,{key:4},[c(s(g),null,{default:a(()=>[Object.keys(u.flows).length>1?(n(),y("div",Ke,[w("div",He,[(n(!0),y(C,null,D(u?.flows,(_,O,j)=>(n(),y("button",{key:O,class:R(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium",{"!text-c-1 !rounded-none border-b-[1px] !border-current":e.layout!=="reference"&&(o.value===O||j===0&&!o.value),"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100":e.layout==="reference"&&(o.value===O||j===0&&!o.value)}]),type:"button",onClick:K=>o.value=O},[w("span",Je,T(O),1)],10,Qe))),128))])])):V("",!0)]),_:2},1024),(n(!0),y(C,null,D(u?.flows,(_,O,j)=>(n(),y(C,{key:O},[o.value===O||j===0&&!o.value?(n(),S(Ne,A({key:0,ref_for:!0},t,{collection:e.collection,flow:_,persistAuth:e.persistAuth,scheme:u,server:e.server,workspace:e.workspace,onAuthorized:r[0]||(r[0]=K=>f("authorized"))}),{"oauth-actions":a(()=>[M(e.$slots,"oauth-actions")]),_:3},16,["collection","flow","persistAuth","scheme","server","workspace"])):V("",!0)],64))),128))],64)):u?.type==="openIdConnect"?(n(),y("div",{key:5,class:R(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base",{"rounded-b-lg":e.layout==="reference"}])}," Coming soon ",2)):V("",!0)],64))),128))}}),We=["onClick"],Ge={class:"relative z-10 font-medium whitespace-nowrap"},Xe={key:0,class:"absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"},Ze=q({__name:"RequestAuthDataTable",props:{collection:{},environment:{},envVariables:{},layout:{default:"client"},persistAuth:{type:Boolean,default:!1},selectedSchemeOptions:{default:()=>[]},server:{},workspace:{}},emits:["authorized","activeSchemes"],setup(l,{emit:U}){const f=U,{securitySchemes:h}=P(),x=Z(),k=E(null),o=E(0),p=I(()=>{if(!l.selectedSchemeOptions||l.selectedSchemeOptions.length===0)return[];const t=l.selectedSchemeOptions[o.value];if(!t)return[];const e=t.id.split(",").filter(Boolean);return e.length>1?e:[t.id]});G(p,t=>{f("activeSchemes",t.map(e=>h[e]).filter(J))},{immediate:!0});const i=I(()=>p.value.length>0);return G(()=>l.selectedSchemeOptions,t=>{(!t||!t[o.value])&&(o.value=Math.max(0,o.value-1))}),(t,e)=>(n(),y("form",{onSubmit:e[2]||(e[2]=Q(()=>{},["prevent"]))},[t.selectedSchemeOptions.length>1?(n(),y("div",{key:0,class:R(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3",t.layout==="client"&&"border-x-0"])},[(n(!0),y(C,null,D(t.selectedSchemeOptions,(r,u)=>(n(),y("div",{key:r.id,class:R(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer",[o.value===u?"text-c-1":"text-c-3"]])},[w("button",{class:"floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",type:"button",onClick:_=>o.value=u},[w("span",Ge,T(r.label),1)],8,We),o.value===u?(n(),y("div",Xe)):V("",!0)],2))),128))],2)):V("",!0),i.value?(n(),S(s(we),{key:1,class:R(["flex-1",t.layout==="reference"&&"bg-b-1 rounded-b-lg border border-t-0"]),columns:[""],presentational:""},{default:a(()=>[c(Ye,{collection:t.collection,envVariables:t.envVariables,environment:t.environment,layout:t.layout,persistAuth:t.persistAuth,securitySchemeUids:p.value,server:t.server,workspace:t.workspace,onAuthorized:e[0]||(e[0]=r=>f("authorized"))},{"oauth-actions":a(()=>[M(t.$slots,"oauth-actions",{},void 0,!0)]),_:3},8,["collection","envVariables","environment","layout","persistAuth","securitySchemeUids","server","workspace"])]),_:3},8,["class"])):(n(),y("div",{key:2,class:R(["text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",t.layout==="reference"&&"min-h-[calc(4rem+0.5px)] rounded-b-lg border"])}," No authentication selected ",2)),c(te,{scheme:k.value,state:s(x),onClose:e[1]||(e[1]=r=>s(x).hide())},null,8,["scheme","state"])],32))}}),et=ee(Ze,[["__scopeId","data-v-0bb98074"]]),tt=["id"],lt={class:"flex flex-1"},at={class:"min-w-0 flex-1 truncate"},ot=q({__name:"RequestAuth",props:{collection:{},isReadOnly:{type:Boolean,default:!1},environment:{},envVariables:{},layout:{},operation:{},persistAuth:{type:Boolean,default:!1},selectedSecuritySchemeUids:{},server:{},title:{},workspace:{}},emits:["authorized","activeSchemes"],setup(l,{emit:U}){const f=U,{securitySchemes:h,securitySchemeMutators:x,requestMutators:k,collectionMutators:o}=P(),p=X(),i=E(null),t=Z(),e=E(null),r=E(!1),u=I(()=>{const m=xe(l.operation,l.collection);return{filteredRequirements:m.filter(d=>Object.keys(d).length),requirements:m}}),_=I(()=>{const{filteredRequirements:m,requirements:d}=u.value;if(!d.length)return null;const v=!d.some($=>Object.keys($).length>1)&&m.length<d.length;return{icon:v?"Unlock":"Lock",text:v?"Optional":"Required"}}),O=I(()=>l.selectedSecuritySchemeUids.map(m=>{if(Array.isArray(m))return ke(m,h);const d=h[m??""];if(d)return Ve(d)}).filter(J));function j(m){const d=m.find($=>$.payload),v=m.filter($=>!$.payload).map(({id:$})=>{const F=$.split(",");return F.length>1?F:$});if(d?.payload){const $=x.add(d.payload,l.collection?.uid);$&&v.push($.uid)}K(v)}const K=m=>{if(l.collection.useCollectionSecurity){if(o.edit(l.collection.uid,"selectedSecuritySchemeUids",m),!l.persistAuth)return;const d=m.map(v=>Array.isArray(v)?v.map($=>h[$]?.nameKey):h[v]?.nameKey);L().setItem(N.SELECTED_SECURITY_SCHEMES,JSON.stringify(d))}else l.operation?.uid&&k.edit(l.operation.uid,"selectedSecuritySchemeUids",m)};function W({id:m,label:d}){e.value={id:m,label:d},t.show()}const ae=m=>{if(!m)return;const d=l.selectedSecuritySchemeUids.filter(v=>{const $=m.split(",");return $.length>1&&Array.isArray(v)&&$.length===v.length?v.every(F=>!$.includes(F)):v!==m});K(d),i.value?.$el.focus(),t.hide()},oe=I(()=>ge(u.value.filteredRequirements,l.collection?.securitySchemes??[],h,l.isReadOnly)),se=m=>{r.value&&m.stopPropagation(),i.value?.$el.click()};return(m,d)=>(n(),S(Ae,{class:"group/params relative",itemCount:O.value.length,layout:m.layout,"onUpdate:modelValue":d[4]||(d[4]=v=>r.value=v)},{title:a(()=>[w("div",{id:s(p),class:"inline-flex items-center gap-0.5 leading-[20px]"},[w("span",null,T(m.title),1),_.value?(n(),y("span",{key:0,class:R(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]",{"text-c-1":_.value.text==="Required"}]),onClick:se},T(_.value.text),3)):V("",!0)],8,tt)]),actions:a(()=>[w("div",lt,[c(s(Se),{class:"w-72 text-xs",modelValue:O.value,multiple:"",options:oe.value,placement:"bottom-end",teleport:"",onDelete:W,"onUpdate:modelValue":j},{option:a(({option:v,selected:$})=>[c(s($e),{multiselect:"",selected:$},null,8,["selected"]),w("div",at,T(v.label),1),v.isDeletable??!m.isReadOnly?(n(),S(s(Ue),{key:0,class:"-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",icon:s(Ce),label:`Delete ${v.label}`,size:"xs",onClick:Q(F=>W(v),["stop"])},null,8,["icon","label","onClick"])):V("",!0)]),default:a(()=>[c(s(B),{ref_key:"comboboxButtonRef",ref:i,"aria-describedby":s(p),class:"group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",variant:"ghost"},{default:a(()=>[O.value.length===1?(n(),y(C,{key:0},[d[5]||(d[5]=w("span",{class:"sr-only"},"Selected Auth Type:",-1)),b(" "+T(O.value[0]?.label),1)],64)):O.value.length>1?(n(),y(C,{key:1},[d[6]||(d[6]=b(" Multiple ",-1)),d[7]||(d[7]=w("span",{class:"sr-only"},"Auth Types Selected",-1))],64)):(n(),y(C,{key:2},[d[8]||(d[8]=w("span",{class:"sr-only"},"Select",-1)),d[9]||(d[9]=b(" Auth Type ",-1))],64)),c(s(_e),{class:"size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",weight:"bold"})]),_:1},8,["aria-describedby"])]),_:1},8,["modelValue","options"])])]),default:a(()=>[c(et,{collection:m.collection,envVariables:m.envVariables,environment:m.environment,layout:m.layout,persistAuth:m.persistAuth,selectedSchemeOptions:O.value,server:m.server,workspace:m.workspace,onActiveSchemes:d[0]||(d[0]=v=>f("activeSchemes",v)),onAuthorized:d[1]||(d[1]=v=>f("authorized"))},{"oauth-actions":a(()=>[M(m.$slots,"oauth-actions",{},void 0,!0)]),_:3},8,["collection","envVariables","environment","layout","persistAuth","selectedSchemeOptions","server","workspace"]),c(te,{scheme:e.value,state:s(t),onClose:d[2]||(d[2]=v=>s(t).hide()),onDelete:d[3]||(d[3]=v=>ae(e.value?.id))},null,8,["scheme","state"])]),_:3},8,["itemCount","layout"]))}}),nt=ee(ot,[["__scopeId","data-v-3f1067a4"]]);export{nt as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bb as u,u as p}from"./
|
|
1
|
+
import{bb as u,u as p}from"./Bt9SJD2w.js";import{d as f,m,c as o,b as n,F as h,q as b,e as s,t as i,h as l,aj as g,an as k}from"./CfX6M68B.js";const c={"⌘":"Command","^":"Control",ctrl:"Control","⌥":"Option",alt:"Alt","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},A={Meta:"⌘",Shift:"⇧",Alt:"⌥",Control:"^"},C={Meta:"ctrl",Shift:"⇧",Alt:"alt",Control:"ctrl"};function x(e){return e==="default"}function v(e){const t=x(e)?"Meta":e;return u()?A[t]:C[t]}function w(e,t){return[...t.map(r=>v(r)),e]}function y(e){return e in c?c[e]:e}const S={"aria-hidden":"true",class:"contents"},M={class:"sr-only"},D=f({inheritAttrs:!1,__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const{cx:t}=p(),r=m(()=>w(e.hotkey,e.modifier));return(B,E)=>(n(),o("div",g(k(l(t)("border-(--scalar-background-3) inline-flex gap-0.5 overflow-hidden rounded border text-xxs rounded-b p-1 font-medium uppercase leading-none"))),[(n(!0),o(h,null,b(r.value,(a,d)=>(n(),o("div",{key:d},[s("span",S,i(a),1),s("span",M,i(l(y)(a)),1)]))),128))],16))}});export{D as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{N as o}from"./
|
|
1
|
+
import{N as o}from"./Bt9SJD2w.js";import{E as c}from"./OGWprgQz.js";import{i as r}from"./D9kSURBB.js";import{d as n,c as i,b as p,e as a,f as e,h as t}from"./CfX6M68B.js";const s=` .:=+++++=================-
|
|
2
2
|
.--#* :.
|
|
3
3
|
.-:-** -.
|
|
4
4
|
.:-::-+* =:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"c43952fe-8633-4dd5-9431-caeec08106b1","timestamp":1768750485209}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"c43952fe-8633-4dd5-9431-caeec08106b1","timestamp":1768750485209,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as w}from"./
|
|
1
|
+
import{b as w}from"./CjwSiblu.js";import{r as b,T as k,as as y,av as _,N as C,d as z,g as B}from"./Bt9SJD2w.js";import{d as g,r as h,n as E,z as I,c as m,b as s,e as o,j as u,k as c,w as f,f as p,h as l,F as V}from"./CfX6M68B.js";import"./92s3wAHG.js";import"./BGp8YvuN.js";import"./DoMHqyvz.js";import"./DM-FWuh7.js";const N={class:"flex h-full w-full flex-col gap-2 pt-8"},F={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},j={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},D={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},M={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},P=g({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(x,{emit:n}){const d=n,t=h("preview"),r=h(null);E(t,a=>{a==="edit"&&I(()=>{r.value?.focus()})});const v=()=>{requestAnimationFrame(()=>{t.value="preview"})};return(a,e)=>(s(),m("div",N,[o("div",F,[e[5]||(e[5]=o("h3",{class:"font-bold"},"Description",-1)),t.value==="preview"?(s(),u(l(k),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:e[0]||(e[0]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[4]||(e[4]=o("span",null,"Edit",-1))]),_:1})):c("",!0)]),o("div",j,[o("div",D,[t.value==="preview"?(s(),m(V,{key:0},[a.modelValue&&a.modelValue.trim().length?(s(),m(V,{key:0},[a.modelValue?(s(),u(l(y),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:a.modelValue,withImages:"",onDblclick:e[1]||(e[1]=i=>t.value="edit")},null,8,["value"])):c("",!0),e[6]||(e[6]=o("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(s(),m("div",M,[p(l(k),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:e[2]||(e[2]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[7]||(e[7]=o("span",null,"Write a description",-1))]),_:1})]))],64)):c("",!0),t.value==="edit"?(s(),u(_,{key:1,ref_key:"codeInputRef",ref:r,class:"h-full flex-1 border px-0.5 py-0",envVariables:a.envVariables,environment:a.environment,modelValue:a.modelValue,workspace:a.workspace,onBlur:v,"onUpdate:modelValue":e[3]||(e[3]=i=>d("update:modelValue",i))},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)])])]))}}),T=C(P,[["__scopeId","data-v-5997a667"]]),S=g({__name:"CollectionOverview",setup(x){const{activeCollection:n,activeEnvironment:d,activeEnvVariables:t,activeWorkspace:r}=z(),{collectionMutators:v}=B(),a=e=>{n.value&&v.edit(n.value.uid,"info.description",e)};return(e,i)=>(s(),u(w,null,{default:f(()=>[l(d)&&l(r)?(s(),u(T,{key:0,envVariables:l(t),environment:l(d),modelValue:l(n)?.info?.description??"",workspace:l(r),"onUpdate:modelValue":a},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)]),_:1}))}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./
|
|
1
|
+
import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./CfX6M68B.js";const b={class:"lang-switcher"},k=["title","onClick"],r="autocode-lang",w=d({__name:"LangSwitcher",setup(C){const{locale:a,locales:_,setLocale:u}=p(),i=c(()=>_.value),m=c(()=>a.value),o=async e=>{await u(e),localStorage.setItem(r,e),document.documentElement.lang=e};return g(()=>{const e=localStorage.getItem(r);e&&e!==a.value&&o(e),document.documentElement.lang=a.value}),(e,E)=>(s(),n("div",b,[(s(!0),n(v,null,h(l(i),t=>(s(),n("button",{key:t.code,class:L(["lang-btn",{active:l(m)===t.code}]),title:t.name,onClick:x=>o(t.code)},f(t.code.toUpperCase()),11,k))),128))]))}}),y=Object.assign(S(w,[["__scopeId","data-v-2d84a2aa"]]),{__name:"LangSwitcher"});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r}from"./
|
|
1
|
+
import{u as r}from"./Bt9SJD2w.js";import{d as a,c as t,b as s,al as n,aj as l,an as d,h as i}from"./CfX6M68B.js";const p=a({__name:"ViewLayout",setup(m){const{cx:e}=r();return(o,f)=>(s(),t("div",l(d(i(e)("flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"))),[n(o.$slots,"default")],16))}});export{p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as S,g as U,aH as N,ar as z,M as B,as as E,aC as F,T as w,r as I,L as P}from"./
|
|
1
|
+
import{d as S,g as U,aH as N,ar as z,M as B,as as E,aC as F,T as w,r as I,L as P}from"./Bt9SJD2w.js";import{w as T}from"./BH_01oUJ.js";import{q as V}from"./DmrBSt6T.js";import{d as A,m as g,n as $,c as n,b as i,k as y,F as _,f as o,j as k,s as D,r as L,e as f,l as M,q as R,h as r,t as q,w as h}from"./CfX6M68B.js";import"./92s3wAHG.js";import"./BGp8YvuN.js";import"./DoMHqyvz.js";import"./DM-FWuh7.js";import"./CjwSiblu.js";const O=A({__name:"CollectionServerForm",props:{collectionId:{default:""},serverUid:{default:""}},setup(C){const t=C,{activeWorkspaceCollections:d}=S(),{servers:p,serverMutators:v}=U(),c=[{label:"URL",key:"url",placeholder:"https://void.scalar.com",type:"text"},{label:"Description",key:"description",placeholder:"Production",type:"text"}],e=g(()=>{const l=d.value.find(a=>a.uid===t.collectionId);return p[l&&typeof t.serverUid=="string"&&t.serverUid==="default"?l.servers[0]??"":l?.servers.find(a=>a===t.serverUid)??""]}),m=g(()=>e.value?.url?e.value.url.match(N.PATH)?.map(l=>l.slice(1,-1))??[]:[]);$(m,l=>{if(!e.value)return;const a=e.value.variables?{...e.value.variables}:{};Object.keys(a).forEach(s=>{l.includes(s)||delete a[s]}),l.forEach(s=>{a[s]||(a[s]={default:""})}),v.edit(e.value.uid,"variables",a)},{immediate:!0});const b=(l,a)=>{!d.value||!e.value||v.edit(e.value.uid,l,a)},x=(l,a)=>{if(!e.value)return;const s=e.value.variables||{};s[l]={...s[l],default:a},v.edit(e.value.uid,"variables",s)};return(l,a)=>(i(),n("div",{class:D(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm",e.value?.variables&&"bg-b-1"])},[e.value?(i(),n(_,{key:0},[o(V,{data:e.value,onUpdate:b,options:c},null,8,["data"]),e.value.variables?(i(),k(z,{key:0,variables:e.value.variables,"onUpdate:variable":x},null,8,["variables"])):y("",!0)],64)):y("",!0)],2))}}),W={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},H={class:"flex flex-col gap-4"},Y={class:"rounded-lg border"},G={class:"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm"},X={key:1,class:"self-center"},J={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},oe=A({__name:"CollectionServers",setup(C){const{activeCollection:t}=S(),{servers:d,events:p,serverMutators:v}=U(),c=B(),e=L(null),m=g(()=>!d||!t.value?.servers?[]:Object.values(d).filter(a=>t.value?.servers.includes(a.uid))),b=()=>p.commandPalette.emit({commandName:"Add Server"}),x=()=>{!t.value?.uid||!e.value||(v.delete(e.value,t.value.uid),c.hide())},l=a=>{e.value=a,c.show()};return(a,s)=>(i(),n("div",W,[f("div",H,[s[2]||(s[2]=M('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>',1)),(i(!0),n(_,null,R(m.value,(u,j)=>(i(),n("div",{key:u.uid},[f("div",Y,[f("div",G,[u.description?(i(),k(r(E),{key:0,class:"self-center",value:u.description},null,8,["value"])):(i(),n("span",X,"Server "+q(j+1),1)),o(r(w),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:K=>l(u.uid)},{default:h(()=>[o(r(F),{class:"size-3.5"})]),_:1},8,["onClick"])]),r(t)?(i(),k(O,{key:0,collectionId:r(t).uid,serverUid:u.uid},null,8,["collectionId","serverUid"])):y("",!0)])]))),128)),f("div",J,[o(r(w),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:b},{default:h(()=>[o(r(I),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),s[1]||(s[1]=f("span",null,"Add Server",-1))]),_:1})])]),o(r(P),{size:"xxs",state:r(c),title:`Delete ${e.value?r(d)[e.value]?.url:"Server"}`},{default:h(()=>[o(T,{variableName:"Server",warningMessage:"Are you sure you want to delete this server? This action cannot be undone.",onClose:s[0]||(s[0]=u=>r(c).hide()),onDelete:x})]),_:1},8,["state","title"])]))}});export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as k,g as y,M as C,bs as N,r as m,T as U,L as V,t as p,N as M}from"./
|
|
1
|
+
import{d as k,g as y,M as C,bs as N,r as m,T as U,L as V,t as p,N as M}from"./Bt9SJD2w.js";import{d as T,aF as _,c as i,b as r,e,f as o,h as a,F as d,g as f,t as $,w as h}from"./CfX6M68B.js";import{w as D}from"./BH_01oUJ.js";import"./92s3wAHG.js";import"./BGp8YvuN.js";import"./DoMHqyvz.js";import"./DM-FWuh7.js";const B={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},L={class:"flex flex-col gap-2"},W={class:"bg-b-2 rounded-lg border text-sm"},A={class:"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3"},F={class:"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap"},I={class:"flex items-center"},O=["href"],E={class:"flex flex-col gap-4"},P={class:"flex items-center justify-between rounded-lg border p-3 text-sm"},R=T({__name:"CollectionSettings",setup(S){const{activeCollection:t,activeWorkspace:n,activeWorkspaceCollections:v}=k(),{collectionMutators:u}=y(),{replace:x}=_(),s=C();function g(){t.value&&t.value?.documentUrl&&u.edit(t.value.uid,"watchMode",!t.value?.watchMode)}function w(){if(!t.value||!n.value)return;u.delete(t.value,n.value);const c=v.value[0];c&&x({name:"collection",params:{[p.Workspace]:n.value.uid,[p.Collection]:c.uid}}),s.hide()}return(c,l)=>(r(),i(d,null,[e("div",B,[e("div",L,[l[5]||(l[5]=e("div",{class:"flex h-8 items-center"},[e("h3",{class:"font-bold"},"Features")],-1)),e("div",W,[e("div",A,[l[2]||(l[2]=e("div",null,[e("h4",null,"Watch Mode"),e("p",{class:"text-c-2 mt-1"}," When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")],-1)),o(a(N),{class:"w-4",disabled:!a(t)?.documentUrl,modelValue:a(t)?.watchMode??!1,"onUpdate:modelValue":g},null,8,["disabled","modelValue"])]),e("div",F,[e("div",I,[a(t)?.documentUrl?(r(),i(d,{key:0},[l[3]||(l[3]=e("span",{class:"bg-b-2 sticky left-0 pr-2 pl-3"},"Source",-1)),e("a",{class:"text-c-2 group rounded pr-3 no-underline hover:underline",href:a(t).documentUrl,target:"_blank"},[f($(a(t).documentUrl)+" ",1),o(a(m),{class:"ml-1 hidden w-2.5 group-hover:inline",icon:"ExternalLink"})],8,O)],64)):(r(),i(d,{key:1},[o(a(m),{class:"text-c-2 mr-2 ml-3 w-4",icon:"NotAllowed",size:"sm"}),l[4]||(l[4]=e("span",{class:"text-c-2 pr-3"}," No URL configured. Try importing an OpenAPI document from an URL. ",-1))],64))])])])]),e("div",E,[l[8]||(l[8]=e("h3",{class:"font-bold"},"Danger Zone",-1)),e("div",P,[l[7]||(l[7]=e("div",null,[e("h4",null,"Delete Collection"),e("p",{class:"text-c-2 mt-1"}," Be careful, my friend. Once deleted, there is no way to recover the collection. ")],-1)),o(a(U),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",variant:"danger",onClick:l[0]||(l[0]=b=>a(s).show())},{default:h(()=>[...l[6]||(l[6]=[f(" Delete Collection ",-1)])]),_:1})])])]),o(a(V),{size:"xxs",state:a(s),title:`Delete ${a(t)?.info?.title}`},{default:h(()=>[o(D,{variableName:a(t)?.info?.title??"",warningMessage:"This action cannot be undone.",onClose:l[1]||(l[1]=b=>a(s).hide()),onDelete:w},null,8,["variableName"])]),_:1},8,["state","title"])],64))}}),K=M(R,[["__scopeId","data-v-f353959a"]]);export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"openapi":"3.1.0","info":{"title":"AutoCode API","version":"0.38.2","description":"REST API for AutoCode Issue Tracking Dashboard"},"servers":[{"url":"http://localhost","description":"Local Development Server","variables":{}}],"paths":{"":{"get":{"tags":["App Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog/autocreate":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog/autocreate/apply":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}},"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/changelog":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/changelog/summary":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/columns/{slug}/actions":{"get":{"tags":["API Routes"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/columns/{slug}/prompt":{"get":{"tags":["API Routes"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/columns":{"get":{"tags":["Columns"],"parameters":[],"responses":{"200":{"description":"List of columns","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"segment":{"type":"string","enum":["definition","action","finish"],"description":"Pipeline segment"},"isFirst":{"type":"boolean","description":"Is first column"},"isLast":{"type":"boolean","description":"Is last column"},"isActionable":{"type":"boolean","description":"Can execute actions"}}}]}}}}}},"summary":"List active columns","description":"Get all columns from the currently active pipeline with their metadata."}},"/api/health":{"get":{"tags":["Monitoring"],"parameters":[],"responses":{"200":{"description":"Health status","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean","description":"Overall health status"},"checks":{"type":"object","properties":{"database":{"type":"boolean","description":"SQLite file exists"},"databaseConnection":{"type":"boolean","description":"Can query database"},"attachments":{"type":"boolean","description":"Attachments dir exists"}}},"timestamp":{"type":"string","format":"date-time"}}}}}}},"summary":"Health check","description":"Check the health status of the application and its dependencies."}},"/api/issues/{id}":{"get":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)","example":"AC-000001"}],"responses":{"200":{"description":"Issue details","content":{"application/json":{}}},"400":{"description":"Bad request - ID required","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Get an issue by key","description":"Retrieve a single issue by its key (e.g., AC-000001)."},"patch":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue updated successfully","content":{"application/json":{}}},"400":{"description":"Bad request - ID required","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Update an issue","description":"Update one or more fields of an existing issue.","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/issues/{id}/{column}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"column","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/ancestors":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/archive":{"delete":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Issue archived","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Archive an issue","description":"Move an issue to the archive (last column). This is a soft delete."}},"/api/issues/{id}/attachments":{"get":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"List of attachments","content":{"application/json":{"schema":{"type":"array"}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"List issue attachments","description":"Get all file attachments for a specific issue."},"post":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Attachment uploaded","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Upload attachment","description":"Upload a file attachment to an issue.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"File to upload"}}}}}}}},"/api/issues/{id}/attachments/{attachmentId}":{"delete":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"integer"},"description":"Attachment ID"}],"responses":{"200":{"description":"Attachment deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Attachment not found","content":{"application/json":{}}}},"summary":"Delete attachment","description":"Delete a file attachment from an issue."},"get":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"integer"},"description":"Attachment ID"}],"responses":{"200":{"description":"File content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Attachment not found","content":{"application/json":{}}}},"summary":"Download attachment","description":"Download a specific file attachment."}},"/api/issues/{id}/children":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/comments":{"get":{"tags":["Comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"List of comments","content":{"application/json":{"schema":{"type":"array"}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"List issue comments","description":"Get all comments for a specific issue."},"post":{"tags":["Comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Comment created","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Add a comment","description":"Add a new comment to an issue.","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/issues/{id}/full-history":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/full-terminal":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/history":{"get":{"tags":["History"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Issue history","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"artifactsAvailable":{"type":"object","properties":{"prompt":{"type":"boolean"},"terminal":{"type":"boolean"}}}}}]}}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"Get issue history","description":"Get the movement and edit history of an issue with artifact availability info."}},"/api/issues/{id}/history/{sessionId}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/history/{sessionId}/prompt":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/move":{"post":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue moved successfully","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"actionExecuted":{"type":"boolean","description":"Whether column action was run"},"processing":{"type":"boolean","description":"Whether action is still processing"}}}]}}}},"400":{"description":"Bad request or move failed","content":{"application/json":{}}},"404":{"description":"Issue or column not found","content":{"application/json":{}}}},"summary":"Move issue to a column","description":"Move an issue to a specific column. If the column has an action, it will be executed (async by default).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"column":{"type":"string","description":"Target column slug","example":"in-progress"},"lang":{"type":"string","enum":["en","fr"],"default":"fr","description":"Language"},"force":{"type":"boolean","default":false,"description":"Force move even if blocked"},"async":{"type":"boolean","default":true,"description":"Run action asynchronously"}},"required":["column"]}}}}}},"/api/issues/{id}/next":{"post":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue moved to next column","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"actionExecuted":{"type":"boolean","description":"Whether column action was run"}}}]}}}},"400":{"description":"Bad request or already at last column","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Move issue to next column","description":"Advance an issue to the next column in the pipeline. If the column has an action, it will be executed.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lang":{"type":"string","enum":["en","fr"],"default":"fr","description":"Language for action execution"},"force":{"type":"boolean","default":false,"description":"Force move even if blocked"}}}}}}}},"/api/issues/actionable":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues/autocomplete":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues/graph":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues":{"get":{"tags":["Issues"],"parameters":[{"name":"column","in":"query","schema":{"type":"string"},"description":"Filter by column slug (e.g., backlog, in-progress)"},{"name":"search","in":"query","schema":{"type":"string"},"description":"Search in title and description"},{"name":"limit","in":"query","schema":{"type":"integer"},"description":"Maximum number of results to return"}],"responses":{"200":{"description":"List of issues","content":{"application/json":{"schema":{"type":"array"}}}}},"summary":"List all issues","description":"Retrieve a list of issues with optional filtering by column, search term, or limit."},"post":{"tags":["Issues"],"parameters":[],"responses":{"200":{"description":"Issue created successfully","content":{"application/json":{}}},"400":{"description":"Bad request - title is required","content":{"application/json":{}}},"500":{"description":"Server error","content":{"application/json":{}}}},"summary":"Create a new issue","description":"Create a new issue in the backlog. The issue key is auto-generated (AC-XXXXXX format).","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/pipelines/{name}":{"delete":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/activate":{"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions":{"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"post":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}":{"delete":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}/activate":{"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}/finalize":{"post":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines":{"get":{"tags":["Pipelines"],"parameters":[],"responses":{"200":{"description":"List of pipelines","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"draft":{"type":"boolean","description":"Is draft version"},"createdAt":{"type":"string","format":"date-time"},"createdFromVersion":{"type":"string","nullable":true,"description":"Source version"}}}]}}}}}},"summary":"List all pipelines","description":"Get all pipeline configurations with their columns organized by segment (definition, action, finish)."},"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/purge":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/stats":{"get":{"tags":["Monitoring"],"parameters":[],"responses":{"200":{"description":"Usage statistics","content":{"application/json":{}}}},"summary":"Get usage statistics","description":"Get Claude API usage statistics including token counts, costs, and call history."}},"/api/status":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/workflow/health":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/ws/status":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/_ws":{"get":{"tags":["Internal"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/.well-known/appspecific/{path}":{"get":{"tags":["App Routes"],"parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/__nuxt_island/{*param1}":{"get":{"tags":["Internal"],"parameters":[{"name":"*param1","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/_i18n/{hash}/{locale}/messages.json":{"get":{"tags":["Internal"],"parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/_openapi.json":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}}}}
|
|
1
|
+
{"openapi":"3.1.0","info":{"title":"AutoCode API","version":"0.38.3","description":"REST API for AutoCode Issue Tracking Dashboard"},"servers":[{"url":"http://localhost","description":"Local Development Server","variables":{}}],"paths":{"":{"get":{"tags":["App Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog/autocreate":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog/autocreate/apply":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/catalog":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}},"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/changelog":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/changelog/summary":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/columns/{slug}/actions":{"get":{"tags":["API Routes"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/columns/{slug}/prompt":{"get":{"tags":["API Routes"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/columns":{"get":{"tags":["Columns"],"parameters":[],"responses":{"200":{"description":"List of columns","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"segment":{"type":"string","enum":["definition","action","finish"],"description":"Pipeline segment"},"isFirst":{"type":"boolean","description":"Is first column"},"isLast":{"type":"boolean","description":"Is last column"},"isActionable":{"type":"boolean","description":"Can execute actions"}}}]}}}}}},"summary":"List active columns","description":"Get all columns from the currently active pipeline with their metadata."}},"/api/health":{"get":{"tags":["Monitoring"],"parameters":[],"responses":{"200":{"description":"Health status","content":{"application/json":{"schema":{"type":"object","properties":{"healthy":{"type":"boolean","description":"Overall health status"},"checks":{"type":"object","properties":{"database":{"type":"boolean","description":"SQLite file exists"},"databaseConnection":{"type":"boolean","description":"Can query database"},"attachments":{"type":"boolean","description":"Attachments dir exists"}}},"timestamp":{"type":"string","format":"date-time"}}}}}}},"summary":"Health check","description":"Check the health status of the application and its dependencies."}},"/api/issues/{id}":{"get":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)","example":"AC-000001"}],"responses":{"200":{"description":"Issue details","content":{"application/json":{}}},"400":{"description":"Bad request - ID required","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Get an issue by key","description":"Retrieve a single issue by its key (e.g., AC-000001)."},"patch":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue updated successfully","content":{"application/json":{}}},"400":{"description":"Bad request - ID required","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Update an issue","description":"Update one or more fields of an existing issue.","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/issues/{id}/{column}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"column","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/ancestors":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/archive":{"delete":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Issue archived","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Archive an issue","description":"Move an issue to the archive (last column). This is a soft delete."}},"/api/issues/{id}/attachments":{"get":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"List of attachments","content":{"application/json":{"schema":{"type":"array"}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"List issue attachments","description":"Get all file attachments for a specific issue."},"post":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Attachment uploaded","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Upload attachment","description":"Upload a file attachment to an issue.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"File to upload"}}}}}}}},"/api/issues/{id}/attachments/{attachmentId}":{"delete":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"integer"},"description":"Attachment ID"}],"responses":{"200":{"description":"Attachment deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Attachment not found","content":{"application/json":{}}}},"summary":"Delete attachment","description":"Delete a file attachment from an issue."},"get":{"tags":["Attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"integer"},"description":"Attachment ID"}],"responses":{"200":{"description":"File content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Attachment not found","content":{"application/json":{}}}},"summary":"Download attachment","description":"Download a specific file attachment."}},"/api/issues/{id}/children":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/comments":{"get":{"tags":["Comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"List of comments","content":{"application/json":{"schema":{"type":"array"}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"List issue comments","description":"Get all comments for a specific issue."},"post":{"tags":["Comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Comment created","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Add a comment","description":"Add a new comment to an issue.","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/issues/{id}/full-history":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/full-terminal":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/history":{"get":{"tags":["History"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key"}],"responses":{"200":{"description":"Issue history","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"artifactsAvailable":{"type":"object","properties":{"prompt":{"type":"boolean"},"terminal":{"type":"boolean"}}}}}]}}}}},"400":{"description":"Bad request","content":{"application/json":{}}}},"summary":"Get issue history","description":"Get the movement and edit history of an issue with artifact availability info."}},"/api/issues/{id}/history/{sessionId}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/history/{sessionId}/prompt":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/log":{"get":{"tags":["API Routes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/issues/{id}/move":{"post":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue moved successfully","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"actionExecuted":{"type":"boolean","description":"Whether column action was run"},"processing":{"type":"boolean","description":"Whether action is still processing"}}}]}}}},"400":{"description":"Bad request or move failed","content":{"application/json":{}}},"404":{"description":"Issue or column not found","content":{"application/json":{}}}},"summary":"Move issue to a column","description":"Move an issue to a specific column. If the column has an action, it will be executed (async by default).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"column":{"type":"string","description":"Target column slug","example":"in-progress"},"lang":{"type":"string","enum":["en","fr"],"default":"fr","description":"Language"},"force":{"type":"boolean","default":false,"description":"Force move even if blocked"},"async":{"type":"boolean","default":true,"description":"Run action asynchronously"}},"required":["column"]}}}}}},"/api/issues/{id}/next":{"post":{"tags":["Issues"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Issue key (e.g., AC-000001)"}],"responses":{"200":{"description":"Issue moved to next column","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"actionExecuted":{"type":"boolean","description":"Whether column action was run"}}}]}}}},"400":{"description":"Bad request or already at last column","content":{"application/json":{}}},"404":{"description":"Issue not found","content":{"application/json":{}}}},"summary":"Move issue to next column","description":"Advance an issue to the next column in the pipeline. If the column has an action, it will be executed.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lang":{"type":"string","enum":["en","fr"],"default":"fr","description":"Language for action execution"},"force":{"type":"boolean","default":false,"description":"Force move even if blocked"}}}}}}}},"/api/issues/actionable":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues/autocomplete":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues/graph":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/issues":{"get":{"tags":["Issues"],"parameters":[{"name":"column","in":"query","schema":{"type":"string"},"description":"Filter by column slug (e.g., backlog, in-progress)"},{"name":"search","in":"query","schema":{"type":"string"},"description":"Search in title and description"},{"name":"limit","in":"query","schema":{"type":"integer"},"description":"Maximum number of results to return"}],"responses":{"200":{"description":"List of issues","content":{"application/json":{"schema":{"type":"array"}}}}},"summary":"List all issues","description":"Retrieve a list of issues with optional filtering by column, search term, or limit."},"post":{"tags":["Issues"],"parameters":[],"responses":{"200":{"description":"Issue created successfully","content":{"application/json":{}}},"400":{"description":"Bad request - title is required","content":{"application/json":{}}},"500":{"description":"Server error","content":{"application/json":{}}}},"summary":"Create a new issue","description":"Create a new issue in the backlog. The issue key is auto-generated (AC-XXXXXX format).","requestBody":{"required":true,"content":{"application/json":{}}}}},"/api/pipelines/{name}":{"delete":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/activate":{"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions":{"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"post":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}":{"delete":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"get":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}/activate":{"put":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines/{name}/versions/{version}/finalize":{"post":{"tags":["API Routes"],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/pipelines":{"get":{"tags":["Pipelines"],"parameters":[],"responses":{"200":{"description":"List of pipelines","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"draft":{"type":"boolean","description":"Is draft version"},"createdAt":{"type":"string","format":"date-time"},"createdFromVersion":{"type":"string","nullable":true,"description":"Source version"}}}]}}}}}},"summary":"List all pipelines","description":"Get all pipeline configurations with their columns organized by segment (definition, action, finish)."},"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/purge":{"post":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/stats":{"get":{"tags":["Monitoring"],"parameters":[],"responses":{"200":{"description":"Usage statistics","content":{"application/json":{}}}},"summary":"Get usage statistics","description":"Get Claude API usage statistics including token counts, costs, and call history."}},"/api/status":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/workflow/health":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/api/ws/status":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/_ws":{"get":{"tags":["Internal"],"parameters":[],"responses":{"200":{"description":"OK"}}}},"/.well-known/appspecific/{path}":{"get":{"tags":["App Routes"],"parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/__nuxt_island/{*param1}":{"get":{"tags":["Internal"],"parameters":[{"name":"*param1","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/_i18n/{hash}/{locale}/messages.json":{"get":{"tags":["Internal"],"parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/_openapi.json":{"get":{"tags":["API Routes"],"parameters":[],"responses":{"200":{"description":"OK"}}}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CfX6M68B.js"><script type="module" src="/_nuxt/CfX6M68B.js" crossorigin></script><meta name="description" content="AutoCode Issue Tracking Dashboard"><link rel="icon" type="image/x-icon" href="/favicon.ico"><script id="unhead:payload" type="application/json">{"title":"AutoCode Dashboard"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{appName:"AutoCode Dashboard",appVersion:"0.38.3",wsUrl:"",wsPort:"",apiBase:"/api",i18n:{baseUrl:"",defaultLocale:"en",rootRedirect:"",redirectStatusCode:302,skipSettingLocaleOnNavigate:false,locales:[{code:"en",name:"English",language:""},{code:"fr",name:"Français",language:""}],detectBrowserLanguage:{alwaysRedirect:false,cookieCrossOrigin:false,cookieDomain:"",cookieKey:"autocode-lang",cookieSecure:false,fallbackLocale:"en",redirectOn:"root",useCookie:true},experimental:{localeDetector:"",typedPages:true,typedOptionsAndMessages:false,alternateLinkCanonicalQueries:true,devCache:false,cacheLifetime:"",stripMessagesPayload:false,preload:false,strictSeo:false,nitroContextDetection:true,httpCacheDuration:10},domainLocales:{en:{domain:""},fr:{domain:""}}}},app:{baseURL:"/",buildId:"c43952fe-8633-4dd5-9431-caeec08106b1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1768750580649,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CfX6M68B.js"><script type="module" src="/_nuxt/CfX6M68B.js" crossorigin></script><meta name="description" content="AutoCode Issue Tracking Dashboard"><link rel="icon" type="image/x-icon" href="/favicon.ico"><script id="unhead:payload" type="application/json">{"title":"AutoCode Dashboard"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{appName:"AutoCode Dashboard",appVersion:"0.38.3",wsUrl:"",wsPort:"",apiBase:"/api",i18n:{baseUrl:"",defaultLocale:"en",rootRedirect:"",redirectStatusCode:302,skipSettingLocaleOnNavigate:false,locales:[{code:"en",name:"English",language:""},{code:"fr",name:"Français",language:""}],detectBrowserLanguage:{alwaysRedirect:false,cookieCrossOrigin:false,cookieDomain:"",cookieKey:"autocode-lang",cookieSecure:false,fallbackLocale:"en",redirectOn:"root",useCookie:true},experimental:{localeDetector:"",typedPages:true,typedOptionsAndMessages:false,alternateLinkCanonicalQueries:true,devCache:false,cacheLifetime:"",stripMessagesPayload:false,preload:false,strictSeo:false,nitroContextDetection:true,httpCacheDuration:10},domainLocales:{en:{domain:""},fr:{domain:""}}}},app:{baseURL:"/",buildId:"c43952fe-8633-4dd5-9431-caeec08106b1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1768750580649,false]</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AutoCode Dashboard</title><link rel="stylesheet" href="/_nuxt/entry.DJwmEJ6p.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CfX6M68B.js"><script type="module" src="/_nuxt/CfX6M68B.js" crossorigin></script><meta name="description" content="AutoCode Issue Tracking Dashboard"><link rel="icon" type="image/x-icon" href="/favicon.ico"><script id="unhead:payload" type="application/json">{"title":"AutoCode Dashboard"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{appName:"AutoCode Dashboard",appVersion:"0.38.3",wsUrl:"",wsPort:"",apiBase:"/api",i18n:{baseUrl:"",defaultLocale:"en",rootRedirect:"",redirectStatusCode:302,skipSettingLocaleOnNavigate:false,locales:[{code:"en",name:"English",language:""},{code:"fr",name:"Français",language:""}],detectBrowserLanguage:{alwaysRedirect:false,cookieCrossOrigin:false,cookieDomain:"",cookieKey:"autocode-lang",cookieSecure:false,fallbackLocale:"en",redirectOn:"root",useCookie:true},experimental:{localeDetector:"",typedPages:true,typedOptionsAndMessages:false,alternateLinkCanonicalQueries:true,devCache:false,cacheLifetime:"",stripMessagesPayload:false,preload:false,strictSeo:false,nitroContextDetection:true,httpCacheDuration:10},domainLocales:{en:{domain:""},fr:{domain:""}}}},app:{baseURL:"/",buildId:"c43952fe-8633-4dd5-9431-caeec08106b1",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1768750580648,false]</script></body></html>
|