+bootstrap
This commit is contained in:
parent
0d7900912b
commit
4e0f5ad3de
53 changed files with 22 additions and 20 deletions
3
static/_app/immutable/chunks/entry.CB1CKNFx.js
Normal file
3
static/_app/immutable/chunks/entry.CB1CKNFx.js
Normal file
File diff suppressed because one or more lines are too long
BIN
static/_app/immutable/chunks/entry.CB1CKNFx.js.br
Normal file
BIN
static/_app/immutable/chunks/entry.CB1CKNFx.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/chunks/entry.CB1CKNFx.js.gz
Normal file
BIN
static/_app/immutable/chunks/entry.CB1CKNFx.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
1
static/_app/immutable/chunks/index.B2LhTP1n.js
Normal file
1
static/_app/immutable/chunks/index.B2LhTP1n.js
Normal file
File diff suppressed because one or more lines are too long
BIN
static/_app/immutable/chunks/index.B2LhTP1n.js.br
Normal file
BIN
static/_app/immutable/chunks/index.B2LhTP1n.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/chunks/index.B2LhTP1n.js.gz
Normal file
BIN
static/_app/immutable/chunks/index.B2LhTP1n.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
function k(){}function x(t,n){for(const e in n)t[e]=n[e];return t}function w(t){return t()}function z(){return Object.create(null)}function j(t){t.forEach(w)}function F(t){return typeof t=="function"}function P(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function S(t){return Object.keys(t).length===0}function E(t,...n){if(t==null){for(const o of n)o(void 0);return k}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function U(t,n,e){t.$$.on_destroy.push(E(n,e))}function A(t,n,e,o){if(t){const r=g(t,n,e,o);return t[0](r)}}function g(t,n,e,o){return t[1]&&o?x(e.ctx.slice(),t[1](o(n))):e.ctx}function B(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const a=[],f=Math.max(n.dirty.length,r.length);for(let s=0;s<f;s+=1)a[s]=n.dirty[s]|r[s];return a}return n.dirty|r}return n.dirty}function C(t,n,e,o,r,a){if(r){const f=g(n,e,o,a);t.p(f,r)}}function D(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}let i;function d(t){i=t}function m(){if(!i)throw new Error("Function called outside component initialization");return i}function G(t){m().$$.on_mount.push(t)}function H(t){m().$$.after_update.push(t)}const l=[],p=[];let u=[];const b=[],y=Promise.resolve();let h=!1;function v(){h||(h=!0,y.then(q))}function I(){return v(),y}function O(t){u.push(t)}const _=new Set;let c=0;function q(){if(c!==0)return;const t=i;do{try{for(;c<l.length;){const n=l[c];c++,d(n),M(n.$$)}}catch(n){throw l.length=0,c=0,n}for(d(null),l.length=0,c=0;p.length;)p.pop()();for(let n=0;n<u.length;n+=1){const e=u[n];_.has(e)||(_.add(e),e())}u.length=0}while(l.length);for(;b.length;)b.pop()();h=!1,_.clear(),d(t)}function M(t){if(t.fragment!==null){t.update(),j(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function J(t){const n=[],e=[];u.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),u=n}export{B as a,U as b,A as c,H as d,p as e,z as f,D as g,q as h,F as i,S as j,O as k,J as l,i as m,k as n,G as o,d as p,w as q,j as r,P as s,I as t,C as u,l as v,v as w};
|
Binary file not shown.
Binary file not shown.
1
static/_app/immutable/chunks/scheduler.D9xsQs6S.js
Normal file
1
static/_app/immutable/chunks/scheduler.D9xsQs6S.js
Normal file
|
@ -0,0 +1 @@
|
|||
function k(){}function w(t,n){for(const e in n)t[e]=n[e];return t}function j(t){return t()}function F(){return Object.create(null)}function E(t){t.forEach(j)}function P(t){return typeof t=="function"}function S(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let i;function U(t,n){return t===n?!0:(i||(i=document.createElement("a")),i.href=n,t===i.href)}function A(t){return Object.keys(t).length===0}function q(t,...n){if(t==null){for(const r of n)r(void 0);return k}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function B(t,n,e){t.$$.on_destroy.push(q(n,e))}function C(t,n,e,r){if(t){const o=m(t,n,e,r);return t[0](o)}}function m(t,n,e,r){return t[1]&&r?w(e.ctx.slice(),t[1](r(n))):e.ctx}function D(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(n.dirty===void 0)return o;if(typeof o=="object"){const a=[],_=Math.max(n.dirty.length,o.length);for(let s=0;s<_;s+=1)a[s]=n.dirty[s]|o[s];return a}return n.dirty|o}return n.dirty}function G(t,n,e,r,o,a){if(o){const _=m(n,e,r,a);t.p(_,o)}}function H(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let r=0;r<e;r++)n[r]=-1;return n}return-1}let f;function h(t){f=t}function y(){if(!f)throw new Error("Function called outside component initialization");return f}function I(t){y().$$.on_mount.push(t)}function J(t){y().$$.after_update.push(t)}const l=[],b=[];let u=[];const g=[],x=Promise.resolve();let p=!1;function v(){p||(p=!0,x.then(M))}function K(){return v(),x}function O(t){u.push(t)}const d=new Set;let c=0;function M(){if(c!==0)return;const t=f;do{try{for(;c<l.length;){const n=l[c];c++,h(n),z(n.$$)}}catch(n){throw l.length=0,c=0,n}for(h(null),l.length=0,c=0;b.length;)b.pop()();for(let n=0;n<u.length;n+=1){const e=u[n];d.has(e)||(d.add(e),e())}u.length=0}while(l.length);for(;g.length;)g.pop()();p=!1,d.clear(),h(t)}function z(t){if(t.fragment!==null){t.update(),E(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}function L(t){const n=[],e=[];u.forEach(r=>t.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),u=n}export{U as a,D as b,C as c,B as d,J as e,b as f,H as g,F as h,M as i,P as j,A as k,O as l,L as m,k as n,I as o,f as p,h as q,E as r,S as s,K as t,G as u,j as v,l as w,v as x};
|
BIN
static/_app/immutable/chunks/scheduler.D9xsQs6S.js.br
Normal file
BIN
static/_app/immutable/chunks/scheduler.D9xsQs6S.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/chunks/scheduler.D9xsQs6S.js.gz
Normal file
BIN
static/_app/immutable/chunks/scheduler.D9xsQs6S.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
static/_app/immutable/entry/app.B1CZmagT.js.br
Normal file
BIN
static/_app/immutable/entry/app.B1CZmagT.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/entry/app.B1CZmagT.js.gz
Normal file
BIN
static/_app/immutable/entry/app.B1CZmagT.js.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
static/_app/immutable/entry/start.BOxT_9QB.js
Normal file
1
static/_app/immutable/entry/start.BOxT_9QB.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{a as t}from"../chunks/entry.CB1CKNFx.js";export{t as start};
|
2
static/_app/immutable/entry/start.BOxT_9QB.js.br
Normal file
2
static/_app/immutable/entry/start.BOxT_9QB.js.br
Normal file
|
@ -0,0 +1,2 @@
|
|||
‹!€import{a as t}from"../chunks/entry.CB1CKNFx.js";export{t as start};
|
||||
|
BIN
static/_app/immutable/entry/start.BOxT_9QB.js.gz
Normal file
BIN
static/_app/immutable/entry/start.BOxT_9QB.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{a as t}from"../chunks/entry.CfOJIY_S.js";export{t as start};
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{s as u,c as _,u as f,g as p,a as d}from"../chunks/scheduler.BvLojk_z.js";import{S as h,i as m,e as y,s as g,h as b,c as j,d as c,a as $,b as i,f as v,g as S,t as k,j as T}from"../chunks/index.DWCBnklA.js";const E=!1,I="always",W=Object.freeze(Object.defineProperty({__proto__:null,ssr:E,trailingSlash:I},Symbol.toStringTag,{value:"Module"}));function L(o){let s,l,a;const r=o[1].default,e=_(r,o,o[0],null);return{c(){s=y("link"),l=g(),e&&e.c(),this.h()},l(t){const n=b("svelte-op2tqx",document.head);s=j(n,"LINK",{href:!0,rel:!0,integrity:!0,crossorigin:!0}),n.forEach(c),l=$(t),e&&e.l(t),this.h()},h(){document.title="GPT Backend",i(s,"href","https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"),i(s,"rel","stylesheet"),i(s,"integrity","sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"),i(s,"crossorigin","anonymous")},m(t,n){v(document.head,s),S(t,l,n),e&&e.m(t,n),a=!0},p(t,[n]){e&&e.p&&(!a||n&1)&&f(e,r,t,t[0],a?d(r,t[0],n,null):p(t[0]),null)},i(t){a||(k(e,t),a=!0)},o(t){T(e,t),a=!1},d(t){t&&c(l),c(s),e&&e.d(t)}}}function O(o,s,l){let{$$slots:a={},$$scope:r}=s;return o.$$set=e=>{"$$scope"in e&&l(0,r=e.$$scope)},[r,a]}class Y extends h{constructor(s){super(),m(this,s,O,L,u,{})}}export{Y as component,W as universal};
|
Binary file not shown.
Binary file not shown.
1
static/_app/immutable/nodes/0.DpoNe3AF.js
Normal file
1
static/_app/immutable/nodes/0.DpoNe3AF.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{s as h,c as y,a as g,u as v,g as j,b}from"../chunks/scheduler.D9xsQs6S.js";import{S,i as $,e as p,s as k,h as N,c as f,g as T,d as _,a as I,b as o,f as m,j as L,t as Y,k as H}from"../chunks/index.B2LhTP1n.js";const E=!1,M="always",A=Object.freeze(Object.defineProperty({__proto__:null,ssr:E,trailingSlash:M},Symbol.toStringTag,{value:"Module"}));function O(i){let a,e,u="",c,r,l;const d=i[1].default,s=y(d,i,i[0],null);return{c(){a=p("link"),e=p("script"),e.innerHTML=u,r=k(),s&&s.c(),this.h()},l(t){const n=N("svelte-va476a",document.head);a=f(n,"LINK",{href:!0,rel:!0,integrity:!0,crossorigin:!0}),e=f(n,"SCRIPT",{src:!0,integrity:!0,crossorigin:!0,"data-svelte-h":!0}),T(e)!=="svelte-1sm7vij"&&(e.innerHTML=u),n.forEach(_),r=I(t),s&&s.l(t),this.h()},h(){document.title="GPT Backend",o(a,"href","https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"),o(a,"rel","stylesheet"),o(a,"integrity","sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"),o(a,"crossorigin","anonymous"),g(e.src,c="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js")||o(e,"src",c),o(e,"integrity","sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"),o(e,"crossorigin","anonymous")},m(t,n){m(document.head,a),m(document.head,e),L(t,r,n),s&&s.m(t,n),l=!0},p(t,[n]){s&&s.p&&(!l||n&1)&&v(s,d,t,t[0],l?b(d,t[0],n,null):j(t[0]),null)},i(t){l||(Y(s,t),l=!0)},o(t){H(s,t),l=!1},d(t){t&&_(r),_(a),_(e),s&&s.d(t)}}}function P(i,a,e){let{$$slots:u={},$$scope:c}=a;return i.$$set=r=>{"$$scope"in r&&e(0,c=r.$$scope)},[c,u]}class C extends S{constructor(a){super(),$(this,a,P,O,h,{})}}export{C as component,A as universal};
|
BIN
static/_app/immutable/nodes/0.DpoNe3AF.js.br
Normal file
BIN
static/_app/immutable/nodes/0.DpoNe3AF.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/nodes/0.DpoNe3AF.js.gz
Normal file
BIN
static/_app/immutable/nodes/0.DpoNe3AF.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{s as S,n as _,b as x}from"../chunks/scheduler.BvLojk_z.js";import{S as k,i as q,e as f,k as d,s as y,c as g,l as h,m as v,d as l,a as C,g as m,f as $,n as E}from"../chunks/index.DWCBnklA.js";import{s as H}from"../chunks/entry.CfOJIY_S.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},j={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",n,o,i,c=((b=s[0].error)==null?void 0:b.message)+"",u;return{c(){t=f("h1"),n=d(r),o=y(),i=f("p"),u=d(c)},l(e){t=g(e,"H1",{});var a=h(t);n=v(a,r),a.forEach(l),o=C(e),i=g(e,"P",{});var p=h(i);u=v(p,c),p.forEach(l)},m(e,a){m(e,t,a),$(t,n),m(e,o,a),m(e,i,a),$(i,u)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(n,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(u,c)},i:_,o:_,d(e){e&&(l(t),l(o),l(i))}}}function z(s,t,r){let n;return x(s,j,o=>r(0,n=o)),[n]}let F=class extends k{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component};
|
Binary file not shown.
Binary file not shown.
1
static/_app/immutable/nodes/1.IJmS4sXZ.js
Normal file
1
static/_app/immutable/nodes/1.IJmS4sXZ.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{s as S,n as _,d as x}from"../chunks/scheduler.D9xsQs6S.js";import{S as j,i as q,e as d,l as f,s as y,c as g,m as h,n as v,d as l,a as C,j as m,f as $,o as E}from"../chunks/index.B2LhTP1n.js";import{s as H}from"../chunks/entry.CB1CKNFx.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},k={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",u;return{c(){t=d("h1"),o=f(r),n=y(),i=d("p"),u=f(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(l),n=C(e),i=g(e,"P",{});var p=h(i);u=v(p,c),p.forEach(l)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,u)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(u,c)},i:_,o:_,d(e){e&&(l(t),l(n),l(i))}}}function z(s,t,r){let o;return x(s,k,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),q(this,t,z,w,S,{})}};export{F as component};
|
BIN
static/_app/immutable/nodes/1.IJmS4sXZ.js.br
Normal file
BIN
static/_app/immutable/nodes/1.IJmS4sXZ.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/nodes/1.IJmS4sXZ.js.gz
Normal file
BIN
static/_app/immutable/nodes/1.IJmS4sXZ.js.gz
Normal file
Binary file not shown.
1
static/_app/immutable/nodes/2.DMJ3Xjt-.js
Normal file
1
static/_app/immutable/nodes/2.DMJ3Xjt-.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{s as J,n as N}from"../chunks/scheduler.D9xsQs6S.js";import{S as K,i as U,e as g,s as S,c as T,g as Q,a as A,m as D,d as m,b as w,j,f,p as V,l as z,n as C,o as P}from"../chunks/index.B2LhTP1n.js";function R(a){return(a==null?void 0:a.length)!==void 0?a:Array.from(a)}async function W(){return{containers:await fetch("/api/tags",{mode:"cors",headers:{"Access-Control-Allow-Origin":"*"}}).then(a=>a.json())}}const lt=Object.freeze(Object.defineProperty({__proto__:null,load:W},Symbol.toStringTag,{value:"Module"}));function Y(a,t,o){const n=a.slice();return n[1]=t[o],n}function X(a){let t,o=a[1].ip+"",n;return{c(){t=g("td"),n=z(o)},l(e){t=T(e,"TD",{});var i=D(t);n=C(i,o),i.forEach(m)},m(e,i){j(e,t,i),f(t,n)},p(e,i){i&1&&o!==(o=e[1].ip+"")&&P(n,o)},d(e){e&&m(t)}}}function Z(a){let t,o=a[1].ip+"",n,e,i=a[1].port+"",p;return{c(){t=g("td"),n=z(o),e=z(":"),p=z(i)},l(h){t=T(h,"TD",{});var c=D(t);n=C(c,o),e=C(c,":"),p=C(c,i),c.forEach(m)},m(h,c){j(h,t,c),f(t,n),f(t,e),f(t,p)},p(h,c){c&1&&o!==(o=h[1].ip+"")&&P(n,o),c&1&&i!==(i=h[1].port+"")&&P(p,i)},d(h){h&&m(t)}}}function F(a){let t,o,n=a[1].name+"",e,i,p,h,c=a[1].details.parameter_size+"",v,r,l,u=a[1].details.quantization_level+"",s,E,k,H=a[1].state+"",O,y;function B(_,d){return _[1].state=="running"?Z:X}let q=B(a),b=q(a);return{c(){t=g("tr"),o=g("td"),e=z(n),i=S(),b.c(),p=S(),h=g("td"),v=z(c),r=S(),l=g("td"),s=z(u),E=S(),k=g("td"),O=z(H),y=S()},l(_){t=T(_,"TR",{});var d=D(t);o=T(d,"TD",{});var L=D(o);e=C(L,n),L.forEach(m),i=A(d),b.l(d),p=A(d),h=T(d,"TD",{});var M=D(h);v=C(M,c),M.forEach(m),r=A(d),l=T(d,"TD",{});var G=D(l);s=C(G,u),G.forEach(m),E=A(d),k=T(d,"TD",{});var I=D(k);O=C(I,H),I.forEach(m),y=A(d),d.forEach(m)},m(_,d){j(_,t,d),f(t,o),f(o,e),f(t,i),b.m(t,null),f(t,p),f(t,h),f(h,v),f(t,r),f(t,l),f(l,s),f(t,E),f(t,k),f(k,O),f(t,y)},p(_,d){d&1&&n!==(n=_[1].name+"")&&P(e,n),q===(q=B(_))&&b?b.p(_,d):(b.d(1),b=q(_),b&&(b.c(),b.m(t,p))),d&1&&c!==(c=_[1].details.parameter_size+"")&&P(v,c),d&1&&u!==(u=_[1].details.quantization_level+"")&&P(s,u),d&1&&H!==(H=_[1].state+"")&&P(O,H)},d(_){_&&m(t),b.d()}}}function $(a){let t,o="GPT Backend",n,e,i,p="<tr><th>Name</th> <th>IP:Port</th> <th>Size</th> <th>Quantization</th> <th>Status</th></tr>",h,c,v=R(a[0].containers.models),r=[];for(let l=0;l<v.length;l+=1)r[l]=F(Y(a,v,l));return{c(){t=g("h1"),t.textContent=o,n=S(),e=g("table"),i=g("thead"),i.innerHTML=p,h=S(),c=g("tbody");for(let l=0;l<r.length;l+=1)r[l].c();this.h()},l(l){t=T(l,"H1",{class:!0,"data-svelte-h":!0}),Q(t)!=="svelte-1vaxk2u"&&(t.textContent=o),n=A(l),e=T(l,"TABLE",{class:!0});var u=D(e);i=T(u,"THEAD",{class:!0,"data-svelte-h":!0}),Q(i)!=="svelte-1xnw177"&&(i.innerHTML=p),h=A(u),c=T(u,"TBODY",{class:!0});var s=D(c);for(let E=0;E<r.length;E+=1)r[E].l(s);s.forEach(m),u.forEach(m),this.h()},h(){w(t,"class","h1 text-center"),w(i,"class","table-primary"),w(c,"class","table-success"),w(e,"class","table table-hover")},m(l,u){j(l,t,u),j(l,n,u),j(l,e,u),f(e,i),f(e,h),f(e,c);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(c,null)},p(l,[u]){if(u&1){v=R(l[0].containers.models);let s;for(s=0;s<v.length;s+=1){const E=Y(l,v,s);r[s]?r[s].p(E,u):(r[s]=F(E),r[s].c(),r[s].m(c,null))}for(;s<r.length;s+=1)r[s].d(1);r.length=v.length}},i:N,o:N,d(l){l&&(m(t),m(n),m(e)),V(r,l)}}}function x(a,t,o){let{data:n}=t;return a.$$set=e=>{"data"in e&&o(0,n=e.data)},[n]}class at extends K{constructor(t){super(),U(this,t,x,$,J,{data:0})}}export{at as component,lt as universal};
|
BIN
static/_app/immutable/nodes/2.DMJ3Xjt-.js.br
Normal file
BIN
static/_app/immutable/nodes/2.DMJ3Xjt-.js.br
Normal file
Binary file not shown.
BIN
static/_app/immutable/nodes/2.DMJ3Xjt-.js.gz
Normal file
BIN
static/_app/immutable/nodes/2.DMJ3Xjt-.js.gz
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
import{s as J,n as G}from"../chunks/scheduler.BvLojk_z.js";import{S as K,i as U,e as g,s as D,c as b,o as I,a as S,l as T,d as m,p as V,b as W,g as q,f,q as X,k as E,m as z,n as k}from"../chunks/index.DWCBnklA.js";function N(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}async function Y(){return{containers:await fetch("/api/tags",{mode:"cors",headers:{"Access-Control-Allow-Origin":"*"}}).then(l=>l.json())}}const nt=Object.freeze(Object.defineProperty({__proto__:null,load:Y},Symbol.toStringTag,{value:"Module"}));function Q(l,t,o){const a=l.slice();return a[1]=t[o],a}function Z(l){let t,o=l[1].ip+"",a;return{c(){t=g("td"),a=E(o)},l(e){t=b(e,"TD",{});var i=T(t);a=z(i,o),i.forEach(m)},m(e,i){q(e,t,i),f(t,a)},p(e,i){i&1&&o!==(o=e[1].ip+"")&&k(a,o)},d(e){e&&m(t)}}}function $(l){let t,o=l[1].ip+"",a,e,i=l[1].port+"",p;return{c(){t=g("td"),a=E(o),e=E(":"),p=E(i)},l(h){t=b(h,"TD",{});var r=T(t);a=z(r,o),e=z(r,":"),p=z(r,i),r.forEach(m)},m(h,r){q(h,t,r),f(t,a),f(t,e),f(t,p)},p(h,r){r&1&&o!==(o=h[1].ip+"")&&k(a,o),r&1&&i!==(i=h[1].port+"")&&k(p,i)},d(h){h&&m(t)}}}function F(l){let t,o,a=l[1].name+"",e,i,p,h,r=l[1].details.parameter_size+"",c,s,u,n=l[1].details.quantization_level+"",C,H,P,j=l[1].state+"",A,L;function M(_,d){return _[1].state=="running"?$:Z}let w=M(l),v=w(l);return{c(){t=g("tr"),o=g("td"),e=E(a),i=D(),v.c(),p=D(),h=g("td"),c=E(r),s=D(),u=g("td"),C=E(n),H=D(),P=g("td"),A=E(j),L=D()},l(_){t=b(_,"TR",{});var d=T(t);o=b(d,"TD",{});var O=T(o);e=z(O,a),O.forEach(m),i=S(d),v.l(d),p=S(d),h=b(d,"TD",{});var y=T(h);c=z(y,r),y.forEach(m),s=S(d),u=b(d,"TD",{});var B=T(u);C=z(B,n),B.forEach(m),H=S(d),P=b(d,"TD",{});var R=T(P);A=z(R,j),R.forEach(m),L=S(d),d.forEach(m)},m(_,d){q(_,t,d),f(t,o),f(o,e),f(t,i),v.m(t,null),f(t,p),f(t,h),f(h,c),f(t,s),f(t,u),f(u,C),f(t,H),f(t,P),f(P,A),f(t,L)},p(_,d){d&1&&a!==(a=_[1].name+"")&&k(e,a),w===(w=M(_))&&v?v.p(_,d):(v.d(1),v=w(_),v&&(v.c(),v.m(t,p))),d&1&&r!==(r=_[1].details.parameter_size+"")&&k(c,r),d&1&&n!==(n=_[1].details.quantization_level+"")&&k(C,n),d&1&&j!==(j=_[1].state+"")&&k(A,j)},d(_){_&&m(t),v.d()}}}function x(l){let t,o="GPT Backend",a,e,i,p="<th>Name</th> <th>IP:Port</th> <th>Size</th> <th>Quantization</th> <th>Status</th>",h,r=N(l[0].containers.models),c=[];for(let s=0;s<r.length;s+=1)c[s]=F(Q(l,r,s));return{c(){t=g("h1"),t.textContent=o,a=D(),e=g("table"),i=g("tr"),i.innerHTML=p,h=D();for(let s=0;s<c.length;s+=1)c[s].c();this.h()},l(s){t=b(s,"H1",{style:!0,"data-svelte-h":!0}),I(t)!=="svelte-1hqwykg"&&(t.textContent=o),a=S(s),e=b(s,"TABLE",{class:!0});var u=T(e);i=b(u,"TR",{"data-svelte-h":!0}),I(i)!=="svelte-1jdic5z"&&(i.innerHTML=p),h=S(u);for(let n=0;n<c.length;n+=1)c[n].l(u);u.forEach(m),this.h()},h(){V(t,"text-align","center"),W(e,"class","table table-bordered table-hover")},m(s,u){q(s,t,u),q(s,a,u),q(s,e,u),f(e,i),f(e,h);for(let n=0;n<c.length;n+=1)c[n]&&c[n].m(e,null)},p(s,[u]){if(u&1){r=N(s[0].containers.models);let n;for(n=0;n<r.length;n+=1){const C=Q(s,r,n);c[n]?c[n].p(C,u):(c[n]=F(C),c[n].c(),c[n].m(e,null))}for(;n<c.length;n+=1)c[n].d(1);c.length=r.length}},i:G,o:G,d(s){s&&(m(t),m(a),m(e)),X(c,s)}}}function tt(l,t,o){let{data:a}=t;return l.$$set=e=>{"data"in e&&o(0,a=e.data)},[a]}class at extends K{constructor(t){super(),U(this,t,tt,x,J,{data:0})}}export{at as component,nt as universal};
|
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
{"version":"1717579609103"}
|
||||
{"version":"1717663982752"}
|
Binary file not shown.
Binary file not shown.
|
@ -5,25 +5,25 @@
|
|||
<link rel="icon" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link rel="modulepreload" href="/_app/immutable/entry/start.DxV7aNzM.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/entry.CfOJIY_S.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/scheduler.BvLojk_z.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/entry/app.XEpr6ULy.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/index.DWCBnklA.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/entry/start.BOxT_9QB.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/entry.CB1CKNFx.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/scheduler.D9xsQs6S.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/entry/app.B1CZmagT.js">
|
||||
<link rel="modulepreload" href="/_app/immutable/chunks/index.B2LhTP1n.js">
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">
|
||||
<script>
|
||||
{
|
||||
__sveltekit_1rf3k0j = {
|
||||
__sveltekit_cadwut = {
|
||||
base: ""
|
||||
};
|
||||
|
||||
const element = document.currentScript.parentElement;
|
||||
|
||||
Promise.all([
|
||||
import("/_app/immutable/entry/start.DxV7aNzM.js"),
|
||||
import("/_app/immutable/entry/app.XEpr6ULy.js")
|
||||
import("/_app/immutable/entry/start.BOxT_9QB.js"),
|
||||
import("/_app/immutable/entry/app.B1CZmagT.js")
|
||||
]).then(([kit, app]) => {
|
||||
kit.start(app, element);
|
||||
});
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue