mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 11:17:34 +08:00
2 lines
40 KiB
JavaScript
2 lines
40 KiB
JavaScript
var b=(i,u,t)=>new Promise((s,_)=>{var h=n=>{try{o(t.next(n))}catch(l){_(l)}},p=n=>{try{o(t.throw(n))}catch(l){_(l)}},o=n=>n.done?s(n.value):Promise.resolve(n.value).then(h,p);o((t=t.apply(i,u)).next())});import{d as F,I as Y,i as x,s as $,r as m,o as a,e as k,w as r,b as c,c as d,E as O,F as A,_ as y,O as X,C as M,T as G,Q as J,a as e,l as C,p as I,q as z,R as H,U,V as K,W as e1,g as L,j as q,m as E,H as t1,u as D,X as s1,k as n1,h as N,N as R,Y as a1,z as o1,n as i1,Z as l1,$ as T}from"./index.js?v=5b4be379";import{F as c1,a as u1,G as j}from"./chunk.ffd7724b.js";const Q=i=>(I("data-v-37664f80"),i=i(),z(),i),d1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u5E94\u7528\u5546\u5E97"),e("g",{id:"\u5E94\u7528\u5546\u5E97",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-4",transform:"translate(100.000000, 110.000000)"},[e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,295.333333 27,290 L27,70 C27,64.6666668 31.6725001,60 37.0125,60 L283.9875,60 C289.3275,60 294,64.6666668 294,70 L294,290 C294,295.333333 289.995,300 283.9875,300 Z",id:"Path",fill:"#F4F4F4","fill-rule":"nonzero"}),e("path",{d:"M283.9875,300 L37.0125,300 C31.6725001,300 27,298.852778 27,297.541667 L27,243.458333 C27,242.147222 31.6725001,241 37.0125,241 L283.9875,241 C289.3275,241 294,242.147222 294,243.458333 L294,297.541667 C294,298.852778 289.995,300 283.9875,300 Z",id:"Path",fill:"#CACACA","fill-rule":"nonzero"}),e("g",{id:"Group"},[e("g",{id:"Group-3"},[e("path",{d:"M95,0 L80,135 C80,157.09139 62.09139,175 40,175 C17.90861,175 0,157.09139 0,135 L34,0 L95,0 Z",id:"Path",fill:"#C0FFEA"}),e("path",{d:"M160,0 L160,135 C160,157.09139 142.09139,175 120,175 C97.90861,175 80,157.09139 80,135 C80,131.957009 80.3397951,128.993381 80.9835121,126.14499 L95,0 L160,0 Z",id:"Path",fill:"#01DE96"}),e("path",{d:"M160,0 L227,0 L239.258077,127.292436 C239.744914,129.78649 240,132.363456 240,135 C240,157.09139 222.09139,175 200,175 C177.90861,175 160,157.09139 160,135 L160,135 L160,0 Z",id:"Combined-Shape",fill:"#C0FFEA"}),e("path",{d:"M227,0 L288,0 L320,135 C320,157.09139 302.09139,175 280,175 C258.129524,175 240.35859,157.447771 240.005359,135.661473 L240,135 L227,0 Z",id:"Path",fill:"#01DE96"})]),e("g",{id:"Group-2",transform:"translate(0.000000, 135.000000)"},[e("path",{d:"M80,0 C80,22.09139 62.09139,40 40,40 C17.90861,40 0,22.09139 0,0 L80,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M160,0 C160,22.09139 142.09139,40 120,40 C97.90861,40 80,22.09139 80,0 L160,0 Z",id:"Path",fill:"#02C485"}),e("path",{d:"M240,0 C240,22.09139 222.09139,40 200,40 C178.129524,40 160.35859,22.4477713 160.005359,0.66147314 L160,0 L240,0 Z",id:"Path",fill:"#B3F1DD"}),e("path",{d:"M320,0 C320,22.09139 302.09139,40 280,40 C258.129524,40 240.35859,22.4477713 240.005359,0.66147314 L240,0 L320,0 Z",id:"Path",fill:"#02C485"})])])])])])]),e("div",{class:"app-name"}," \u5E94\u7528\u5546\u5E97 ")],-1)),_1=Q(()=>e("div",{class:"app-content"},[e("div",{class:"app-icon",style:{background:"none",padding:"0"}},[e("svg",{t:"1667208366992",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2669",width:"128",height:"128"},[e("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z",fill:"#E8EFF8","p-id":"2670"}),e("path",{d:"M141.637818 405.643636A23.272727 23.272727 0 0 0 160.814545 442.181818h350.487273a23.272727 23.272727 0 0 0 18.455273-37.469091L364.683636 190.161455a46.545455 46.545455 0 0 0-75.170909 1.88509l-147.874909 213.620364z",fill:"#69CB91","p-id":"2671"}),e("path",{d:"M337.454545 884.363636a174.545455 174.545455 0 1 0 0-349.090909 174.545455 174.545455 0 0 0 0 349.090909z",fill:"#247ADE","p-id":"2672"}),e("path",{d:"M907.636364 186.181818a23.272727 23.272727 0 0 0-23.272728-23.272727h-209.454545a23.272727 23.272727 0 0 0-23.272727 23.272727v674.909091a23.272727 23.272727 0 0 0 23.272727 23.272727h209.454545a23.272727 23.272727 0 0 0 23.272728-23.272727V186.181818z",fill:"#A0BFF7","p-id":"2673"})])]),e("div",{class:"app-name"}," NAS\u5957\u4EF6 ")],-1)),r1=["onClick"],p1={class:"app-icon"},v1=["src"],h1={class:"app-name"},m1={class:"app-footer"},g1=["onClick"],f1=["onClick"],C1={class:"app-content"},$1={class:"app-icon"},w1=["src"],F1={class:"app-name"},k1=F({__name:"index",setup(i){const u=Y(),t=x(()=>u.localApps.filter(n=>n.name!="istorex")),s=$(!1);(()=>b(this,null,function*(){yield u.getApp(),setTimeout(()=>{p()},2e3)}))();const h=()=>{X.Open()},p=()=>b(this,null,function*(){try{if((yield M.Quickstart.Guide.GlobalFolders.GET()).status!==200)return}catch(n){console.log(n);return}s.value=!0;try{const n=yield M.Storage.Get.POST({key:"nas_guide_init"});if(n.data){const{success:l,error:g,result:v}=n.data;if(v&&v.key=="nas_guide_init")return}}catch(n){return}o()}),o=()=>{if(!s.value){G.Warning("\u8BF7\u5148\u66F4\u65B0\u7CFB\u7EDF\u5230\u6700\u65B0\u7248\u672C");return}J.OpenGuideWindow()};return(n,l)=>{const g=m("nas-section-title"),v=m("nas-section-item"),w=m("nas-section-container"),P=m("nas-section");return a(),k(P,null,{default:r(()=>[c(g,{title:"Apps"}),c(w,{class:"section-app-container"},{default:r(()=>[c(v,{onClick:l[0]||(l[0]=f=>h())},{default:r(()=>[d1]),_:1}),c(v,{onClick:l[1]||(l[1]=f=>o())},{default:r(()=>[_1]),_:1}),(a(!0),d(A,null,O(t.value,f=>(a(),d(A,null,[f.isWebUrl()?(a(),k(v,{key:0,class:"app-item",name:f.name,title:f.title},{default:r(()=>[e("div",{class:"app-content",onClick:Z=>f.openWebUrl()},[e("div",p1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,v1)]),e("div",h1,C(f.title),1)],8,r1),e("div",m1,[e("button",{class:"open",onClick:Z=>f.openWebUrl()}," \u6253\u5F00 ",8,g1),e("button",{class:"setting",onClick:Z=>f.openApp()}," \u914D\u7F6E ",8,f1)])]),_:2},1032,["name","title"])):(a(),k(v,{key:1,onClick:Z=>f.openApp(),name:f.name,title:f.title},{default:r(()=>[e("div",C1,[e("div",$1,[e("img",{alt:"\u56FE\u6807\u51FA\u8D70\u5566~",src:f.getIcon()},null,8,w1)]),e("div",F1,C(f.title),1)])]),_:2},1032,["onClick","name","title"]))],64))),256))]),_:1})]),_:1})}}});var y1=y(k1,[["__scopeId","data-v-37664f80"]]);const E1=i=>(I("data-v-c01a3f98"),i=i(),z(),i),L1={class:"tabls"},x1=E1(()=>e("section",{class:"tab-content"},[e("div",{class:"label-value"},[e("div",{class:"label-name"},[e("span",null,"\u6302\u8F7D\u70B9")]),e("div",{class:"label-value"},[e("input",{type:"text"})])])],-1)),B1=F({__name:"index",props:{disk:{type:Object,required:!0},close:Function},setup(i){const u=i,t=()=>{o.value&&location.reload(),u.close&&u.close()},s=$("main"),_=$(!1),h=$(u.disk),p=$(null),o=$(!1);H("disk",h),H("updateDisk",l=>{h.value=l,o.value=!0}),H("disabled",_),H("onMount",l=>{p.value=l,s.value="mount"});const n=l=>{l=="mount"&&(p.value=null),s.value=l};return(l,g)=>(a(),k(K,{onHandleClose:t,title:"\u5171\u4EAB\u8BBE\u7F6E",width:"420px"},{default:r(()=>[e("ul",L1,[e("button",{class:U({on:s.value=="main"}),onClick:g[0]||(g[0]=v=>n("main"))},"Samba",2),e("button",{class:U({on:s.value=="partition"}),onClick:g[1]||(g[1]=v=>n("partition"))},"WebDav",2)]),x1]),_:1}))}});var b1=y(B1,[["__scopeId","data-v-c01a3f98"]]);class A1 extends e1{Open(){this.openWindow(b1)}}const D1=new A1;const B=i=>(I("data-v-2815b650"),i=i(),z(),i),S1=B(()=>e("div",{class:"tool-content"},[e("div",{class:"f"},[e("div",{class:"title"}," \u6587\u4EF6\u7BA1\u7406 "),e("div",{class:"desc"}," \u5728\u7EBF\u7BA1\u7406\u6587\u4EF6 "),e("div",{class:"btns"},[e("a",{href:"/cgi-bin/luci/admin/services/linkease/file",target:"_blank",class:"open",rel:"noopener noreferrer"}," \u6253\u5F00 ")])]),e("div",{class:"r"},[e("svg",{class:"icon",viewBox:"0 0 520 520",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e("title",null,"\u6587\u4EF6\u7BA1\u7406"),e("g",{id:"\u6587\u4EF6\u7BA1\u7406",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e("path",{d:"M100.645161,0 L419.354839,0 C474.939626,0 520,45.0603736 520,100.645161 L520,419.354839 C520,474.939626 474.939626,520 419.354839,520 L100.645161,520 C45.0603736,520 0,474.939626 0,419.354839 L0,100.645161 C0,45.0603736 45.0603736,0 100.645161,0 Z",id:"Rectangle",fill:"#FFFFFF"}),e("g",{id:"Group-5",transform:"translate(91.000000, 125.000000)"},[e("path",{d:"M17.9469027,198 L320.053097,198 L320.004939,41.9999992 C319.997272,33.165374 312.834627,26.0049401 304,26 L168.501475,26 L168.501475,26 L151.360646,5.6827235 C148.32056,2.07926566 143.845981,1.98155802e-14 139.131426,0 L34,0 C25.1651196,0.00429126987 18.0023698,7.16512047 17.9957093,15.9999994 L17.9469027,198 L17.9469027,198 Z",id:"Path-2",fill:"#FFB02C",transform:"translate(169.000000, 99.000000) scale(-1, 1) translate(-169.000000, -99.000000) "}),e("path",{d:"M297.245454,178.4361 L67.8061501,197.326892 C63.4027721,197.689443 59.5392238,194.413704 59.1766735,190.010326 C59.1711924,189.943756 59.1665453,189.87712 59.1627333,189.810433 L51.4420645,54.7472375 C51.1956458,50.4364574 54.4144797,46.7079405 58.7150678,46.322598 L288.43249,25.7393906 C292.833138,25.3450825 296.720218,28.5928625 297.114526,32.9935104 C297.122855,33.0864604 297.129556,33.1795491 297.134627,33.2727336 L304.577178,170.028344 C304.812572,174.353677 301.562579,178.080651 297.245454,178.4361 Z",id:"Path",fill:"#E8E8E8","fill-rule":"nonzero"}),e("path",{d:"M289.245454,185.4361 L59.8061501,204.326892 C55.4027721,204.689443 51.5392238,201.413704 51.1766735,197.010326 C51.1711924,196.943756 51.1665453,196.87712 51.1627333,196.810433 L43.4420645,61.7472375 C43.1956458,57.4364574 46.4144797,53.7079405 50.7150678,53.322598 L280.43249,32.7393906 C284.833138,32.3450825 288.720218,35.5928625 289.114526,39.9935104 C289.122855,40.0864604 289.129556,40.1795491 289.134627,40.2727336 L296.577178,177.028344 C296.812572,181.353677 293.562579,185.080651 289.245454,185.4361 Z",id:"Path",fill:"#F3F3F3","fill-rule":"nonzero"}),e("path",{d:"M280.245454,191.4361 L50.8061501,210.326892 C46.4027721,210.689443 42.5392238,207.413704 42.1766735,203.010326 C42.1711924,202.943756 42.1665453,202.87712 42.1627333,202.810433 L34.4420645,67.7472375 C34.1956458,63.4364574 37.4144797,59.7079405 41.7150678,59.322598 L271.43249,38.7393906 C275.833138,38.3450825 279.720218,41.5928625 280.114526,45.9935104 C280.122855,46.0864604 280.129556,46.1795491 280.134627,46.2727336 L287.577178,183.028344 C287.812572,187.353677 284.562579,191.080651 280.245454,191.4361 Z",id:"Path",fill:"#FAFAFA","fill-rule":"nonzero"}),e("path",{d:"M272.050402,211.155772 L44.7097773,224.528092 C40.2991228,224.787529 36.5132653,221.422303 36.2538278,217.011649 C36.2531111,216.999464 36.2524223,216.987279 36.2517614,216.975091 L28.4285714,72.713026 C28.1911376,68.3346726 31.5223826,64.5810839 35.8979358,64.2966766 L263.165019,49.5245057 C267.573993,49.2379261 271.380491,52.5797871 271.667071,56.9887612 C271.66893,57.0173626 271.670635,57.0459738 271.672187,57.0745935 L279.568919,202.73651 C279.807318,207.133987 276.446738,210.897177 272.050402,211.155772 Z",id:"Path",fill:"#FFFFFF","fill-rule":"nonzero"}),e("path",{d:"M32.5622397,270 L305.635714,270 C313.829424,270 320.698984,263.809932 321.54932,255.660465 L336.157264,115.660465 C337.074313,106.871623 330.692964,99.0034433 321.904122,98.086394 C321.352506,98.0288369 320.798269,98 320.243658,98 L168.501475,98 L168.501475,98 L151.360646,77.6827235 C148.32056,74.0792657 143.845981,72 139.131426,72 L17.5158465,72 C8.67929053,72 1.51584653,79.163444 1.51584653,88 C1.51584653,88.4821829 1.53764343,88.9641194 1.5811705,89.4443337 L16.6275636,255.444334 C17.374725,263.687425 24.2853564,270 32.5622397,270 Z",id:"Path-2",fill:"#FFCA28"})])])])])],-1)),M1={class:"tool-content"},I1=B(()=>e("div",{class:"f"},[e("div",{class:"title"}," \u7F51\u7EDC\u5171\u4EAB "),e("div",{class:"desc"}," \u7F51\u7EDC\u5171\u4EAB\u6587\u4EF6 ")],-1)),z1={class:"content"},V1=B(()=>e("div",null,null,-1)),P1=B(()=>e("span",null,"\u5171\u4EAB\u6587\u4EF6",-1)),H1=[V1,P1],O1=B(()=>e("div",null,null,-1)),Z1=B(()=>e("span",null,"\u5171\u4EAB\u7528\u6237",-1)),G1=[O1,Z1],U1=B(()=>e("div",null,null,-1)),N1=B(()=>e("span",null,"\u5171\u4EAB\u8BBE\u7F6E",-1)),T1=[U1,N1],j1=F({__name:"index",setup(i){return(u,t)=>{const s=m("nas-section-item"),_=m("nas-section-container"),h=m("nas-section");return a(),k(h,null,{default:r(()=>[c(_,{class:"section-setting-container"},{default:r(()=>[c(s,null,{default:r(()=>[S1]),_:1}),c(s,null,{default:r(()=>[e("div",M1,[I1,e("div",z1,[e("div",{onClick:t[0]||(t[0]=p=>L(c1).Open())},H1),e("div",{onClick:t[1]||(t[1]=p=>L(u1).Open())},G1),e("div",{onClick:t[2]||(t[2]=p=>L(D1).Open())},T1)])])]),_:1})]),_:1})]),_:1})}}});var W1=y(j1,[["__scopeId","data-v-2815b650"]]);const q1={class:"disk-content"},R1={class:"name"},Q1={class:"info"},Y1={class:"icon"},X1={class:"card"},J1={key:0,class:"status main"},K1={key:0},e2={key:1},t2={key:2},s2={key:3},n2=["value"],a2=F({__name:"disk",props:{type:{type:String},disk:{type:Object,required:!0}},setup(i){const u=i,t=q(u.disk),s=x(()=>t.errorInfo?"error":t.childrens==null||t.childrens.length==0||t.childrens.length==1&&t.childrens[0].filesystem=="No FileSystem"?"load":t.childrens.filter(h=>h.mountPoint).length==0?"unmounted":"success"),_=()=>{u.type!="raid"&&t1.OpenDisk({disk:u.disk})};return(h,p)=>{const o=m("icon-disk"),n=m("nas-section-item");return a(),k(n,{onClick:p[0]||(p[0]=l=>_())},{default:r(()=>[e("div",q1,[e("div",R1,C(i.type=="raid"?"raid: ":"")+" "+C(t.name),1),e("div",Q1,[e("div",Y1,[c(o)]),e("div",X1,[t.isSystemRoot?(a(),d("div",J1," \u7CFB\u7EDF ")):E("",!0),e("div",{class:U(["status",s.value])},[s.value=="error"?(a(),d("span",K1,"\u9519\u8BEF")):s.value=="success"?(a(),d("span",e2,"\u6B63\u5E38")):s.value=="load"?(a(),d("span",t2,"\u672A\u683C\u5F0F\u5316")):s.value=="unmounted"?(a(),d("span",s2,"\u672A\u6302\u8F7D")):E("",!0)],2),e("li",null,"Used: "+C(t.used),1),e("li",null,"Total: "+C(t.size||t.total),1)])]),e("progress",{value:t.usage||0,max:"100"},null,8,n2)])]),_:1})}}});var W=y(a2,[["__scopeId","data-v-1880f8c7"]]);const o2=F({__name:"index",setup(i){const u=D(),t=x(()=>u.disk),s=x(()=>u.raid.disks);return(_,h)=>{const p=m("nas-section-title"),o=m("nas-section-container"),n=m("nas-section");return a(),k(n,null,{default:r(()=>[c(p,{title:"Storage"}),c(o,{class:"section-disk-container"},{default:r(()=>[(a(!0),d(A,null,O(t.value.disks,l=>(a(),k(W,{disk:l},null,8,["disk"]))),256)),(a(!0),d(A,null,O(s.value,l=>(a(),k(W,{disk:l,type:"raid"},null,8,["disk"]))),256))]),_:1})]),_:1})}}});var i2=y(o2,[["__scopeId","data-v-32ba2e94"]]);const l2={class:"widget-content"},c2=F({__name:"cpu",setup(i){const u=D(),t=q({cpuusage:0,temperature:0,menavailablePercentage:0,menusage:0}),s=$(null),_=$(null),h=()=>{u.getSystemData().then(n=>{t.cpuusage=n.cpu.usage,t.temperature=n.cpu.temperature,t.menavailablePercentage=n.memery.availablePercentage||100,t.menusage=100-t.menavailablePercentage,o.cpu&&o.cpu.setValue(t.cpuusage),o.men&&o.men.setValue(t.menusage)})};h();const p=setInterval(()=>{h()},5e3),o={cpu:null,men:null};return s1(()=>{s.value&&_.value&&(o.cpu=j({el:s.value,value:t.cpuusage,name:"CPU"}),o.men=j({el:_.value,value:t.menusage,name:"RAM"}))}),n1(()=>{clearInterval(p)}),(n,l)=>{const g=m("nas-section-item"),v=m("nas-section-container"),w=m("nas-section");return a(),k(w,null,{default:r(()=>[c(v,null,{default:r(()=>[c(g,null,{default:r(()=>[e("div",l2,[e("div",{class:"gauge",ref_key:"cpu",ref:s},null,512),e("div",{class:"gauge",ref_key:"men",ref:_},null,512)])]),_:1})]),_:1})]),_:1})}}});var u2=y(c2,[["__scopeId","data-v-eb492a5a"]]);const S=i=>(I("data-v-5efc00dc"),i=i(),z(),i),d2=S(()=>e("div",{class:"widget-title"},[e("span",null,"\u7CFB\u7EDF\u4FE1\u606F")],-1)),_2={class:"widget-item"},r2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8054\u7F51\u72B6\u6001:")],-1)),p2={class:"widget-item_value"},v2={key:0},h2={key:1},m2={key:2},g2={key:4},f2={class:"widget-item"},C2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u8FDE\u63A5\u65B9\u5F0F:")],-1)),$2={class:"widget-item_value"},w2={class:"widget-item"},F2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"\u5728\u7EBF\u8BBE\u5907:")],-1)),k2={class:"widget-item_value"},y2={class:"widget-item"},E2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv4\u5730\u5740:")],-1)),L2={class:"widget-item_value"},x2={key:0,class:"widget-item"},B2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"IPv6\u5730\u5740:")],-1)),b2={class:"widget-item_value"},A2={class:"widget-item"},D2=S(()=>e("div",{class:"widget-item_title"},[e("span",null,"DNS:")],-1)),S2={class:"widget-item_value"},M2=F({__name:"info",setup(i){const u=D(),t=x(()=>u.network),s=x(()=>u.device),_=o=>{switch(o){case"pppoe":return"\u62E8\u53F7\u4E0A\u7F51";case"static":return"\u9759\u6001\u7F51\u7EDC";case"dhcp":return"DHCP"}},h=o=>{switch(o){case"manual":return"\u624B\u52A8\u914D\u7F6E";case"auto":return"\u81EA\u52A8\u83B7\u53D6";default:return""}},p=o=>o.toUpperCase();return(o,n)=>{const l=m("nas-section-item"),g=m("nas-section-container"),v=m("nas-section");return a(),k(v,null,{default:r(()=>[c(g,null,{default:r(()=>[c(l,{class:"widget-main"},{default:r(()=>{var w;return[d2,e("div",_2,[r2,e("div",p2,[t.value.networkInfo=="netSuccess"?(a(),d("span",v2," \u5DF2\u8054\u7F51 ")):t.value.networkInfo=="dnsFailed"?(a(),d("span",h2," DNS\u9519\u8BEF ")):t.value.networkInfo=="softSourceFailed"?(a(),d("span",m2," \u8F6F\u4EF6\u6E90\u89E3\u6790\u9519\u8BEF ")):(a(),d("span",g2," \u68C0\u6D4B\u4E2D "))])]),e("div",f2,[C2,e("div",$2,C(p(t.value.defaultInterface||"")),1)]),e("div",w2,[F2,e("div",k2,C(s.value.devices.length),1)]),e("div",y2,[E2,e("div",L2,C(t.value.ipv4addr)+"\uFF08"+C(_(t.value.proto||""))+"\uFF09 ",1)]),t.value.ipv6addr?(a(),d("div",x2,[B2,e("div",b2,C(t.value.ipv6addr),1)])):E("",!0),e("div",A2,[D2,e("div",S2,[e("p",null,C(h(t.value.dnsProto)),1),e("p",null,C((w=t.value.dnsList)==null?void 0:w.join(", ")),1)])])]}),_:1})]),_:1})]),_:1})}}});var I2=y(M2,[["__scopeId","data-v-5efc00dc"]]);const z2={class:"widget-content"},V2={class:"time"},P2={class:"date"},H2=F({__name:"time",setup(i){const u=N.formatDateYMD,t=N.formatDateHMS,s=D(),_=x(()=>s.localtime);return(h,p)=>{const o=m("nas-section-item"),n=m("nas-section-container"),l=m("nas-section");return a(),k(l,null,{default:r(()=>[c(n,null,{default:r(()=>[c(o,null,{default:r(()=>[e("div",z2,[e("div",V2,C(L(t)(L(_))),1),e("div",P2,C(L(u)(L(_))),1)])]),_:1})]),_:1})]),_:1})}}});var O2=y(H2,[["__scopeId","data-v-ce99f322"]]);const Z2=F({__name:"index",setup(i){return(u,t)=>(a(),d(A,null,[c(O2),c(I2),c(u2)],64))}});const V=i=>(I("data-v-642968c3"),i=i(),z(),i),G2={class:"dropdown-item"},U2=V(()=>e("svg",{t:"1668756315301",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"31499",width:"128",height:"128"},[e("path",{d:"M966.79936 655.37024a270.7968 270.7968 0 0 0-143.02208-40.96c-143.02208 0-257.4336 102.4-257.4336 230.4a208.4352 208.4352 0 0 0 45.7728 128H57.21088c-34.33472 0-57.21088-20.48-57.21088-51.2v-870.4c0-30.72 22.87616-51.2 57.21088-51.2h858.112c34.32448 0 57.20064 20.48 57.20064 51.2v604.16h-5.71392z m-200.22272-399.36a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m0 256a25.76384 25.76384 0 1 0 0-51.2H194.5088a25.76384 25.76384 0 1 0 0 51.2h572.07808z m-577.792 204.8a25.76384 25.76384 0 0 0 0 51.2h303.2064a25.76384 25.76384 0 0 0 0-51.2z m0 0",fill:"#2E2A2A","p-id":"31500"}),e("path",{d:"M852.38784 819.2v-76.8a28.78464 28.78464 0 0 0-57.21088 0v102.4c0 5.12 5.72416 15.36 5.72416 20.48s11.43808 5.12 22.87616 5.12H938.1888a25.76384 25.76384 0 1 0 0-51.2h-85.80096z m-28.61056 204.8c-108.68736 0-200.22272-81.92-200.22272-179.2S715.08992 665.6 823.77728 665.6 1024 747.52 1024 844.8 932.48512 1024 823.77728 1024z m0 0",fill:"#2E2A2A","p-id":"31501"})],-1)),N2={key:0},T2={key:0,class:"dropdown-container"},j2={class:"title"},W2=V(()=>e("span",null,"\u5B89\u88C5\u4EFB\u52A1",-1)),q2=V(()=>e("div",{class:"auto"},null,-1)),R2={class:"dropdown-container_menus"},Q2={class:"dropdown-menu_item"},Y2=V(()=>e("div",{class:"auto"},null,-1)),X2={class:"status"},J2={key:0},K2={key:1},e0={class:"btn"},t0=V(()=>e("span",null," \u5B89\u88C5\u4E2D ",-1)),s0=F({__name:"task",setup(i){const u=v=>h.value.indexOf(v)!=-1,t=v=>p.value.indexOf(v)!=-1,s=$(!1),_=$([]),h=$([]),p=$([]),o=()=>b(this,null,function*(){try{const v=yield M.Quickstart.SetupResult.GET();if(v.data){const{result:w,error:P}=v.data;v.data.success==0&&w&&(_.value=w.packages||[],h.value=w.success||[],p.value=w.failed||[])}}catch(v){console.log(v)}});let n=!1;setTimeout(()=>b(this,null,function*(){yield o(),localStorage.getItem("nas_guide_init")&&(n=!0,s.value=!0)}),1e3);const l=()=>{s.value=!s.value,n&&localStorage.removeItem("nas_guide_init")},g=()=>{a1.autoSetup.Open()};return(v,w)=>{const P=m("icon-loading");return a(),d("div",G2,[e("button",{onClick:w[0]||(w[0]=f=>s.value=!s.value)},[U2,_.value.length>0?(a(),d("em",N2)):E("",!0)]),s.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:l})):E("",!0),c(R,{name:"fade"},{default:r(()=>[s.value?(a(),d("div",T2,[e("h2",j2,[W2,e("span",null,"("+C(h.value.length+p.value.length+"/"+_.value.length)+")",1),q2,e("a",{onClick:g},"\u67E5\u770B\u65E5\u5FD7")]),e("div",R2,[(a(!0),d(A,null,O(_.value,f=>(a(),d("div",Q2,[e("span",null,C(f),1),Y2,e("div",X2,[u(f)?(a(),d("span",J2," \u6210\u529F ")):t(f)?(a(),d("span",K2," \u5931\u8D25 ")):(a(),d(A,{key:2},[e("div",e0,[c(P)]),t0],64))])]))),256))])])):E("",!0)]),_:1})])}}});var n0=y(s0,[["__scopeId","data-v-642968c3"]]);const a0={class:"dropdown-item"},o0=e("svg",{t:"1663656201767",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1863",width:"128",height:"128"},[e("path",{d:"M25.6 54.84032v152.79104h967.68V54.84032H25.6z m0 534.76864h967.68V436.81792H25.6v152.79104z m0 381.98272h967.68v-152.79104H25.6v152.79104z","p-id":"1864"})],-1),i0={key:0},l0={key:0,class:"dropdown-container"},c0=e("h2",{class:"title"}," \u7CFB\u7EDF\u8BBE\u7F6E ",-1),u0={class:"dropdown-menu_item"},d0=e("div",{class:"icons"},[e("svg",{t:"1663663794595",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19033",width:"128",height:"128"},[e("path",{d:"M885.376 848H512v-74.624h373.376V250.624H512V176h373.376A74.88 74.88 0 0 1 960 250.688v522.688c0 41.088-33.536 74.624-74.624 74.624zM512 736h336V586.688l-224-112L512 530.688V736z m0 112H325.312v-74.624H512v74.624zM325.312 176H512v74.624H325.312V176zM512 530.688V736H325.312V561.792l74.688 24.896L512 530.688z m-186.688-56V325.376c41.152-0.064 74.688 33.536 74.688 74.624s-33.536 74.688-74.688 74.688z m0 373.312H138.688A74.88 74.88 0 0 1 64 773.376V250.624A74.88 74.88 0 0 1 138.688 176h186.624v74.624H138.688v522.752h186.624v74.624z m0-522.624c-41.088 0-74.624 33.472-74.624 74.624a74.88 74.88 0 0 0 74.624 74.688V325.376z m0 236.416L288 549.376l-112 37.312V736h149.312V561.792z","p-id":"19034"})])],-1),_0=e("span",null,"\u58C1\u7EB8",-1),r0=e("div",{class:"auto"},null,-1),p0={class:"upload",title:"\u4E0A\u4F20\u80CC\u666F"},v0=e("span",null,"\u4E0A\u4F20",-1),h0=e("div",{class:"icons"},[e("svg",{t:"1663666048430",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1979",width:"128",height:"128"},[e("path",{d:"M816.47182493 165.18652616c-45.03283702 5.80844472-91.61106134 5.60212947-139.89197922-1.26634882-48.55758565-6.90879227-98.65581637-20.5761858-150.4053594-41.66144114L512.02569025 116.4921875l-14.23100531 5.76654948c-51.72187603 21.08525534-101.79164949 34.75264886-150.37690215 41.66144114-48.22558465 6.86847828-94.85598046 7.07479277-139.89039874 1.26634881L159.65672594 159.01999391l0.63396504 55.68692219c2.58723985 236.52258702 39.47418405 393.75769043 98.82181686 499.07250806 62.3190467 110.60391658 147.37703179 163.61822717 243.19660678 189.35703593l9.71815688 2.6156971 9.68811914-2.6156971c95.79507051-25.73880876 180.87756008-78.75311934 243.17289253-189.35703593 59.40138634-105.26027387 96.28753954-262.54913003 98.84869362-499.07250806l0.60550779-55.68692219L816.47182493 165.18652616zM536.52502695 716.42199725c0 14.01125204-10.98371543 25.35226399-24.52542245 25.35226399-13.54486954 0-24.49933671-11.34180218-24.49933672-25.35226399l0-410.61466986c0-14.02548105 10.95446718-25.366493 24.49933671-25.36649299 13.54170702 0 24.52542246 11.34101194 24.52542245 25.366493L536.52502695 716.42199725z","p-id":"1980"})])],-1),m0=e("span",null," \u5411\u5BFC\u6A21\u5F0F ",-1),g0=e("div",{class:"auto"},null,-1),f0={class:"btn"},C0={target:"_blank",href:"/cgi-bin/luci/admin/quickstart/",class:"dropdown-menu_item"},$0=e("div",{class:"icons"},[e("svg",{t:"1663665818574",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1800",width:"128",height:"128"},[e("path",{d:"M900.48223089 607.65333044C901.65599673 614.64488767 901.40082993 623.01434302 899.56363186 632.86376636 897.87953241 642.71318476 894.97063672 652.76674038 890.88797519 662.87132559 886.80531367 673.02694531 881.90612131 682.16190192 876.13936032 690.27619046 870.37260346 698.44151353 863.89137986 704.20827039 857.00188672 707.67853421 850.01032949 711.19982761 843.93737131 712.93495745 838.68094394 712.93495745 833.47555027 712.93495745 827.7087934 711.81222613 821.3296347 709.46469858 815.56287701 707.7295646 808.26511929 706.14753335 799.58946179 704.66757031 790.81174103 703.23863767 782.03402026 702.98347085 773.00113186 703.8000058 764.01927798 704.66757031 755.03741998 706.55580288 746.10660061 709.41366406 737.17577712 712.27152524 729.36768909 717.27278579 723.09059861 724.21331345 709.15851373 738.70675738 700.94216111 755.24153579 698.64566311 773.81764539 696.34916596 792.39375581 698.95186032 810.05126636 706.50478567 826.89224197 712.27154666 838.52782886 711.4039772 850.06134671 703.90209048 861.69692947 700.43182749 866.34095913 694.8181684 871.13808246 687.36731207 876.03727893 679.81438672 880.98750581 671.49596506 885.47843274 662.56514157 889.56109426 653.6343222 893.6437558 644.1421347 896.8078183 634.24168179 899.15534585 624.39225845 901.40081345 615.7166059 902.57457517 608.11264685 902.57457517 602.90725318 902.57457517 598.05909534 900.53324399 593.36403611 896.50161697 588.77104095 892.41895544 585.60697846 888.03009671 583.76978039 883.43710156L582.90221506 883.43710156C576.52305554 865.42236011 565.65296991 849.95927851 550.29195652 836.89476309 534.93094394 823.83024768 517.12033478 817.29799038 496.75806164 817.29799038 477.05922073 817.29799038 459.19757788 823.83024768 443.27519882 836.89476309 427.30178689 849.95927851 416.12550159 865.16719331 409.74634289 882.56953706 406.83744721 889.56109426 402.49961968 894.61338853 396.68182666 897.82848142 390.96610102 900.99254392 384.58694314 902.57457517 377.5953851 902.57457517 369.48109573 902.57457517 360.3461416 901.14564663 350.19052106 898.18571643 340.03490134 895.27682073 329.87928162 891.65345913 319.72366189 887.31563081 309.56804135 882.97780164 300.43308722 877.87447699 292.31879786 872.05668149 284.20450848 866.28992461 278.13154947 860.47213324 274.04888794 854.70537225 271.13999224 850.62271072 269.55796099 845.82558245 269.25176132 840.36502692 268.94556164 834.85343274 271.13999224 827.14740879 275.78401944 817.29799038 282.16317732 803.92727366 284.61277472 788.71935886 283.18384289 771.57218274 281.75491189 754.47603949 274.35508843 738.65572698 260.98437253 724.16227893 252.87008316 715.43558774 243.02066229 709.82192947 231.43611157 707.21923511 219.80052634 704.5655021 208.82837414 703.59587268 198.36655475 704.15723669 186.16960385 704.71860483 173.71748697 707.06613238 160.95917041 711.14879392 152.84488104 713.44529108 144.73059167 712.83289337 136.56526944 709.36262954 130.18611157 707.06613238 124.26625198 701.70764011 118.70362659 693.33818476 113.19203323 684.91769489 108.29284006 675.57861011 103.90397885 665.47401996 99.56615134 655.31840024 96.24898941 644.9076137 93.90145938 634.13959629 91.60496222 623.42260842 90.99256287 614.59385728 92.16632788 607.60229592 93.90145938 594.84398184 99.66821789 586.72969331 109.56867163 583.25942947 126.97101538 576.26787226 142.58719477 564.83642261 156.51927634 548.86300739 170.45135791 532.88959629 177.39188226 515.07898711 177.39188226 495.32911252 177.39188226 475.06890594 170.45135791 457.36036252 156.51927634 442.25451594 142.58719477 427.14866934 126.91998252 416.17651715 109.56867163 409.18495911 104.46534534 407.55189499 100.12751782 403.3671669 96.65725564 396.68180936 93.18699346 389.99645098 91.40082911 383.15799402 91.40082911 376.26850254 91.40082911 368.71557965 92.57459412 360.29509061 94.87109128 351.00703623 97.16758762 341.71898184 100.22958438 332.73712714 104.00604541 324.01043842 107.78250726 315.33478339 112.17136846 307.37359345 117.07056164 300.07583654 122.02078852 292.88014539 127.37928162 287.47062024 133.14604095 284.00035723 137.79006814 281.09146154 142.33202878 279.96872939 146.66985629 280.53009589 151.00768381 281.09146154 155.80481042 282.26522656 161.01020411 284.00035723 178.41254786 290.99191528 196.52935669 293.13531219 215.41166595 290.53261536 234.24294071 287.92991934 250.93081854 279.66252972 265.42426661 265.78148184 272.36479095 258.78992462 277.41708356 250.21633533 280.63217974 240.11174848 283.79624225 229.90509588 285.88860629 219.90257559 286.70513794 210.05315473 287.62373697 200.20373468 287.62373697 191.22187998 286.70513794 183.10759061 285.88860629 174.94226837 285.12310669 169.17550903 284.56174103 165.70524686 283.38797601 162.23498468 282.36731042 158.15232315 281.49974509 153.50829597 280.63217974 148.86426877 281.09147885 144.78160723 282.77557666 141.31134588 286.24583884 133.19705652 292.47189728 126.10343191 301.50478567 120.03047373 310.48664038 113.95751472 320.18296099 108.85418841 330.64478039 104.77152688 341.1065998 100.73989904 351.26222034 97.72893598 361.11164038 95.63657193 370.96106042 93.59524158 378.82018381 92.57457599 384.58694314 92.57457599 392.08883316 92.57457599 398.05972479 95.02417341 402.44858599 99.97440027 406.78641351 104.92462714 409.79737659 110.02795344 411.53250727 115.23334629 417.91166596 130.90055936 428.37348535 144.62850781 442.86693259 156.5702919 457.36038064 168.46104312 474.50755759 174.43193475 494.20639849 174.43193475 514.51764041 174.43193475 532.48134817 168.76724279 548.14856208 157.43785724 563.81577185 146.10847251 574.83896021 131.7681247 581.2181156 114.36578095 583.51461277 109.72175376 587.1890097 104.92462714 592.08820122 100.02543313 596.98739771 95.07520627 602.03968866 92.62560969 607.34715054 92.62560969 615.41040539 92.62560969 624.29019436 93.74834183 633.88444595 96.09587186 643.47870249 98.39236902 652.91985547 101.60746438 662.10584577 105.69012591 671.49596506 109.72175376 680.06955353 114.97818029 687.82661118 121.35733816 695.68573374 127.73649686 701.86076013 134.67702039 706.55581936 142.22994409 709.46471506 146.87397129 710.33228039 151.92626472 709.15851373 157.43785724 707.98475201 162.94945059 706.86201657 166.87901187 705.68825486 169.17550903 698.13532949 186.01648711 695.83883152 203.67399686 698.69669763 222.25010562 701.60559332 240.77518152 710.07711277 257.05479312 723.90712942 270.9868747 737.83920935 284.91895627 754.98639041 292.57394653 775.24659534 294.05391123 795.55783478 295.48284222 814.44014157 292.16568029 831.84248532 284.05139093 836.43548047 281.14249524 842.10017324 279.96872939 848.78553327 280.58112876 855.47088999 281.19352811 861.03351373 283.79622412 865.72857791 288.38921844 874.40423047 296.50350781 882.05921991 308.85355813 888.74457993 325.38833654 895.42993664 341.92311414 899.92086277 358.61099279 902.21736074 375.4009372 903.39112659 385.25035724 901.80909534 392.95638037 897.52230151 398.46797373 893.13343866 403.92853338 888.64251172 407.60292786 883.94745249 409.33805936 865.9837406 415.71721722 850.67376172 426.89350254 837.91544763 442.81588159 825.15712942 458.73826064 818.77796991 476.90610401 818.77796991 497.16630976 818.77796991 516.91618518 824.13646548 534.16542621 834.8024147 548.96507559 845.57043708 563.71369046 859.60458521 574.32861011 876.95589526 580.70776467 881.03855679 583.00426267 884.50881567 585.35179434 887.41771548 587.64829233 893.79687087 592.85368518 898.18573374 599.53904107 900.48223089 607.65333044L900.48223089 607.65333044 900.48223089 607.65333044ZM495.94152917 685.93836212C522.01952712 685.93836212 546.71962942 680.98813608 569.83769964 671.13871274 593.05783478 661.28929434 613.21597561 647.66341079 630.36315256 630.26106704 647.51032949 612.8076896 660.98311032 592.70058245 670.83253284 569.78664866 680.68195123 546.87271072 685.58114771 522.32571116 685.58114771 496.29874524 685.58114771 470.16971277 680.68195123 445.67374524 670.83253284 422.81084101 660.98311032 399.89690472 647.51032949 379.84083127 630.36315256 362.74468719 613.21597561 345.64854312 593.10886929 332.12472778 569.83769964 322.27530774 546.71962942 312.42588687 521.96849673 307.47566001 495.94152917 307.47566001 469.86353039 307.47566001 445.31652917 312.42588687 422.40259289 322.27530774 399.53968948 332.12472778 379.48361603 345.64854312 362.43850564 362.74468719 345.34236157 379.84083127 331.81854541 399.89690472 321.96912537 422.81084101 312.11970532 445.67374524 307.16947845 470.22074563 307.16947845 496.29874524 307.16947845 522.37674568 312.11970532 546.87271072 321.96912537 569.78664866 331.81854541 592.64955288 345.34236157 612.8076896 362.43850564 630.26106704 379.53464972 647.66341079 399.59072317 661.23825983 422.45362659 671.13871274 445.36756287 680.98813608 469.86353039 685.93836212 495.94152917 685.93836212L495.94152917 685.93836212 495.94152917 685.93836212Z","p-id":"1801"})])],-1),w0=e("span",null," \u9AD8\u7EA7\u914D\u7F6E ",-1),F0=e("div",{class:"auto"},null,-1),k0={class:"btn"},y0={target:"_blank",href:"/cgi-bin/luci/admin/system/ota",class:"dropdown-menu_item"},E0=e("div",{class:"icons"},[e("svg",{t:"1663663860869",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1740",width:"128",height:"128"},[e("path",{d:"M231.27989011 542.51027439C211.04473401 415.97053009 280.55494614 288.10044748 404.67907455 239.7181185c91.98593976-35.86663916 191.16621194-18.71226809 261.39410679 32.5232872l-59.7602277 96.79966617 267.99328894-1.03276318L778.52183591 90.125l-49.06500266 79.45274542c-103.46886557-67.00707449-244.51980715-88.92265842-368.03127997-40.76788814C190.30194858 195.5193558 91.80435007 368.04331772 111.25180539 542.51027439L231.27989011 542.51027439z","p-id":"1741"}),e("path",{d:"M792.71795273 473.24512467c20.21765158 126.53974429-49.25755151 254.42733225-173.38167993 302.79215588-84.61656134 32.97840298-177.86282217 20.55023657-249.56109146-23.91109305 13.65347928-22.16064716 54.00126068-87.50479751 54.00126067-87.50479751L135.58300519 647.71208133l121.95357577 286.16291867 51.13052902-82.79609738c103.45136106 67.00707449 230.37620306 84.03891476 353.88767588 35.88414367 171.08859567-66.72700305 269.62120322-239.23346045 250.17374789-413.6829126L792.71795273 473.2801337z","p-id":"1742"})])],-1),L0={key:0},x0=e("div",{class:"auto"},null,-1),B0={class:"btn"},b0={href:"/cgi-bin/luci/admin/logout",class:"dropdown-menu_item"},A0=e("div",{class:"icons"},[e("svg",{t:"1663664454777",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1770",width:"128",height:"128"},[e("path",{d:"M713.78169987 245.58612675c-3.34486519 0.15820313-4.20368182 0.11300245-7.50334556 0.58761107a57.69892296 57.69892296 0 0 0-41.72041273 28.47655477 56.20729383 56.20729383 0 0 0-4.97209635 42.98603697c2.05663985 7.11913831 5.55970816 13.80886868 10.23799936 19.59458098 2.10184131 2.5764499 2.71205269 3.11886105 5.03989813 5.49190716l2.80245403 2.48604856c12.43024201 10.3284007 23.91126526 21.62862127 34.2170664 34.03626216a252.98932537 252.98932537 0 0 1 51.80020821 103.8942231 252.67291912 252.67291912 0 0 1-29.2449693 186.49882996 255.56577528 255.56577528 0 0 1-48.74914893 58.85154628 259.90505988 259.90505988 0 0 1-62.15121003 41.22320226 259.49825151 259.49825151 0 0 1-78.01671856 22.69084171 264.13134203 264.13134203 0 0 1-92.54880184-4.63309053 259.79205743 259.79205743 0 0 1-88.25471793-38.60155091 258.25522762 258.25522762 0 0 1-71.68859588-74.19724478 250.59367816 250.59367816 0 0 1-36.61271207-98.7187214 252.06270696 252.06270696 0 0 1 81.99439625-224.17376402c3.54826899-3.09625995 7.11913831-6.10211855 10.62220661-9.19837927 2.32784543-2.37304611 2.93805682-2.89285615 5.01729779-5.46930682a55.77788589 55.77788589 0 0 0-3.81947457-74.4232489 58.24133411 58.24133411 0 0 0-72.32140836-8.11355774c-4.70089153 3.0058586-8.85937268 6.73493106-13.01785306 10.37360216a367.41535298 367.41535298 0 0 0-76.34428597 92.1419935 363.12126904 363.12126904 0 0 0-23.95646671 316.58696308 366.55653557 366.55653557 0 0 0 58.87414585 98.92212598 371.91283994 371.91283994 0 0 0 199.01947486 123.89561168 381.49542647 381.49542647 0 0 0 146.65425515 6.4411259c45.17827961-6.82533317 88.97793253-21.92242642 128.59650322-44.36466363a374.26328571 374.26328571 0 0 0 97.95030691-80.02815852 365.58471726 365.58471726 0 0 0 56.38809728-87.53150408 365.44911447 365.44911447 0 0 0 29.80998078-198.45446336c-5.24330192-40.00277871-17.24413599-79.10154009-35.39228929-115.26224391a367.64135711 367.64135711 0 0 0-85.65566768-110.96815996c-2.96065793-2.5764499-5.98911687-5.13030024-8.9949747-7.66154946-2.59905024-2.03403952-3.2092624-2.62165134-6.03431754-4.40708563a58.53513926 58.53513926 0 0 0-17.15373388-7.29994176 70.92018059 70.92018059 0 0 0-11.11941633-1.62723192c-1.265625 0-2.48604855 0-3.75167355-0.04520068m-144.32640974 322.96028721c0 14.98409157-6.05691787 29.35797175-16.81472728 39.95757803a57.85712608 57.85712608 0 0 1-40.56778942 16.54352172 57.78932508 57.78932508 0 0 1-40.56778943-16.54352172 56.09429214 56.09429214 0 0 1-16.81472806-39.95757802V172.99351358c0-15.0066919 6.05691787-29.35797175 16.81472806-39.98017838A57.76672474 57.76672474 0 0 1 512.07277344 116.49241384c15.21009648 0 29.80998001 5.94391543 40.56778942 16.52092136 10.75780941 10.62220662 16.81472729 24.97348646 16.81472728 40.00277871v395.53030006z",fill:"#000000","p-id":"1771"})])],-1),D0=e("span",null,"\u6CE8\u9500",-1),S0=e("div",{class:"auto"},null,-1),M0={class:"btn"},I0=F({__name:"setting",setup(i){const u=D(),t=$(!1),s=$(!1);(()=>b(this,null,function*(){try{const o=yield M.System.CheckUpdate.GET(),{result:n}=o.data;n&&(s.value=n.needUpdate)}catch(o){console.log(o)}}))();const h=o=>{if(o&&(o==null?void 0:o.target)){const l=o.target.files;if(l){const g=l[0];p(g)}}},p=o=>{const n=new FormData;n.append("file",o),M.Upload.BG.POST(n).then(l=>{if(l.data.result){const g=l.data.result;if(g!=null&&g.filename!=""){G.Success("\u4E0A\u4F20\u6210\u529F,\u8BF7\u5237\u65B0\u7F13\u5B58\u67E5\u770B"),u.incr();return}G.Warning("\u4E0A\u4F20\u5931\u8D25")}})};return(o,n)=>{const l=m("icon-right"),g=m("router-link");return a(),d("div",a0,[e("button",{onClick:n[0]||(n[0]=v=>t.value=!t.value)},[o0,s.value?(a(),d("em",i0)):E("",!0)]),t.value?(a(),d("div",{key:0,class:"dropdown-bg",onClick:n[1]||(n[1]=v=>t.value=!t.value)})):E("",!0),c(R,{name:"fade"},{default:r(()=>[t.value?(a(),d("div",l0,[c0,e("div",u0,[d0,_0,r0,e("label",p0,[e("input",{type:"file",accept:"image/jpeg, image/jpg, image/png, image/gif",hidden:"",onChange:h},null,32),v0])]),c(g,{to:"/wizard",class:"dropdown-menu_item"},{default:r(()=>[h0,m0,g0,e("div",f0,[c(l)])]),_:1}),e("a",C0,[$0,w0,F0,e("div",k0,[c(l)])]),e("a",y0,[E0,e("span",null,[o1(" \u66F4\u65B0 "),s.value?(a(),d("em",L0)):E("",!0)]),x0,e("div",B0,[c(l)])]),e("a",b0,[A0,D0,S0,e("div",M0,[c(l)])])])):E("",!0)]),_:1})])}}});const z0={class:"f"},V0={class:"hostname"},P0={class:"r"},H0=F({__name:"index",setup(i){D(),$(!1);const u=$(!1);return(()=>b(this,null,function*(){try{const s=yield M.System.CheckUpdate.GET(),{result:_}=s.data;_&&(u.value=_.needUpdate)}catch(s){console.log(s)}}))(),(s,_)=>(a(),d("header",null,[e("div",z0,[e("div",V0,C(L(i1).HostName),1)]),e("div",P0,[c(n0),c(I0)])]))}});var O0=y(H0,[["__scopeId","data-v-6eeee710"]]);const Z0={},G0={class:"main-container"};function U0(i,u){return a(),d("div",G0,[l1(i.$slots,"default")])}var N0=y(Z0,[["render",U0]]);const T0={id:"page"},j0={class:"body"},W0={class:"f"},q0={class:"r"},R0=F({__name:"index",setup(i){const u=D(),t=x(()=>({"background-image":`url(/luci-static/istorex/image/bg.gif?t=${u.keys})`})),s=$(0),_=x(()=>({transform:`translateX(${s.value*-100}%)`}));return(h,p)=>(a(),d("div",T0,[e("div",{class:"bg",style:T(t.value)},null,4),c(O0),(a(),d("div",{id:"main",key:L(u).reloadCount,style:T(_.value),ref:"el"},[c(N0,null,{default:r(()=>[e("div",j0,[e("div",W0,[c(Z2)]),e("div",q0,[c(i2),c(W1),c(y1)])])]),_:1})],4))]))}});var J0=y(R0,[["__scopeId","data-v-763fd268"]]);export{J0 as default};
|