@codori/server 0.0.4 → 0.0.5

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.
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/_nuxt/entry.BFUss7SH.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CTkc1dr0.js"><script type="module" src="/_nuxt/CTkc1dr0.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{serverBase:"",serverWsBase:""},app:{baseURL:"/",buildId:"9f29d3f8-cf52-453d-9a00-836b5db2a30e",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1776072809674,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/_nuxt/entry.BFUss7SH.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/OylMiRf9.js"><script type="module" src="/_nuxt/OylMiRf9.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{serverBase:"",serverWsBase:""},app:{baseURL:"/",buildId:"468a0ff2-bd27-45c6-bd89-5ac776d98662",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1776094868507,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"><link rel="stylesheet" href="/_nuxt/entry.BFUss7SH.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/CTkc1dr0.js"><script type="module" src="/_nuxt/CTkc1dr0.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{serverBase:"",serverWsBase:""},app:{baseURL:"/",buildId:"9f29d3f8-cf52-453d-9a00-836b5db2a30e",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1776072809674,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="/_nuxt/entry.BFUss7SH.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/OylMiRf9.js"><script type="module" src="/_nuxt/OylMiRf9.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{serverBase:"",serverWsBase:""},app:{baseURL:"/",buildId:"468a0ff2-bd27-45c6-bd89-5ac776d98662",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1776094868508,false]</script></body></html>
@@ -1 +1 @@
1
- import{M as J,Z as W,$ as Y,Y as X,p as U,q as F,J as z,o as V,c as $,y as G,l as h,k as Z,m as T,C as A,a0 as _,N as I,a1 as H,a2 as K,a3 as Q,S as ee,a4 as te,a5 as R,w as oe,s as ne,A as ie,P as ae}from"./CTkc1dr0.js";function y(e){if(typeof e!="object")return e;var i,o,t=Object.prototype.toString.call(e);if(t==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){o=new e.constructor;for(i in e)e.hasOwnProperty(i)&&o[i]!==e[i]&&(o[i]=y(e[i]))}else{o={};for(i in e)i==="__proto__"?Object.defineProperty(o,i,{value:y(e[i]),configurable:!0,enumerable:!0,writable:!0}):o[i]=y(e[i])}return o}if(t==="[object Array]"){for(i=e.length,o=Array(i);i--;)o[i]=y(e[i]);return o}return t==="[object Set]"?(o=new Set,e.forEach(function(n){o.add(y(n))}),o):t==="[object Map]"?(o=new Map,e.forEach(function(n,s){o.set(y(s),y(n))}),o):t==="[object Date]"?new Date(+e):t==="[object RegExp]"?(o=new RegExp(e.source,e.flags),o.lastIndex=e.lastIndex,o):t==="[object DataView]"?new e.constructor(y(e.buffer)):t==="[object ArrayBuffer]"?e.slice(0):t.slice(-6)==="Array]"?new e.constructor(e):e}const[re,we]=J("DashboardGroup"),se={base:"lg:hidden",variants:{side:{left:"",right:""}}},Ce=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebarToggle",props:{color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"ghost"},side:{type:String,required:!1,default:"left"},ui:{type:Object,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const i=e,o=W(Y(i,"icon","side","class")),{t}=X(),n=U(),s=F("dashboardSidebarToggle",i),{sidebarOpen:a,toggleSidebar:l}=re({sidebarOpen:z(!1),toggleSidebar:()=>{}}),u=T(()=>A({extend:A(se),...n.ui?.dashboardSidebarToggle||{}}));return(c,p)=>(V(),$(Z,G({...h(o),icon:i.icon||(h(a)?h(n).ui.icons.close:h(n).ui.icons.menu),"aria-label":h(a)?h(t)("dashboardSidebarToggle.close"):h(t)("dashboardSidebarToggle.open"),...c.$attrs},{class:u.value({class:[h(s)?.base,i.class],side:i.side}),onClick:h(l)}),null,16,["class","onClick"]))}}),le=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function ue(e,i){if(typeof e!="string")throw new TypeError("argument str must be a string");const o=new le,t=i||{},n=t.decode||ce;let s=0;for(;s<e.length;){const a=e.indexOf("=",s);if(a===-1)break;let l=e.indexOf(";",s);if(l===-1)l=e.length;else if(l<a){s=e.lastIndexOf(";",a-1)+1;continue}const u=e.slice(s,a).trim();if(t?.filter&&!t?.filter(u)){s=l+1;continue}if(o[u]===void 0){let c=e.slice(a+1,l).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),o[u]=de(c,n)}s=l+1}return o}function ce(e){return e.includes("%")?decodeURIComponent(e):e}function de(e,i){try{return i(e)}catch{return e}}const j=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function N(e,i,o){const t=o||{},n=t.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!j.test(e))throw new TypeError("argument name is invalid");const s=n(i);if(s&&!j.test(s))throw new TypeError("argument val is invalid");let a=e+"="+s;if(t.maxAge!==void 0&&t.maxAge!==null){const l=t.maxAge-0;if(Number.isNaN(l)||!Number.isFinite(l))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(l)}if(t.domain){if(!j.test(t.domain))throw new TypeError("option domain is invalid");a+="; Domain="+t.domain}if(t.path){if(!j.test(t.path))throw new TypeError("option path is invalid");a+="; Path="+t.path}if(t.expires){if(!fe(t.expires)||Number.isNaN(t.expires.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+t.expires.toUTCString()}if(t.httpOnly&&(a+="; HttpOnly"),t.secure&&(a+="; Secure"),t.priority)switch(typeof t.priority=="string"?t.priority.toLowerCase():t.priority){case"low":{a+="; Priority=Low";break}case"medium":{a+="; Priority=Medium";break}case"high":{a+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(t.sameSite)switch(typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite){case!0:{a+="; SameSite=Strict";break}case"lax":{a+="; SameSite=Lax";break}case"strict":{a+="; SameSite=Strict";break}case"none":{a+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return t.partitioned&&(a+="; Partitioned"),a}function fe(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function pe(e){if(e!=="undefined")try{const i=JSON.parse(e);return typeof i=="number"&&String(i)!==e?e:i}catch{return e}}const ve={path:"/",watch:!0,decode:e=>pe(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},x=globalThis.cookieStore;function he(e,i){const o={...ve,...i};o.filter??=c=>c===e;const t=B(o)||{};let n;o.maxAge!==void 0?n=o.maxAge*1e3:o.expires&&(n=o.expires.getTime()-Date.now());const s=n!==void 0&&n<=0,a=s||t[e]===void 0||t[e]===null,l=y(s?void 0:t[e]??o.default?.()),u=n&&!s?ge(l,n,o.watch&&o.watch!=="shallow"):z(l);{let c=null;try{!x&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const p=(m=!1)=>{!m&&(o.readonly||Q(u.value,t[e]))||(be(e,u.value,o),t[e]=y(u.value),c?.postMessage({value:o.encode(u.value)}))},S=m=>{const k=m.refresh?B(o)?.[e]:o.decode(m.value);v=!0,u.value=k,t[e]=y(k),ee(()=>{v=!1})};let v=!1;const O=!!H();if(O&&_(()=>{v=!0,p(),c?.close()}),x){const m=k=>{const D=k.changed.find(w=>w.name===e),M=k.deleted.find(w=>w.name===e);D&&S({value:D.value}),M&&S({value:null})};x.addEventListener("change",m),O&&_(()=>x.removeEventListener("change",m))}else c&&(c.onmessage=({data:m})=>S(m));o.watch&&I(u,()=>{v||p(o.refresh)},{deep:o.watch!=="shallow"}),a&&p(a)}return u}function B(e={}){return ue(document.cookie,e)}function me(e,i,o={}){return i==null?N(e,i,{...o,maxAge:-1}):N(e,i,o)}function be(e,i,o={}){document.cookie=me(e,i,o)}const P=2147483647;function ge(e,i,o){let t,n,s=0;const a=o?z(e):{value:e};return H()&&_(()=>{n?.(),clearTimeout(t)}),K((l,u)=>{o&&(n=I(a,u));function c(){const S=i-s,v=S<P?S:P;t=setTimeout(()=>{if(s+=v,s<i)return c();a.value=void 0,u()},v)}function p(){s=0,clearTimeout(t),c()}return{get(){return l(),a.value},set(S){p(),a.value=S,u()}}})}function ze(e,i={},{collapsed:o=z(!1)}={}){const t=z(null),n=T(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...R(i)?i.value:i})),{dir:s}=X(),a={size:n.value.defaultSize,collapsed:h(o)??!1},l=n.value.persistent&&(n.value.resizable||n.value.collapsible)?n.value.storage==="cookie"?he(e,{default:()=>a}):te(e,a):z(a),u=T({get:()=>l.value.collapsed,set:r=>{n.value.collapsible&&(R(o)&&(o.value=r),l.value.collapsed=r)}}),c=z(n.value.defaultSize),p=T({get:()=>l.value.size,set:r=>{l.value.size=r}}),S=T(()=>u.value?n.value.collapsedSize:p.value),v=z(!1),O=(r,d,E)=>{if(!t.value||!n.value.resizable)return;const q=t.value.parentElement?.offsetWidth||1,C=s.value==="rtl";let f;C?f=n.value.side==="left"?d-r.clientX:r.clientX-d:f=n.value.side==="left"?r.clientX-d:d-r.clientX;const b=E+f;let g;if(n.value.unit==="rem"){const L=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);g=b/L}else n.value.unit==="px"?g=b:g=b/q*100;if(n.value.collapsible&&g<n.value.collapsedSize+4){w(!0);return}else u.value&&w(!1);p.value=Math.min(n.value.maxSize,Math.max(n.value.minSize,g))},m=r=>{if(!t.value||!n.value.resizable)return;r.preventDefault(),r.stopPropagation();const d=t.value.getBoundingClientRect().width;if(!d)return;const E=r.clientX,q=d;v.value=!0;const C=b=>{O(b,E,q)},f=()=>{v.value=!1,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",f)},k=(r,d,E)=>{if(!t.value||!n.value.resizable||!r.touches[0])return;const q=t.value.parentElement?.offsetWidth||1,C=s.value==="rtl";let f;C?f=n.value.side==="left"?d-r.touches[0].clientX:r.touches[0].clientX-d:f=n.value.side==="left"?r.touches[0].clientX-d:d-r.touches[0].clientX;const b=E+f;let g;if(n.value.unit==="rem"){const L=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);g=b/L}else n.value.unit==="px"?g=b:g=b/q*100;if(n.value.collapsible&&g<n.value.collapsedSize+4){w(!0);return}else u.value&&w(!1);p.value=Math.min(n.value.maxSize,Math.max(n.value.minSize,g))},D=r=>{if(!t.value||!n.value.resizable||!r.touches[0])return;r.preventDefault(),r.stopPropagation();const d=t.value.getBoundingClientRect().width;if(!d)return;const E=r.touches[0].clientX,q=d;v.value=!0;const C=b=>{k(b,E,q)},f=()=>{v.value=!1,document.removeEventListener("touchmove",C),document.removeEventListener("touchend",f),document.removeEventListener("touchcancel",f)};document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",f),document.addEventListener("touchcancel",f)},M=r=>{!t.value||!n.value.resizable||(r.preventDefault(),r.stopPropagation(),u.value&&w(!1),p.value=n.value.defaultSize)},w=r=>{if(!n.value.collapsible)return;const d=r??!u.value;d&&!u.value?c.value=p.value:!d&&u.value&&(p.value=c.value),u.value=d};return R(o)&&l.value.collapsed&&(o.value=l.value.collapsed),R(o)&&I(o,r=>{n.value.collapsible&&l.value.collapsed!==r&&(l.value.collapsed=r)}),{el:t,size:S,isDragging:v,isCollapsed:u,onMouseDown:m,onTouchStart:D,onDoubleClick:M,collapse:w}}const ye={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},ke={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const i=e,o=U(),t=F("dashboardResizeHandle",i),n=T(()=>A({extend:A(ye),...o.ui?.dashboardResizeHandle||{}}));return(s,a)=>(V(),$(h(ae),{as:e.as,role:"separator",class:ie(n.value({class:[h(t)?.base,i.class]}))},{default:oe(()=>[ne(s.$slots,"default")]),_:3},8,["as","class"]))}};export{Ce as _,ze as a,ke as b,we as p,re as u};
1
+ import{M as J,Z as W,$ as Y,Y as X,p as U,q as F,J as z,o as V,c as $,y as G,l as h,k as Z,m as T,C as A,a0 as _,N as I,a1 as H,a2 as K,a3 as Q,S as ee,a4 as te,a5 as R,w as oe,s as ne,A as ie,P as ae}from"./OylMiRf9.js";function y(e){if(typeof e!="object")return e;var i,o,t=Object.prototype.toString.call(e);if(t==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){o=new e.constructor;for(i in e)e.hasOwnProperty(i)&&o[i]!==e[i]&&(o[i]=y(e[i]))}else{o={};for(i in e)i==="__proto__"?Object.defineProperty(o,i,{value:y(e[i]),configurable:!0,enumerable:!0,writable:!0}):o[i]=y(e[i])}return o}if(t==="[object Array]"){for(i=e.length,o=Array(i);i--;)o[i]=y(e[i]);return o}return t==="[object Set]"?(o=new Set,e.forEach(function(n){o.add(y(n))}),o):t==="[object Map]"?(o=new Map,e.forEach(function(n,s){o.set(y(s),y(n))}),o):t==="[object Date]"?new Date(+e):t==="[object RegExp]"?(o=new RegExp(e.source,e.flags),o.lastIndex=e.lastIndex,o):t==="[object DataView]"?new e.constructor(y(e.buffer)):t==="[object ArrayBuffer]"?e.slice(0):t.slice(-6)==="Array]"?new e.constructor(e):e}const[re,we]=J("DashboardGroup"),se={base:"lg:hidden",variants:{side:{left:"",right:""}}},Ce=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebarToggle",props:{color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"ghost"},side:{type:String,required:!1,default:"left"},ui:{type:Object,required:!1},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const i=e,o=W(Y(i,"icon","side","class")),{t}=X(),n=U(),s=F("dashboardSidebarToggle",i),{sidebarOpen:a,toggleSidebar:l}=re({sidebarOpen:z(!1),toggleSidebar:()=>{}}),u=T(()=>A({extend:A(se),...n.ui?.dashboardSidebarToggle||{}}));return(c,p)=>(V(),$(Z,G({...h(o),icon:i.icon||(h(a)?h(n).ui.icons.close:h(n).ui.icons.menu),"aria-label":h(a)?h(t)("dashboardSidebarToggle.close"):h(t)("dashboardSidebarToggle.open"),...c.$attrs},{class:u.value({class:[h(s)?.base,i.class],side:i.side}),onClick:h(l)}),null,16,["class","onClick"]))}}),le=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function ue(e,i){if(typeof e!="string")throw new TypeError("argument str must be a string");const o=new le,t=i||{},n=t.decode||ce;let s=0;for(;s<e.length;){const a=e.indexOf("=",s);if(a===-1)break;let l=e.indexOf(";",s);if(l===-1)l=e.length;else if(l<a){s=e.lastIndexOf(";",a-1)+1;continue}const u=e.slice(s,a).trim();if(t?.filter&&!t?.filter(u)){s=l+1;continue}if(o[u]===void 0){let c=e.slice(a+1,l).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),o[u]=de(c,n)}s=l+1}return o}function ce(e){return e.includes("%")?decodeURIComponent(e):e}function de(e,i){try{return i(e)}catch{return e}}const j=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function N(e,i,o){const t=o||{},n=t.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!j.test(e))throw new TypeError("argument name is invalid");const s=n(i);if(s&&!j.test(s))throw new TypeError("argument val is invalid");let a=e+"="+s;if(t.maxAge!==void 0&&t.maxAge!==null){const l=t.maxAge-0;if(Number.isNaN(l)||!Number.isFinite(l))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(l)}if(t.domain){if(!j.test(t.domain))throw new TypeError("option domain is invalid");a+="; Domain="+t.domain}if(t.path){if(!j.test(t.path))throw new TypeError("option path is invalid");a+="; Path="+t.path}if(t.expires){if(!fe(t.expires)||Number.isNaN(t.expires.valueOf()))throw new TypeError("option expires is invalid");a+="; Expires="+t.expires.toUTCString()}if(t.httpOnly&&(a+="; HttpOnly"),t.secure&&(a+="; Secure"),t.priority)switch(typeof t.priority=="string"?t.priority.toLowerCase():t.priority){case"low":{a+="; Priority=Low";break}case"medium":{a+="; Priority=Medium";break}case"high":{a+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(t.sameSite)switch(typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite){case!0:{a+="; SameSite=Strict";break}case"lax":{a+="; SameSite=Lax";break}case"strict":{a+="; SameSite=Strict";break}case"none":{a+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return t.partitioned&&(a+="; Partitioned"),a}function fe(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function pe(e){if(e!=="undefined")try{const i=JSON.parse(e);return typeof i=="number"&&String(i)!==e?e:i}catch{return e}}const ve={path:"/",watch:!0,decode:e=>pe(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},x=globalThis.cookieStore;function he(e,i){const o={...ve,...i};o.filter??=c=>c===e;const t=B(o)||{};let n;o.maxAge!==void 0?n=o.maxAge*1e3:o.expires&&(n=o.expires.getTime()-Date.now());const s=n!==void 0&&n<=0,a=s||t[e]===void 0||t[e]===null,l=y(s?void 0:t[e]??o.default?.()),u=n&&!s?ge(l,n,o.watch&&o.watch!=="shallow"):z(l);{let c=null;try{!x&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const p=(m=!1)=>{!m&&(o.readonly||Q(u.value,t[e]))||(be(e,u.value,o),t[e]=y(u.value),c?.postMessage({value:o.encode(u.value)}))},S=m=>{const k=m.refresh?B(o)?.[e]:o.decode(m.value);v=!0,u.value=k,t[e]=y(k),ee(()=>{v=!1})};let v=!1;const O=!!H();if(O&&_(()=>{v=!0,p(),c?.close()}),x){const m=k=>{const D=k.changed.find(w=>w.name===e),M=k.deleted.find(w=>w.name===e);D&&S({value:D.value}),M&&S({value:null})};x.addEventListener("change",m),O&&_(()=>x.removeEventListener("change",m))}else c&&(c.onmessage=({data:m})=>S(m));o.watch&&I(u,()=>{v||p(o.refresh)},{deep:o.watch!=="shallow"}),a&&p(a)}return u}function B(e={}){return ue(document.cookie,e)}function me(e,i,o={}){return i==null?N(e,i,{...o,maxAge:-1}):N(e,i,o)}function be(e,i,o={}){document.cookie=me(e,i,o)}const P=2147483647;function ge(e,i,o){let t,n,s=0;const a=o?z(e):{value:e};return H()&&_(()=>{n?.(),clearTimeout(t)}),K((l,u)=>{o&&(n=I(a,u));function c(){const S=i-s,v=S<P?S:P;t=setTimeout(()=>{if(s+=v,s<i)return c();a.value=void 0,u()},v)}function p(){s=0,clearTimeout(t),c()}return{get(){return l(),a.value},set(S){p(),a.value=S,u()}}})}function ze(e,i={},{collapsed:o=z(!1)}={}){const t=z(null),n=T(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...R(i)?i.value:i})),{dir:s}=X(),a={size:n.value.defaultSize,collapsed:h(o)??!1},l=n.value.persistent&&(n.value.resizable||n.value.collapsible)?n.value.storage==="cookie"?he(e,{default:()=>a}):te(e,a):z(a),u=T({get:()=>l.value.collapsed,set:r=>{n.value.collapsible&&(R(o)&&(o.value=r),l.value.collapsed=r)}}),c=z(n.value.defaultSize),p=T({get:()=>l.value.size,set:r=>{l.value.size=r}}),S=T(()=>u.value?n.value.collapsedSize:p.value),v=z(!1),O=(r,d,E)=>{if(!t.value||!n.value.resizable)return;const q=t.value.parentElement?.offsetWidth||1,C=s.value==="rtl";let f;C?f=n.value.side==="left"?d-r.clientX:r.clientX-d:f=n.value.side==="left"?r.clientX-d:d-r.clientX;const b=E+f;let g;if(n.value.unit==="rem"){const L=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);g=b/L}else n.value.unit==="px"?g=b:g=b/q*100;if(n.value.collapsible&&g<n.value.collapsedSize+4){w(!0);return}else u.value&&w(!1);p.value=Math.min(n.value.maxSize,Math.max(n.value.minSize,g))},m=r=>{if(!t.value||!n.value.resizable)return;r.preventDefault(),r.stopPropagation();const d=t.value.getBoundingClientRect().width;if(!d)return;const E=r.clientX,q=d;v.value=!0;const C=b=>{O(b,E,q)},f=()=>{v.value=!1,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",f)},k=(r,d,E)=>{if(!t.value||!n.value.resizable||!r.touches[0])return;const q=t.value.parentElement?.offsetWidth||1,C=s.value==="rtl";let f;C?f=n.value.side==="left"?d-r.touches[0].clientX:r.touches[0].clientX-d:f=n.value.side==="left"?r.touches[0].clientX-d:d-r.touches[0].clientX;const b=E+f;let g;if(n.value.unit==="rem"){const L=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);g=b/L}else n.value.unit==="px"?g=b:g=b/q*100;if(n.value.collapsible&&g<n.value.collapsedSize+4){w(!0);return}else u.value&&w(!1);p.value=Math.min(n.value.maxSize,Math.max(n.value.minSize,g))},D=r=>{if(!t.value||!n.value.resizable||!r.touches[0])return;r.preventDefault(),r.stopPropagation();const d=t.value.getBoundingClientRect().width;if(!d)return;const E=r.touches[0].clientX,q=d;v.value=!0;const C=b=>{k(b,E,q)},f=()=>{v.value=!1,document.removeEventListener("touchmove",C),document.removeEventListener("touchend",f),document.removeEventListener("touchcancel",f)};document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",f),document.addEventListener("touchcancel",f)},M=r=>{!t.value||!n.value.resizable||(r.preventDefault(),r.stopPropagation(),u.value&&w(!1),p.value=n.value.defaultSize)},w=r=>{if(!n.value.collapsible)return;const d=r??!u.value;d&&!u.value?c.value=p.value:!d&&u.value&&(p.value=c.value),u.value=d};return R(o)&&l.value.collapsed&&(o.value=l.value.collapsed),R(o)&&I(o,r=>{n.value.collapsible&&l.value.collapsed!==r&&(l.value.collapsed=r)}),{el:t,size:S,isDragging:v,isCollapsed:u,onMouseDown:m,onTouchStart:D,onDoubleClick:M,collapse:w}}const ye={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},ke={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){const i=e,o=U(),t=F("dashboardResizeHandle",i),n=T(()=>A({extend:A(ye),...o.ui?.dashboardResizeHandle||{}}));return(s,a)=>(V(),$(h(ae),{as:e.as,role:"separator",class:ie(n.value({class:[h(t)?.base,i.class]}))},{default:oe(()=>[ne(s.$slots,"default")]),_:3},8,["as","class"]))}};export{Ce as _,ze as a,ke as b,we as p,re as u};
@@ -1 +1 @@
1
- import{_ as r,a as o}from"./5cGRqVd7.js";import{_ as i,o as l,c as n,w as a,a as e,b as c}from"./CTkc1dr0.js";import"./CnVIfmli.js";const m={};function x(p,t){const s=r,d=o;return l(),n(d,{id:"landing-panel",class:"min-h-screen min-w-0 flex-1",ui:{body:"flex flex-1 items-center justify-center p-0"}},{header:a(()=>[c(s,{class:"lg:hidden",title:"Codori",toggle:{color:"neutral",variant:"ghost"}})]),body:a(()=>[...t[0]||(t[0]=[e("div",{class:"flex w-full items-center justify-center px-6 py-10"},[e("div",{class:"flex w-full max-w-3xl flex-col items-center gap-8 text-center"},[e("div",{class:"space-y-4"},[e("div",{class:"text-xs font-medium uppercase tracking-[0.28em] text-primary"}," Remote Coding "),e("h1",{class:"text-balance text-4xl font-semibold tracking-tight text-highlighted md:text-5xl"}," Pick a project and start coding. "),e("p",{class:"mx-auto max-w-2xl text-base leading-7 text-muted md:text-lg"}," Codori manages one Codex runtime per Git project and keeps chat threads ready to resume from the dashboard. ")]),e("div",{class:"grid w-full gap-3 md:grid-cols-3"},[e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 1. Browse "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Projects appear in the left sidebar. ")]),e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 2. Connect "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Open a project and Codori starts its runtime only when needed. ")]),e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 3. Continue "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Start a thread or resume a previous session from the same workspace. ")])])])],-1)])]),_:1})}const h=i(m,[["render",x]]);export{h as default};
1
+ import{_ as r,a as o}from"./DcJmCJZR.js";import{_ as i,o as l,c as n,w as a,a as e,b as c}from"./OylMiRf9.js";import"./BsofOenw.js";const m={};function x(p,t){const s=r,d=o;return l(),n(d,{id:"landing-panel",class:"min-h-screen min-w-0 flex-1",ui:{body:"flex flex-1 items-center justify-center p-0"}},{header:a(()=>[c(s,{class:"lg:hidden",title:"Codori",toggle:{color:"neutral",variant:"ghost"}})]),body:a(()=>[...t[0]||(t[0]=[e("div",{class:"flex w-full items-center justify-center px-6 py-10"},[e("div",{class:"flex w-full max-w-3xl flex-col items-center gap-8 text-center"},[e("div",{class:"space-y-4"},[e("div",{class:"text-xs font-medium uppercase tracking-[0.28em] text-primary"}," Remote Coding "),e("h1",{class:"text-balance text-4xl font-semibold tracking-tight text-highlighted md:text-5xl"}," Pick a project and start coding. "),e("p",{class:"mx-auto max-w-2xl text-base leading-7 text-muted md:text-lg"}," Codori manages one Codex runtime per Git project and keeps chat threads ready to resume from the dashboard. ")]),e("div",{class:"grid w-full gap-3 md:grid-cols-3"},[e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 1. Browse "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Projects appear in the left sidebar. ")]),e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 2. Connect "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Open a project and Codori starts its runtime only when needed. ")]),e("div",{class:"rounded-2xl border border-default/70 bg-elevated/30 px-4 py-4"},[e("div",{class:"text-sm font-medium text-highlighted"}," 3. Continue "),e("p",{class:"mt-2 text-sm leading-6 text-muted"}," Start a thread or resume a previous session from the same workspace. ")])])])],-1)])]),_:1})}const h=i(m,[["render",x]]);export{h as default};
@@ -1 +1 @@
1
- import{u as g,_ as k,a as w,n as C}from"./Ce2C-7Tv.js";import{g as b,h as $,i as y,j as N,o as B,d as I,b as e,w as o,a as R,k as S,l as T,m as n}from"./CTkc1dr0.js";import{_ as U,a as D}from"./5cGRqVd7.js";import{u as q,_ as E,a as V}from"./DQ92n70Y.js";import"./CnVIfmli.js";const z={class:"flex h-screen min-h-0 flex-1 min-w-0"},M={class:"flex items-center gap-2"},L=b({__name:"index",setup(O){const c=$(),u=y(),{togglePanel:i}=q(),{loaded:l,refreshProjects:_,getProject:p,pendingProjectId:d}=g(),t=n(()=>C(c.params.projectId)),m=n(()=>p(t.value)),s=n(()=>{if(!t.value)return"Offline";if(d.value===t.value)return"Starting";switch(m.value?.status){case"running":return"Running";case"stopped":return"Stopped";case"error":return"Error";default:return"Checking"}}),f=async()=>{t.value&&await u.push(`/projects/${t.value}`)};return N(()=>{l.value||_()}),(W,A)=>{const h=w,a=k,r=S,v=U,j=E,x=D,P=V;return B(),I("div",z,[e(x,{id:"project-shell",class:"min-h-0 min-w-0 flex-1",ui:{root:"!p-0",body:"!p-0 sm:!p-0 !gap-0 sm:!gap-0"}},{header:o(()=>[e(v,{title:t.value??"Project",icon:"i-lucide-folder-git-2"},{right:o(()=>[R("div",M,[e(a,{text:`RPC ${s.value}`},{default:o(()=>[e(h,{status:s.value,pulse:"",padded:""},null,8,["status"])]),_:1},8,["text"]),e(a,{text:"New thread"},{default:o(()=>[e(r,{icon:"i-lucide-plus",color:"primary",variant:"soft",square:"",onClick:f})]),_:1}),e(a,{text:"Previous threads"},{default:o(()=>[e(r,{icon:"i-lucide-history",color:"neutral",variant:"outline",square:"",onClick:T(i)},null,8,["onClick"])]),_:1})])]),_:1},8,["title"])]),body:o(()=>[e(j,{"project-id":t.value??"",class:"min-h-0 flex-1"},null,8,["project-id"])]),_:1}),e(P,{"project-id":t.value},null,8,["project-id"])])}}});export{L as default};
1
+ import{u as g,_ as k,a as w,n as C}from"./CQVB8E20.js";import{g as b,h as $,i as y,j as N,o as B,d as I,b as e,w as o,a as R,k as S,l as T,m as n}from"./OylMiRf9.js";import{_ as U,a as D}from"./DcJmCJZR.js";import{u as q,_ as E,a as V}from"./CsE-687t.js";import"./BsofOenw.js";const z={class:"flex h-screen min-h-0 flex-1 min-w-0"},M={class:"flex items-center gap-2"},L=b({__name:"index",setup(O){const c=$(),u=y(),{togglePanel:i}=q(),{loaded:l,refreshProjects:_,getProject:p,pendingProjectId:d}=g(),t=n(()=>C(c.params.projectId)),m=n(()=>p(t.value)),s=n(()=>{if(!t.value)return"Offline";if(d.value===t.value)return"Starting";switch(m.value?.status){case"running":return"Running";case"stopped":return"Stopped";case"error":return"Error";default:return"Checking"}}),f=async()=>{t.value&&await u.push(`/projects/${t.value}`)};return N(()=>{l.value||_()}),(W,A)=>{const h=w,a=k,r=S,v=U,j=E,x=D,P=V;return B(),I("div",z,[e(x,{id:"project-shell",class:"min-h-0 min-w-0 flex-1",ui:{root:"!p-0",body:"!p-0 sm:!p-0 !gap-0 sm:!gap-0"}},{header:o(()=>[e(v,{title:t.value??"Project",icon:"i-lucide-folder-git-2"},{right:o(()=>[R("div",M,[e(a,{text:`RPC ${s.value}`},{default:o(()=>[e(h,{status:s.value,pulse:"",padded:""},null,8,["status"])]),_:1},8,["text"]),e(a,{text:"New thread"},{default:o(()=>[e(r,{icon:"i-lucide-plus",color:"primary",variant:"soft",square:"",onClick:f})]),_:1}),e(a,{text:"Previous threads"},{default:o(()=>[e(r,{icon:"i-lucide-history",color:"neutral",variant:"outline",square:"",onClick:T(i)},null,8,["onClick"])]),_:1})])]),_:1},8,["title"])]),body:o(()=>[e(j,{"project-id":t.value??"",class:"min-h-0 flex-1"},null,8,["project-id"])]),_:1}),e(P,{"project-id":t.value},null,8,["project-id"])])}}});export{L as default};