update 2024-02-23 13:37:38

This commit is contained in:
github-actions[bot] 2024-02-23 13:37:38 +08:00
parent 98ea9bfd79
commit fc543b3a43
109 changed files with 4902 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# Copyright (C) 2016 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for sunpanel
LUCI_DEPENDS:=+sunpanel
LUCI_PKGARCH:=all
PKG_VERSION:=1.3.1-2
# PKG_RELEASE MUST be empty for luci.mk
PKG_RELEASE:=
LUCI_MINIFY_CSS:=0
LUCI_MINIFY_JS:=0
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,48 @@
import{m as d,p as t,K as v,aT as F,n as H,f as j,q as M,z as C,af as N,y as p,aN as O,A as i,B as V,r as W,g as o,P as D,aL as K,F as q,G,aS as J,cT as Q,S as U,aD as X,aE as Y,aF as Z,aC as ee}from"./index-7e19b821.js";const re=d("alert",`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[t("border",`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),v("closable",[d("alert-body",[t("title",`
padding-right: 24px;
`)])]),t("icon",{color:"var(--n-icon-color)"}),d("alert-body",{padding:"var(--n-padding)"},[t("title",{color:"var(--n-title-text-color)"}),t("content",{color:"var(--n-content-text-color)"})]),F({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),t("icon",`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),t("close",`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),v("show-icon",[d("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),v("right-adjust",[d("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),d("alert-body",`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[t("title",`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[H("& +",[t("content",{marginTop:"9px"})])]),t("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),t("icon",{transition:"color .3s var(--n-bezier)"})]),oe=Object.assign(Object.assign({},C.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ie=j({name:"Alert",inheritAttrs:!1,props:oe,setup(n){const{mergedClsPrefixRef:e,mergedBorderedRef:l,inlineThemeDisabled:g,mergedRtlRef:u}=M(n),h=C("Alert","-alert",re,Q,n,e),z=N("Alert",u,e),f=p(()=>{const{common:{cubicBezierEaseInOut:a},self:r}=h.value,{fontSize:x,borderRadius:R,titleFontWeight:I,lineHeight:A,iconSize:T,iconMargin:m,iconMarginRtl:$,closeIconSize:w,closeBorderRadius:P,closeSize:B,closeMargin:S,closeMarginRtl:_,padding:L}=r,{type:s}=n,{left:k,right:E}=O(m);return{"--n-bezier":a,"--n-color":r[i("color",s)],"--n-close-icon-size":w,"--n-close-border-radius":P,"--n-close-color-hover":r[i("closeColorHover",s)],"--n-close-color-pressed":r[i("closeColorPressed",s)],"--n-close-icon-color":r[i("closeIconColor",s)],"--n-close-icon-color-hover":r[i("closeIconColorHover",s)],"--n-close-icon-color-pressed":r[i("closeIconColorPressed",s)],"--n-icon-color":r[i("iconColor",s)],"--n-border":r[i("border",s)],"--n-title-text-color":r[i("titleTextColor",s)],"--n-content-text-color":r[i("contentTextColor",s)],"--n-line-height":A,"--n-border-radius":R,"--n-font-size":x,"--n-title-font-weight":I,"--n-icon-size":T,"--n-icon-margin":m,"--n-icon-margin-rtl":$,"--n-close-size":B,"--n-close-margin":S,"--n-close-margin-rtl":_,"--n-padding":L,"--n-icon-margin-left":k,"--n-icon-margin-right":E}}),c=g?V("alert",p(()=>n.type[0]),f,n):void 0,b=W(!0),y=()=>{const{onAfterLeave:a,onAfterHide:r}=n;a&&a(),r&&r()};return{rtlEnabled:z,mergedClsPrefix:e,mergedBordered:l,visible:b,handleCloseClick:()=>{var a;Promise.resolve((a=n.onClose)===null||a===void 0?void 0:a.call(n)).then(r=>{r!==!1&&(b.value=!1)})},handleAfterLeave:()=>{y()},mergedTheme:h,cssVars:g?void 0:f,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var n;return(n=this.onRender)===null||n===void 0||n.call(this),o(J,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:l}=this,g={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?o("div",Object.assign({},D(this.$attrs,g)),this.closable&&o(K,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&o("div",{class:`${e}-alert__border`}),this.showIcon&&o("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},q(l.icon,()=>[o(U,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return o(ee,null);case"info":return o(Z,null);case"warning":return o(Y,null);case"error":return o(X,null);default:return null}}})])),o("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},G(l.header,u=>{const h=u||this.title;return h?o("div",{class:`${e}-alert-body__title`},h):null}),l.default&&o("div",{class:`${e}-alert-body__content`},l))):null}})}});export{ie as N};

View File

@ -0,0 +1,42 @@
import{m as p,aj as c,p as n,K as t,f,q as u,z as v,cO as b,y as x,B as C,g as d,ao as $}from"./index-7e19b821.js";const w=p("divider",`
position: relative;
display: flex;
width: 100%;
box-sizing: border-box;
font-size: 16px;
color: var(--n-text-color);
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`,[c("vertical",`
margin-top: 24px;
margin-bottom: 24px;
`,[c("no-title",`
display: flex;
align-items: center;
`)]),n("title",`
display: flex;
align-items: center;
margin-left: 12px;
margin-right: 12px;
white-space: nowrap;
font-weight: var(--n-font-weight);
`),t("title-position-left",[n("line",[t("left",{width:"28px"})])]),t("title-position-right",[n("line",[t("right",{width:"28px"})])]),t("dashed",[n("line",`
background-color: #0000;
height: 0px;
width: 100%;
border-style: dashed;
border-width: 1px 0 0;
`)]),t("vertical",`
display: inline-block;
height: 1em;
margin: 0 8px;
vertical-align: middle;
width: 1px;
`),n("line",`
border: none;
transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
height: 1px;
width: 100%;
margin: 0;
`),c("dashed",[n("line",{backgroundColor:"var(--n-color)"})]),t("dashed",[n("line",{borderColor:"var(--n-color)"})]),t("vertical",{backgroundColor:"var(--n-color)"})]),_=Object.assign(Object.assign({},v.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),z=f({name:"Divider",props:_,setup(r){const{mergedClsPrefixRef:o,inlineThemeDisabled:l}=u(r),s=v("Divider","-divider",w,b,r,o),a=x(()=>{const{common:{cubicBezierEaseInOut:e},self:{color:h,textColor:g,fontWeight:m}}=s.value;return{"--n-bezier":e,"--n-color":h,"--n-text-color":g,"--n-font-weight":m}}),i=l?C("divider",void 0,a,r):void 0;return{mergedClsPrefix:o,cssVars:l?void 0:a,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var r;const{$slots:o,titlePlacement:l,vertical:s,dashed:a,cssVars:i,mergedClsPrefix:e}=this;return(r=this.onRender)===null||r===void 0||r.call(this),d("div",{role:"separator",class:[`${e}-divider`,this.themeClass,{[`${e}-divider--vertical`]:s,[`${e}-divider--no-title`]:!o.default,[`${e}-divider--dashed`]:a,[`${e}-divider--title-position-${l}`]:o.default&&l}],style:i},s?null:d("div",{class:`${e}-divider__line ${e}-divider__line--left`}),!s&&o.default?d($,null,d("div",{class:`${e}-divider__title`},this.$slots),d("div",{class:`${e}-divider__line ${e}-divider__line--right`})):null)}});export{z as N};

View File

@ -0,0 +1,12 @@
import{m as p,f as x,q as v,y as o,z as f,A as g,B as z,g as S,cH as T}from"./index-7e19b821.js";import{u as C}from"./index-2b595d91.js";import{f as R}from"./index-c238f14b.js";const $=p("gradient-text",`
display: inline-block;
font-weight: var(--n-font-weight);
-webkit-background-clip: text;
background-clip: text;
color: #0000;
white-space: nowrap;
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
transition:
--n-color-start .3s var(--n-bezier),
--n-color-end .3s var(--n-bezier);
`),k=Object.assign(Object.assign({},f.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),O=x({name:"GradientText",props:k,setup(t){C();const{mergedClsPrefixRef:n,inlineThemeDisabled:l}=v(t),i=o(()=>{const{type:e}=t;return e==="danger"?"error":e}),m=o(()=>{let e=t.size||t.fontSize;return e&&(e=R(e)),e||void 0}),u=o(()=>{const e=t.color||t.gradient;if(typeof e=="string")return e;if(e){const s=e.deg||0,a=e.from,c=e.to;return`linear-gradient(${s}deg, ${a} 0%, ${c} 100%)`}}),h=f("GradientText","-gradient-text",$,T,t,n),d=o(()=>{const{value:e}=i,{common:{cubicBezierEaseInOut:s},self:{rotate:a,[g("colorStart",e)]:c,[g("colorEnd",e)]:y,fontWeight:b}}=h.value;return{"--n-bezier":s,"--n-rotate":a,"--n-color-start":c,"--n-color-end":y,"--n-font-weight":b}}),r=l?z("gradient-text",o(()=>i.value[0]),d,t):void 0;return{mergedClsPrefix:n,compatibleType:i,styleFontSize:m,styleBgImage:u,cssVars:l?void 0:d,themeClass:r==null?void 0:r.themeClass,onRender:r==null?void 0:r.onRender}},render(){const{mergedClsPrefix:t,onRender:n}=this;return n==null||n(),S("span",{class:[`${t}-gradient-text`,`${t}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});export{O as N};

View File

@ -0,0 +1 @@
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};

View File

@ -0,0 +1 @@
import{be as t}from"./index-7e19b821.js";function r(){return t({url:"/about"})}export{r as g};

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,20 @@
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M23.2739 83.9026C24.8696 84.9049 27.8614 87.6111 34.3437 84.6042C37.8342 82.6999 40.128 81.2967 41.3247 80.3947L40.826 80.6953L40.9258 54.3354L40.7263 17.9527C40.7263 17.9527 40.0282 12.7409 36.1388 10.2352C31.8505 6.82742 24.8696 2.01648 23.972 1.7158C23.1742 1.0142 20.1824 -0.0883057 18.2875 3.62013L18.3873 76.6862C18.3873 76.6862 18.487 77.4881 18.6864 78.791C19.8832 80.6953 21.4788 82.9004 23.2739 83.9026Z" fill="url(#paint0_linear_102_2)"/>
<path d="M70.2458 62.7546L41.3247 80.2944C40.0282 81.1965 37.8342 82.5997 34.244 84.504C27.8614 87.5109 24.8696 84.8047 23.1742 83.8024C21.3791 82.8001 19.7835 80.5951 18.5867 78.5906C19.1851 81.397 20.5813 86.4083 24.1715 89.9163C28.759 94.627 34.3437 100.741 49.4027 98.5359C52.7934 97.5336 56.4833 95.5291 63.0654 91.1191C68.0518 87.8115 73.1379 86.1077 77.3265 80.2944C82.0137 67.3651 72.739 63.5564 70.2458 62.7546Z" fill="url(#paint1_linear_102_2)"/>
<path d="M80.8169 54.0347C77.6256 47.9208 77.127 45.3149 67.1542 39.5017C56.9819 34.2898 55.486 33.488 55.486 33.488C55.486 33.488 52.9928 31.3832 50.5993 31.5837C48.3056 32.586 46.8097 33.9891 48.5051 38.3992C50.7988 44.7135 53.4915 51.6293 53.4915 51.6293C53.4915 51.6293 54.4887 56.7409 58.5776 58.4447C65.6583 60.75 70.2457 62.6543 70.2457 62.6543L70.146 62.7545C72.6392 63.5564 81.9139 67.2648 77.3264 80.3946C78.8223 78.3901 80.1188 75.7842 81.3155 72.5769C82.8115 66.9641 83.5096 64.1577 80.8169 54.0347Z" fill="url(#paint2_linear_102_2)"/>
<defs>
<linearGradient id="paint0_linear_102_2" x1="10.1209" y1="6.26564" x2="45.1332" y2="79.3835" gradientUnits="userSpaceOnUse">
<stop stop-color="#3BBDF5"/>
<stop offset="1" stop-color="#1B45D9"/>
</linearGradient>
<linearGradient id="paint1_linear_102_2" x1="18.7266" y1="80.9445" x2="78.701" y2="80.9445" gradientUnits="userSpaceOnUse">
<stop stop-color="#5AD9FE"/>
<stop offset="0.51" stop-color="#43AAE1"/>
<stop offset="1" stop-color="#144AD5"/>
</linearGradient>
<linearGradient id="paint2_linear_102_2" x1="55.3044" y1="46.4248" x2="82.9308" y2="67.615" gradientUnits="userSpaceOnUse">
<stop stop-color="#3DC0FE"/>
<stop offset="1" stop-color="#61DDD5"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1639468659890" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3509" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M214.101333 512c0-32.512 5.546667-63.701333 15.36-92.928L57.173333 290.218667A491.861333 491.861333 0 0 0 4.693333 512c0 79.701333 18.858667 154.88 52.394667 221.610667l172.202667-129.066667A290.56 290.56 0 0 1 214.101333 512" fill="#FBBC05" p-id="3510"></path><path d="M516.693333 216.192c72.106667 0 137.258667 25.002667 188.458667 65.96266699L854.101333 136.533333C763.349333 59.178667 646.997333 11.392 516.693333 11.392c-202.325333 0-376.234667 113.28-459.52 278.826667l172.373334 128.853333c39.68-118.016 152.832-202.88 287.146666-202.88" fill="#EA4335" p-id="3511"></path><path d="M516.693333 807.808c-134.357333 0-247.509333-84.864-287.232-202.88l-172.288 128.853333c83.242667 165.546667 257.152 278.826667 459.52 278.826667 124.842667 0 244.053333-43.392 333.568-124.757333l-163.584-123.818667c-46.122667 28.458667-104.234667 43.776-170.026666 43.776" fill="#34A853" p-id="3512"></path><path d="M1005.397333 512c0-29.568-4.693333-61.44-11.64799999-91.008H516.650667V614.4h274.602666c-13.696 65.962667-51.072 116.650667-104.533333 149.632l163.541333 123.818667c93.994667-85.418667 155.136-212.650667 155.136-375.850667" fill="#4285F4" p-id="3513"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1 @@
.card[data-v-157c4864]{display:flex;justify-content:center;align-items:center;height:100px}.transparent-grid[data-v-157c4864]{background-image:linear-gradient(45deg,#e6e4e4 25%,transparent 25%,transparent 75%,#e6e4e4 75%),linear-gradient(45deg,#e6e4e4 25%,transparent 25%,transparent 75%,#e6e4e4 75%);background-size:16px 16px;background-position:0 0,8px 8px}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.link{color:#0059ff}

View File

@ -0,0 +1 @@
.login-container{padding:20px;display:flex;justify-content:center;align-items:center;height:100vh;background-color:#f2f6ff}.dark .login-container{background-color:#2b2b2b}@media (min-width: 600px){.login-card{width:auto;margin:0 10px}.login-button{width:100%}}.login-card{margin:20px;min-width:400px}.login-title{text-align:center;margin:20px}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{h as D,s as F,i as G,e as T,g as q}from"./index-bc9666b7.js";import{S as y}from"./index-c238f14b.js";import{_ as L}from"./index-b1d3d9b0.js";import{f as U,r as v,bn as A,bw as E,bo as r,D as I,aW as c,aX as b,b3 as i,b4 as o,a$ as n,b0 as h,b1 as f,b2 as t,ac as m,a_ as k,ao as R,bq as W,bC as P,bd as X,aZ as Z}from"./index-7e19b821.js";import{d as j,a as H,N as J}from"./index-2b595d91.js";import"./_plugin-vue_export-helper-c27b6911.js";const K={class:"h-full"},O={class:"p-2"},Q={class:"overflow-auto w-full mt-[20px] bg-slate-200 dark:bg-zinc-900 rounded-xl",style:{height:"calc(100% - 65px)"}},Y={class:"flex items-center"},ee={class:"mr-[10px]"},se={class:"ml-auto"},le={class:"ml-[10px]"},de=U({__name:"index",setup(ae){const x=v(null),p=A(),S=E(),u=v(!1),w={title:"",icon:"material-symbols:folder-outline",sort:9999},a=v({show:!1,editStatus:1,model:w,rules:{title:[{required:!0,trigger:"blur",message:r("form.required")}]}}),d=v([]);function C(){a.value.show=!a.value.show}function z(s){a.value.show=!0,a.value.model=s,a.value.editStatus=2}function N(){u.value=!0}function $(){const s=[];for(let e=0;e<d.value.length;e++){const l=d.value[e];s.push({id:l.id,sort:e+1})}F(s).then(({code:e,msg:l})=>{e===0?(p.success(r("common.saveSuccess")),u.value=!1):p.error(`${r("common.saveFail")}:${l}`)})}function M(s){S.warning({title:r("common.warning"),content:r("apps.itemGroupManage.deleteWarnText",{name:s.title}),positiveText:r("common.confirm"),negativeText:r("common.cancel"),onPositiveClick:()=>{s.id&&G([s.id]).then(({code:e,msg:l})=>{e!==0?p.error(r("common.deleteFail")):g()})}})}function V(){var s;(s=x.value)==null||s.validate(e=>{e?console.log(e):T(a.value.model).then(({code:l,msg:_})=>{l!==0&&p.error(_),g(),a.value.show=!1,a.value.model={...w}})})}function g(){q().then(({code:s,data:e})=>{d.value=e.list})}return I(()=>{g()}),(s,e)=>(c(),b("div",K,[i("div",O,[o(t(m),{type:"success",size:"small",style:{"margin-right":"10px"},onClick:C},{default:n(()=>[h(f(s.$t("common.add")),1)]),_:1}),u.value?(c(),k(t(m),{key:1,type:"warning",size:"small",onClick:$},{default:n(()=>[h(f(s.$t("common.saveSort")),1)]),_:1})):(c(),k(t(m),{key:0,size:"small",onClick:N},{default:n(()=>[h(f(s.$t("common.sort")),1)]),_:1}))]),i("div",Q,[o(t(D),{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=l=>d.value=l),"item-key":"sort",animation:300,style:Z({padding:u.value?"20px":"10px"}),disabled:!u.value},{default:n(()=>[(c(!0),b(R,null,W(d.value,(l,_)=>(c(),b("div",{key:_,class:"w-full"},[o(t(P),{size:"small",style:{"border-radius":"10px","margin-bottom":"10px"}},{default:n(()=>[i("div",{class:X(["flex",u.value?"cursor-move":""])},[i("div",Y,[i("span",ee,[o(t(y),{class:"text-[20px]",icon:"material-symbols:ad-group-outline-rounded"})]),i("span",null,f(l.title),1)]),i("div",se,[i("span",null,[o(t(m),{strong:"",secondary:"",type:"success",size:"small",onClick:B=>z(l)},{icon:n(()=>[o(t(y),{icon:"basil:edit-solid"})]),_:2},1032,["onClick"])]),i("span",le,[o(t(m),{strong:"",secondary:"",type:"error",size:"small",class:"ml-[10px]",onClick:B=>M(l)},{icon:n(()=>[o(t(y),{icon:"material-symbols:delete"})]),_:2},1032,["onClick"])])])],2)]),_:2},1024)]))),128))]),_:1},8,["modelValue","style","disabled"])]),o(t(L),{show:a.value.show,"onUpdate:show":e[2]||(e[2]=l=>a.value.show=l),size:"small",type:"small",title:a.value.editStatus===1?"添加":"编辑",style:{width:"400px"}},{footer:n(()=>[o(t(m),{type:"success",size:"small",class:"float-right",onClick:V},{default:n(()=>[h(f(s.$t("common.confirm")),1)]),_:1})]),default:n(()=>[o(t(j),{ref_key:"formRef",ref:x,model:a.value.model,rules:a.value.rules},{default:n(()=>[o(t(H),{path:"title",label:s.$t("apps.itemGroupManage.groupName")},{default:n(()=>[o(t(J),{value:a.value.model.title,"onUpdate:value":e[1]||(e[1]=l=>a.value.model.title=l),type:"text",maxlength:20,"show-count":""},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])]))}});export{de as default};

View File

@ -0,0 +1 @@
.text-shadow[data-v-da662465]{text-shadow:0px 0px 5px gray}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{be as o}from"./index-7e19b821.js";function n(r){return o({url:"/login",data:r})}function u(){return o({url:"/logout"})}export{u as a,n as l};

View File

@ -0,0 +1 @@
import{f as s,aX as a,b3 as c,b4 as o,a$ as r,b2 as n,bW as i,bX as l,aW as d,b0 as x,ac as p}from"./index-7e19b821.js";const u="/assets/404-b0d1a3d9.svg",_={class:"flex h-full"},m={class:"px-4 m-auto space-y-4 text-center max-[400px]"},f=i('<h1 class="text-4xl text-slate-800 dark:text-neutral-200"> 页面不存在 </h1><p class="text-base text-slate-500 dark:text-neutral-400"></p><div class="flex items-center justify-center text-center"><div class="w-[300px]"><img src="'+u+'" alt="404"></div></div>',3),N=s({__name:"index",setup(h){const e=l();function t(){e.push("/")}return(b,v)=>(d(),a("div",_,[c("div",m,[f,o(n(p),{type:"primary",onClick:t},{default:r(()=>[x(" 返回首页 ")]),_:1})])]))}});export{N 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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.markdown-body{background-color:transparent;font-size:14px}.markdown-body p{white-space:pre-wrap}.markdown-body ol{list-style-type:decimal}.markdown-body ul{list-style-type:disc}.markdown-body pre code,.markdown-body pre tt{line-height:1.65}.markdown-body .highlight pre,.markdown-body pre{background-color:#fff}.markdown-body code.hljs{padding:0}.markdown-body .code-block-wrapper{position:relative;padding-top:24px}.markdown-body .code-block-header{position:absolute;top:5px;right:0;width:100%;padding:0 1rem;display:flex;justify-content:flex-end;align-items:center;color:#b3b3b3}.markdown-body .code-block-header__copy{cursor:pointer;margin-left:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.markdown-body .code-block-header__copy:hover{color:#65a665}html.dark .message-reply .whitespace-pre-wrap{white-space:pre-wrap;color:var(--n-text-color)}html.dark .highlight pre,html.dark pre{background-color:#282c34}.transparent-grid[data-v-69882464]{background-image:linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%),linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%);background-size:16px 16px;background-position:0 0,8px 8px}.text-shadow[data-v-650ea9b6]{text-shadow:0px 0px 5px gray}.dark .app-starter-modal-content .n-layout{background-color:#2c2c32}.search-container[data-v-d2b10c26]{border:1px solid #ccc;transition:box-shadow .5s,-webkit-backdrop-filter .5s;transition:box-shadow .5s,backdrop-filter .5s;transition:box-shadow .5s,backdrop-filter .5s,-webkit-backdrop-filter .5s;padding:2px 10px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.focused[data-v-d2b10c26],.search-container[data-v-d2b10c26]:hover{box-shadow:0 0 30px -5px #29292973;-webkit-box-shadow:0px 0px 30px -5px rgba(0,0,0,.45);-moz-box-shadow:0px 0px 30px -5px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.before[data-v-d2b10c26]{left:10px}.after[data-v-d2b10c26]{right:10px}input[data-v-d2b10c26]{background-color:transparent;box-sizing:border-box;width:100%;height:40px;padding:10px 5px;border:none;outline:none;font-size:17px}.transparent-grid{background-image:linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%),linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%);background-size:16px 16px;background-position:0 0,8px 8px;background-color:#e2e8f0}.text-shadow[data-v-679daf12]{text-shadow:2px 2px 50px rgb(0,0,0)}.app-icon-text-shadow[data-v-679daf12]{text-shadow:2px 2px 5px rgb(0,0,0)}.icon-info-box[data-v-679daf12]{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}.icon-small-box[data-v-679daf12]{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(75px,1fr));gap:18px}@media (max-width: 500px){.icon-info-box[data-v-679daf12]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}body,html{overflow:hidden;background-color:#363636}.mask[data-v-f21ede0f]{position:absolute;top:0;left:0;width:100%;height:100%}.sun-main[data-v-f21ede0f]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.cover[data-v-f21ede0f]{position:absolute;width:100%;height:100%;overflow:hidden;transform:scale(1.05)}.text-shadow[data-v-f21ede0f]{text-shadow:2px 2px 50px rgb(0,0,0)}.app-icon-text-shadow[data-v-f21ede0f]{text-shadow:2px 2px 5px rgb(0,0,0)}.fixed-element[data-v-f21ede0f]{position:fixed;right:10px;bottom:50px}.icon-info-box[data-v-f21ede0f]{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}.icon-small-box[data-v-f21ede0f]{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(75px,1fr));gap:18px}@media (max-width: 500px){.icon-info-box[data-v-f21ede0f]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}

View File

@ -0,0 +1 @@
import{be as $,f as j,r as y,bn as B,bw as L,bv as D,D as G,aW as u,aX as h,a8 as P,aP as U,b4 as t,b2 as s,a$ as l,b0 as N,b1 as n,b3 as a,a_ as w,ao as W,bq as V,bC as q,ac as m,bo as i,cN as E}from"./index-7e19b821.js";import{S as g}from"./index-c238f14b.js";import{j as O,l as A,N as X,n as H,q as J,t as C,k as K,c as Q,_ as R,v as Y}from"./index-b1d3d9b0.js";import{N as Z}from"./Alert-018ca7af.js";import{_ as ee}from"./_plugin-vue_export-helper-c27b6911.js";function se(){return $({url:"/file/getList"})}function te(b){return $({url:"/file/deletes",data:{ids:b}})}const ae={class:"bg-slate-200 dark:bg-zinc-900 p-2 h-full"},oe={class:"flex justify-center mt-2"},le={key:0,class:"flex"},ne={class:"card transparent-grid"},ie={class:"text-xs"},re={class:"flex justify-center mt-[10px]"},ce={class:"mb-2"},de={class:"text-slate-500"},pe={class:"text-xs"},ue={class:"mb-2"},fe={class:"text-slate-500"},_e={class:"text-xs"},me={class:"mb-2"},ge={class:"text-slate-500"},ve={class:"text-xs"},ye=j({__name:"index",setup(b){const v=y([]),p=B(),F=L(),x=D(),f=y(!1),r=y({show:!1,title:"",fileInfo:null});async function k(){f.value=!0;const{data:e}=await se();v.value=e.list,f.value=!1}async function M(e){await Y(e)?p.success(i("apps.uploadsFileManager.copySuccess")):p.error(i("apps.uploadsFileManager.copyFailed"))}function I(e){F.warning({title:i("common.warning"),content:i("apps.uploadsFileManager.deleteWarningText"),positiveText:i("common.confirm"),negativeText:i("common.cancel"),onPositiveClick:()=>{S(e)}})}async function S(e){try{const{code:c,msg:o}=await te([e]);c===0?(k(),p.success(i("common.success"))):p.error(`${i("common.failed")}:${o}`)}catch{p.error(i("common.failed"))}}function T(e){r.value.fileInfo=e,r.value.show=!0}function z(e){x.panelConfig.backgroundImageSrc=e,E({panel:x.panelConfig})}return G(()=>{k()}),(e,c)=>(u(),h("div",ae,[P(t(s(O),{size:"small"},null,512),[[U,f.value]]),t(s(Z),{type:"info",bordered:!1},{default:l(()=>[N(n(e.$t("apps.uploadsFileManager.alertText")),1)]),_:1}),a("div",oe,[v.value.length===0&&!f.value?(u(),h("div",le,n(e.$t("apps.uploadsFileManager.nothingText")),1)):(u(),w(s(Q),{key:1},{default:l(()=>[t(s(K),{cols:"2 300:2 600:4 900:6 1100:9","x-gap":5,"y-gap":5},{default:l(()=>[(u(!0),h(W,null,V(v.value,(o,_)=>(u(),w(s(A),{key:_},{default:l(()=>[t(s(q),{size:"small",style:{"border-radius":"5px"},bordered:!0},{cover:l(()=>[a("div",ne,[t(s(X),{lazy:!0,style:{"object-fit":"contain",height:"100%"},src:o.src},null,8,["src"])])]),footer:l(()=>[a("span",ie,[t(s(H),null,{default:l(()=>[N(n(o.fileName),1)]),_:2},1024)]),a("div",re,[t(s(J),null,{default:l(()=>[t(s(m),{size:"tiny",tertiary:"",style:{cursor:"pointer"},title:e.$t("apps.uploadsFileManager.copyLink"),onClick:d=>M(o.src)},{icon:l(()=>[t(s(g),{icon:"ion-copy"})]),_:2},1032,["title","onClick"]),t(s(m),{size:"tiny",tertiary:"",style:{cursor:"pointer"},title:s(C)(o.createTime),onClick:d=>T(o)},{icon:l(()=>[t(s(g),{icon:"mdi-information-box-outline"})]),_:2},1032,["title","onClick"]),t(s(m),{size:"tiny",tertiary:"",style:{cursor:"pointer"},title:e.$t("apps.uploadsFileManager.setWallpaper"),onClick:d=>z(o.src)},{icon:l(()=>[t(s(g),{icon:"lucide:wallpaper"})]),_:2},1032,["title","onClick"]),t(s(m),{size:"tiny",tertiary:"",type:"error",style:{cursor:"pointer"},title:e.$t("common.delete"),onClick:d=>I(o.id)},{icon:l(()=>[t(s(g),{icon:"material-symbols-delete"})]),_:2},1032,["title","onClick"])]),_:2},1024)])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}))]),t(s(R),{show:r.value.show,"onUpdate:show":c[0]||(c[0]=o=>r.value.show=o),style:{"max-width":"300px"},size:"small",title:e.$t("apps.uploadsFileManager.infoTitle")},{default:l(()=>{var o,_,d;return[a("div",null,[a("div",null,[a("div",ce,[a("span",de,n(e.$t("apps.uploadsFileManager.fileName")),1),a("div",pe,n((o=r.value.fileInfo)==null?void 0:o.fileName),1)]),a("div",ue,[a("span",fe,n(e.$t("apps.uploadsFileManager.path")),1),a("div",_e,n((_=r.value.fileInfo)==null?void 0:_.src),1)]),a("div",me,[a("span",ge,n(e.$t("apps.uploadsFileManager.uploadTime")),1),a("div",ve,n(s(C)((d=r.value.fileInfo)==null?void 0:d.createTime)),1)])])])]}),_:1},8,["show","title"])]))}});const he=ee(ye,[["__scopeId","data-v-ad2e06f3"]]),Ce=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));export{he as U,se as g,Ce as i};

View File

@ -0,0 +1 @@
.card[data-v-ad2e06f3]{display:flex;justify-content:center;align-items:center;height:80px}.transparent-grid[data-v-ad2e06f3]{background-image:linear-gradient(45deg,#f0f0f0 25%,transparent 25%,transparent 75%,#f0f0f0 75%),linear-gradient(45deg,#f0f0f0 25%,transparent 25%,transparent 75%,#f0f0f0 75%);background-size:16px 16px;background-position:0 0,8px 8px}

View File

@ -0,0 +1 @@
import{g as a,U as s}from"./index-d074e84b.js";import{f as n,r as i,D as _,aX as c,b4 as r,aW as p}from"./index-7e19b821.js";import{_ as l}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-c238f14b.js";import"./index-b1d3d9b0.js";import"./Alert-018ca7af.js";const d=n({__name:"index",setup(m){const t=i([]);async function o(){const{data:e}=await a();console.log(e),t.value=e.list}return _(()=>{o()}),(e,f)=>(p(),c("div",null,[r(s)]))}});const k=l(d,[["__scopeId","data-v-157c4864"]]);export{k as default};

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 @@
import{f as x,bl as N,bB as S,bn as k,r as d,aX as B,b4 as s,a$ as t,b2 as a,aW as $,b3 as n,b0 as m,b1 as _,bt as C,ac as P,bC as U,bo as V,bA as I}from"./index-7e19b821.js";import{l as T}from"./index-8f0537f1.js";import{S as p}from"./index-c238f14b.js";import{b as A,l as K,d as j,a as c,N as h}from"./index-2b595d91.js";import{N as z}from"./GradientText-44d798c5.js";import"./_plugin-vue_export-helper-c27b6911.js";const F={class:"login-container"},L={class:"mb-5 flex items-center justify-end"},M={class:"mr-2"},D={class:"min-w-[100px]"},E={class:"login-title"},G=n("div",{class:"flex justify-center text-slate-300"},[m(" Powered By "),n("a",{href:"https://github.com/hslr-s/sun-panel",target:"_blank",class:"ml-[5px] text-slate-500"},"Sun-Panel")],-1),R=x({__name:"index",setup(H){const f=N(),g=S(),b=k(),r=d(!1),i=d(g.language),o=d({username:"",password:""}),y=async()=>{r.value=!0;try{const e=await T(o.value);e.code===0?(f.setToken(e.data.token),f.setUserInfo(e.data),setTimeout(()=>{b.success(`Hi ${e.data.name},${V("login.welcomeMessage")}`),r.value=!1,I.push({path:"/"})},500)):r.value=!1}catch(e){r.value=!1,console.log(e)}};function v(){y()}function w(e){i.value=e,g.setLanguage(e)}return(e,l)=>($(),B("div",F,[s(a(U),{class:"login-card",style:{"border-radius":"20px"}},{default:t(()=>[n("div",L,[n("div",M,[s(a(p),{icon:"ion-language",style:{width:"20",height:"20"}})]),n("div",D,[s(a(A),{value:i.value,"onUpdate:value":l[0]||(l[0]=u=>i.value=u),size:"small",options:a(K),onUpdateValue:w},null,8,["value","options"])])]),n("div",E,[s(a(z),{size:30,type:"success",class:"!font-bold"},{default:t(()=>[m(_(e.$t("common.appName")),1)]),_:1})]),s(a(j),{model:o.value,"label-width":"100px",onKeydown:C(v,["enter"])},{default:t(()=>[s(a(c),null,{default:t(()=>[s(a(h),{value:o.value.username,"onUpdate:value":l[1]||(l[1]=u=>o.value.username=u),placeholder:e.$t("login.usernamePlaceholder")},{prefix:t(()=>[s(a(p),{icon:"ph:user-bold"})]),_:1},8,["value","placeholder"])]),_:1}),s(a(c),null,{default:t(()=>[s(a(h),{value:o.value.password,"onUpdate:value":l[2]||(l[2]=u=>o.value.password=u),type:"password",placeholder:e.$t("login.passwordPlaceholder")},{prefix:t(()=>[s(a(p),{icon:"mdi:password-outline"})]),_:1},8,["value","placeholder"])]),_:1}),s(a(c),{style:{"margin-top":"10px"}},{default:t(()=>[s(a(P),{type:"primary",block:"",loading:r.value,onClick:v},{default:t(()=>[m(_(e.$t("login.loginButton")),1)]),_:1},8,["loading"])]),_:1}),G]),_:1},8,["model","onKeydown"])]),_:1})]))}});export{R as default};

View File

@ -0,0 +1 @@
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 566.93 566.93"><defs><style>.cls-1{fill:#4fb3bb;}</style></defs><path class="cls-1" d="M99.37,502.4H345.56A156.16,156.16,0,0,0,501.72,346.25h0A156.16,156.16,0,0,0,345.56,190.1h-123A33.54,33.54,0,0,0,189,223.61v1a33.54,33.54,0,0,0,33.54,33.56H344.44c48.51,0,88.77,38.74,89.24,87.25a88.22,88.22,0,0,1-88.12,89s-163.09.37-245.94-.27a34.15,34.15,0,0,0-34.41,34.15h0A34.15,34.15,0,0,0,99.37,502.4Z"/><path class="cls-1" d="M467.56,64.53H221.37A156.15,156.15,0,0,0,65.21,220.68h0A156.15,156.15,0,0,0,221.37,376.83h123a33.54,33.54,0,0,0,33.54-33.51v-1a33.54,33.54,0,0,0-33.54-33.56H222.49c-48.52,0-88.77-38.74-89.24-87.25a88.22,88.22,0,0,1,88.12-89s163.09-.37,245.94.27a34.15,34.15,0,0,0,34.41-34.15h0A34.15,34.15,0,0,0,467.56,64.53Z"/></svg>

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

View File

@ -0,0 +1 @@
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 566.93 566.93"><defs><style>.cls-1{fill:#040000;}</style></defs><path class="cls-1" d="M99.37,502.4H345.56A156.16,156.16,0,0,0,501.72,346.25h0A156.16,156.16,0,0,0,345.56,190.1h-123A33.54,33.54,0,0,0,189,223.61v1a33.54,33.54,0,0,0,33.54,33.56H344.44c48.51,0,88.77,38.74,89.24,87.25a88.22,88.22,0,0,1-88.12,89s-163.09.37-245.94-.27a34.15,34.15,0,0,0-34.41,34.15h0A34.15,34.15,0,0,0,99.37,502.4Z"/><path class="cls-1" d="M467.56,64.53H221.37A156.15,156.15,0,0,0,65.21,220.68h0A156.15,156.15,0,0,0,221.37,376.83h123a33.54,33.54,0,0,0,33.54-33.51v-1a33.54,33.54,0,0,0-33.54-33.56H222.49c-48.52,0-88.77-38.74-89.24-87.25a88.22,88.22,0,0,1,88.12-89s163.09-.37,245.94.27a34.15,34.15,0,0,0,34.41-34.15h0A34.15,34.15,0,0,0,467.56,64.53Z"/></svg>

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1 @@
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 566.93 566.93"><defs><style>.cls-1{fill:#4fb3bb;}</style></defs><path class="cls-1" d="M99.37,502.4H345.56A156.16,156.16,0,0,0,501.72,346.25h0A156.16,156.16,0,0,0,345.56,190.1h-123A33.54,33.54,0,0,0,189,223.61v1a33.54,33.54,0,0,0,33.54,33.56H344.44c48.51,0,88.77,38.74,89.24,87.25a88.22,88.22,0,0,1-88.12,89s-163.09.37-245.94-.27a34.15,34.15,0,0,0-34.41,34.15h0A34.15,34.15,0,0,0,99.37,502.4Z"/><path class="cls-1" d="M467.56,64.53H221.37A156.15,156.15,0,0,0,65.21,220.68h0A156.15,156.15,0,0,0,221.37,376.83h123a33.54,33.54,0,0,0,33.54-33.51v-1a33.54,33.54,0,0,0-33.54-33.56H222.49c-48.52,0-88.77-38.74-89.24-87.25a88.22,88.22,0,0,1,88.12-89s163.09-.37,245.94.27a34.15,34.15,0,0,0,34.41-34.15h0A34.15,34.15,0,0,0,467.56,64.53Z"/></svg>

After

Width:  |  Height:  |  Size: 823 B

Some files were not shown because too many files have changed in this diff Show More