🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

@@ -0,0 +1,4 @@
var De=Object.defineProperty,Ie=Object.defineProperties;var Me=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var ie=(e,s,n)=>s in e?De(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n,L=(e,s)=>{for(var n in s||(s={}))Le.call(s,n)&&ie(e,n,s[n]);if(ce)for(var n of ce(s))Pe.call(s,n)&&ie(e,n,s[n]);return e},ue=(e,s)=>Ie(e,Me(s));var Ae=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var V=(e,s,n)=>new Promise((a,o)=>{var l=r=>{try{i(n.next(r))}catch(v){o(v)}},d=r=>{try{i(n.throw(r))}catch(v){o(v)}},i=r=>r.done?a(r.value):Promise.resolve(r.value).then(l,d);i((n=n.apply(e,s)).next())});import{c as Ge,d as Ne,a as F,r as w,w as ze,v as Oe,o as p,b as h,e as t,t as m,p as B,f as T,g as O,u as k,F as x,n as X,h as j,i as je,j as qe,k as Q,l as ve,m as He,q as P,s as Ue,x as Z,y as q,z as ee,A,B as Ve}from"./vendor.js?c6e33ea3";var En=Ae(J=>{const We=function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerpolicy&&(l.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?l.credentials="include":o.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}};We();const Re=Ge(),Ye=Ne("theme",{state:()=>({popups:0}),getters:{}}),pe=()=>Re,I=window.L;var de;const he=((de=window==null?void 0:window.ThemeDog)==null?void 0:de.BaseURL)||"";var _e;const me=((_e=window==null?void 0:window.ThemeDog)==null?void 0:_e.HostName)||"",Xe=(window==null?void 0:window.ThemeDog.BG)||"/luci-static/themedog/image/bg.gif",ge=e=>he+"/icons/"+e+".png",fe=()=>me,ye=()=>new Promise((e,s)=>{if(!I){s([]);return}I.require("ui").then(function(n){if(n.menu){window.onbeforeunload=o=>{n.menu.flushCache()};const a=(o,l,d)=>{let i=[],r=(d||0)+1,v=n.menu.getChildren(o);if(v.length==0||r>2)return[];for(let g=0;g<v.length;g++){let f={title:window._(v[g].title),name:v[g].name,href:window.L.url(l,v[g].name),level:r,paths:[],isActive:window.L.env.dispatchpath[r]==v[g].name,children:[]};f.paths!=null&&(f.paths.push(o.name,v[g].name),f.children=a(v[g],l+"/"+v[g].name,r),i.push(f))}return i};n.menu.load().then(function(){let o=n.menu.getChildren();for(let l=0;l<o.length;l++)if(o[l].order&&o[l].order,I.env.requestpath.length?o[l].name==I.env.requestpath[0]:l==0){const i=a(o[l],o[l].name,0);e(i)}})}else e([])})}),we=()=>I.rpc.declare({object:"system",method:"board",expect:{}}),Ke=()=>I.rpc.declare({object:"system",method:"info",expect:{memory:{}}}),Je=()=>new Promise((e,s)=>{I.rpc.declare({object:"system",method:"info",expect:{localtime:0}})().then(a=>{e(a||0)}).catch(a=>{s(a)})}),Qe=()=>{window.L.network.getDevices().then(e=>{for(let s=0;s<e.length;s++)if(e[s].getCarrier())return!0;return!1})},Ze=()=>new Promise((e,s)=>{try{window.L.network.getWANNetworks().then(n=>{for(let a=0;a<n.length;a++){const l=n[a].isUp();if(l){e(l);return}}e(!1)})}catch(n){s(n)}}),$e=()=>window.L.rpc.declare({object:"system",method:"reboot"}),et=()=>window.L.network.getHostHints(),K=()=>new Promise((e,s)=>{try{I.require("network").then(n=>{n&&(n.getNetwork("wan").then(a=>{if(a){const o=a.getDevice();if(o)return e({up:o.getTXBytes(),down:o.getRXBytes()})}}),n.flushCache())})}catch(n){s(n)}});var tt=Object.freeze(Object.defineProperty({__proto__:null,BaseURL:he,HostName:me,BG:Xe,getIconBasePath:ge,getLOGO:fe,getNavMenus:ye,getSystemInfoBoard:we,getSystemInfoMemory:Ke,getSystemInfoLocaltime:Je,getNetworkDevices:Qe,getNetworksIsUp:Ze,reboot:$e,getNetworkHostHints:et,getUpDownData:K},Symbol.toStringTag,{value:"Module"}));const te=()=>new Date().getTime(),ke=(e,s)=>V(J,null,function*(){return new Promise((n,a)=>V(J,null,function*(){try{const o=yield fetch(e,s),l=L({},o);l.data=yield o.json(),n(l)}catch(o){a(o)}}))}),H=(e,s)=>ke(`/cgi-bin/luci/admin/themedog/api${e}`,s),be={GET(){return H("/status",{method:"GET"})}},Ce={GET(){return H("/cpu",{method:"GET"})}},xe={GET(){return H("/memory",{method:"GET"})}},Ee={GET(){return H("/version",{method:"GET"})}},Fe={GET(){return ke(`https://cdn.jsdelivr.net/gh/Carseason/openwrt-themedog/rpc/version.json?t=${te()}`,{method:"GET"})}},Be={BG:{POST(e){return H("/upload-bg",{method:"POST",body:e})}}};var st=Object.freeze(Object.defineProperty({__proto__:null,getTime:te,Status:be,Cpu:Ce,Memory:xe,LocalVersion:Ee,RemotelyVersion:Fe,Upload:Be},Symbol.toStringTag,{value:"Module"}));L(L({},tt),st);var S=(e,s)=>{const n=e.__vccOpts||e;for(const[a,o]of s)n[a]=o;return n};const se=e=>(B("data-v-f620deee"),e=e(),T(),e),nt={class:"themedog-iframe"},ot={classLine truncated
background: none !important;
color-scheme: none !important;
}`,i.contentWindow.document.head.appendChild(r)}}if(s.task.href=="/cgi-bin/luci/admin/store"&&n.value){const i=n.value;i.contentWindow&&(i.contentWindow.onclick=r=>{l(r)})}},l=d=>{var i,r;if(d.target){const v=d.target;if(v.tagName=="A"&&v.className=="app-btn cbi-button cbi-button-apply"&&v.textContent=="\u6253\u5F00"){const g=d.composedPath();let f="",$="";const C=v.getAttribute("href")||"";if(g.length>2){const D=g[2];$=((i=D.querySelector(".app-title"))==null?void 0:i.getAttribute("title"))||"",f=((r=D.querySelector("span.app-name"))==null?void 0:r.textContent)||""}s.onOpenTask({title:f,name:$,href:C,paths:[],level:0,isActive:!1,children:[]}),d.preventDefault()}}};return(d,i)=>ze((p(),h("div",nt,[(p(),h("div",{class:"themedog-iframe_main",key:a.value},[t("div",ot,[t("span",null,m(e.task.title),1),t("div",at,[t("button",{class:"btn-refresh",onClick:i[0]||(i[0]=r=>a.value++)},ct),t("button",{class:"btn-full",onClick:i[1]||(i[1]=r=>e.onHiddenTask(e.i))},ut),t("button",{class:"btn-close",onClick:i[2]||(i[2]=r=>e.onClearTask(e.i))},dt)])]),t("div",_t,[t("iframe",{class:"themedog-iframe_container",allowfullscreen:"true",mozallowfullscreen:"mozallowfullscreen",msallowfullscreen:"msallowfullscreen",oallowfullscreen:"oallowfullscreen",webkitallowfullscreen:"webkitallowfullscreen",src:e.task.href,task:e.task.href=="/cgi-bin/luci/admin/store",onLoad:o,ref_key:"el",ref:n},null,40,vt)])]))],512)),[[Oe,e.task.href==e.ontask]])}});var ht=S(pt,[["__scopeId","data-v-f620deee"]]);const mt=e=>{if(e)try{var s=new Date(Number(e)*1e3),n=s.getHours(),a=s.getMinutes();let o=s.getSeconds();return n<10&&(n=`0${n}`),a<10&&(a=`0${a}`),o<10&&(o=`0${o}`),`${n}:${a} ${o}`}catch(o){}return""},gt=e=>{if(e)try{var s=new Date(Number(e)*1e3),n=s.getFullYear(),a=s.getMonth()+1,o=s.getDate();return n+"\u5E74"+a+"\u6708"+o+"\u65E5 "}catch(l){}return""},ft=e=>{if(e<1e3)return`${e}/B`;let n=1e3,a=0;for(let d=e/1e3;d>=1e3;d/=1e3)n*=1e3,a++;let o=["/KB","/MB","/GB","/TB","/PB","/EB"];return(e/100/(n/100)).toFixed(1)+o[a]},yt=e=>{if(e<1024)return""+e+"KB";let n=1024,a=0;for(let l=e/1024;l>=1024;l/=1024)n*=1024,a++;let o=["M","G","T","P","E"];return(e/100/(n/100)).toFixed(2)+o[a]};var wt=Object.freeze(Object.defineProperty({__proto__:null,dateForm:mt,dateYearDayForm:gt,byteToSize:ft,numberToSize:yt},Symbol.toStringTag,{value:"Module"})),W=L({},wt);const Te=e=>(B("data-v-38a7653c"),e=e(),T(),e),$t={class:"total"},kt={class:"memory"},bt=Te(()=>t("span",null,"CPU",-1)),Ct={class:"progress"},xt={class:"memory"},Et=Te(()=>t("span",null,"\u5185\u5B58",-1)),Ft={class:"progress"},Bt={class:"up"},Tt={class:"date"},St=F({setup(e){const s=w(""),n=w(""),a=w(),o=w(),l=w(0),d=w(0),i=()=>{r(),v(),setInterval(()=>{v()},5e3)},r=()=>{be.GET().then(c=>{var _;if(((_=c==null?void 0:c.data)==null?void 0:_.success)==!0){const u=c.data.result;if(u!=null){let y=u.locallTime||0;n.value=W.dateForm(`${y}`),s.value=W.dateYearDayForm(`${y}`),setInterval(()=>{n.value=W.dateForm(`${y++}`)},1e3)}}})},v=()=>V(this,null,function*(){Ce.GET().then(c=>{var _;if(((_=c==null?void 0:c.data)==null?void 0:_.success)==!0){const u=c.data.result;u!=null&&(a.value=u)}}),xe.GET().then(c=>{var _;if(((_=c==null?void 0:c.data)==null?void 0:_.success)==!0){const u=c.data.result;u!=null&&(o.value=u)}});try{let c=0,_=0,u=0,y=0;const b=yield K();b&&(c=b.up||0,_=b.down||0);const Y=yield g();Y&&(u=Y.up||0,y=Y.down||0);const ae=u-c,le=y-_;ae>=0&&le>=0?(l.value=ae,d.value=le):(l.value=0,d.value=0)}catch(c){}}),g=()=>new Promise((c,_)=>{setTimeout(()=>{const u=K();c(u)},1e3)});i();const f=O(()=>{if(o.value==null)return null;const c=o.value;return c.available!=null&&c.total!=null?(100-c.available/c.total*100).toFixed(2):0}),$=O(()=>{if(a.value==null)return null;const c=a.value;return c.available!=null&&c.total!=null?(100-c.available/c.total*100).toFixed(2):0}),C=W.byteToSize,D=c=>{let _={height:`${c}%`};return c>=80?_.background="#ff0000":c>=60?_.background="#ff9900":c>=40&&(_.background="#3eff08"),_};return(c,_)=>(p(),h("div",$t,[k($)!=null?(p(),h(x,{key:0},[t("div",kt,[t("span",null,m(k($))+"%",1),bt]),t("div",Ct,[t("em",{style:X(D(k($)))},null,4)])],64)):j("",!0),k(f)!=null?(p(),h(x,{key:1},[t("div",xt,[t("span",null,m(k(f))+"%",1),Et]),t("div",Ft,[t("em",{style:X(D(k(f)))},null,4)])],64)):j("",!0),t("div",Bt,[t("span",null,m(k(C)(l.value))+" | \u4E0A\u4F20",1),t("span",null,m(k(C)(d.value))+" | \u4E0B\u8F7D",1)]),t("div",Tt,[t("span",null,m(n.value),1),t("span",null,m(s.value),1)])]))}});var Dt=S(St,[["__scopeId","data-v-38a7653c"]]);const R=e=>(B("data-v-2b644944"),e=e(),T(),e),It={key:0,class:"loading icon"},Mt=R(()=>t("svg",{t:"1631799919469",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3453",width:"128",height:"128"},[t("path",{d:"M522.695111 1.991111c-26.339556 0.170667-47.416889 21.475556-47.672889 48.753778-0.284444 26.453333-0.056889 52.963556-0.056889 79.445333 0 27.249778-0.369778 54.528 0.113778 81.777778 0.483556 27.050667 22.016 47. Line truncated
@@ -0,0 +1 @@
*{scrollbar-width:none;-ms-overflow-style:none}::-webkit-scrollbar{width:0;height:0;display:none}::-webkit-scrollbar-thumb{display:none}::-webkit-scrollbar-track-piece{display:none}@keyframes dialogEnter{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes dialogLeave{0%{transform:scale(1)}to{transform:scale(0)}}.dialog-enter-active{animation:dialogEnter .35s linear forwards}.dialog-leave-active{animation:dialogLeave .35s linear forwards}*{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:transparent;box-sizing:border-box;word-wrap:break-word;outline:none}html,body{-webkit-overflow-scrolling:touch;overflow:hidden}body{font-size:14px;font-weight:500;font-style:normal;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;flex-direction:column;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0;-moz-osx-font-smoothing:grayscale}body{padding:0;margin:0;background-color:#181c20!important;background:url(/luci-static/themedog/image/bg.gif) no-repeat center center fixed;background-size:100% 100%}body #maincontent{display:none}body #maincontent .alert-message.fade-in.danger,body #maincontent .alert-message.fade-in.warning{max-width:1100px;width:100%;margin:0 auto;background:rgba(0,0,0,.7);padding:1rem 1.5rem;border-radius:1rem}body #maincontent .alert-message.fade-in.warning.fade-out{display:none!important}body.modal-overlay-active #modal_overlay{position:fixed;z-index:900;inset:0;overflow:auto;transition:opacity .125s ease-in}body.modal-overlay-active #modal_overlay .modal{width:90%;margin:5em auto;min-height:32px;max-width:600px;border-radius:3px;padding:1em 1em .5em;min-width:270px;color:#fff;text-align:center;background-color:#181c20c7;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}body.modal-overlay-active #modal_overlay .modal .btn.primary{margin:1rem 0;background-color:#ab0015;border-radius:3px;padding:5px 0;cursor:pointer}body.modal-overlay-active #modal_overlay .modal .btn.primary:hover{opacity:.9}body #themedog_loginer{width:100%;height:100vh;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;align-content:center;padding:1rem}body #themedog_loginer .loginer-container{max-width:500px;flex:0 0 100%;width:100%}body #themedog_loginer .loginer-container .login-logo{width:100%;display:block;text-align:center;font-size:3rem;color:#fff;margin:0;margin-bottom:1rem;font-weight:700}body #themedog_loginer .loginer-container .login-message{width:100%;line-height:48px;display:block;text-align:center;color:#45fff0;font-size:20px}body #themedog_loginer .loginer-container form{width:100%;display:block}body #themedog_loginer .loginer-container form .cbi-value{width:100%;height:68px;font-size:28px;border:none;outline:none;border-bottom:2px solid #70000e;border-radius:4px;background-color:#00000080;margin:1rem 0;position:relative}body #themedog_loginer .loginer-container form .cbi-value:hover{transition:.3s;border-bottom:2px solid #ab0015}body #themedog_loginer .loginer-container form .cbi-value .cbi-value-field{width:100%;height:100%;display:block;padding-left:1rem;padding-right:1rem}body #themedog_loginer .loginer-container form .cbi-value .cbi-value-field input{width:100%;display:block;height:100%;background:none;color:#fff;font-size:20px;font-weight:700;border:none}body #themedog_loginer .loginer-container form .cbi-page-actions{width:100%;text-align:center;margin-top:2rem}body #themedog_loginer .loginer-container form .cbi-page-actions button.btn.cbi-button-positive.important{width:250px;height:60px;line-height:60px;border:2px solid #842500;background:#141618;border-radius:8px;color:#fff;text-align:center;font-size:28px;cursor:pointer}body #themedog_loginer .loginer-container form .cbi-page-actions button.btn.cbi-button-positive.important:hover{transition:.3s;border:2px solid #ab0015}body #themedog{width:100%;height:100vh;position:relative}body #themedog,body #themedog *{-webkit-box-sizing:border-box;-webkit-tap-highlight-color:transparent;box-sizing:border-box;word-wrap:break-word;outline:none}body #themedog ul,body #themedog li{margin:0;padding:0}.themedog-iframe[data-v-f620deee]{position:fixed;z-index:99;inset:0;width:100%;height:calc(100% - 42px);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.themedog-iframe .themedog-iframe_main[data-v-f620deee]{width:100%;height:100%;max-width:100%;max-height:100%;box-shadow:0 2px 20px 3px #000c;border:1px solid #2e2e2e}.themedog-iframe .themedog-iframe_main .themedog-iframe_header[data-v-f620deee]{width:100%;height:34px;padding:0 1rem;background-color:#383839;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.themedog-iframe .themedog-iframe_main .themedog-iframe_header>span[data-v-f620deee]{display:inline-block;overflow:hidden;text-overflow:ellipsis;color:#eee;font-size:15px;font-weight:600;text-align:left}.themedog-iframe .themedog-iframe_main .theLine truncated
@@ -0,0 +1,5 @@
function Pn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Wr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zr=Pn(Wr);function Fs(e){return!!e||e===""}function In(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Q(s)?Vr(s):In(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(Q(e))return e;if(G(e))return e}}const kr=/;(?![^(]*\))/g,qr=/:(.+)/;function Vr(e){const t={};return e.split(kr).forEach(n=>{if(n){const s=n.split(qr);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Fn(e){let t="";if(Q(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const s=Fn(e[n]);s&&(t+=s+" ")}else if(G(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const wl=e=>Q(e)?e:e==null?"":I(e)||G(e)&&(e.toString===Rs||!F(e.toString))?JSON.stringify(e,Ms,2):String(e),Ms=(e,t)=>t&&t.__v_isRef?Ms(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()]}:G(t)&&!I(t)&&!js(t)?String(t):t,$={},nt=[],be=()=>{},Jr=()=>!1,Yr=/^on[^a-z]/,$t=e=>Yr.test(e),Mn=e=>e.startsWith("onUpdate:"),te=Object.assign,Sn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xr=Object.prototype.hasOwnProperty,L=(e,t)=>Xr.call(e,t),I=Array.isArray,st=e=>Dt(e)==="[object Map]",Ss=e=>Dt(e)==="[object Set]",F=e=>typeof e=="function",Q=e=>typeof e=="string",Nn=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",Ns=e=>G(e)&&F(e.then)&&F(e.catch),Rs=Object.prototype.toString,Dt=e=>Rs.call(e),Zr=e=>Dt(e).slice(8,-1),js=e=>Dt(e)==="[object Object]",Rn=e=>Q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ft=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qr=/-(\w)/g,Te=Wt(e=>e.replace(Qr,(t,n)=>n?n.toUpperCase():"")),Gr=/\B([A-Z])/g,lt=Wt(e=>e.replace(Gr,"-$1").toLowerCase()),zt=Wt(e=>e.charAt(0).toUpperCase()+e.slice(1)),sn=Wt(e=>e?`on${zt(e)}`:""),yt=(e,t)=>!Object.is(e,t),rn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Rt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},eo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ns;const to=()=>ns||(ns=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Pe;class Ls{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Pe&&(this.parent=Pe,this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}run(t){if(this.active)try{return Pe=this,t()}finally{Pe=this.parent}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function Bs(e){return new Ls(e)}function no(e,t=Pe){t&&t.active&&t.effects.push(e)}const jn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hs=e=>(e.w&Ue)>0,Ks=e=>(e.n&Ue)>0,so=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ue},ro=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Hs(r)&&!Ks(r)?r.delete(e):t[n++]=r,r.w&=~Ue,r.n&=~Ue}t.length=n}},un=new WeakMap;let ht=0,Ue=1;const an=30;let Ee;const Ve=Symbol(""),dn=Symbol("");class Ln{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,no(this,s)}run(){if(!this.active)return this.fn();let t=Ee,n=Be;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ee,Ee=this,Be=!0,Ue=1<<++ht,ht<=an?so(this):ss(this),this.fn()}finally{ht<=an&&ro(this),Ue=1<<--ht,Ee=this.parent,Be=n,this.parent=void 0}}stop(){this.active&&(ss(this),this.onStop&&this.onStop(),this.active=!1)}}function ss(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Be=!0;const Us=[];function ct(){Us.push(Be),Be=!1}function ft(){const e=Us.pop();Be=e===void 0?!0:e}function de(e,t,n){if(Be&&Ee){let s=un.get(e);s||un.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=jn()),$s(r)}}function $s(e,t){let n=!1;ht<=an?Ks(e)||(e.n|=Ue,n=!Hs(e)):n=!e.has(Ee),n&&(e.add(Ee),Ee.deps.push(e))}function Me(e,t,n,s,r,o){const i=un.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&I(e))i.forEach((u,a)=>{(a==="length"||a>=s)&&l.push(u)});else switch(n!==void 0&&l.push(i.get(n)),t){case"add":I(e)?Rn(n)&&l.push(i.get("length")):(l.push(i.get(Ve)),st(e)&&l.push(i.get(dn)));break;case"delete":I(e)||(l.push(i.get(Ve)),st(e)&&l.push(i.get(dn)));break;case"set":st(e)&&l.push(i.get(Ve));break}if(l.length===1)l[0]&&hn(l[0]);else{const u=[];for(const a of l)a&&u.push(...a);hn(jn(u))}}function hn(e,t){for(const n of I(e)?e:[...e])(n!==ELine truncated
* pinia v2.0.13
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/let Br;const Qt=e=>Br=e,Hr=Symbol();function An(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bt||(bt={}));function jl(){const e=Bs(!0),t=e.run(()=>Gs({}));let n=[],s=[];const r=rt({install(o){Qt(r),r._a=o,o.provide(Hr,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!_l?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Kr=()=>{};function Is(e,t,n,s=Kr){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&Yn()&&kn(r),r}function Ge(e,...t){e.slice().forEach(n=>{n(...t)})}function On(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];An(r)&&An(s)&&e.hasOwnProperty(n)&&!J(s)&&!He(s)?e[n]=On(r,s):e[n]=s}return e}const bl=Symbol();function yl(e){return!An(e)||!e.hasOwnProperty(bl)}const{assign:Ie}=Object;function xl(e){return!!(J(e)&&e.effect)}function Cl(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let u;function a(){l||(n.state.value[e]=r?r():{});const g=Ro(n.state.value[e]);return Ie(g,o,Object.keys(i||{}).reduce((x,C)=>(x[C]=rt(jr(()=>{Qt(n);const O=n._s.get(e);return i[C].call(O,O)})),x),{}))}return u=Ur(e,a,t,n),u.$reset=function(){const x=r?r():{};this.$patch(C=>{Ie(C,x)})},u}function Ur(e,t,n={},s,r){let o;const i=n.state,l=Ie({actions:{}},n),u={deep:!0};let a,g,x=rt([]),C=rt([]),O;const S=s.state.value[e];!i&&!S&&(s.state.value[e]={}),Gs({});function R(K){let A;a=g=!1,typeof K=="function"?(K(s.state.value[e]),A={type:bt.patchFunction,storeId:e,events:O}):(On(s.state.value[e],K),A={type:bt.patchObject,payload:K,storeId:e,events:O}),nr().then(()=>{a=!0}),g=!0,Ge(x,A,s.state.value[e])}const M=Kr;function j(){o.stop(),x=[],C=[],s._s.delete(e)}function oe(K,A){return function(){Qt(s);const k=Array.from(arguments),D=[],ee=[];function ne(se){D.push(se)}function ce(se){ee.push(se)}Ge(C,{args:k,name:K,store:H,after:ne,onError:ce});let he;try{he=A.apply(this&&this.$id===e?this:H,k)}catch(se){throw Ge(ee,se),se}return he instanceof Promise?he.then(se=>(Ge(D,se),se)).catch(se=>(Ge(ee,se),Promise.reject(se))):(Ge(D,he),he)}}const Y={_p:s,$id:e,$onAction:Is.bind(null,C),$patch:R,$reset:M,$subscribe(K,A={}){const k=Is(x,K,A.detached,()=>D()),D=o.run(()=>St(()=>s.state.value[e],ee=>{(A.flush==="sync"?g:a)&&K({storeId:e,type:bt.direct,events:O},ee)},Ie({},u,A)));return k},$dispose:j},H=qt(Ie({},Y));s._s.set(e,H);const X=s._e.run(()=>(o=Bs(),o.run(()=>t())));for(const K in X){const A=X[K];if(J(A)&&!xl(A)||He(A))i||(S&&yl(A)&&(J(A)?A.value=S[K]:On(A,S[K])),s.state.value[e][K]=A);else if(typeof A=="function"){const k=oe(K,A);X[K]=k,l.actions[K]=A}}return Ie(H,X),Ie(B(H),X),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:K=>{R(A=>{Ie(A,K)})}}),s._p.forEach(K=>{Ie(H,o.run(()=>K({store:H,app:s._a,pinia:s,options:l})))}),S&&i&&n.hydrate&&n.hydrate(H.$state,S),a=!0,g=!0,H}function Ll(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,u){const a=Yn();return l=l||a&&Mt(Hr),l&&Qt(l),l=Br,l._s.has(s)||(o?Ur(s,t,r,l):Cl(s,r,l)),l._s.get(s)}return i.$id=s,i}export{Fl as A,ve as B,ge as F,Tl as a,Pl as b,jl as c,Ll as d,Mr as e,vl as f,jr as g,Il as h,pr as i,Sl as j,Rl as k,qt as l,Ml as m,In as n,Ar as o,El as p,Fn as q,Gs as r,Yn as s,wl as t,So as u,Nl as v,Al as w,Ol as x,Pr as y,ko as z};
File diff suppressed because it is too large. Load diff
+51
View File
@@ -0,0 +1,51 @@
:root {
--background-color-high-hsl: none;
--background-color-high: none;
--background-color-medium-hsl: none;
--background-color-medium: none;
--background-color-low-hsl: none;
--background-color-low: none;
--text-color-high: #eee;
}
#maincontent {
position: relative;
width: 100%;
max-width: 1180px;
margin: 0 auto;
padding: 3rem 1rem 1rem;
}
.alert-message.fade-in.warning {
max-width: 1100px;
width: 100%;
background: rgba(0, 0, 0, 0.7);
border-radius: 1rem;
margin: 0 auto;
padding: 1rem 1.5rem;
}
.alert-message.fade-in.warning.fade-out {
display: none !important;
}
/* html,body{
color-scheme: none !important;
}
body {
background: none !important;
background: url(/luci-static/themedog/image/bg.gif) no-repeat center center fixed;
} */
body{
background-color: #242424 !important;;
}
.modal {
background-color: #181c20c7;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
select{
background-color: #181c20c7;
}
option{
color: #fff;
}
.cbi-dropdown[open] > ul.dropdown {
background-color: #181c20;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

@@ -0,0 +1,39 @@
// 处理openwrt页面的三级菜单
function initTabmenus() {
L.require("ui").then(function (ui) {
var renderTabMenu = function (tree, url, level) {
var container = document.querySelector('#tabmenu')
var ul = E('ul', { 'class': 'tabs' })
var children = ui.menu.getChildren(tree)
for (var i = 0; i < children.length; i++) {
var isActive = (L.env.dispatchpath[3 + (level || 0)] == children[i].name)
var activeClass = isActive ? ' active' : ''
var className = 'tabmenu-item-%s %s'.format(children[i].name, activeClass)
var elA = [E('a', { 'href': L.url(url, children[i].name) }, [_(children[i].title)])]
var el = E('li', { 'class': className }, elA)
ul.appendChild(el);
}
if (ul.children.length == 0) {
return E([]);
}
container.appendChild(ul);
container.style.display = '';
return ul;
}
var Fu = function (tree) {
var node = tree
var url = ''
if (L.env.dispatchpath.length >= 3) {
for (var i = 0; i < 3 && node; i++) {
node = node.children[L.env.dispatchpath[i]];
url = url + (url ? '/' : '') + L.env.dispatchpath[i];
}
if (node) {
renderTabMenu(node, url);
}
}
}
ui.menu.load().then(L.bind(Fu))
})
}
initTabmenus()