1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-02 00:59:23 +00:00
Classworks/assets/default-eHHphOHo.js

2 lines
3.0 KiB
JavaScript

import{g as v,p,r as w,a as z,u as I,b as F,c as R,d as D,s as T,e as E,f as m,h as L,i as M,t as d,w as N,j as k,k as n,n as b,l as y,m as A,o as H,q as C,v as Z,x as G,y as O,z as x,A as j,_ as q,B as J,C as V,D as h,E as _,F as K,G as r,H as U,I as $,V as Q,J as W,K as X,L as Y,M as ee,N as te,O as ae,P as se}from"./index-DpRopL3V.js";const oe=p({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...j(),...x(),...O(),...G(),...Z(),...C({tag:"footer"}),...H()},"VFooter"),ne=v()({name:"VFooter",props:oe(),setup(e,l){let{slots:t}=l;const o=w(),{themeClasses:s}=z(e),{backgroundColorClasses:a,backgroundColorStyles:c}=I(()=>e.color),{borderClasses:i}=F(e),{elevationClasses:S}=R(e),{roundedClasses:B}=D(e),f=T(32),{resizeRef:P}=E(u=>{u.length&&(f.value=u[0].target.clientHeight)}),g=m(()=>e.height==="auto"?f.value:parseInt(e.height,10));return L(()=>e.app,()=>{const u=M({id:e.name,order:m(()=>parseInt(e.order,10)),position:d(()=>"bottom"),layoutSize:g,elementSize:m(()=>e.height==="auto"?void 0:g.value),active:d(()=>e.app),absolute:d(()=>e.absolute)});N(()=>{o.value=u.layoutItemStyles.value})}),k(()=>n(e.tag,{ref:P,class:y(["v-footer",s.value,a.value,i.value,S.value,B.value,e.class]),style:b([c.value,e.app?o.value:{height:A(e.height)},e.style])},t)),{}}}),le=["href","title"],re={__name:"AppFooter",setup(e){const{mobile:l}=J(),t=[{title:"Classworks",icon:"mdi-earth",href:"https://cs.houlangs.com"},{title:"ZeroCat",icon:"mdi-xml",href:"https://zerocat.houlangs.com"},{title:"GitHub",icon:"mdi-github",href:"https://github.com/ZeroCatDev/Classworks"}];return(o,s)=>(h(),V(ne,{height:"40",app:""},{default:_(()=>[(h(),K(U,null,$(t,a=>r("a",{key:a.title,href:a.href,title:a.title,class:"d-inline-block mx-2 social-link",rel:"noopener noreferrer",target:"_blank"},[n(Q,{icon:a.icon,size:a.icon==="mdi-earth"?24:16},null,8,["icon","size"])],8,le)),64)),s[0]||(s[0]=r("div",{class:"text-caption text-disabled",style:{position:"absolute",right:"16px"}},[r("a",{class:"text-decoration-none on-surface",href:"https://github.com/ZeroCatDev/Classworks",rel:"noopener noreferrer",target:"_blank"}," Classworks "),W(),r("a",{class:"text-decoration-none on-surface",href:"https://beian.miit.gov.cn",rel:"noopener noreferrer",target:"_blank"}," 浙ICP备2024068645号 ")],-1))]),_:1,__:[0]}))}},ce=q(re,[["__scopeId","data-v-4c8e3c20"]]),ie=p({scrollable:Boolean,...x(),...te(),...C({tag:"main"})},"VMain"),ue=v()({name:"VMain",props:ie(),setup(e,l){let{slots:t}=l;const{dimensionStyles:o}=X(e),{mainStyles:s}=Y(),{ssrBootStyles:a}=ee();return k(()=>n(e.tag,{class:y(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:b([s.value,a.value,o.value,e.style])},{default:()=>{var c,i;return[e.scrollable?r("div",{class:"v-main__scroller"},[(c=t.default)==null?void 0:c.call(t)]):(i=t.default)==null?void 0:i.call(t)]}})),{}}}),de={__name:"default",setup(e){return(l,t)=>{const o=ae("router-view"),s=ce;return h(),V(se,null,{default:_(()=>[n(ue,null,{default:_(()=>[n(o)]),_:1}),n(s)]),_:1})}}};export{de as default};