mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-21 03:19:19 +08:00
Deploying to gh-pages from @ ac714f261f87f10a4a8e316d139ab8057e6d8e80 🚀
This commit is contained in:
parent
d3e40c0fd3
commit
534dc513a4
13
index.html
13
index.html
@ -6,8 +6,17 @@
|
||||
<link rel="icon" href="/v3-admin-vite/favicon.ico" />
|
||||
<link rel="stylesheet" href="/v3-admin-vite/app-loading.css" />
|
||||
<title>V3 Admin Vite</title>
|
||||
<script type="module" crossorigin src="/v3-admin-vite/static/index.3592cdc5.js"></script>
|
||||
<link rel="stylesheet" href="/v3-admin-vite/static/index.ebfe6458.css">
|
||||
<script type="module" crossorigin src="/v3-admin-vite/static/index-84161c9c.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/runtime-core.esm-bundler-9099a418.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/vue-router-d7411128.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/user-610e4ff5.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/useTheme-66c9e866.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/error-c58402b8.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/dayjs.min-577ab19e.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/_plugin-vue_export-helper-1b428a4d.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/index-367c001e.js">
|
||||
<link rel="modulepreload" crossorigin href="/v3-admin-vite/static/index-8090d756.js">
|
||||
<link rel="stylesheet" href="/v3-admin-vite/static/index-f51856d1.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
|
1
static/403-fa612333.js
Normal file
1
static/403-fa612333.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/404-1bf181a2.js
Normal file
1
static/404-1bf181a2.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/ErrorPageLayout-7e5a4480.js
Normal file
1
static/ErrorPageLayout-7e5a4480.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as r,X as s,aF as e,a2 as t,b1 as o,aG as n,ay as l,a1 as p}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"error-page"},d={class:"error-page-svg"};const i=a({},[["render",function(a,i){const c=n("el-button"),f=n("router-link");return l(),r("div",u,[s("div",d,[e(a.$slots,"default",{},void 0,!0)]),t(f,{to:"/"},{default:o((()=>[t(c,{type:"primary"},{default:o((()=>[p("回到首页")])),_:1})])),_:1})])}],["__scopeId","data-v-2fba9562"]]);export{i as E};
|
@ -1 +0,0 @@
|
||||
import{_ as s,f as a,y as e,I as r,h as t,w as o,e as d,o as n,z as c}from"./index.3592cdc5.js";const i={class:"error-page"},l={class:"error-page-svg"};const f=s({},[["render",function(s,f){const p=d("el-button"),u=d("router-link");return n(),a("div",i,[e("div",l,[r(s.$slots,"default",{},void 0,!0)]),t(u,{to:"/"},{default:o((()=>[t(p,{type:"primary"},{default:o((()=>[c("回到首页")])),_:1})])),_:1})])}],["__scopeId","data-v-2fba9562"]]);export{f as E};
|
1
static/SwitchRoles-e37e31b4.js
Normal file
1
static/SwitchRoles-e37e31b4.js
Normal file
@ -0,0 +1 @@
|
||||
import{bI as a}from"./user-610e4ff5.js";import{a4 as e,k as s,aY as l,aG as o,ay as r,W as t,X as n,D as u,x as i,a2 as d,b1 as m,aB as c,az as p}from"./runtime-core.esm-bundler-9099a418.js";import{_ as v}from"./_plugin-vue_export-helper-1b428a4d.js";const _={class:"switch-roles"},b=(a=>(c("data-v-21f43ea2"),a=a(),p(),a))((()=>n("span",null,"切换权限:",-1))),f=v(e({__name:"SwitchRoles",emits:["change"],setup(e,{emit:c}){const p=a(),v=s(p.roles[0]);return l(v,(async a=>{await p.changeRoles(a),c("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return r(),t("div",null,[n("div",null,"你的权限:"+u(i(p).roles),1),n("div",_,[b,d(l,{modelValue:v.value,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a)},{default:m((()=>[d(s,{label:"editor"}),d(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-21f43ea2"]]);export{f as S};
|
@ -1 +0,0 @@
|
||||
import{b as a,C as e,a as s,m as l,e as o,o as t,f as n,y as d,t as i,j as r,h as u,w as c,G as m,H as p,_ as v}from"./index.3592cdc5.js";const h={class:"switch-roles"},_=(a=>(m("data-v-21f43ea2"),a=a(),p(),a))((()=>d("span",null,"切换权限:",-1))),f=v(a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:m}){const p=e(),v=s(p.roles[0]);return l(v,(async a=>{await p.changeRoles(a),m("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return t(),n("div",null,[d("div",null,"你的权限:"+i(r(p).roles),1),d("div",h,[_,u(l,{modelValue:v.value,"onUpdate:modelValue":e[0]||(e[0]=a=>v.value=a)},{default:c((()=>[u(s,{label:"editor"}),u(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-21f43ea2"]]);export{f as S};
|
1
static/_plugin-vue_export-helper-1b428a4d.js
Normal file
1
static/_plugin-vue_export-helper-1b428a4d.js
Normal file
@ -0,0 +1 @@
|
||||
const o=(o,t)=>{const c=o.__vccOpts||o;for(const[s,n]of t)c[s]=n;return c};export{o as _};
|
1
static/dayjs.min-577ab19e.js
Normal file
1
static/dayjs.min-577ab19e.js
Normal file
File diff suppressed because one or more lines are too long
1
static/directive-94de171b.js
Normal file
1
static/directive-94de171b.js
Normal file
@ -0,0 +1 @@
|
||||
import{bu as e}from"./user-610e4ff5.js";import{S as i}from"./SwitchRoles-e37e31b4.js";import{a4 as s,k as a,aG as r,aH as o,ay as n,W as l,a2 as t,X as d,b3 as m,a1 as p,b1 as c,U as u,x as f,V as v}from"./runtime-core.esm-bundler-9099a418.js";import{_}from"./_plugin-vue_export-helper-1b428a4d.js";import"./vue-router-d7411128.js";const y=i=>{if(i&&i instanceof Array&&i.length>0){const s=e().roles,a=i;return s.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},b={class:"app-container"},g={class:"permission-alert"},k={class:"permission-alert"},h={class:"permission-alert"},j=_(s({__name:"directive",setup(e){const s=a(1),_=()=>{s.value++};return(e,a)=>{const j=r("el-tag"),P=r("el-tab-pane"),z=r("el-tabs"),x=o("permission");return n(),l("div",b,[t(i,{onChange:_}),(n(),l("div",{key:s.value,class:"margin-top"},[d("div",null,[m((n(),l("span",g,[p(" 只有 "),t(j,null,{default:c((()=>[p("admin")])),_:1}),p("可以看见这个 ")])),[[x,["admin"]]]),m((n(),u(j,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[p(" v-permission=\"['admin']\" ")])),_:1})),[[x,["admin"]]])]),d("div",null,[m((n(),l("span",k,[p(" 只有 "),t(j,null,{default:c((()=>[p("editor")])),_:1}),p("可以看见这个 ")])),[[x,["editor"]]]),m((n(),u(j,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[p(" v-permission=\"['editor']\" ")])),_:1})),[[x,["editor"]]])]),d("div",null,[m((n(),l("span",h,[p(" 两者 "),t(j,null,{default:c((()=>[p("admin")])),_:1}),p("和 "),t(j,null,{default:c((()=>[p("editor")])),_:1}),p("都可以看见这个 ")])),[[x,["admin","editor"]]]),m((n(),u(j,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[p(" v-permission=\"['admin', 'editor']\" ")])),_:1})),[[x,["admin","editor"]]])])])),(n(),l("div",{key:"checkPermission"+s.value,class:"margin-top"},[t(j,{type:"info",size:"large"},{default:c((()=>[p(" 在某些情况下,不适合使用 v-permission。例如: Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景。你只能通过手动设置 v-if 来实现。 ")])),_:1}),t(z,{type:"border-card",class:"margin-top"},{default:c((()=>[f(y)(["admin"])?(n(),u(P,{key:0,label:"admin"},{default:c((()=>[p(" admin 可以看见这个 "),t(j,{class:"permission-code",type:"info"},{default:c((()=>[p(" v-if=\"checkPermission(['admin'])\" ")])),_:1})])),_:1})):v("",!0),f(y)(["editor"])?(n(),u(P,{key:1,label:"editor"},{default:c((()=>[p(" editor 可以看见这个 "),t(j,{class:"permission-code",type:"info"},{default:c((()=>[p(" v-if=\"checkPermission(['editor'])\" ")])),_:1})])),_:1})):v("",!0),f(y)(["admin","editor"])?(n(),u(P,{key:2,label:"admin 和 editor"},{default:c((()=>[p(" 两者 admin 和 editor 都可以看见这个 "),t(j,{class:"permission-code",type:"info"},{default:c((()=>[p(" v-if=\"checkPermission(['admin', 'editor'])\" ")])),_:1})])),_:1})):v("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-4e49b14c"]]);export{j as default};
|
@ -1 +0,0 @@
|
||||
import{an as e,b as i,a as s,e as a,ac as n,o,f as l,h as d,y as r,R as t,z as m,w as c,i as p,j as u,A as f,_ as v}from"./index.3592cdc5.js";import{S as _}from"./SwitchRoles.e579e676.js";const y=i=>{if(i&&i instanceof Array&&i.length>0){const s=e().roles,a=i;return s.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},b={class:"app-container"},g={class:"permission-alert"},k={class:"permission-alert"},h={class:"permission-alert"},z=v(i({__name:"directive",setup(e){const i=s(1),v=()=>{i.value++};return(e,s)=>{const z=a("el-tag"),P=a("el-tab-pane"),j=a("el-tabs"),w=n("permission");return o(),l("div",b,[d(_,{onChange:v}),(o(),l("div",{key:i.value,class:"margin-top"},[r("div",null,[t((o(),l("span",g,[m(" 只有 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("可以看见这个 ")])),[[w,["admin"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin']\" ")])),_:1})),[[w,["admin"]]])]),r("div",null,[t((o(),l("span",k,[m(" 只有 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("可以看见这个 ")])),[[w,["editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['editor']\" ")])),_:1})),[[w,["editor"]]])]),r("div",null,[t((o(),l("span",h,[m(" 两者 "),d(z,null,{default:c((()=>[m("admin")])),_:1}),m("和 "),d(z,null,{default:c((()=>[m("editor")])),_:1}),m("都可以看见这个 ")])),[[w,["admin","editor"]]]),t((o(),p(z,{class:"permission-code",type:"info",size:"large"},{default:c((()=>[m(" v-permission=\"['admin', 'editor']\" ")])),_:1})),[[w,["admin","editor"]]])])])),(o(),l("div",{key:"checkPermission"+i.value,class:"margin-top"},[d(z,{type:"info",size:"large"},{default:c((()=>[m(" 在某些情况下,不适合使用 v-permission。例如: Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景。你只能通过手动设置 v-if 来实现。 ")])),_:1}),d(j,{type:"border-card",class:"margin-top"},{default:c((()=>[u(y)(["admin"])?(o(),p(P,{key:0,label:"admin"},{default:c((()=>[m(" admin 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["editor"])?(o(),p(P,{key:1,label:"editor"},{default:c((()=>[m(" editor 可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['editor'])\" ")])),_:1})])),_:1})):f("",!0),u(y)(["admin","editor"])?(o(),p(P,{key:2,label:"admin 和 editor"},{default:c((()=>[m(" 两者 admin 和 editor 都可以看见这个 "),d(z,{class:"permission-code",type:"info"},{default:c((()=>[m(" v-if=\"checkPermission(['admin', 'editor'])\" ")])),_:1})])),_:1})):f("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-4e49b14c"]]);export{z as default};
|
1
static/error-c58402b8.js
Normal file
1
static/error-c58402b8.js
Normal file
@ -0,0 +1 @@
|
||||
class r extends Error{constructor(r){super(r),this.name="ElementPlusError"}}function t(t,n){throw new r(`[${t}] ${n}`)}function n(r,t){}export{n as d,t};
|
1
static/index-018a66c9.js
Normal file
1
static/index-018a66c9.js
Normal file
File diff suppressed because one or more lines are too long
1
static/index-2672f2a5.js
Normal file
1
static/index-2672f2a5.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,a2 as r,b1 as s,aG as n,ay as t,a1 as o}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"app-container"};const l=a({},[["render",function(a,l){const c=n("el-card");return t(),e("div",u,[r(c,null,{default:s((()=>[o(" menu 2 ")])),_:1})])}]]);export{l as default};
|
1
static/index-367c001e.js
Normal file
1
static/index-367c001e.js
Normal file
File diff suppressed because one or more lines are too long
1
static/index-40ab632a.js
Normal file
1
static/index-40ab632a.js
Normal file
File diff suppressed because one or more lines are too long
1
static/index-4a114086.js
Normal file
1
static/index-4a114086.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,a2 as r,b1 as s,aG as n,ay as t,a1 as o}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"app-container"};const l=a({},[["render",function(a,l){const c=n("el-card");return t(),e("div",u,[r(c,null,{default:s((()=>[o(" menu 1-1 ")])),_:1})])}]]);export{l as default};
|
1
static/index-50eb39d4.js
Normal file
1
static/index-50eb39d4.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,a2 as r,b1 as s,aG as n,ay as t,a1 as o}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"app-container"};const l=a({},[["render",function(a,l){const c=n("el-card");return t(),e("div",u,[r(c,null,{default:s((()=>[o(" menu 1-2-2 ")])),_:1})])}]]);export{l as default};
|
1
static/index-522d0665.js
Normal file
1
static/index-522d0665.js
Normal file
@ -0,0 +1 @@
|
||||
import{bI as e}from"./user-610e4ff5.js";import{_ as t}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as a,a2 as r,aG as s,ay as n,a4 as o,k as i,ac as d,U as c,aI as p}from"./runtime-core.esm-bundler-9099a418.js";import{E as m}from"./index-8090d756.js";import"./vue-router-d7411128.js";const u={class:"app-container center"};const l=t({},[["render",function(e,t){const o=s("el-empty");return n(),a("div",u,[r(o,{description:"Admin 权限可见"})])}],["__scopeId","data-v-5a78679f"]]),f={class:"app-container center"};const v=t({},[["render",function(e,t){const o=s("el-empty");return n(),a("div",f,[r(o,{description:"Editor 权限可见"})])}],["__scopeId","data-v-f3d24ef0"]]),_=o({__name:"index",setup(t){const a=e(),r=i("admin");return a.roles.includes("admin")||(r.value="editor"),m({title:"Hello",message:d("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),(e,t)=>(n(),c(p("admin"===r.value?l:v)))}});export{_ as default};
|
1
static/index-70bed940.js
Normal file
1
static/index-70bed940.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,a2 as r,b1 as s,aG as n,ay as t,a1 as o}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"app-container"};const l=a({},[["render",function(a,l){const c=n("el-card");return t(),e("div",u,[r(c,null,{default:s((()=>[o(" menu 1-3 ")])),_:1})])}]]);export{l as default};
|
1
static/index-8090d756.js
Normal file
1
static/index-8090d756.js
Normal file
@ -0,0 +1 @@
|
||||
import{a0 as e,ao as t,X as o,a5 as s,aM as n,ac as a,a9 as l,ad as i,m as r,n as u,T as c,aa as p,aN as f,aj as d,R as m,ai as y,af as v,r as g,bD as b}from"./user-610e4ff5.js";import{a4 as h,k as C,Q as x,as as k,ay as I,U as S,b1 as T,b3 as _,X as E,A as L,x as M,C as H,aI as N,V as j,D as w,aF as B,W as z,I as $,a2 as A,ai as D,ba as F}from"./runtime-core.esm-bundler-9099a418.js";const U=["success","info","warning","error"],W=e({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:t},id:{type:String,default:""},message:{type:o([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:o(Function),default:()=>{}},onClose:{type:o(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...U,""],default:""},zIndex:{type:Number,default:0}}),q=["id"],O=["textContent"],X={key:0},Q=["innerHTML"],R=h({name:"ElNotification"});var V=p(h({...R,props:W,emits:{destroy:()=>!0},setup(e,{expose:t}){const o=e,p=s("notification"),{Close:m}=n,y=C(!1);let v;const g=x((()=>{const e=o.type;return e&&a[o.type]?p.m(e):""})),b=x((()=>o.type&&a[o.type]||o.icon)),h=x((()=>o.position.endsWith("right")?"right":"left")),D=x((()=>o.position.startsWith("top")?"top":"bottom")),F=x((()=>({[D.value]:`${o.offset}px`,zIndex:o.zIndex})));function U(){o.duration>0&&({stop:v}=f((()=>{y.value&&R()}),o.duration))}function W(){null==v||v()}function R(){y.value=!1}return k((()=>{U(),y.value=!0})),l(document,"keydown",(function({code:e}){e===d.delete||e===d.backspace?W():e===d.esc?y.value&&R():U()})),t({visible:y,close:R}),(e,t)=>(I(),S(c,{name:M(p).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[1]||(t[1]=t=>e.$emit("destroy")),persisted:""},{default:T((()=>[_(E("div",{id:e.id,class:L([M(p).b(),e.customClass,M(h)]),style:H(M(F)),role:"alert",onMouseenter:W,onMouseleave:U,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t))},[M(b)?(I(),S(M(i),{key:0,class:L([M(p).e("icon"),M(g)])},{default:T((()=>[(I(),S(N(M(b))))])),_:1},8,["class"])):j("v-if",!0),E("div",{class:L(M(p).e("group"))},[E("h2",{class:L(M(p).e("title")),textContent:w(e.title)},null,10,O),_(E("div",{class:L(M(p).e("content")),style:H(e.title?void 0:{margin:0})},[B(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(I(),z($,{key:1},[j(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,Q)],2112)):(I(),z("p",X,w(e.message),1))]))],6),[[r,e.message]]),e.showClose?(I(),S(M(i),{key:0,class:L(M(p).e("closeBtn")),onClick:u(R,["stop"])},{default:T((()=>[A(M(m))])),_:1},8,["class","onClick"])):j("v-if",!0)],2)],46,q),[[r,y.value]])])),_:3},8,["name","onBeforeLeave"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Z={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let G=1;const J=function(e={},t=null){if(!m)return{close:()=>{}};("string"==typeof e||D(e))&&(e={message:e});const o=e.position||"top-right";let s=e.offset||0;Z[o].forEach((({vm:e})=>{var t;s+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16})),s+=16;const{nextZIndex:n}=y(),a="notification_"+G++,l=e.onClose,i={zIndex:n(),...e,offset:s,id:a,onClose:()=>{!function(e,t,o){const s=Z[t],n=s.findIndex((({vm:t})=>{var o;return(null==(o=t.component)?void 0:o.props.id)===e}));if(-1===n)return;const{vm:a}=s[n];if(!a)return;null==o||o(a);const l=a.el.offsetHeight,i=t.split("-")[0];s.splice(n,1);const r=s.length;if(r<1)return;for(let u=n;u<r;u++){const{el:e,component:t}=s[u].vm,o=Number.parseInt(e.style[i],10)-l-16;t.props.offset=o}}(a,o,l)}};let r=document.body;v(e.appendTo)?r=e.appendTo:F(e.appendTo)&&(r=document.querySelector(e.appendTo)),v(r)||(r=document.body);const u=document.createElement("div"),c=A(V,i,D(i.message)?{default:()=>i.message}:null);return c.appContext=null!=t?t:J._context,c.props.onDestroy=()=>{g(null,u)},g(c,u),Z[o].push({vm:c}),r.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};U.forEach((e=>{J[e]=(t={})=>(("string"==typeof t||D(t))&&(t={message:t}),J({...t,type:e}))})),J.closeAll=function(){for(const e of Object.values(Z))e.forEach((({vm:e})=>{e.component.exposed.visible.value=!1}))},J._context=null;const K=b(J,"$notify");export{K as E};
|
1
static/index-84161c9c.js
Normal file
1
static/index-84161c9c.js
Normal file
File diff suppressed because one or more lines are too long
1
static/index-90f7b2cc.js
Normal file
1
static/index-90f7b2cc.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as t}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,ay as o,X as n}from"./runtime-core.esm-bundler-9099a418.js";const a={},r={"h-full":"","uno-padding-20":""},i=[n("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[n("div",{ma:""},[n("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),n("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),n("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[n("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),n("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(a,[["render",function(t,n){return o(),e("div",r,i)}]]);export{s as default};
|
1
static/index-9abe9204.js
Normal file
1
static/index-9abe9204.js
Normal file
@ -0,0 +1 @@
|
||||
import{u as a,b as e}from"./vue-router-d7411128.js";import{a4 as r,W as s,ay as t}from"./runtime-core.esm-bundler-9099a418.js";const u=r({__name:"index",setup(r){const u=a();return e().replace({path:"/"+u.params.path,query:u.query}),(a,e)=>(t(),s("div"))}});export{u as default};
|
1
static/index-ad90f78e.js
Normal file
1
static/index-ad90f78e.js
Normal file
@ -0,0 +1 @@
|
||||
import{w as e,bO as a,bP as r,bQ as s,bR as l,bS as o,am as t,n as i,bI as d}from"./user-610e4ff5.js";import{b as n}from"./vue-router-d7411128.js";import{_ as u}from"./index.vue_vue_type_script_setup_true_lang-d053b4e2.js";import{a4 as p,k as m,r as c,W as f,a2 as g,X as _,b1 as v,aG as b,aB as x,az as h,ay as w,x as y,a1 as V}from"./runtime-core.esm-bundler-9099a418.js";import{_ as j}from"./_plugin-vue_export-helper-1b428a4d.js";import"./useTheme-66c9e866.js";const k={class:"login-container"},z={class:"login-card"},q=(e=>(x("data-v-6f4945e9"),e=e(),h(),e))((()=>_("div",{class:"title"},[_("img",{src:"/v3-admin-vite/static/logo-text-2-eef467fb.png"})],-1))),C={class:"content"},M=j(p({__name:"index",setup(p){const x=n(),h=m(null),j=m(!1),M=m(""),U=c({username:"admin",password:"12345678",code:""}),I={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},K=()=>{var e;null==(e=h.value)||e.validate((e=>{if(!e)return!1;j.value=!0,d().login({username:U.username,password:U.password,code:U.code}).then((()=>{x.push({path:"/"})})).catch((()=>{R(),U.password=""})).finally((()=>{j.value=!1}))}))},R=()=>{U.code="",M.value="",a().then((e=>{M.value=e.data}))};return R(),(a,d)=>{const n=b("el-input"),p=b("el-form-item"),m=b("el-icon"),c=b("el-image"),x=b("el-button"),B=b("el-form");return w(),f("div",k,[g(u,{class:"theme-switch"}),_("div",z,[q,_("div",C,[g(B,{ref_key:"loginFormRef",ref:h,model:U,rules:I,onKeyup:e(K,["enter"])},{default:v((()=>[g(p,{prop:"username"},{default:v((()=>[g(n,{modelValue:U.username,"onUpdate:modelValue":d[0]||(d[0]=e=>U.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":y(r),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),g(p,{prop:"password"},{default:v((()=>[g(n,{modelValue:U.password,"onUpdate:modelValue":d[1]||(d[1]=e=>U.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":y(s),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),g(p,{prop:"code"},{default:v((()=>[g(n,{modelValue:U.code,"onUpdate:modelValue":d[2]||(d[2]=e=>U.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":y(l),maxlength:"7",size:"large"},{append:v((()=>[g(c,{src:M.value,onClick:R,draggable:"false"},{placeholder:v((()=>[g(m,null,{default:v((()=>[g(y(o))])),_:1})])),error:v((()=>[g(m,null,{default:v((()=>[g(y(t))])),_:1})])),_:1},8,["src"])])),_:1},8,["modelValue","prefix-icon"])])),_:1}),g(x,{loading:j.value,type:"primary",size:"large",onClick:i(K,["prevent"])},{default:v((()=>[V(" 登 录 ")])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-6f4945e9"]]);export{M as default};
|
1
static/index-bd2a9f5e.js
Normal file
1
static/index-bd2a9f5e.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as a}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as e,a2 as r,b1 as s,aG as n,ay as t,a1 as o}from"./runtime-core.esm-bundler-9099a418.js";const u={class:"app-container"};const l=a({},[["render",function(a,l){const c=n("el-card");return t(),e("div",u,[r(c,null,{default:s((()=>[o(" menu 1-2-1 ")])),_:1})])}]]);export{l as default};
|
1
static/index-ea8953d4.js
Normal file
1
static/index-ea8953d4.js
Normal file
File diff suppressed because one or more lines are too long
1
static/index-ec4cabfa.js
Normal file
1
static/index-ec4cabfa.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as r,a2 as a,b1 as s,aG as t,ay as n}from"./runtime-core.esm-bundler-9099a418.js";const o={class:"app-container"};const u=e({},[["render",function(e,u){const c=t("router-view"),i=t("el-card");return n(),r("div",o,[a(i,{header:"menu 1-2"},{default:s((()=>[a(c)])),_:1})])}]]);export{u as default};
|
1
static/index-f51856d1.css
Normal file
1
static/index-f51856d1.css
Normal file
File diff suppressed because one or more lines are too long
1
static/index-f86f6c14.js
Normal file
1
static/index-f86f6c14.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e}from"./_plugin-vue_export-helper-1b428a4d.js";import{W as r,a2 as a,b1 as s,aG as t,ay as n}from"./runtime-core.esm-bundler-9099a418.js";const o={class:"app-container"};const u=e({},[["render",function(e,u){const c=t("router-view"),i=t("el-card");return n(),r("div",o,[a(i,{header:"menu 1"},{default:s((()=>[a(c)])),_:1})])}]]);export{u as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{b as e,l as a,a as l,r as s,f as r,h as o,y as d,w as i,a3 as t,a4 as n,e as u,G as p,H as m,o as c,j as f,a5 as g,a6 as _,a7 as v,a8 as x,a9 as h,p as w,z as b,C as y,_ as V}from"./index.3592cdc5.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.657ee673.js";const k={class:"login-container"},C={class:"login-card"},j=(e=>(p("data-v-6f4945e9"),e=e(),m(),e))((()=>d("div",{class:"title"},[d("img",{src:"/v3-admin-vite/static/logo-text-2.eef467fb.png"})],-1))),q={class:"content"},M=V(e({__name:"index",setup(e){const p=a(),m=l(null),V=l(!1),M=l(""),U=s({username:"admin",password:"12345678",code:""}),K={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},F=()=>{var e;null==(e=m.value)||e.validate((e=>{if(!e)return!1;V.value=!0,y().login({username:U.username,password:U.password,code:U.code}).then((()=>{p.push({path:"/"})})).catch((()=>{G(),U.password=""})).finally((()=>{V.value=!1}))}))},G=()=>{U.code="",M.value="",n().then((e=>{M.value=e.data}))};return G(),(e,a)=>{const l=u("el-input"),s=u("el-form-item"),n=u("el-icon"),p=u("el-image"),y=u("el-button"),H=u("el-form");return c(),r("div",k,[o(z,{class:"theme-switch"}),d("div",C,[j,d("div",q,[o(H,{ref_key:"loginFormRef",ref:m,model:U,rules:K,onKeyup:t(F,["enter"])},{default:i((()=>[o(s,{prop:"username"},{default:i((()=>[o(l,{modelValue:U.username,"onUpdate:modelValue":a[0]||(a[0]=e=>U.username=e),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":f(g),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"password"},{default:i((()=>[o(l,{modelValue:U.password,"onUpdate:modelValue":a[1]||(a[1]=e=>U.password=e),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":f(_),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),o(s,{prop:"code"},{default:i((()=>[o(l,{modelValue:U.code,"onUpdate:modelValue":a[2]||(a[2]=e=>U.code=e),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":f(v),maxlength:"7",size:"large"},{append:i((()=>[o(p,{src:M.value,onClick:G,draggable:"false"},{placeholder:i((()=>[o(n,null,{default:i((()=>[o(f(x))])),_:1})])),error:i((()=>[o(n,null,{default:i((()=>[o(f(h))])),_:1})])),_:1},8,["src"])])),_:1},8,["modelValue","prefix-icon"])])),_:1}),o(y,{loading:V.value,type:"primary",size:"large",onClick:w(F,["prevent"])},{default:i((()=>[b(" 登 录 ")])),_:1},8,["loading","onClick"])])),_:1},8,["model","onKeyup"])])])])}}}),[["__scopeId","data-v-6f4945e9"]]);export{M as default};
|
@ -1 +0,0 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.3592cdc5.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1-2"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as c,z as o}from"./index.3592cdc5.js";const r={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return c(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 2 ")])),_:1})])}]]);export{d as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as t,f as e,o,y as a}from"./index.3592cdc5.js";const n={},i={"h-full":"","uno-padding-20":""},r=[a("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[a("div",{ma:""},[a("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),a("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),a("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[a("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),a("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss ",-1)];const s=t(n,[["render",function(t,a){return o(),e("div",i,r)}]]);export{s as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as c,z as o}from"./index.3592cdc5.js";const r={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return c(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-3 ")])),_:1})])}]]);export{d as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as c,z as o}from"./index.3592cdc5.js";const r={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return c(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-2-1 ")])),_:1})])}]]);export{d as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as c,z as o}from"./index.3592cdc5.js";const r={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return c(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-2-2 ")])),_:1})])}]]);export{d as default};
|
@ -1 +0,0 @@
|
||||
import{_ as e,f as a,h as s,w as r,e as n,o as t}from"./index.3592cdc5.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{b as a,u as e,l as s,f as r,o as t}from"./index.3592cdc5.js";const p=a({__name:"index",setup(a){const p=e();return s().replace({path:"/"+p.params.path,query:p.query}),(a,e)=>(t(),r("div"))}});export{p as default};
|
@ -1 +0,0 @@
|
||||
import{_ as a,f as t,h as e,e as s,o as n,b as o,C as i,a as r,aa as d,ab as c,i as l,k as p}from"./index.3592cdc5.js";const m={class:"app-container center"};const u=a({},[["render",function(a,o){const i=s("el-empty");return n(),t("div",m,[e(i,{description:"Admin 权限可见"})])}],["__scopeId","data-v-5a78679f"]]),f={class:"app-container center"};const v=a({},[["render",function(a,o){const i=s("el-empty");return n(),t("div",f,[e(i,{description:"Editor 权限可见"})])}],["__scopeId","data-v-f3d24ef0"]]),_=o({__name:"index",setup(a){const t=i(),e=r("admin");return t.roles.includes("admin")||(e.value="editor"),d({title:"Hello",message:c("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"),duration:0,position:"bottom-right"}),(a,t)=>(n(),l(p("admin"===e.value?u:v)))}});export{_ as default};
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as a,f as s,h as n,w as e,e as t,o as c,z as o}from"./index.3592cdc5.js";const r={class:"app-container"};const d=a({},[["render",function(a,d){const l=t("el-card");return c(),s("div",r,[n(l,null,{default:e((()=>[o(" menu 1-1 ")])),_:1})])}]]);export{d as default};
|
@ -0,0 +1 @@
|
||||
import{u as e}from"./useTheme-66c9e866.js";import{bN as a}from"./user-610e4ff5.js";import{a4 as t,aG as s,ay as n,U as o,b1 as m,a2 as l,W as d,aE as r,x as u,I as i,X as c,D as p}from"./runtime-core.esm-bundler-9099a418.js";const f=t({__name:"index",setup(t){const{themeList:f,activeThemeName:_,setTheme:b}=e(),h=e=>{b(e)};return(e,t)=>{const b=s("el-icon"),w=s("el-tooltip"),j=s("el-dropdown-item"),k=s("el-dropdown-menu"),x=s("el-dropdown");return n(),o(x,{trigger:"click",onCommand:h},{dropdown:m((()=>[l(k,null,{default:m((()=>[(n(!0),d(i,null,r(u(f),((e,a)=>(n(),o(j,{key:a,disabled:u(_)===e.name,command:e.name},{default:m((()=>[c("span",null,p(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:m((()=>[c("div",null,[l(w,{effect:"dark",content:"主题模式",placement:"bottom"},{default:m((()=>[l(b,{size:20},{default:m((()=>[l(u(a))])),_:1})])),_:1})])])),_:1})}}});export{f as _};
|
@ -1 +0,0 @@
|
||||
import{b as e,e as a,o as t,i as n,w as s,h as d,f as o,n as l,j as m,F as i,y as c,a0 as r,a1 as u,t as p}from"./index.3592cdc5.js";const f=e({__name:"index",setup(e){const{themeList:f,activeThemeName:_,setTheme:w}=u(),b=e=>{w(e)};return(e,u)=>{const w=a("el-icon"),h=a("el-tooltip"),k=a("el-dropdown-item"),x=a("el-dropdown-menu"),g=a("el-dropdown");return t(),n(g,{trigger:"click",onCommand:b},{dropdown:s((()=>[d(x,null,{default:s((()=>[(t(!0),o(i,null,l(m(f),((e,a)=>(t(),n(k,{key:a,disabled:m(_)===e.name,command:e.name},{default:s((()=>[c("span",null,p(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:s((()=>[c("div",null,[d(h,{effect:"dark",content:"主题模式",placement:"bottom"},{default:s((()=>[d(w,{size:20},{default:s((()=>[d(m(r))])),_:1})])),_:1})])])),_:1})}}});export{f as _};
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 373 KiB After Width: | Height: | Size: 373 KiB |
Before Width: | Height: | Size: 407 KiB After Width: | Height: | Size: 407 KiB |
1
static/page-1c6f3a09.js
Normal file
1
static/page-1c6f3a09.js
Normal file
@ -0,0 +1 @@
|
||||
import{b as a}from"./vue-router-d7411128.js";import{S as s}from"./SwitchRoles-e37e31b4.js";import{a4 as e,aG as r,ay as t,W as o,a2 as p,b1 as n,a1 as u}from"./runtime-core.esm-bundler-9099a418.js";import{_ as m}from"./_plugin-vue_export-helper-1b428a4d.js";import"./user-610e4ff5.js";const i={class:"app-container"},c=m(e({__name:"page",setup(e){const m=a(),c=()=>{m.push({path:"/403"})};return(a,e)=>{const m=r("el-tag");return t(),o("div",i,[p(m,{type:"success",size:"large"},{default:n((()=>[u(" 当前页面只有 admin 权限可见 ")])),_:1}),p(s,{onChange:c})])}}}),[["__scopeId","data-v-f3386627"]]);export{c as default};
|
@ -1 +0,0 @@
|
||||
import{b as s,l as a,e,o as t,f as o,h as n,w as c,z as p,_ as r}from"./index.3592cdc5.js";import{S as d}from"./SwitchRoles.e579e676.js";const i={class:"app-container"},l=r(s({__name:"page",setup(s){const r=a(),l=()=>{r.push({path:"/403"})};return(s,a)=>{const r=e("el-tag");return t(),o("div",i,[n(r,{type:"success",size:"large"},{default:c((()=>[p(" 当前页面只有 admin 权限可见 ")])),_:1}),n(d,{onChange:l})])}}}),[["__scopeId","data-v-f3386627"]]);export{l as default};
|
1
static/runtime-core.esm-bundler-9099a418.js
Normal file
1
static/runtime-core.esm-bundler-9099a418.js
Normal file
File diff suppressed because one or more lines are too long
1
static/table-a52c22a4.js
Normal file
1
static/table-a52c22a4.js
Normal file
@ -0,0 +1 @@
|
||||
import{bW as t}from"./user-610e4ff5.js";function e(e){return t({url:"table",method:"post",data:e})}function r(e){return t({url:`table/${e}`,method:"delete"})}function a(e){return t({url:"table",method:"put",data:e})}function u(e){return t({url:"table",method:"get",params:e})}export{e as c,r as d,u as g,a as u};
|
@ -1 +0,0 @@
|
||||
import{ak as t}from"./index.3592cdc5.js";function e(e){return t({url:"table",method:"post",data:e})}function a(e){return t({url:`table/${e}`,method:"delete"})}function r(e){return t({url:"table",method:"put",data:e})}function u(e){return t({url:"table",method:"get",params:e})}export{e as c,a as d,u as g,r as u};
|
1
static/useTheme-66c9e866.js
Normal file
1
static/useTheme-66c9e866.js
Normal file
@ -0,0 +1 @@
|
||||
import{bz as e}from"./user-610e4ff5.js";import{k as t}from"./runtime-core.esm-bundler-9099a418.js";const a=()=>localStorage.getItem(e.SIDEBAR_STATUS),m=t=>{localStorage.setItem(e.SIDEBAR_STATUS,t)},l=[{title:"默认",name:"normal"},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],o=t(localStorage.getItem(e.ACTIVE_THEME_NAME)||"normal"),r=()=>{n(o.value)},s=t=>{var a;o.value=t,n(o.value),a=o.value,localStorage.setItem(e.ACTIVE_THEME_NAME,a)},n=e=>{document.documentElement.className=e};function u(){return{themeList:l,activeThemeName:o,initTheme:r,setTheme:s}}export{a as g,m as s,u};
|
1
static/user-610e4ff5.js
Normal file
1
static/user-610e4ff5.js
Normal file
File diff suppressed because one or more lines are too long
1
static/vue-router-d7411128.js
Normal file
1
static/vue-router-d7411128.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user