mirror of
https://github.com/MarSeventh/CloudFlare-ImgBed.git
synced 2026-01-31 09:03:19 +08:00
2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
"use strict";(self["webpackChunksanyue_imghub"]=self["webpackChunksanyue_imghub"]||[]).push([[495],{200:function(e,t,o){o(5331)},213:function(e,t,o){o(5331),o(9104)},694:function(e,t,o){o(5331)},797:function(e,t,o){o.d(t,{A:function(){return a}});o(4114),o(4979);var n=o(5774),i=o(1219),s=o(2695);async function a(e,t={}){const o=n.A.getters.credentials||btoa("unset:unset");t.headers={...t.headers,Authorization:`Basic ${o}`},t.credentials="include";const a=await fetch(e,t);return 401===a.status&&(i.nk.error("认证状态错误,请重新登录"),s.A.push("/adminLogin")),a}},3597:function(e,t,o){o(5331)},3731:function(e,t,o){o.d(t,{A:function(){return C}});var n=o(6768),i=o(5130),s=o(4232);const a={id:"themeMaskAdmin"},r=["cx","cy","r"],c=["r"],l=["opacity"];function u(e,t,o,u,d,h){const m=(0,n.g2)("font-awesome-icon");return(0,n.uX)(),(0,n.CE)("div",{id:"themeToggle",onClick:t[0]||(t[0]=(...e)=>h.handleToggleClick&&h.handleToggleClick(...e))},[(0,n.bF)(i.eB,{name:"icon-fade",mode:"out-in"},{default:(0,n.k6)(()=>[d.isAuto?((0,n.uX)(),(0,n.Wv)(m,{key:"auto-mode",icon:"circle-half-stroke",class:"auto-icon",style:{"font-size":"1.3em",color:"var(--admin-theme-toggle-color)"}})):((0,n.uX)(),(0,n.CE)("svg",{key:"sun-moon",class:(0,s.C4)(["theme_toggle_svg",{dark:d.isDark}]),width:"1.3em",height:"1.3em",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor"},[(0,n.Lk)("mask",a,[t[1]||(t[1]=(0,n.Lk)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"},null,-1)),(0,n.Lk)("circle",{class:"theme_toggle_circle1",fill:"black",cx:d.isDark?"50%":"100%",cy:d.isDark?"23%":"0%",r:d.isDark?"9":"5"},null,8,r)]),(0,n.Lk)("circle",{class:"theme_toggle_circle2",cx:"12",cy:"12",r:d.isDark?"9":"5",mask:"url(#themeMaskAdmin)"},null,8,c),(0,n.Lk)("g",{class:"theme_toggle_g",stroke:"currentColor",opacity:d.isDark?0:1},[...t[2]||(t[2]=[(0,n.Lk)("line",{x1:"12",y1:"1",x2:"12",y2:"3"},null,-1),(0,n.Lk)("line",{x1:"12",y1:"21",x2:"12",y2:"23"},null,-1),(0,n.Lk)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"},null,-1),(0,n.Lk)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"},null,-1),(0,n.Lk)("line",{x1:"1",y1:"12",x2:"3",y2:"12"},null,-1),(0,n.Lk)("line",{x1:"21",y1:"12",x2:"23",y2:"12"},null,-1),(0,n.Lk)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"},null,-1),(0,n.Lk)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"},null,-1)])],8,l)],2))]),_:1})])}var d={name:"ToggleDark",data(){return{isDark:this.$store.getters.useDarkMode,isAuto:!this.$store.getters.cusDarkMode}},methods:{handleToggleClick(){this.isAuto?(this.isDark=!1,this.isAuto=!1,this.$store.commit("setCusDarkMode",!0),this.$store.commit("setUseDarkMode",!1)):this.isDark?(this.isAuto=!0,this.$store.commit("setCusDarkMode",!1)):(this.isDark=!0,this.$store.commit("setCusDarkMode",!0),this.$store.commit("setUseDarkMode",!0))}}},h=o(1241);const m=(0,h.A)(d,[["render",u],["__scopeId","data-v-4c6ec90c"]]);var k=m,g=o(2086);o(5331),o(6055),o(8830),o(3597);const f={class:"tabs"},b={class:"tabs-dropdown-link"};function y(e,t,o,i,a,r){const c=(0,n.g2)("font-awesome-icon"),l=g.c6,u=g.Iy,d=g.dW,h=k;return(0,n.uX)(),(0,n.CE)("div",f,[(0,n.Lk)("span",{class:"title",onClick:t[0]||(t[0]=(...e)=>r.refreshDashboard&&r.refreshDashboard(...e))},[(0,n.bF)(c,{icon:r.iconName,class:"fa-images"},null,8,["icon"]),(0,n.eW)(" "+(0,s.v_)(r.titleName),1)]),(0,n.bF)(d,{onCommand:r.handleTabClick,class:"tabs-dropdown",role:"navigation",onVisibleChange:r.handleDropdownVisible,"popper-class":"tabs-dropdown-popper"},{dropdown:(0,n.k6)(()=>[(0,n.bF)(u,null,{default:(0,n.k6)(()=>["dashboard"!==o.activeTab?((0,n.uX)(),(0,n.Wv)(l,{key:0,command:"dashboard"},{default:(0,n.k6)(()=>[(0,n.bF)(c,{icon:"images",style:{"margin-right":"5px",width:"16px"}}),t[1]||(t[1]=(0,n.eW)(" Gallery ",-1))]),_:1})):(0,n.Q3)("",!0),"customerConfig"!==o.activeTab?((0,n.uX)(),(0,n.Wv)(l,{key:1,command:"customerConfig"},{default:(0,n.k6)(()=>[(0,n.bF)(c,{icon:"user-cog",style:{"margin-right":"5px",width:"16px"}}),t[2]||(t[2]=(0,n.eW)(" 用户管理 ",-1))]),_:1})):(0,n.Q3)("",!0),"systemConfig"!==o.activeTab?((0,n.uX)(),(0,n.Wv)(l,{key:2,command:"systemConfig"},{default:(0,n.k6)(()=>[(0,n.bF)(c,{icon:"cogs",style:{"margin-right":"5px",width:"16px"}}),t[3]||(t[3]=(0,n.eW)(" 系统设置 ",-1))]),_:1})):(0,n.Q3)("",!0),(0,n.bF)(l,{command:""},{default:(0,n.k6)(()=>[(0,n.bF)(c,{icon:"upload",style:{"margin-right":"5px",width:"16px"}}),t[4]||(t[4]=(0,n.eW)(" 文件上传 ",-1))]),_:1})]),_:1})]),default:(0,n.k6)(()=>[(0,n.Lk)("span",b,[(0,n.bF)(c,{icon:"bars",class:"tabs-arrow"})])]),_:1},8,["onCommand","onVisibleChange"]),(0,n.bF)(h)])}o(4114);var p={name:"DashboardTabs",props:{activeTab:{type:String,default:"dashboard"}},components:{AdminToggleDark:k},computed:{titleName(){return"dashboard"===this.activeTab?"Gallery":"customerConfig"===this.activeTab?"用户管理":"systemConfig"===this.activeTab?"系统设置":"上传页面"},iconName(){return"dashboard"===this.activeTab?"images":"customerConfig"===this.activeTab?"user-cog":"systemConfig"===this.activeTab?"cogs":"upload"}},methods:{refreshDashboard(){location.reload()},handleTabClick(e){this.$router.push(`/${e}`)},handleDropdownVisible(e){const t=document.querySelector(".tabs-dropdown-link");e?t.classList.add("rotate-up"):t.classList.remove("rotate-up")}}};const v=(0,h.A)(p,[["render",y],["__scopeId","data-v-ae43a7ac"]]);var C=v},4318:function(){},4752:function(e,t,o){o(5331),o(8736),o(8785)},5802:function(e,t,o){o(5331),o(8736),o(213),o(5970)},5970:function(e,t,o){o(5331)},6055:function(e,t,o){o(5331),o(9648),o(8050),o(9104),o(5970)},6808:function(e,t,o){o(5331),o(8785),o(200),o(5970),o(9104)},7128:function(e,t,o){o(5331),o(4318)},8050:function(e,t,o){o(5331)},8075:function(e,t,o){o(5331)},8736:function(e,t,o){o(5331)},8785:function(e,t,o){o(5331)},8830:function(e,t,o){o(5331)},9104:function(e,t,o){o(5331)}}]);
|
|
//# sourceMappingURL=495.27cf30b6.js.map
|