This commit is contained in:
kunish 2024-09-14 16:15:03 +00:00
commit 9211e0d049
40 changed files with 29233 additions and 0 deletions

0
.nojekyll Normal file
View File

1
CNAME Normal file
View File

@ -0,0 +1 @@
d.metacubex.one

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
assets/Logs-KOUcZ2qF.js Normal file
View File

@ -0,0 +1 @@
import{u as B,f as e,ah as J,i as t,ai as I,aj as K,F as x,ak as Q,al as U,am as d,an as Y,ao as ee,g as C,ap as V,aq as R,ar as H,P as te,t as v,A as L,r as j,w as ae,C as re,b as le,y as se,R as ne,$ as k,D as oe,a2 as ie,a3 as ce,B as A,a5 as ue,a1 as G,a6 as de,a9 as ge,aa as he,a0 as q,ae as ve,ag as fe,l as me}from"./index-DWMGWNy8.js";import{c as be,g as pe,a as $e,e as _e,f as N,r as Se}from"./index-6_sXLHMR.js";var xe=v('<div class="flex flex-col gap-4"><div><select class="select select-bordered w-full"></select></div><div><select class="select select-bordered w-full"></select></div><div><select class="select select-bordered w-full">'),M=v("<option>");const Ce=u=>{const[r]=B();return e(te,{ref:s=>{var n;return(n=u.ref)==null?void 0:n.call(u,s)},get icon(){return e(J,{size:24})},get title(){return r("logsSettings")},get children(){var s=xe(),n=s.firstChild,i=n.firstChild,$=n.nextSibling,m=$.firstChild,w=$.nextSibling,b=w.firstChild;return t(n,e(I,{withDivider:!0,get children(){return r("tableSize")}}),i),i.addEventListener("change",a=>K(a.target.value)),t(i,e(x,{get each(){return Object.values(Q)},children:a=>(()=>{var o=M();return o.value=a,t(o,()=>r(a)),o})()})),t($,e(I,{withDivider:!0,get children(){return r("logLevel")}}),m),m.addEventListener("change",a=>U(a.target.value)),t(m,e(x,{get each(){return[d.Info,d.Error,d.Warning,d.Debug,d.Silent]},children:a=>(()=>{var o=M();return o.value=a,t(o,()=>r(a)),o})()})),t(w,e(I,{withDivider:!0,get children(){return r("logMaxRows")}}),b),b.addEventListener("change",a=>Y(parseInt(a.target.value))),t(b,e(x,{each:ee,children:a=>(()=>{var o=M();return o.value=a,t(o,a),o})()})),C(()=>i.value=V()),C(()=>m.value=R()),C(()=>b.value=H()),s}})};let W=1;const[we,ye]=L([]),[X,Le]=L(!1);j(ae(R,(u,r)=>{if(u===r)return;const s=re("logs",{level:R()});j(()=>{const n=s();!n||X()||(ye(i=>[{...n,seq:W},...i].slice(0,H())),W++)})}));const Fe=()=>({logs:we,paused:X,setPaused:Le});var Ie=v("<span>"),ke=v('<div class="flex h-full flex-col gap-2"><div class="join w-full"><input type=search class="input input-sm join-item input-primary flex-1 flex-shrink-0"></div><div class="overflow-x-auto whitespace-nowrap rounded-md bg-base-300"><table><thead class="sticky top-0 z-10"></thead><tbody>'),Me=v("<tr>"),Re=v('<th class=bg-base-200><div class="flex items-center"><div>'),Ee=v('<tr class="hover:!bg-primary hover:text-primary-content">'),De=v("<td class=py-2>");const O=(u,r,s,n)=>{const i=Se(u.getValue(r),s);return n({itemRank:i}),i.passed},Pe=()=>{const u=le();if(!se())return u("/setup",{replace:!0}),null;let r;const[s]=B(),[n,i]=L(""),{logs:$,paused:m,setPaused:w}=Fe(),[b,a]=ne(L([]),{name:"logsTableSorting",storage:localStorage}),o=[{header:s("sequence"),accessorFn:c=>c.seq},{header:s("type"),accessorFn:c=>c.type,cell:({row:c})=>{const p=c.original.type;let g="";switch(p){case d.Error:g="text-error";break;case d.Warning:g="text-warning";break;case d.Info:g="text-info";break;case d.Debug:g="text-success";break}return(()=>{var _=Ie();return k(_,g),t(_,()=>`[${c.original.type}]`),_})()}},{header:s("payload"),accessorFn:c=>c.payload}],E=be({filterFns:{fuzzy:O},state:{get globalFilter(){return n()},get sorting(){return b()}},get data(){return $()},sortDescFirst:!0,columns:o,onGlobalFilterChange:i,onSortingChange:a,globalFilterFn:O,getFilteredRowModel:pe(),getSortedRowModel:$e(),getCoreRowModel:_e()});return(()=>{var c=ke(),p=c.firstChild,g=p.firstChild,_=p.nextSibling,D=_.firstChild,z=D.firstChild,Z=z.nextSibling;return g.$$input=l=>i(l.target.value),t(p,e(A,{class:"btn-primary join-item btn-sm",onClick:()=>w(l=>!l),get icon(){return oe(()=>!!m())()?e(ie,{}):e(ce,{})}}),null),t(p,e(A,{class:"btn-primary join-item btn-sm",onClick:()=>r==null?void 0:r.showModal(),get icon(){return e(ue,{})}}),null),t(z,e(G,{get each(){return E.getHeaderGroups()},children:l=>{const f=l();return(()=>{var h=Me();return t(h,e(G,{get each(){return f.headers},children:y=>{const S=y();return(()=>{var T=Re(),P=T.firstChild,F=P.firstChild;return de(F,"click",S.column.getToggleSortingHandler(),!0),t(F,()=>N(S.column.columnDef.header,S.getContext())),t(P,()=>({asc:e(ge,{}),desc:e(he,{})})[S.column.getIsSorted()]??null,null),C(()=>k(F,q(S.column.getCanSort()&&"cursor-pointer select-none","flex-1"))),T})()}})),h})()}})),t(Z,e(x,{get each(){return E.getRowModel().rows},children:l=>(()=>{var f=Ee();return t(f,e(x,{get each(){return l.getVisibleCells()},children:h=>(()=>{var y=De();return t(y,()=>N(h.column.columnDef.cell,h.getContext())),y})()})),f})()})),t(c,e(Ce,{ref:l=>r=l}),null),C(l=>{var f=s("search"),h=q(ve(V()),"table relative rounded-none");return f!==l.e&&fe(g,"placeholder",l.e=f),h!==l.t&&k(D,l.t=h),l},{e:void 0,t:void 0}),c})()};me(["input","click"]);export{Pe as default};

795
assets/Overview-De_zu9wR.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

9
assets/Rules-DrUtyF7O.js Normal file

File diff suppressed because one or more lines are too long

1
assets/Setup-CqaOhgQf.js Normal file
View File

@ -0,0 +1 @@
import{u as q,a as H,b as M,c as N,v as T,o as X,e as p,d as G,i as o,f as h,g as J,S as K,B as C,I as O,F as Q,t as $,z as b,s as w,h as E,j as W,k as R,l as Y,m as Z,n as tt}from"./index-DWMGWNy8.js";var a=[];for(var y=0;y<256;++y)a.push((y+256).toString(16).slice(1));function et(t,n=0){return(a[t[n+0]]+a[t[n+1]]+a[t[n+2]]+a[t[n+3]]+"-"+a[t[n+4]]+a[t[n+5]]+"-"+a[t[n+6]]+a[t[n+7]]+"-"+a[t[n+8]]+a[t[n+9]]+"-"+a[t[n+10]]+a[t[n+11]]+a[t[n+12]]+a[t[n+13]]+a[t[n+14]]+a[t[n+15]]).toLowerCase()}var m,nt=new Uint8Array(16);function st(){if(!m&&(m=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(nt)}var at=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const L={randomUUID:at};function rt(t,n,x){if(L.randomUUID&&!n&&!t)return L.randomUUID();t=t||{};var l=t.random||(t.rng||st)();return l[6]=l[6]&15|64,l[8]=l[8]&63|128,et(l)}var lt=$("<option>"),it=$('<div class="mx-auto flex max-w-screen-sm flex-col items-center gap-4 py-10"><form class=contents><div class="flex w-full flex-col gap-4"><div class=flex-1><label class=label><span class=label-text></span></label><input name=url type=url class="input input-bordered w-full"placeholder=http(s)://{hostname}:{port} list=defaultEndpoints><datalist id=defaultEndpoints><option value=http://127.0.0.1:9090></option></datalist></div><div class=flex-1><label class=label><span class=label-text></span></label><input name=secret type=password class="input input-bordered w-full"placeholder=secret></div></div></form><div class="grid w-full grid-cols-2 gap-4">'),ot=$('<div class="badge badge-info flex w-full cursor-pointer items-center justify-between gap-4 py-4"><span class=truncate>');const ct=b.object({url:b.string().min(1),secret:b.string()}),ut=()=>{const[t]=q(),n=H(),x=M(),l=s=>{R(s),x("/overview")},_=(s,e)=>Z.get(s,{headers:e?{Authorization:`Bearer ${e}`}:{}}).then(({ok:r})=>r).catch(r=>{const{message:i}=r;E.error(i)}),I=async s=>{const e=p().find(r=>r.id===s);e&&await _(e.url,e.secret)&&l(s)},v=async({url:s,secret:e})=>{const r=tt(s);if(!await _(r,e))return;const i=rt(),c=p().slice(),d=c.find(f=>f.url===r);if(!d){w([{id:i,url:r,secret:e},...c]),l(i);return}d.secret=e,d.id=i,w(c),l(i)},k=s=>{const{message:e}=s;E.error(e)},{form:S}=N({extend:T({schema:ct}),onSubmit:v,onError:k}),D=s=>{W()===s&&R(""),w(p().filter(e=>e.id!==s))};return X(()=>{let s=n.search||window.location.search;if(s){const r=n.hash.match(/\?.*$/);Array.isArray(r)&&r[0]&&(s=r[0].replace("?",""))}const e=new URLSearchParams(s);e.has("hostname")?v({url:`${e.get("http")?"http:":e.get("https")?"https:":window.location.protocol}//${e.get("hostname")}${e.get("port")?`:${e.get("port")}`:""}`,secret:e.get("secret")??""}):p().length===0&&v({url:"http://127.0.0.1:9090",secret:""})}),(()=>{var s=it(),e=s.firstChild,r=e.firstChild,i=r.firstChild,c=i.firstChild,d=c.firstChild,f=c.nextSibling,U=f.nextSibling;U.firstChild;var j=i.nextSibling,A=j.firstChild,V=A.firstChild,B=e.nextSibling;return G(S,e,()=>S),o(d,()=>t("endpointURL")),o(U,h(K,{get when(){return window.location.origin!=="http://127.0.0.1:9090"},get children(){var u=lt();return J(()=>u.value=window.location.origin),u}}),null),o(V,()=>t("secret")),o(r,h(C,{type:"submit",class:"btn-primary uppercase",get children(){return t("add")}}),null),o(B,h(Q,{get each(){return p()},children:({id:u,url:F})=>(()=>{var g=ot(),z=g.firstChild;return g.$$click=()=>I(u),o(z,F),o(g,h(C,{class:"btn-circle btn-ghost btn-xs text-white",onClick:P=>{P.stopPropagation(),D(u)},get children(){return h(O,{})}}),null),g})()})),s})()};Y(["click"]);export{ut as default};

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
import{W as a,b2 as m}from"./index-DWMGWNy8.js";const s=o=>a(o).locale(m()).fromNow();export{s as f};

36
assets/index-6_sXLHMR.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

28089
assets/index-DWMGWNy8.js Normal file

File diff suppressed because one or more lines are too long

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

270
favicon.svg Normal file
View File

@ -0,0 +1,270 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0.00 0.00 200.00 200.00">
<g stroke-width="2.00" fill="none" stroke-linecap="butt">
<path stroke="#babcbd" vector-effect="non-scaling-stroke" d="
M 40.95 140.48
Q 68.55 157.30 96.63 173.25
C 102.24 176.44 107.25 175.99 112.94 172.72
Q 137.94 158.32 162.95 143.97
Q 165.51 142.50 167.13 140.70
A 1.36 1.36 0.0 0 0 167.49 139.78
C 167.62 114.80 168.11 94.50 166.94 76.07
C 166.62 71.04 164.79 67.55 160.95 64.72"
/>
<path stroke="#edefef" vector-effect="non-scaling-stroke" d="
M 160.95 64.72
C 158.30 59.86 148.11 55.99 143.18 53.08
C 131.17 46.00 119.07 39.12 106.93 32.27
C 102.78 29.92 100.95 27.45 95.80 30.54
Q 86.26 36.27 72.74 43.77
C 65.00 48.06 55.94 53.83 47.28 58.44
C 36.47 64.19 37.03 68.23 37.02 79.49
Q 36.99 107.48 37.00 135.54
A 1.33 1.30 24.1 0 0 37.35 136.43
L 40.95 140.48"
/>
<path stroke="#cdcdcd" vector-effect="non-scaling-stroke" d="
M 160.95 64.72
C 162.26 67.10 163.25 68.73 163.25 71.58
Q 163.26 102.51 163.09 133.43
Q 163.07 137.05 160.83 138.33
Q 133.44 154.04 106.07 169.70
C 102.53 171.72 96.73 171.58 93.59 169.67
C 81.84 162.53 70.33 156.39 57.98 148.94
Q 49.77 143.99 40.95 140.48"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 155.05 66.47
A 0.30 0.30 0.0 0 0 155.05 65.95
L 100.11 34.53
A 0.30 0.30 0.0 0 0 99.81 34.53
L 44.98 65.96
A 0.30 0.30 0.0 0 0 44.98 66.48
L 99.82 97.91
A 0.30 0.30 0.0 0 0 100.12 97.91
L 155.05 66.47"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 97.83 102.22
A 0.32 0.32 0.0 0 0 97.67 101.94
L 42.48 70.37
A 0.32 0.32 0.0 0 0 42.00 70.65
L 42.00 133.51
A 0.32 0.32 0.0 0 0 42.16 133.79
L 97.04 165.13
A 0.32 0.32 0.0 0 0 97.52 164.85
L 97.83 102.22"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 102.35 101.92
A 0.32 0.32 0.0 0 0 102.19 102.20
L 102.47 164.86
A 0.32 0.32 0.0 0 0 102.95 165.14
L 157.78 133.85
A 0.32 0.32 0.0 0 0 157.94 133.57
L 157.72 70.85
A 0.32 0.32 0.0 0 0 157.24 70.57
L 102.35 101.92"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 101.2539 41.9921
A 1.17 1.17 0.0 0 0 100.0859 40.8201
L 100.0459 40.8200
A 1.17 1.17 0.0 0 0 98.8739 41.9880
L 98.7861 92.2679
A 1.17 1.17 0.0 0 0 99.9541 93.4399
L 99.9941 93.4400
A 1.17 1.17 0.0 0 0 101.1661 92.2720
L 101.2539 41.9921"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 93.8121 104.2576
A 1.09 1.09 0.0 0 0 92.3238 103.8561
L 48.3895 129.1194
A 1.09 1.09 0.0 0 0 47.9879 130.6077
L 48.0079 130.6424
A 1.09 1.09 0.0 0 0 49.4962 131.0439
L 93.4305 105.7806
A 1.09 1.09 0.0 0 0 93.8321 104.2923
L 93.8121 104.2576"
/>
<path stroke="#848484" vector-effect="non-scaling-stroke" d="
M 152.0194 130.6077
A 1.09 1.09 0.0 0 0 151.6178 129.1194
L 107.6488 103.8361
A 1.09 1.09 0.0 0 0 106.1606 104.2377
L 106.1406 104.2723
A 1.09 1.09 0.0 0 0 106.5422 105.7606
L 150.5112 131.0439
A 1.09 1.09 0.0 0 0 151.9994 130.6423
L 152.0194 130.6077"
/>
</g>
<path fill="#dadedf" d="
M 0.00 0.00
L 200.00 0.00
L 200.00 200.00
L 0.00 200.00
L 0.00 0.00
Z
M 40.95 140.48
Q 68.55 157.30 96.63 173.25
C 102.24 176.44 107.25 175.99 112.94 172.72
Q 137.94 158.32 162.95 143.97
Q 165.51 142.50 167.13 140.70
A 1.36 1.36 0.0 0 0 167.49 139.78
C 167.62 114.80 168.11 94.50 166.94 76.07
C 166.62 71.04 164.79 67.55 160.95 64.72
C 158.30 59.86 148.11 55.99 143.18 53.08
C 131.17 46.00 119.07 39.12 106.93 32.27
C 102.78 29.92 100.95 27.45 95.80 30.54
Q 86.26 36.27 72.74 43.77
C 65.00 48.06 55.94 53.83 47.28 58.44
C 36.47 64.19 37.03 68.23 37.02 79.49
Q 36.99 107.48 37.00 135.54
A 1.33 1.30 24.1 0 0 37.35 136.43
L 40.95 140.48
Z"
/>
<path fill="#ffffff" d="
M 160.95 64.72
C 162.26 67.10 163.25 68.73 163.25 71.58
Q 163.26 102.51 163.09 133.43
Q 163.07 137.05 160.83 138.33
Q 133.44 154.04 106.07 169.70
C 102.53 171.72 96.73 171.58 93.59 169.67
C 81.84 162.53 70.33 156.39 57.98 148.94
Q 49.77 143.99 40.95 140.48
L 37.35 136.43
A 1.33 1.30 24.1 0 1 37.00 135.54
Q 36.99 107.48 37.02 79.49
C 37.03 68.23 36.47 64.19 47.28 58.44
C 55.94 53.83 65.00 48.06 72.74 43.77
Q 86.26 36.27 95.80 30.54
C 100.95 27.45 102.78 29.92 106.93 32.27
C 119.07 39.12 131.17 46.00 143.18 53.08
C 148.11 55.99 158.30 59.86 160.95 64.72
Z
M 155.05 66.47
A 0.30 0.30 0.0 0 0 155.05 65.95
L 100.11 34.53
A 0.30 0.30 0.0 0 0 99.81 34.53
L 44.98 65.96
A 0.30 0.30 0.0 0 0 44.98 66.48
L 99.82 97.91
A 0.30 0.30 0.0 0 0 100.12 97.91
L 155.05 66.47
Z
M 97.83 102.22
A 0.32 0.32 0.0 0 0 97.67 101.94
L 42.48 70.37
A 0.32 0.32 0.0 0 0 42.00 70.65
L 42.00 133.51
A 0.32 0.32 0.0 0 0 42.16 133.79
L 97.04 165.13
A 0.32 0.32 0.0 0 0 97.52 164.85
L 97.83 102.22
Z
M 102.35 101.92
A 0.32 0.32 0.0 0 0 102.19 102.20
L 102.47 164.86
A 0.32 0.32 0.0 0 0 102.95 165.14
L 157.78 133.85
A 0.32 0.32 0.0 0 0 157.94 133.57
L 157.72 70.85
A 0.32 0.32 0.0 0 0 157.24 70.57
L 102.35 101.92
Z"
/>
<path fill="#080808" d="
M 155.05 66.47
L 100.12 97.91
A 0.30 0.30 0.0 0 1 99.82 97.91
L 44.98 66.48
A 0.30 0.30 0.0 0 1 44.98 65.96
L 99.81 34.53
A 0.30 0.30 0.0 0 1 100.11 34.53
L 155.05 65.95
A 0.30 0.30 0.0 0 1 155.05 66.47
Z
M 101.2539 41.9921
A 1.17 1.17 0.0 0 0 100.0859 40.8201
L 100.0459 40.8200
A 1.17 1.17 0.0 0 0 98.8739 41.9880
L 98.7861 92.2679
A 1.17 1.17 0.0 0 0 99.9541 93.4399
L 99.9941 93.4400
A 1.17 1.17 0.0 0 0 101.1661 92.2720
L 101.2539 41.9921
Z"
/>
<rect fill="#ffffff" x="-1.19" y="-26.31" transform="translate(100.02,67.13) rotate(0.1)" width="2.38"
height="52.62" rx="1.17"/>
<path fill="#9a9a9b" d="
M 160.95 64.72
C 164.79 67.55 166.62 71.04 166.94 76.07
C 168.11 94.50 167.62 114.80 167.49 139.78
A 1.36 1.36 0.0 0 1 167.13 140.70
Q 165.51 142.50 162.95 143.97
Q 137.94 158.32 112.94 172.72
C 107.25 175.99 102.24 176.44 96.63 173.25
Q 68.55 157.30 40.95 140.48
Q 49.77 143.99 57.98 148.94
C 70.33 156.39 81.84 162.53 93.59 169.67
C 96.73 171.58 102.53 171.72 106.07 169.70
Q 133.44 154.04 160.83 138.33
Q 163.07 137.05 163.09 133.43
Q 163.26 102.51 163.25 71.58
C 163.25 68.73 162.26 67.10 160.95 64.72
Z"
/>
<path fill="#080808" d="
M 97.83 102.22
L 97.52 164.85
A 0.32 0.32 0.0 0 1 97.04 165.13
L 42.16 133.79
A 0.32 0.32 0.0 0 1 42.00 133.51
L 42.00 70.65
A 0.32 0.32 0.0 0 1 42.48 70.37
L 97.67 101.94
A 0.32 0.32 0.0 0 1 97.83 102.22
Z
M 93.8121 104.2576
A 1.09 1.09 0.0 0 0 92.3238 103.8561
L 48.3895 129.1194
A 1.09 1.09 0.0 0 0 47.9879 130.6077
L 48.0079 130.6424
A 1.09 1.09 0.0 0 0 49.4962 131.0439
L 93.4305 105.7806
A 1.09 1.09 0.0 0 0 93.8321 104.2923
L 93.8121 104.2576
Z"
/>
<path fill="#080808" d="
M 102.35 101.92
L 157.24 70.57
A 0.32 0.32 0.0 0 1 157.72 70.85
L 157.94 133.57
A 0.32 0.32 0.0 0 1 157.78 133.85
L 102.95 165.14
A 0.32 0.32 0.0 0 1 102.47 164.86
L 102.19 102.20
A 0.32 0.32 0.0 0 1 102.35 101.92
Z
M 152.0194 130.6077
A 1.09 1.09 0.0 0 0 151.6178 129.1194
L 107.6488 103.8361
A 1.09 1.09 0.0 0 0 106.1606 104.2377
L 106.1406 104.2723
A 1.09 1.09 0.0 0 0 106.5422 105.7606
L 150.5112 131.0439
A 1.09 1.09 0.0 0 0 151.9994 130.6423
L 152.0194 130.6077
Z"
/>
<rect fill="#ffffff" x="-26.43" y="-1.11" transform="translate(70.91,117.45) rotate(-29.9)" width="52.86"
height="2.22" rx="1.09"/>
<rect fill="#ffffff" x="-26.45" y="-1.11" transform="translate(129.08,117.44) rotate(29.9)" width="52.90"
height="2.22" rx="1.09"/>
</svg>

After

Width:  |  Height:  |  Size: 7.9 KiB

22
index.html Normal file
View File

@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<meta name="theme-color" content="#000000" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="apple-touch-icon" href="./pwa-192x192.png" />
<title>metacubexd</title>
<script type="module" crossorigin src="./assets/index-DWMGWNy8.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BVqcsp-M.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" style="display: contents"></div>
</body>
</html>

1
manifest.webmanifest Normal file
View File

@ -0,0 +1 @@
{"name":"metacubexd","short_name":"metacubexd","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]}

BIN
maskable-icon-512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
pwa-192x192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
pwa-512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
pwa-64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

1
registerSW.js Normal file
View File

@ -0,0 +1 @@
if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})}

1
sw.js Normal file
View File

@ -0,0 +1 @@
if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didnt register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let o={};const t=s=>i(s,l),u={module:{uri:l},exports:o,require:t};e[l]=Promise.all(n.map((s=>u[s]||t(s)))).then((s=>(r(...s),o)))}}define(["./workbox-e1498109"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/Config-mfHMd71S.js",revision:null},{url:"assets/Connections-C4lDijqW.js",revision:null},{url:"assets/global-BCvoRSag.js",revision:null},{url:"assets/index-6_sXLHMR.js",revision:null},{url:"assets/index-BVqcsp-M.css",revision:null},{url:"assets/Logs-KOUcZ2qF.js",revision:null},{url:"assets/Overview-De_zu9wR.js",revision:null},{url:"assets/Proxies-DgzLrzio.js",revision:null},{url:"assets/Rules-DrUtyF7O.js",revision:null},{url:"assets/Setup-CqaOhgQf.js",revision:null},{url:"index.html",revision:"134ff89e7844395ff8b6e409d3260e26"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"f5b3372f312fbbe60a6ed8c03741ff80"},{url:"pwa-192x192.png",revision:"c45f48fc59b5bf47e6cbf1626aff51fc"},{url:"pwa-512x512.png",revision:"a311504ae6a46bd29b5678a410aaafc6"},{url:"manifest.webmanifest",revision:"4d78c8bc6207146065400ff644fe5a13"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));

1
workbox-e1498109.js Normal file

File diff suppressed because one or more lines are too long