2 lines
7.0 KiB
JavaScript
2 lines
7.0 KiB
JavaScript
(function(){"use strict";var n={75:function(n,t,e){var r=e(9242),o=e(2578),a=e(3396);const i={id:"app"};function u(n,t){const e=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(e,null,{default:(0,a.w5)((({Component:n})=>[((0,a.wg)(),(0,a.j4)(a.Ob,null,[((0,a.wg)(),(0,a.j4)((0,a.LL)(n)))],1024))])),_:1})])}var c=e(89);const l={},s=(0,c.Z)(l,[["render",u]]);var f=s,d=e(2483),v=e(7139),p=e(4870),m=e(5980),b=e(7625);const h={id:"home"},g=(0,a._)("h5",null,"Home",-1),y={class:"d-grid gap-2 col-1"};var _={__name:"Home",setup(n){(0,p.iH)(0);const t=(0,b.A)();function e(){t.increment(),console.log("count:",t.count)}return(0,a.bv)((()=>{console.log("mounted")})),(n,r)=>((0,a.wg)(),(0,a.j4)(m.Z,null,{default:(0,a.w5)((()=>[(0,a._)("div",h,[g,(0,a._)("div",y,[(0,a._)("button",{type:"button",class:"btn btn-primary",onClick:e},(0,v.zw)((0,p.SU)(t).count),1)])])])),_:1}))}};const w=_;var k=w;const O=[{path:"/",name:"home",component:k},{path:"/about",name:"about",component:()=>e.e(563).then(e.bind(e,563))},{path:"/login",name:"login",component:()=>e.e(58).then(e.bind(e,8058))}],C=(0,d.p7)({history:(0,d.PO)("/"),routes:O});var j=C,A=e(3494),E=e(8539),S=e(8429),N=e(4551);A.vI.add(E.mRB,S.NCV,N.vnX);const x=(0,o.WB)(),T=(0,r.ri)(f);T.use(x),T.use(j),T.mount("#app")},7625:function(n,t,e){e.d(t,{A:function(){return a}});var r=e(2578),o=e(4870);const a=(0,r.Q_)("counter",(()=>{const n=(0,o.iH)(0);function t(){n.value++}return{count:n,increment:t}}))},5980:function(n,t,e){e.d(t,{Z:function(){return O}});var r=e(3396);const o={id:"layout"},a={class:"navbar navbar-expand-sm navbar-my sticky-top"},i=(0,r._)("button",{class:"btn"},[(0,r._)("div",null,[(0,r._)("i",{class:"fa-solid fa-bars fa-lg"})])],-1),u=(0,r._)("div",{class:"navbar-brand"},[(0,r._)("i",{class:"fa-brands fa-old-republic fa-lg"}),(0,r.Uk)(" M5 ")],-1),c={class:"collapse navbar-collapse"},l={class:"navbar-nav"},s={class:"nav-item"},f={class:"nav-link"},d={class:"nav-item"},v={class:"nav-link"},p={class:"nav-item"},m={class:"nav-link"},b={class:"container-fluid"},h={class:"row"},g={class:"col col-10 my-3 mx-auto"};function y(n,t){const e=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r._)("nav",a,[i,u,(0,r._)("div",c,[(0,r._)("ul",l,[(0,r._)("li",s,[(0,r._)("a",f,[(0,r.Wm)(e,{to:"/"},{default:(0,r.w5)((()=>[(0,r.Uk)("Home")])),_:1})])]),(0,r._)("li",d,[(0,r._)("a",v,[(0,r.Wm)(e,{to:"/about"},{default:(0,r.w5)((()=>[(0,r.Uk)("About")])),_:1})])]),(0,r._)("li",p,[(0,r._)("a",m,[(0,r.Wm)(e,{to:"/login"},{default:(0,r.w5)((()=>[(0,r.Uk)("Login")])),_:1})])])])])]),(0,r._)("div",b,[(0,r._)("div",h,[(0,r._)("div",g,[(0,r.WI)(n.$slots,"default")])])])])}var _=e(89);const w={},k=(0,_.Z)(w,[["render",y]]);var O=k}},t={};function e(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return n[r].call(a.exports,a,a.exports,e),a.exports}e.m=n,function(){var n=[];e.O=function(t,r,o,a){if(!r){var i=1/0;for(s=0;s<n.length;s++){r=n[s][0],o=n[s][1],a=n[s][2];for(var u=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(e.O).every((function(n){return e.O[n](r[c])}))?r.splice(c--,1):(u=!1,a<i&&(i=a));if(u){n.splice(s--,1);var l=o();void 0!==l&&(t=l)}}return t}a=a||0;for(var s=n.length;s>0&&n[s-1][2]>a;s--)n[s]=n[s-1];n[s]=[r,o,a]}}(),function(){e.n=function(n){var t=n&&n.__esModule?function(){return n["default"]}:function(){return n};return e.d(t,{a:t}),t}}(),function(){e.d=function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})}}(),function(){e.f={},e.e=function(n){return Promise.all(Object.keys(e.f).reduce((function(t,r){return e.f[r](n,t),t}),[]))}}(),function(){e.u=function(n){return"js/"+n+"."+{58:"02ac212f",563:"bce1f3bc"}[n]+".js"}}(),function(){e.miniCssF=function(n){return"css/"+n+".97958517.css"}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)}}(),function(){var n={},t="m5app:";e.l=function(r,o,a,i){if(n[r])n[r].push(o);else{var u,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+a){u=f;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,e.nc&&u.setAttribute("nonce",e.nc),u.setAttribute("data-webpack",t+a),u.src=r),n[r]=[o];var d=function(t,e){u.onerror=u.onload=null,clearTimeout(v);var o=n[r];if(delete n[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(n){return n(e)})),t)return t(e)},v=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){e.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}}(),function(){e.p="/"}(),function(){if("undefined"!==typeof document){var n=function(n,t,e,r,o){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css";var i=function(e){if(a.onerror=a.onload=null,"load"===e.type)r();else{var i=e&&("load"===e.type?"missing":e.type),u=e&&e.target&&e.target.href||t,c=new Error("Loading CSS chunk "+n+" failed.\n("+u+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=u,a.parentNode&&a.parentNode.removeChild(a),o(c)}};return a.onerror=a.onload=i,a.href=t,e?e.parentNode.insertBefore(a,e.nextSibling):document.head.appendChild(a),a},t=function(n,t){for(var e=document.getElementsByTagName("link"),r=0;r<e.length;r++){var o=e[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===n||a===t))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){o=i[r],a=o.getAttribute("data-href");if(a===n||a===t)return o}},r=function(r){return new Promise((function(o,a){var i=e.miniCssF(r),u=e.p+i;if(t(i,u))return o();n(r,u,null,o,a)}))},o={143:0};e.f.miniCss=function(n,t){var e={58:1};o[n]?t.push(o[n]):0!==o[n]&&e[n]&&t.push(o[n]=r(n).then((function(){o[n]=0}),(function(t){throw delete o[n],t})))}}}(),function(){var n={143:0};e.f.j=function(t,r){var o=e.o(n,t)?n[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise((function(e,r){o=n[t]=[e,r]}));r.push(o[2]=a);var i=e.p+e.u(t),u=new Error,c=function(r){if(e.o(n,t)&&(o=n[t],0!==o&&(n[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};e.l(i,c,"chunk-"+t,t)}},e.O.j=function(t){return 0===n[t]};var t=function(t,r){var o,a,i=r[0],u=r[1],c=r[2],l=0;if(i.some((function(t){return 0!==n[t]}))){for(o in u)e.o(u,o)&&(e.m[o]=u[o]);if(c)var s=c(e)}for(t&&t(r);l<i.length;l++)a=i[l],e.o(n,a)&&n[a]&&n[a][0](),n[a]=0;return e.O(s)},r=self["webpackChunkm5app"]=self["webpackChunkm5app"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=e.O(void 0,[998],(function(){return e(75)}));r=e.O(r)})();
|
|
//# sourceMappingURL=app.8de5154e.js.map
|