File size: 2,044 Bytes
44e1828 |
1 2 |
import{s as g,e as p,c as m,b as d,f,x as c,i as V,n as _,w as k,B as M,a as S,g as j,l as w,h as x,C as q,D as A,E as B}from"../chunks/scheduler.PJbBD1N5.js";import{S as v,i as y,b as E,d as C,m as D,t as $,a as h,e as I}from"../chunks/index.T0jHVBP-.js";function H(i){let e;return{c(){e=p("div"),this.h()},l(t){e=m(t,"DIV",{style:!0}),d(e).forEach(f),this.h()},h(){c(e,"width","50px"),c(e,"height","50px"),c(e,"background-color",i[0]),c(e,"position","absolute"),c(e,"opacity","0.6"),c(e,"top","10px"),c(e,"left","10px")},m(t,s){V(t,e,s)},p(t,[s]){s&1&&c(e,"background-color",t[0])},i:_,o:_,d(t){t&&f(e)}}}function L(i,e,t){const s=async()=>{const o=await fetch("/api/env/search_version"),{value:u}=await o.json();return u};let a="rgb(0, 110, 255)";return k(async()=>{const o=await s();console.log(o),o=="e5"?t(0,a="red"):o=="combined"&&t(0,a="green")}),[a,s]}class N extends v{constructor(e){super(),y(this,e,L,H,g,{loadVersion:1})}get loadVersion(){return this.$$.ctx[1]}}function U(i){let e,t;return e=new N({}),{c(){E(e.$$.fragment)},l(s){C(e.$$.fragment,s)},m(s,a){D(e,s,a),t=!0},p:_,i(s){t||($(e.$$.fragment,s),t=!0)},o(s){h(e.$$.fragment,s),t=!1},d(s){I(e,s)}}}class z extends v{constructor(e){super(),y(this,e,null,U,g,{})}}function F(i){let e,t,s,a,o;t=new z({});const u=i[1].default,r=M(u,i,i[0],null);return{c(){e=p("div"),E(t.$$.fragment),s=S(),a=p("main"),r&&r.c(),this.h()},l(n){e=m(n,"DIV",{class:!0});var l=d(e);C(t.$$.fragment,l),s=j(l),a=m(l,"MAIN",{class:!0});var b=d(a);r&&r.l(b),b.forEach(f),l.forEach(f),this.h()},h(){w(a,"class","svelte-1aienip"),w(e,"class","app svelte-1aienip")},m(n,l){V(n,e,l),D(t,e,null),x(e,s),x(e,a),r&&r.m(a,null),o=!0},p(n,[l]){r&&r.p&&(!o||l&1)&&q(r,u,n,n[0],o?B(u,n[0],l,null):A(n[0]),null)},i(n){o||($(t.$$.fragment,n),$(r,n),o=!0)},o(n){h(t.$$.fragment,n),h(r,n),o=!1},d(n){n&&f(e),I(t),r&&r.d(n)}}}function G(i,e,t){let{$$slots:s={},$$scope:a}=e;return i.$$set=o=>{"$$scope"in o&&t(0,a=o.$$scope)},[a,s]}class O extends v{constructor(e){super(),y(this,e,G,F,g,{})}}export{O as component};
|