2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
import{d as M,r as k,cL as E,U as C,cU as be,cV as xe,q as z,h as a,c as g,e as t,w as o,a as e,t as y,u as s,N as v,bE as X,F as L,G as U,A as G,R as he,az as we,aA as ve,aM as ye,cE as ke,ap as K,cW as Ce,p as ee,g as te,cX as F,_ as P,I as D,i as N,d2 as De,aT as oe,aU as se,aV as ne,O as q,K as ae,cR as Ye,aJ as Ve,a1 as le,cS as Be,cM as ce,v as ze,s as ie,B as J,y as Q,cp as $,an as Ge,ao as Ne,E as Me,aa as Oe,Q as re,f as ue,cG as de,cT as Ze,cN as Se,a_ as We,J as Ee,Z as Te}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as W}from"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{ae as Ie,af as Re,ac as Xe,ad as Fe}from"./sys-8ead7f22.js";/* empty css *//* empty css *//* empty css *//* empty css */const Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALcAAACHCAYAAABUFMgyAAAABHNCSVQICAgIfAhkiAAACbZJREFUeF7t201oXFUUB/DMRyJNpE0JuJqYTWtQs2pLqxSzcWGiK8FNceOqiLiMOxe1i0IFXdhFIXSli6agoJS6aBEM2o2QlbXFfkBNhRBNbRIyTTOTzHjv8O5wc3Pf55x578y7/0LI1+S8c8/95eTMfdNCH/6hAjmtQCGn68KyUIE+4AaC3FYAuHO7tVhYWrjTug52tHcq0Ox2qlToqOJ0e72I3zsV6Bg/FcqgOFTX6J1tQaZRKxAEOFPcJtqgzwE86na78zgdrwk57PNIVYqLzvZ49TX9e34fR0oKD3KmAn7A48D3LVanuOXP67ht0OXF417Hmd11eKF+3Vl+XX3PfC/LFXlciYPOhGuibkG/d+/eK5VKZWZgYOBEs9ksp7F5Ozs7641GYzWNa+EayStQKBRsMOtbW1s379+//83Ro0cfeXgVcD/kkYBHwW0bMVTHbgOv1WrXy+XypF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ek4GbGlq3NIJ9hbRFiOWU9uPnOSUFxcXHhiqdfutnT+/s9XtcLcHu9As7MPz4+3jl//vwXtRNKEWpxG5D33RnDzVsTufeObNmy/anz3Ve+GRkZ9bQ9AdzOwOXlqPF4fLi1tfWJxsZGsdfmYMuAZwW3ar87afH1mzY/NDEWOfbTlV/u86oYgNuryjsz79jY2PctLS11O3fu/FNoQ/TAVu6UGLUlct+tsne6RWE9ekPDex9dvfZbZX//wN3OpKw/6mvVlaGqTWvdnhbz5bgCk5OTvw4MDOzTtv2OpnpsBrTYY1vaAuRhqa5QiiHzq5TivXzFctp24Zo1G+/XNtwrJyZji2OxWBEfLBFKmM2VcakefWRB/8pnlt7KeAB80NUKhMPh9K6G9nhicHDwSltb24Xm5uaoFgjvo2VTy62IvA04Iwcz4DjU3OTyvjd/LrYt4heBf85sHleLi8l8UQF5f1qEVf7tiNFvSaZt/8lmNspU/p2J+HsTsVWRH8tfCsDtC558FYQZ3Px9+TK74YWbTOAWDSwDrnouG1uEG6D7ijFXgxEtK54Iyo850LLNVa1IxuZWnViqQBfNDbBd5SVwk2UDOEtW93K7XAkrFpWtK7cqcj8ufiGMHgduVRBwTiqggptDy++5uVUw633e9gmlqoUR4VZZXAYagOeECRKDmIEtwqwytO6etqo6Vsyt16PrQW4GN4lVQhJZV8AIdBliy7bWg9VKtPKXQQYcYFupIo7hFZBPBlVm1jvGtIp2zc0H1INcBbfea6bB4QDSFVDtcui1Hbo7IkYVyhRueUyjcXI1B+mVzuPk9MDNCOhs2hK9NQDAeUynQ6n7Bm6z/AC/WYXy7/2s4TUrGaAzqxDeD2wFAHdglw6Bm1UAcJtVCO8HtgKAO7BLh8DNKvAfR+rWAIVxGVEAAAAASUVORK5CYII=",pe=b=>(ee("data-v-7620b23f"),b=b(),te(),b),Je={class:"flex"},Ke={class:"setting-item flex items-center justify-between mb-[10px]"},Pe={class:"title text-base text-tx-secondary"},qe={class:""},je=pe(()=>e("img",{class:"w-[35px] h-[35px]",src:Le,alt:""},null,-1)),He=pe(()=>e("img",{class:"w-[35px] h-[35px]",src:Ue,alt:""},null,-1)),Qe={class:"setting-item flex items-center justify-between mb-[10px]"},$e={class:"title text-base text-tx-secondary"},et={class:""},tt={class:"setting-item flex items-center justify-between mb-[10px]"},ot={class:"title text-base text-tx-secondary"},st={class:""},nt={class:"setting-item mb-[10px]"},at={class:"title text-base text-tx-secondary"},lt={class:"flex mt-[10px] layout-style flex-wrap"},ct=["onClick"],it={class:"absolute z-1 w-[50px] h-[50px] border border-primary-light-5 rounded-[50%] top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] flex items-center justify-center text-base text-primary-light-5"},rt=["src"],ut=M({__name:"layout-setting",setup(b){const _=k(!1),n=E(),f=k([]),x=k(C.get("layout")||"default");Ie().then(c=>{f.value=c.data}).catch(()=>{});const p=be(),h=xe(p),A=z({get(){return n.dark},set(c){n.setTheme("dark",c),h(c),F(n.theme,n.dark?"dark":"light")}}),i=z({get(){return n.sidebar},set(c){n.setTheme("sidebar",c),F(n.theme,n.dark?"dark":"light")}}),m=z({get(){return n.theme},set(c){n.setTheme("theme",c),F(n.theme,n.dark?"dark":"light")}}),w=c=>{Re(c).then(()=>{C.set({key:"layout",data:c}),location.reload()}).catch(()=>{})};return(c,u)=>{const O=W,Z=we,Y=ve,B=ye,T=ke,V=K,I=Ce;return a(),g("div",Je,[t(O,{name:"element-Setting",onClick:u[0]||(u[0]=l=>_.value=!0)}),t(I,{modelValue:_.value,"onUpdate:modelValue":u[4]||(u[4]=l=>_.value=l),title:s(v)("layout.layoutSetting"),size:"300px"},{default:o(()=>[t(V,null,{default:o(()=>[e("div",Ke,[e("div",Pe,y(s(v)("layout.sidebarMode")),1),e("div",qe,[t(Y,{modelValue:s(i),"onUpdate:modelValue":u[1]||(u[1]=l=>X(i)?i.value=l:null),class:"ml-4"},{default:o(()=>[t(Z,{label:"oneType",size:"large"},{default:o(()=>[je]),_:1}),t(Z,{label:"twoType",size:"large"},{default:o(()=>[He]),_:1})]),_:1},8,["modelValue"])])]),e("div",Qe,[e("div",$e,y(s(v)("layout.darkMode")),1),e("div",et,[t(B,{modelValue:s(A),"onUpdate:modelValue":u[2]||(u[2]=l=>X(A)?A.value=l:null),"active-value":!0,"inactive-value":!1},null,8,["modelValue"])])]),e("div",tt,[e("div",ot,y(s(v)("layout.themeColor")),1),e("div",st,[t(T,{modelValue:s(m),"onUpdate:modelValue":u[3]||(u[3]=l=>X(m)?m.value=l:null)},null,8,["modelValue"])])]),e("div",nt,[e("div",at,y(s(v)("layout.layoutStyle")),1),e("div",lt,[(a(!0),g(L,null,U(f.value,(l,r)=>(a(),g("div",{class:G(["relative w-[125px] h-[100px] border mr-[10px] mb-[10px] hover:border-primary",{"border-primary":x.value==l.key}]),onClick:S=>w(l.key)},[e("div",it,y(l.name),1),e("img",{src:s(he)(l.image),alt:"",class:"w-full h-full"},null,8,rt)],10,ct))),256))])])]),_:1})]),_:1},8,["modelValue","title"])])}}});const dt=P(ut,[["__scopeId","data-v-7620b23f"]]),pt=M({__name:"switch-lang",setup(b){const _=q(),n=E(),f=x=>{n.$patch(p=>{p.lang=x,C.set({key:"lang",data:x})}),De.loadLocaleMessages(_.path,n.lang),location.reload()};return(x,p)=>{const h=W,A=oe,i=se,m=ne;return a(),D(m,{onCommand:f,tabindex:1},{dropdown:o(()=>[t(i,null,{default:o(()=>[t(A,{command:"zh-cn",disabled:s(n).lang=="zh-cn"},{default:o(()=>[N("简体中文")]),_:1},8,["disabled"]),t(A,{command:"en",disabled:s(n).lang=="en"},{default:o(()=>[N("English")]),_:1},8,["disabled"])]),_:1})]),default:o(()=>[t(h,{name:"iconfont-iconfanyi"})]),_:1})}}}),mt={class:"userinfo flex h-full items-center"},_t={class:"user-name pl-[8px]"},ft=M({__name:"user-info",setup(b){const _=ae(),n=f=>{switch(f){case"logout":_.logout();break}};return(f,x)=>{const p=Ve,h=W,A=le("router-link"),i=oe,m=se,w=ne;return a(),D(w,{onCommand:n,tabindex:1},{dropdown:o(()=>[t(m,null,{default:o(()=>[t(i,{command:"usercenter"},{default:o(()=>[t(A,{to:"/user/center"},{default:o(()=>[N("个人中心")]),_:1})]),_:1}),t(i,{command:"logout"},{default:o(()=>[N("退出登录")]),_:1})]),_:1})]),default:o(()=>[e("div",mt,[t(p,{size:25,icon:s(Ye)},null,8,["icon"]),e("div",_t,y(s(_).userInfo.username),1),t(h,{name:"element-ArrowDown",class:"ml-[5px]"})])]),_:1})}}}),At={class:"right-panel h-full flex items-center justify-end"},gt=["title"],bt={class:"navbar-item flex items-center h-full cursor-pointer"},xt={class:"navbar-item flex items-center h-full cursor-pointer"},ht={class:"navbar-item flex items-center h-full cursor-pointer"},wt={class:"dialog-footer"},vt={class:"flex flex-wrap"},yt=["onClick"],kt=["onClick"],Ct={class:"dialog-footer"},Dt=M({__name:"index",setup(b){const _=ue(),n=C.get("app_type"),{toggle:f,isFullscreen:x}=Be(),p=E(),h=ce(),A=q(),i=k(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth),m=z(()=>p.dark),w=k(!1),c=k(""),u=k("");C.get("comparisonTokenStorage")&&(c.value=C.get("comparisonTokenStorage")),C.get("comparisonSiteIdStorage")&&(u.value=C.get("comparisonSiteIdStorage")),document.addEventListener("visibilitychange",l=>{document.visibilityState==="visible"&&(u.value!=C.get("siteId")||c.value!=C.get("token"))&&(w.value=!0)});const O=()=>{w.value=!1,location.reload()};ze(()=>{window.onresize=()=>(()=>{i.value=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth})()}),ie(i,()=>{i.value<992?p.menuIsCollapse||p.toggleMenuCollapse(!0):p.menuIsCollapse&&p.toggleMenuCollapse(!1)});const Z=()=>{h.routeRefreshTag&&h.refreshRouterView()};z(()=>{const l=A.matched.filter(r=>r.meta.title);return l[0]&&l[0].path=="/"&&l.splice(0,1),l});const Y=k(),B=k(!1),T=()=>{Xe().then(l=>{B.value=!0,Y.value=l.data;for(let r=0;r<Y.value.length;r++)Y.value[r].is_use==1&&(V.value=Y.value[r].view_path)})},V=k(""),I=()=>{Fe({view_path:V.value}).then(()=>{B.value=!1,_.go(0)})};return(l,r)=>{const S=W,_e=Ge,fe=Ne,j=Me,H=Oe,Ae=re;return a(),D(Ae,{class:G(["h-full px-[10px]",{"layout-header border-b border-color":!s(m)}])},{default:o(()=>[t(fe,{class:"w-100 h-full w-full",justify:"end"},{default:o(()=>[t(_e,{span:12},{default:o(()=>[e("div",At,[e("div",{class:"navbar-item flex items-center h-full cursor-pointer",onClick:Z},[t(S,{name:"element-Refresh"})]),s(n)=="site"?(a(),g("i",{key:0,class:"iconfont iconlingdang-xianxing cursor-pointer px-[8px]",title:s(v)("newInfo")},null,8,gt)):J("",!0),s(n)=="site"?(a(),g("div",{key:1,class:"navbar-item flex items-center h-full cursor-pointer",onClick:T},[t(S,{name:"iconfont-iconqiehuan",title:s(v)("indexSwitch")},null,8,["title"])])):J("",!0),e("div",bt,[t(pt)]),e("div",{class:"navbar-item flex items-center h-full cursor-pointer",onClick:r[0]||(r[0]=(...d)=>s(f)&&s(f)(...d))},[s(x)?(a(),D(S,{key:0,name:"iconfont-icontuichuquanping"})):(a(),D(S,{key:1,name:"iconfont-iconquanping"}))]),e("div",xt,[t(dt)]),e("div",ht,[t(ft)])])]),_:1})]),_:1}),Q(e("input",{type:"hidden","onUpdate:modelValue":r[1]||(r[1]=d=>c.value=d)},null,512),[[$,c.value]]),Q(e("input",{type:"hidden","onUpdate:modelValue":r[2]||(r[2]=d=>u.value=d)},null,512),[[$,u.value]]),t(H,{modelValue:w.value,"onUpdate:modelValue":r[3]||(r[3]=d=>w.value=d),title:s(v)("layout.detectionLoginTip"),width:"30%","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},{footer:o(()=>[e("span",wt,[t(j,{onClick:O},{default:o(()=>[N(y(s(v)("layout.detectionLoginOperation")),1)]),_:1})])]),default:o(()=>[e("span",null,y(s(v)("layout.detectionLoginContent")),1)]),_:1},8,["modelValue","title"]),t(H,{modelValue:B.value,"onUpdate:modelValue":r[4]||(r[4]=d=>B.value=d),title:s(v)("indexTemplate"),width:"550px","destroy-on-close":!0},{footer:o(()=>[e("span",Ct,[t(j,{type:"primary",onClick:I},{default:o(()=>[N(y(s(v)("confirm")),1)]),_:1})])]),default:o(()=>[e("div",vt,[V.value==""?(a(!0),g(L,{key:0},U(Y.value,(d,R)=>(a(),g("div",{key:R},[e("div",{onClick:ge=>V.value=d.view_path,class:G(["index-item py-[5px] px-[10px] mr-[10px] rounded-[3px] cursor-pointer",d.is_use==1?"bg-primary text-[#fff]":""])},[e("span",null,y(d.name),1)],10,yt)]))),128)):(a(!0),g(L,{key:1},U(Y.value,(d,R)=>(a(),g("div",{key:R},[e("div",{onClick:ge=>V.value=d.view_path,class:G(["index-item py-[5px] px-[10px] mr-[10px] rounded-[3px] cursor-pointer",V.value==d.view_path?"bg-primary text-[#fff]":""])},[e("span",null,y(d.name),1)],10,kt)]))),128))])]),_:1},8,["modelValue","title"])]),_:1},8,["class"])}}});const Yt=P(Dt,[["__scopeId","data-v-2eabe7ac"]]),Vt=""+new URL("login_logo-95c4c371.png",import.meta.url).href,me=b=>(ee("data-v-0c0c76f8"),b=b(),te(),b),Bt={class:""},zt={key:0,class:"logo flex items-center m-auto max-w-[230px] h-[60px] justify-center"},Gt=["src"],Nt={key:1,class:"max-h-full max-w-full",src:Vt,alt:""},Mt={key:1,class:"logo flex items-center justify-center w-[64px] h-[30px]"},Ot=me(()=>e("i",{class:"text-3xl iconfont iconyunkongjian"},null,-1)),Zt=[Ot],St=me(()=>e("span",{class:G(["ml-[15px] text-[14px] ease-in duration-200"])},"站点列表",-1)),Wt=M({__name:"index",setup(b){const _=ae(),n=E(),f=_.siteInfo,x=q(),p=ue(),h=z(()=>String(x.name));ie(x,()=>{n.$patch(i=>{i.menuDrawer=!1})});const A=i=>{p.push({path:i})};return(i,m)=>{const w=de,c=W,u=K,O=Ze;return a(),D(O,{class:"h-screen group layout-aside w-[80px] bg-[#F7F8FA] w-[230px] ease-in duration-200"},{default:o(()=>[e("div",Bt,[t(w,{class:"logo-wrap w-100 h-auto mb-[30px]"},{default:o(()=>[s(n).menuIsCollapse?(a(),g("div",Mt,Zt)):(a(),g("div",zt,[s(f).logo?(a(),g("img",{key:0,class:"max-h-full max-w-full",src:i.img(s(f).logo),alt:""},null,8,Gt)):(a(),g("img",Nt))]))]),_:1}),t(u,{"max-height":"calc(100vh - 90px)"},{default:o(()=>[e("div",{onClick:m[0]||(m[0]=Z=>A("/index")),class:G(["flex items-center py-[10px] px-[30px] mb-[8px] cursor-pointer text-[#989898] menu-item whitespace-nowrap",{"bg-color text-color":s(h)=="Symbol(homeIndex)"}])},[t(c,{name:"element-Memo",class:"!w-auto",size:"24px"}),St],2)]),_:1})])]),_:1})}}});const Et=P(Wt,[["__scopeId","data-v-0c0c76f8"]]),Tt={class:"common-layout min-w-[1200px]"},It={class:"p-[10px]"},so=M({__name:"index",setup(b){const _=ce(),n=Se();return(f,x)=>{const p=de,h=le("router-view"),A=K,i=Te,m=re;return a(),g("div",Tt,[t(m,{class:"w-100 h-screen"},{default:o(()=>[t(Et),t(m,null,{default:o(()=>[t(p,{class:"h-[60px]"},{default:o(()=>[t(Yt)]),_:1}),t(i,{class:"main-wrap h-full p-0"},{default:o(()=>[t(A,null,{default:o(()=>[e("div",It,[s(_).routeRefreshTag?(a(),D(h,{key:0},{default:o(({Component:w,route:c})=>[(a(),D(We,{include:s(n).tabNames},[(a(),D(Ee(w),{key:c.fullPath}))],1032,["include"]))]),_:1})):J("",!0)])]),_:1})]),_:1})]),_:1})]),_:1})])}}});export{so as default};
|