update 2024-12-02 16:29:44

This commit is contained in:
kenzok8 2024-12-02 16:29:44 +08:00
parent 9be5a1567d
commit 39d9e0708f
61 changed files with 182 additions and 2323 deletions

View File

@ -61,7 +61,7 @@ CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE=$(if $(CONFIG_UA2F_DEBUG_BUILD),Debug,Release)
ifeq ($(CONFIG_UA2F_DEBUG_BUILD),y)
PKG_BUILD_FLAGS += no-strip
STRIP:=true
endif
define Package/ua2f/description

View File

@ -14,8 +14,10 @@ if ($port_output === null) {
}
$yacd_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/meta?hostname=' . $neko_cfg['ctrl_host'] . '&port=' . $neko_cfg['ctrl_port'] . '&secret=' . $neko_cfg['secret'];
$zash_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/zashboard?hostname=' . $neko_cfg['ctrl_host'] . '&port=' . $neko_cfg['ctrl_port'] . '&secret=' . $neko_cfg['secret'];
$meta_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/metacubexd?hostname=' . $neko_cfg['ctrl_host'] . '&port=' . $neko_cfg['ctrl_port'] . '&secret=' . $neko_cfg['secret'];
$dashboard_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/dashboard?hostname=' . $neko_cfg['ctrl_host'] . '&port=' . $neko_cfg['ctrl_port'] . '&secret=' . $neko_cfg['secret'];
$dash_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/dashboard?hostname=' . $neko_cfg['ctrl_host'] . '&port=' . $neko_cfg['ctrl_port'] . '&secret=' . $neko_cfg['secret'];
?>
<!doctype html>
@ -45,12 +47,13 @@ $dashboard_link = $neko_cfg['ctrl_host'] . ':' . $neko_cfg['ctrl_port'] . '/ui/d
<div class="container h-100 mb-5">
<h2 class="text-center p-2">Meta 面板</h2>
<button id="fullscreenToggle" class="btn btn-primary mb-2">全屏</button>
<iframe id="iframeMeta" class="border border-3 rounded-4 w-100" style="height: 88vh;" src="http://<?php echo $yacd_link; ?>" title="yacd" allowfullscreen></iframe>
<iframe id="iframeMeta" class="border border-3 rounded-4 w-100" style="height: 75vh;" src="http://<?php echo $zash_link; ?>" title="zash" allowfullscreen></iframe>
<table class="table table-borderless callout mb-2">
<tbody>
<tr class="text-center d-flex flex-wrap justify-content-center">
<td><a class="btn btn-info btn-sm text-white" target="_blank" href="http://<?php echo $yacd_link; ?>">YACD-META 面板</a></td>
<td><a class="btn btn-info btn-sm text-white" target="_blank" href="http://<?php echo $dashboard_link; ?>">DASHBOARD 面板</a></td>
<td><a class="btn btn-info btn-sm text-white" target="_blank" href="http://<?php echo $zash_link; ?>">ZASH 面板</a></td>
<td><a class="btn btn-info btn-sm text-white" target="_blank" href="http://<?php echo $dash_link; ?>">DASHBOARD 面板</a></td>
<td><a class="btn btn-info btn-sm text-white" target="_blank" href="http://<?php echo $meta_link; ?>">METACUBEXD 面板</a></td>
</tr>
</tbody>

Binary file not shown.

Before

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as t,bv as r}from"./index-CvtbhWKk.js";const o=({children:e})=>t(r,{get children(){return[e," - MetaCubeXD"]}});export{o as D};

View File

@ -1 +0,0 @@
import{d as t,bw as r}from"./index-CWCcHU9x.js";const o=({children:e})=>t(r,{get children(){return[e," - MetaCubeXD"]}});export{o as D};

View File

@ -1,6 +0,0 @@
import{N as o}from"./index-CWCcHU9x.js";/**
* @license @tabler/icons-solidjs v3.19.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
*/var e=o("outline","reload","IconReload",[["path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}],["path",{d:"M20 4v5h-5"}]]);export{e as I};

View File

@ -1,6 +0,0 @@
import{N as o}from"./index-CvtbhWKk.js";/**
* @license @tabler/icons-solidjs v3.19.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
*/var e=o("outline","reload","IconReload",[["path",{d:"M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"}],["path",{d:"M20 4v5h-5"}]]);export{e as I};

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{u as T,a as q,b as z,c as H,v as M,o as N,e as h,d,f as X,i as o,g as G,S as J,B as U,I as K,F as O,t as y,z as b,h as C,s as w,j as Q,k as W,l as E,m as Y,n as Z}from"./index-CWCcHU9x.js";import{D as tt}from"./DocumentTitle-D8u3UFYZ.js";var a=[];for(var x=0;x<256;++x)a.push((x+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 g,nt=new Uint8Array(16);function st(){if(!g&&(g=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!g))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return g(nt)}var at=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const R={randomUUID:at};function lt(t,n,$){if(R.randomUUID&&!n&&!t)return R.randomUUID();t=t||{};var i=t.random||(t.rng||st)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,et(i)}var rt=y("<option>"),it=y('<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=y('<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()}),pt=()=>{const[t]=T(),n=q(),$=z(),i=s=>{E(s),$("/overview",{replace:!0})},I=async s=>{const e=h().find(l=>l.id===s);e&&await C(e.url,e.secret)&&i(s)},f=async({url:s,secret:e})=>{const l=Z(s);if(!await C(l,e))return;const r=lt(),c=h().slice(),u=c.find(v=>v.url===l);if(!u){w([{id:r,url:l,secret:e},...c]),i(r);return}u.secret=e,u.id=r,w(c),i(r)},L=s=>{const{message:e}=s;Q.error(e)},{form:_}=H({extend:M({schema:ct}),onSubmit:f,onError:L}),D=s=>{W()===s&&E(""),w(h().filter(e=>e.id!==s))};return N(async()=>{var l,r;const s=n.search||window.location.search||((r=(l=n.hash.match(/\?.*$/))==null?void 0:l[0])==null?void 0:r.replace("?",""));if(!s)return;const e=new URLSearchParams(s);e.has("hostname")?await f({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")??""}):h().length===0&&await f({url:"http://127.0.0.1:9090",secret:""})}),[d(tt,{get children(){return t("setup")}}),(()=>{var s=it(),e=s.firstChild,l=e.firstChild,r=l.firstChild,c=r.firstChild,u=c.firstChild,v=c.nextSibling,S=v.nextSibling;S.firstChild;var k=r.nextSibling,j=k.firstChild,V=j.firstChild,F=e.nextSibling;return X(_,e,()=>_),o(u,()=>t("endpointURL")),o(S,d(J,{get when(){return window.location.origin!=="http://127.0.0.1:9090"},get children(){var p=rt();return G(()=>p.value=window.location.origin),p}}),null),o(V,()=>t("secret")),o(l,d(U,{type:"submit",class:"btn-primary uppercase",get children(){return t("add")}}),null),o(F,d(O,{get each(){return h()},children:({id:p,url:P})=>(()=>{var m=ot(),A=m.firstChild;return m.$$click=()=>I(p),o(A,P),o(m,d(U,{class:"btn-circle btn-ghost btn-xs text-white",onClick:B=>{B.stopPropagation(),D(p)},get children(){return d(K,{})}}),null),m})()})),s})()]};Y(["click"]);export{pt as default};

View File

@ -1 +0,0 @@
import{u as T,a as q,b as z,c as H,v as M,o as N,e as h,d,f as X,i as o,g as G,S as J,B as U,I as K,F as O,t as y,z as b,h as C,s as w,j as Q,k as W,l as E,m as Y,n as Z}from"./index-CvtbhWKk.js";import{D as tt}from"./DocumentTitle-CAyQkV9I.js";var a=[];for(var x=0;x<256;++x)a.push((x+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 g,nt=new Uint8Array(16);function st(){if(!g&&(g=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!g))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return g(nt)}var at=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const R={randomUUID:at};function lt(t,n,$){if(R.randomUUID&&!n&&!t)return R.randomUUID();t=t||{};var i=t.random||(t.rng||st)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,et(i)}var rt=y("<option>"),it=y('<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=y('<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()}),pt=()=>{const[t]=T(),n=q(),$=z(),i=s=>{E(s),$("/overview",{replace:!0})},I=async s=>{const e=h().find(l=>l.id===s);e&&await C(e.url,e.secret)&&i(s)},f=async({url:s,secret:e})=>{const l=Z(s);if(!await C(l,e))return;const r=lt(),c=h().slice(),u=c.find(v=>v.url===l);if(!u){w([{id:r,url:l,secret:e},...c]),i(r);return}u.secret=e,u.id=r,w(c),i(r)},L=s=>{const{message:e}=s;Q.error(e)},{form:_}=H({extend:M({schema:ct}),onSubmit:f,onError:L}),D=s=>{W()===s&&E(""),w(h().filter(e=>e.id!==s))};return N(async()=>{var l,r;const s=n.search||window.location.search||((r=(l=n.hash.match(/\?.*$/))==null?void 0:l[0])==null?void 0:r.replace("?",""));if(!s)return;const e=new URLSearchParams(s);e.has("hostname")?await f({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")??""}):h().length===0&&await f({url:"http://127.0.0.1:9090",secret:""})}),[d(tt,{get children(){return t("setup")}}),(()=>{var s=it(),e=s.firstChild,l=e.firstChild,r=l.firstChild,c=r.firstChild,u=c.firstChild,v=c.nextSibling,S=v.nextSibling;S.firstChild;var k=r.nextSibling,j=k.firstChild,V=j.firstChild,F=e.nextSibling;return X(_,e,()=>_),o(u,()=>t("endpointURL")),o(S,d(J,{get when(){return window.location.origin!=="http://127.0.0.1:9090"},get children(){var p=rt();return G(()=>p.value=window.location.origin),p}}),null),o(V,()=>t("secret")),o(l,d(U,{type:"submit",class:"btn-primary uppercase",get children(){return t("add")}}),null),o(F,d(O,{get each(){return h()},children:({id:p,url:P})=>(()=>{var m=ot(),A=m.firstChild;return m.$$click=()=>I(p),o(A,P),o(m,d(U,{class:"btn-circle btn-ghost btn-xs text-white",onClick:B=>{B.stopPropagation(),D(p)},get children(){return d(K,{})}}),null),m})()})),s})()]};Y(["click"]);export{pt as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 900 B

View File

@ -1,270 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -1,21 +0,0 @@
<!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" />
<script type="module" crossorigin src="./assets/index-CWCcHU9x.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CPl7-mwU.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>

View File

@ -1 +0,0 @@
{"name":"MetaCubeXD","short_name":"MetaCubeXD","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","description":"Mihomo Dashboard, The Official One, XD","theme_color":"#000000","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"}]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 622 B

View File

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

View File

@ -1 +0,0 @@
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,l)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let o={};const t=s=>i(s,r),u={module:{uri:r},exports:o,require:t};e[r]=Promise.all(n.map((s=>u[s]||t(s)))).then((s=>(l(...s),o)))}}define(["./workbox-e1498109"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/Config-Bm4SqUAU.js",revision:null},{url:"assets/Connections-Cem71f_b.js",revision:null},{url:"assets/DocumentTitle-D8u3UFYZ.js",revision:null},{url:"assets/IconReload-CSirtLSr.js",revision:null},{url:"assets/index-CPl7-mwU.css",revision:null},{url:"assets/index-CWCcHU9x.js",revision:null},{url:"assets/index-D_x55i5g.js",revision:null},{url:"assets/Logs-Bdq4pE2l.js",revision:null},{url:"assets/Overview-BXvNHx8b.js",revision:null},{url:"assets/Proxies-B_m7hYmD.js",revision:null},{url:"assets/Rules-D5T2RkF5.js",revision:null},{url:"assets/Setup-CWTXf_9_.js",revision:null},{url:"assets/time-FFjAmWit.js",revision:null},{url:"index.html",revision:"8fa12e37d5842058990437d3db37c2a8"},{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:"f0952d333375ba4273b4372ffa349b8b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
<path fill-rule="evenodd" d="M11.622 1.602a.75.75 0 0 1 .756 0l2.25 1.313a.75.75 0 0 1-.756 1.295L12 3.118 10.128 4.21a.75.75 0 1 1-.756-1.295l2.25-1.313ZM5.898 5.81a.75.75 0 0 1-.27 1.025l-1.14.665 1.14.665a.75.75 0 1 1-.756 1.295L3.75 8.806v.944a.75.75 0 0 1-1.5 0V7.5a.75.75 0 0 1 .372-.648l2.25-1.312a.75.75 0 0 1 1.026.27Zm12.204 0a.75.75 0 0 1 1.026-.27l2.25 1.312a.75.75 0 0 1 .372.648v2.25a.75.75 0 0 1-1.5 0v-.944l-1.122.654a.75.75 0 1 1-.756-1.295l1.14-.665-1.14-.665a.75.75 0 0 1-.27-1.025Zm-9 5.25a.75.75 0 0 1 1.026-.27L12 11.882l1.872-1.092a.75.75 0 1 1 .756 1.295l-1.878 1.096V15a.75.75 0 0 1-1.5 0v-1.82l-1.878-1.095a.75.75 0 0 1-.27-1.025ZM3 13.5a.75.75 0 0 1 .75.75v1.82l1.878 1.095a.75.75 0 1 1-.756 1.295l-2.25-1.312a.75.75 0 0 1-.372-.648v-2.25A.75.75 0 0 1 3 13.5Zm18 0a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-.372.648l-2.25 1.312a.75.75 0 1 1-.756-1.295l1.878-1.096V14.25a.75.75 0 0 1 .75-.75Zm-9 5.25a.75.75 0 0 1 .75.75v.944l1.122-.654a.75.75 0 1 1 .756 1.295l-2.25 1.313a.75.75 0 0 1-.756 0l-2.25-1.313a.75.75 0 1 1 .756-1.295l1.122.654V19.5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd" />
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="./icon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>zashboard</title>
<script type="module" crossorigin src="./assets/index-psOWYy3c.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C3MbbmwJ.css">
</head>
<body>
<div id="app"></div>
</body>
</html>