mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{664:function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"c",(function(){return h})),n.d(e,"g",(function(){return p}));n(391);const a=/#.*$/,r=/\.(md|html)$/,i=/\/$/,s=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(a,"").replace(r,"")}function l(t){return s.test(t)}function c(t){if(l(t))return t;const e=t.match(a),n=e?e[0]:"",r=o(t);return i.test(r)?t:r+".html"+n}function u(t,e){const n=t.hash,r=function(t){const e=t.match(a);if(e)return e[0]}(e);if(r&&n!==r)return!1;return o(t.path)===o(e)}function d(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const a=t.charAt(0);if("/"===a)return t;if("?"===a||"#"===a)return e+t;const r=e.split("/");n&&r[r.length-1]||r.pop();const i=t.replace(/^\//,"").split("/");for(let t=0;t<i.length;t++){const e=i[t];".."===e?r.pop():"."!==e&&r.push(e)}""!==r[0]&&r.unshift("");return r.join("/")}(e,n));const a=o(e);for(let e=0;e<t.length;e++)if(o(t[e].regularPath)===a)return Object.assign({},t[e],{type:"page",path:c(t[e].path)});return console.error(`[vuepress] No matching page found for sidebar item "${e}"`),{}}function f(t,e,n,a){const{pages:r,themeConfig:i}=n,s=a&&i.locales&&i.locales[a]||i;if("auto"===(t.frontmatter.sidebar||s.sidebar||i.sidebar))return function(t){const e=h(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}(t);const o=s.sidebar||i.sidebar;if(o){const{base:t,config:n}=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(const a in e)if(0===(n=t,/(\.html|\/)$/.test(n)?n:n+"/").indexOf(encodeURI(a)))return{base:a,config:e[a]};var n;return{}}(e,o);return n?n.map(e=>function t(e,n,a,r=1){if("string"==typeof e)return d(n,e,a);if(Array.isArray(e))return Object.assign(d(n,e[0],a),{title:e[1]});{r>3&&console.error("[vuepress] detected a too deep nested sidebar group.");const i=e.children||[];return 0===i.length&&e.path?Object.assign(d(n,e.path,a),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,children:i.map(e=>t(e,n,a,r+1)),collapsable:!1!==e.collapsable}}}(e,r,t)):[]}return[]}function h(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function p(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},678:function(t,e,n){},695:function(t,e,n){"use strict";n(678)},709:function(t,e,n){"use strict";n.r(e);var a=n(664),r={name:"Home",data:()=>({isDivider:!1}),methods:{isExtlink:t=>/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/.test(t),link(t){t=void 0===t?"":t;let e=Object(a.b)(t);return e=5===e.length&&".html"===e?"":e,e}},mounted(){this.data.footerWrap&&this.data.footerWrap.length&&(this.isDivider=!0)},computed:{data(){return this.$page.frontmatter}}},i=(n(695),n(84)),s=Object(i.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("main",{staticClass:"home",attrs:{"aria-labelledby":"main-title"}},[e("header",{staticClass:"hero"},[t.data.heroImage?e("img",{staticClass:"hero-logo",attrs:{src:t.$withBase(t.data.heroImage),alt:t.data.heroAlt||"hero"}}):t._e(),t._v(" "),null!==t.data.heroText?e("h1",{attrs:{id:"main-title"}},[t._v("\n "+t._s(t.data.heroText||t.$title||"Hello")+"\n ")]):t._e(),t._v(" "),null!==t.data.tagline?e("p",{staticClass:"description"},[t._v("\n "+t._s(t.data.tagline||t.$description||"Welcome to your VuePress site")+"\n ")]):t._e(),t._v(" "),t.data.actions&&t.data.actions.length?e("div",{staticClass:"actions"},[e("a-space",{attrs:{size:"middle"}},t._l(t.data.actions,(function(n,a){return e("a-button",{key:a,attrs:{type:n.type?n.type:"primary",shape:n.shape?n.shape:null,size:n.size?n.size:"large",ghost:!!n.ghost&&n.ghost}},[t.isExtlink(n.link?n.link:"/")?e("a",{attrs:{href:t.link(n.link?n.link:"/"),target:"_blank"}},[t._v("\n "+t._s(n.text)+"\n ")]):e("RouterLink",{attrs:{to:t.link(n.link?n.link:"/")}},[t._v("\n "+t._s(n.text)+"\n ")])],1)})),1)],1):t._e()]),t._v(" "),t.data.features&&t.data.features.length?e("div",{staticClass:"features"},t._l(t.data.features,(function(n,a){return e("div",{key:a,staticClass:"feature"},[e("h2",[t._v(t._s(n.title))]),t._v(" "),e("p",[t._v(t._s(n.details))])])})),0):t._e(),t._v(" "),e("Content",{staticClass:"theme-antdocs-content custom"})],1),t._v(" "),t.data.footer?e("div",{staticClass:"footer"},[t.data.footerWrap&&t.data.footerWrap.length?e("div",{staticClass:"footer-container"},[e("a-row",{staticClass:"add-bottom",attrs:{gutter:{md:0,lg:32},type:"flex",justify:"space-around"}},t._l(t.data.footerWrap,(function(n,a){return e("a-col",{key:a,attrs:{xs:24,sm:24,md:6,lg:6,xl:6}},[e("div",[e("h2",[t._v(t._s(n.headline))]),t._v(" "),t._l(n.items,(function(n,a){return e("div",{key:a,staticClass:"footer-item"},[n.title&&null!==n.title?e("a",{attrs:{href:n.link,target:"_blank"}},[t._v("\n "+t._s(n.title)+"\n ")]):t._e(),t._v(" "),n.details&&null!==n.details?e("span",{staticClass:"footer-item-separator"},[t._v("-")]):t._e(),t._v(" "),n.details&&null!==n.details?e("span",{staticClass:"footer-item-description"},[t._v(t._s(n.details))]):t._e()])}))],2)])})),1)],1):t._e(),t._v(" "),e("div",{class:{"footer-divider":t.isDivider,"footer-bottom":!0},domProps:{innerHTML:t._s(t.data.footer)}})]):t._e()])}),[],!1,null,null,null);e.default=s.exports}}]); |