From a1036e468da08174a2c3eaee417f6e6debd0c544 Mon Sep 17 00:00:00 2001 From: Auto Doc Publisher Date: Wed, 30 Jan 2019 09:17:17 +0000 Subject: [PATCH] docs: auto generate by ci Merge pull request #130 from midwayjs/lock_core chore: lock core version --- 404.html | 6 +++--- assets/js/{app.083b2bfa.js => app.95d1b847.js} | 2 +- en/guide.html | 4 ++-- en/index.html | 4 ++-- guide.html | 4 ++-- index.html | 4 ++-- ioc.html | 4 ++-- tool_set.html | 4 ++-- ts_start.html | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) rename assets/js/{app.083b2bfa.js => app.95d1b847.js} (92%) diff --git a/404.html b/404.html index 73372dbe004e..860111e2fcdb 100644 --- a/404.html +++ b/404.html @@ -7,11 +7,11 @@ - + -

404

That's a Four-Oh-Four.
Take me home.
- +

404

Looks like we've got some broken links.
Take me home.
+ diff --git a/assets/js/app.083b2bfa.js b/assets/js/app.95d1b847.js similarity index 92% rename from assets/js/app.083b2bfa.js rename to assets/js/app.95d1b847.js index 7c04afcc5f8a..141d7f021a83 100644 --- a/assets/js/app.083b2bfa.js +++ b/assets/js/app.95d1b847.js @@ -5,4 +5,4 @@ * vue-router v3.0.2 * (c) 2018 Evan You * @license MIT - */function wi(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function ki(t,e){for(var n in e)t[n]=e[n];return t}var Ci={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$createElement,s=n.name,u=i.$route,c=i._routerViewCache||(i._routerViewCache={}),l=0,f=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(f=!0),i=i.$parent;if(o.routerViewDepth=l,f)return a(c[s],o,r);var p=u.matched[l];if(!p)return c[s]=null,a();var d=c[s]=p.components[s];o.registerRouteInstance=function(t,e){var n=p.instances[s];(e&&n!==t||!e&&n===t)&&(p.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[s]=e.componentInstance};var h=o.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(u,p.props&&p.props[s]);if(h){h=o.props=ki({},h);var v=o.attrs=o.attrs||{};for(var m in h)d.props&&m in d.props||(v[m]=h[m],delete h[m])}return a(d,o,r)}};var $i=/[!'()*]/g,Si=function(t){return"%"+t.charCodeAt(0).toString(16)},Oi=/%2C/g,Ei=function(t){return encodeURIComponent(t).replace($i,Si).replace(Oi,",")},Ai=decodeURIComponent;function ji(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Ai(n.shift()),i=n.length>0?Ai(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function Ti(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Ei(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(Ei(e)):r.push(Ei(e)+"="+Ei(t)))}),r.join("&")}return Ei(e)+"="+Ei(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var Li=/\/?$/;function Pi(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=Ii(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:Ni(e,i),matched:t?Ri(t):[]};return n&&(a.redirectedFrom=Ni(n,i)),Object.freeze(a)}function Ii(t){if(Array.isArray(t))return t.map(Ii);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=Ii(t[n]);return e}return t}var Mi=Pi(null,{path:"/"});function Ri(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function Ni(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||Ti)(r)+i}function Di(t,e){return e===Mi?t===e:!!e&&(t.path&&e.path?t.path.replace(Li,"")===e.path.replace(Li,"")&&t.hash===e.hash&&Ui(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&Ui(t.query,e.query)&&Ui(t.params,e.params)))}function Ui(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?Ui(r,i):String(r)===String(i)})}var Fi,Bi=[String,Object],qi=[String,Array],Hi={name:"RouterLink",props:{to:{type:Bi,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:qi,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=o.path?Pi(null,o,null,n):a;u[h]=Di(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(Li,"/").indexOf(e.path.replace(Li,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){Wi(t)&&(e.replace?n.replace(o):n.push(o))},g={click:Wi};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:s};else{var b=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=s.path?zi(s.path,u,n||i.append):u,l=function(t,e,n){void 0===e&&(e={});var r,i=n||ji;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(s.query,i.query,r&&r.options.parseQuery),f=i.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function mo(t,e){var n=po(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=vo(t,n,!1,e),c=s.name;if(c){var l=o[c];if(!l)return u(null,s);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&f.indexOf(p)>-1&&(s.params[p]=n.params[p]);if(l)return s.path=fo(l.path,s.params),u(l,s,a)}else if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function Mo(t){return function(e,n,r){var i=!1,o=0,a=null;Ro(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=Uo(function(e){var i;((i=e).__esModule||Do&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Fi.extend(e),n.components[s]=e,--o<=0&&r()}),l=Uo(function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=wi(t)?t:new Error(e),r(a))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}}),i||r()}}function Ro(t,e){return No(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function No(t){return Array.prototype.concat.apply([],t)}var Do="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Uo(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Fo=function(t,e){this.router=t,this.base=function(t){if(!t)if(Vi){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Mi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Bo(t,e,n,r){var i=Ro(t,function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=Fi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,i,o)}):n(a,r,i,o)});return No(r?i.reverse():i)}function qo(t,e){if(e)return function(){return t.apply(e,arguments)}}Fo.prototype.listen=function(t){this.cb=t},Fo.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Fo.prototype.onError=function(t){this.errorCbs.push(t)},Fo.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Fo.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){wi(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(Di(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o();var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e)+"#"+t}function Xo(t){Oo?Lo(Ko(t)):window.location.hash=t}function Jo(t){Oo?Po(Ko(t)):window.location.replace(Ko(t))}var Yo=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Fo),Qo=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=mo(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Oo&&!1!==t.fallback,this.fallback&&(e="hash"),Vi||(e="abstract"),this.mode=e,e){case"history":this.history=new Ho(this,t.base);break;case"hash":this.history=new Vo(this,t.base,this.fallback);break;case"abstract":this.history=new Yo(this,t.base);break;default:0}},Zo={currentRoute:{configurable:!0}};function ta(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Qo.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Zo.currentRoute.get=function(){return this.history&&this.history.current},Qo.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Ho)n.transitionTo(n.getCurrentLocation());else if(n instanceof Vo){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Qo.prototype.beforeEach=function(t){return ta(this.beforeHooks,t)},Qo.prototype.beforeResolve=function(t){return ta(this.resolveHooks,t)},Qo.prototype.afterEach=function(t){return ta(this.afterHooks,t)},Qo.prototype.onReady=function(t,e){this.history.onReady(t,e)},Qo.prototype.onError=function(t){this.history.onError(t)},Qo.prototype.push=function(t,e,n){this.history.push(t,e,n)},Qo.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Qo.prototype.go=function(t){this.history.go(t)},Qo.prototype.back=function(){this.go(-1)},Qo.prototype.forward=function(){this.go(1)},Qo.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Qo.prototype.resolve=function(t,e,n){var r=vo(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Gi(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Qo.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Mi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Qo.prototype,Zo),Qo.install=function t(e){if(!t.installed||Fi!==e){t.installed=!0,Fi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Ci),e.component("RouterLink",Hi);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Qo.version="3.0.2",Vi&&window.Vue&&window.Vue.use(Qo);var ea=Qo;n(106),n(20),n(30),n(17),n(31),n(65),n(33),n(66);function na(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e-1},a=[],s=0;s=r);s++){var u=n[s];if(this.getPageLocalePath(u)===i)if(o(u))a.push(u);else if(u.headers)for(var c=0;c=r);c++){var l=u.headers[c];o(l)&&a.push(Object.assign({},u,{path:u.path+"#"+l.slug,header:l}))}}return a}},alignRight:function(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath:function(t){for(var e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},onUp:function(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown:function(){this.showSuggestions&&(this.focusIndex "+t._s(e.header.title))]):t._e()])])}),0):t._e()])},[],!1,null,null,null).exports),Oa=(n(127),{name:"DropdownTransition",methods:{setHeight:function(t){t.style.height=t.scrollHeight+"px"},unsetHeight:function(t){t.style.height=""}}}),Ea=(n(131),Object(_a.a)(Oa,function(){var t=this.$createElement;return(this._self._c||t)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)},[],!1,null,null,null).exports),Aa={components:{NavLink:xa,DropdownTransition:Ea},data:function(){return{open:!1}},props:{item:{required:!0}},methods:{toggle:function(){this.open=!this.open}}},ja=(n(133),{components:{NavLink:xa,DropdownLink:Object(_a.a)(Aa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[n("a",{staticClass:"dropdown-title",on:{click:t.toggle}},[n("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),n("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),n("DropdownTransition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,function(e,r){return n("li",{key:e.link||r,staticClass:"dropdown-item"},["links"===e.type?n("h4",[t._v(t._s(e.text))]):t._e(),t._v(" "),"links"===e.type?n("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(e.items,function(t){return n("li",{key:t.link,staticClass:"dropdown-subitem"},[n("NavLink",{attrs:{item:t}})],1)}),0):n("NavLink",{attrs:{item:e}})],1)}),0)])],1)},[],!1,null,null,null).exports},computed:{userNav:function(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav:function(){var t=this,e=this.$site.locales;if(e&&Object.keys(e).length>1){var n=this.$page.path,r=this.$router.options.routes,i=this.$site.themeConfig.locales||{},o={text:this.$themeLocaleConfig.selectText||"Languages",items:Object.keys(e).map(function(o){var a,s=e[o],u=i[o]&&i[o].label||s.lang;return s.lang===t.$lang?a=n:(a=n.replace(t.$localeConfig.path,o),r.some(function(t){return t.path===a})||(a=o)),{text:u,link:a}})};return na(this.userNav).concat([o])}return this.userNav},userLinks:function(){return(this.nav||[]).map(function(t){return Object.assign(ya(t),{items:(t.items||[]).map(ya)})})},repoLink:function(){var t=this.$site.themeConfig.repo;if(t)return/^https?:/.test(t)?t:"https://github.com/".concat(t)},repoLabel:function(){if(this.repoLink){if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;for(var t=this.repoLink.match(/^https?:\/\/[^\/]+/)[0],e=["GitHub","GitLab","Bitbucket"],n=0;n5&&void 0!==arguments[5]?arguments[5]:1;return!e||o>i?null:t("ul",{class:"sidebar-sub-headers"},e.map(function(e){var a=ha(r,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[Da(t,n+"#"+e.slug,e.title,a),Ua(t,e.children,n,r,i,o+1)])}))}var Fa={functional:!0,props:["item"],render:function(t,e){var n=e.parent,r=n.$page,i=n.$site,o=n.$route,a=e.props.item,s=ha(o,a.path),u="auto"===a.type?s||a.children.some(function(t){return ha(o,a.basePath+"#"+t.slug)}):s,c=Da(t,a.path,a.title||a.path,u),l=null!=r.frontmatter.sidebarDepth?r.frontmatter.sidebarDepth:i.themeConfig.sidebarDepth,f=null==l?1:l,p=!!i.themeConfig.displayAllHeaders;return"auto"===a.type?[c,Ua(t,a.children,a.basePath,o,f)]:(u||p)&&a.headers&&!sa.test(a.path)?[c,Ua(t,ga(a.headers),a.path,o,f)]:c}},Ba=(n(141),Object(_a.a)(Fa,void 0,void 0,!1,null,null,null).exports),qa={name:"SidebarGroup",props:["item","first","open","collapsable"],components:{SidebarLink:Ba,DropdownTransition:Ea}};n(143);var Ha={components:{SidebarGroup:Object(_a.a)(qa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-group",class:{first:t.first,collapsable:t.collapsable}},[n("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){t.$emit("toggle")}}},[n("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?n("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),t._v(" "),n("DropdownTransition",[t.open||!t.collapsable?n("ul",{ref:"items",staticClass:"sidebar-group-items"},t._l(t.item.children,function(t){return n("li",[n("SidebarLink",{attrs:{item:t}})],1)}),0):t._e()])],1)},[],!1,null,null,null).exports,SidebarLink:Ba,NavLinks:Ta},props:["items"],data:function(){return{openGroupIndex:0}},created:function(){this.refreshIndex()},watch:{$route:function(){this.refreshIndex()}},methods:{refreshIndex:function(){var t=function(t,e){for(var n=0;n-1&&(this.openGroupIndex=t)},toggleGroup:function(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive:function(t){return ha(this.$route,t.path)}}},Wa=(n(145),Object(_a.a)(Ha,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar"},[n("NavLinks"),t._v(" "),t._t("top"),t._v(" "),t.items.length?n("ul",{staticClass:"sidebar-links"},t._l(t.items,function(e,r){return n("li",{key:r},["group"===e.type?n("SidebarGroup",{attrs:{item:e,first:0===r,open:r===t.openGroupIndex,collapsable:e.collapsable||e.collapsible},on:{toggle:function(e){t.toggleGroup(r)}}}):n("SidebarLink",{attrs:{item:e}})],1)}),0):t._e(),t._v(" "),t._t("bottom")],2)},[],!1,null,null,null).exports);function Va(t){return(Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function za(t){return(za="function"==typeof Symbol&&"symbol"===Va(Symbol.iterator)?function(t){return Va(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Va(t)})(t)}var Ga={props:{updateEvent:{type:Object,default:null}},computed:{popupConfig:function(){for(var t=[this.$themeLocaleConfig,this.$site.themeConfig],e=0;eMath.abs(n)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))},onSWUpdated:function(t){this.swUpdateEvent=t}}}),Xa=(n(149),n(151),Object(_a.a)(Ka,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?n("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),t._v(" "),n("div",{staticClass:"sidebar-mask",on:{click:function(e){t.toggleSidebar(!1)}}}),t._v(" "),n("Sidebar",{attrs:{items:t.sidebarItems},on:{"toggle-sidebar":t.toggleSidebar}},[t._t("sidebar-top",null,{slot:"top"}),t._v(" "),t._t("sidebar-bottom",null,{slot:"bottom"})],2),t._v(" "),t.$page.frontmatter.layout?n("div",{staticClass:"custom-layout"},[n(t.$page.frontmatter.layout,{tag:"component"})],1):t.$page.frontmatter.home?n("Home"):n("Page",{attrs:{"sidebar-items":t.sidebarItems}},[t._t("page-top",null,{slot:"top"}),t._v(" "),t._t("page-bottom",null,{slot:"bottom"})],2),t._v(" "),n("SWUpdatePopup",{attrs:{updateEvent:t.swUpdateEvent}})],1)},[],!1,null,null,null).exports),Ja=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],Ya={methods:{getMsg:function(){return Ja[Math.floor(Math.random()*Ja.length)]}}},Qa=Object(_a.a)(Ya,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("router-link",{attrs:{to:"/"}},[this._v("Take me home.")])],1)])},[],!1,null,null,null).exports,Za=(n(153),n(154),{created:function(){this.$ssrContext&&(this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.description=this.$page.description||this.$description)},mounted:function(){var t=this;this.currentMetaTags=new Set;var e=function(){document.title=t.$title,document.documentElement.lang=t.$lang;var e=t.$page.frontmatter.meta||[],n=e.slice(0);0===e.filter(function(t){return"description"===t.name}).length&&n.push({name:"description",content:t.$description});var r=document.querySelectorAll('meta[name="description"]');r.length&&r.forEach(function(e){return t.currentMetaTags.add(e)}),t.currentMetaTags=new Set(ts(n,t.currentMetaTags))};this.$watch("$page",e),e()},beforeDestroy:function(){ts(null,this.currentMetaTags)}});function ts(t,e){if(e&&na(e).forEach(function(t){document.head.removeChild(t)}),t)return t.map(function(t){var e=document.createElement("meta");return Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),document.head.appendChild(e),e})}var es=n(92),ns=[Za,{mounted:function(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(es)()(function(){this.setActiveHash()},300),setActiveHash:function(){for(var t=this,e=[].slice.call(document.querySelectorAll(".sidebar-link")),n=[].slice.call(document.querySelectorAll(".header-anchor")).filter(function(t){return e.some(function(e){return e.hash===t.hash})}),r=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),i=0;i=o.parentElement.offsetTop+10&&(!a||r-1}function ki(t,e){for(var n in e)t[n]=e[n];return t}var Ci={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var a=i.$createElement,s=n.name,u=i.$route,c=i._routerViewCache||(i._routerViewCache={}),l=0,f=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(f=!0),i=i.$parent;if(o.routerViewDepth=l,f)return a(c[s],o,r);var p=u.matched[l];if(!p)return c[s]=null,a();var d=c[s]=p.components[s];o.registerRouteInstance=function(t,e){var n=p.instances[s];(e&&n!==t||!e&&n===t)&&(p.instances[s]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[s]=e.componentInstance};var h=o.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(u,p.props&&p.props[s]);if(h){h=o.props=ki({},h);var v=o.attrs=o.attrs||{};for(var m in h)d.props&&m in d.props||(v[m]=h[m],delete h[m])}return a(d,o,r)}};var $i=/[!'()*]/g,Si=function(t){return"%"+t.charCodeAt(0).toString(16)},Oi=/%2C/g,Ei=function(t){return encodeURIComponent(t).replace($i,Si).replace(Oi,",")},Ai=decodeURIComponent;function ji(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Ai(n.shift()),i=n.length>0?Ai(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function Ti(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Ei(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(Ei(e)):r.push(Ei(e)+"="+Ei(t)))}),r.join("&")}return Ei(e)+"="+Ei(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var Li=/\/?$/;function Pi(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=Ii(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:Ni(e,i),matched:t?Ri(t):[]};return n&&(a.redirectedFrom=Ni(n,i)),Object.freeze(a)}function Ii(t){if(Array.isArray(t))return t.map(Ii);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=Ii(t[n]);return e}return t}var Mi=Pi(null,{path:"/"});function Ri(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function Ni(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||Ti)(r)+i}function Di(t,e){return e===Mi?t===e:!!e&&(t.path&&e.path?t.path.replace(Li,"")===e.path.replace(Li,"")&&t.hash===e.hash&&Ui(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&Ui(t.query,e.query)&&Ui(t.params,e.params)))}function Ui(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?Ui(r,i):String(r)===String(i)})}var Fi,Bi=[String,Object],qi=[String,Array],Hi={name:"RouterLink",props:{to:{type:Bi,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:qi,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},c=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=o.path?Pi(null,o,null,n):a;u[h]=Di(r,v),u[d]=this.exact?u[h]:function(t,e){return 0===t.path.replace(Li,"/").indexOf(e.path.replace(Li,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){Wi(t)&&(e.replace?n.replace(o):n.push(o))},g={click:Wi};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:u};if("a"===this.tag)y.on=g,y.attrs={href:s};else{var b=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=s.path?zi(s.path,u,n||i.append):u,l=function(t,e,n){void 0===e&&(e={});var r,i=n||ji;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(s.query,i.query,r&&r.options.parseQuery),f=i.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:c,query:l,hash:f}}function mo(t,e){var n=po(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t,n,a){var s=vo(t,n,!1,e),c=s.name;if(c){var l=o[c];if(!l)return u(null,s);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&f.indexOf(p)>-1&&(s.params[p]=n.params[p]);if(l)return s.path=fo(l.path,s.params),u(l,s,a)}else if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function Mo(t){return function(e,n,r){var i=!1,o=0,a=null;Ro(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var u,c=Uo(function(e){var i;((i=e).__esModule||Do&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Fi.extend(e),n.components[s]=e,--o<=0&&r()}),l=Uo(function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=wi(t)?t:new Error(e),r(a))});try{u=t(c,l)}catch(t){l(t)}if(u)if("function"==typeof u.then)u.then(c,l);else{var f=u.component;f&&"function"==typeof f.then&&f.then(c,l)}}}),i||r()}}function Ro(t,e){return No(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function No(t){return Array.prototype.concat.apply([],t)}var Do="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Uo(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Fo=function(t,e){this.router=t,this.base=function(t){if(!t)if(Vi){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Mi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Bo(t,e,n,r){var i=Ro(t,function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=Fi.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,i,o)}):n(a,r,i,o)});return No(r?i.reverse():i)}function qo(t,e){if(e)return function(){return t.apply(e,arguments)}}Fo.prototype.listen=function(t){this.cb=t},Fo.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Fo.prototype.onError=function(t){this.errorCbs.push(t)},Fo.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Fo.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){wi(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(Di(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o();var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e)+"#"+t}function Xo(t){Oo?Lo(Ko(t)):window.location.hash=t}function Jo(t){Oo?Po(Ko(t)):window.location.replace(Ko(t))}var Yo=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Fo),Qo=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=mo(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Oo&&!1!==t.fallback,this.fallback&&(e="hash"),Vi||(e="abstract"),this.mode=e,e){case"history":this.history=new Ho(this,t.base);break;case"hash":this.history=new Vo(this,t.base,this.fallback);break;case"abstract":this.history=new Yo(this,t.base);break;default:0}},Zo={currentRoute:{configurable:!0}};function ta(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Qo.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Zo.currentRoute.get=function(){return this.history&&this.history.current},Qo.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Ho)n.transitionTo(n.getCurrentLocation());else if(n instanceof Vo){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Qo.prototype.beforeEach=function(t){return ta(this.beforeHooks,t)},Qo.prototype.beforeResolve=function(t){return ta(this.resolveHooks,t)},Qo.prototype.afterEach=function(t){return ta(this.afterHooks,t)},Qo.prototype.onReady=function(t,e){this.history.onReady(t,e)},Qo.prototype.onError=function(t){this.history.onError(t)},Qo.prototype.push=function(t,e,n){this.history.push(t,e,n)},Qo.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Qo.prototype.go=function(t){this.history.go(t)},Qo.prototype.back=function(){this.go(-1)},Qo.prototype.forward=function(){this.go(1)},Qo.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Qo.prototype.resolve=function(t,e,n){var r=vo(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Gi(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Qo.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Mi&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Qo.prototype,Zo),Qo.install=function t(e){if(!t.installed||Fi!==e){t.installed=!0,Fi=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Ci),e.component("RouterLink",Hi);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Qo.version="3.0.2",Vi&&window.Vue&&window.Vue.use(Qo);var ea=Qo;n(106),n(20),n(30),n(17),n(31),n(65),n(33),n(66);function na(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e-1},a=[],s=0;s=r);s++){var u=n[s];if(this.getPageLocalePath(u)===i)if(o(u))a.push(u);else if(u.headers)for(var c=0;c=r);c++){var l=u.headers[c];o(l)&&a.push(Object.assign({},u,{path:u.path+"#"+l.slug,header:l}))}}return a}},alignRight:function(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath:function(t){for(var e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},onUp:function(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown:function(){this.showSuggestions&&(this.focusIndex "+t._s(e.header.title))]):t._e()])])}),0):t._e()])},[],!1,null,null,null).exports),Oa=(n(127),{name:"DropdownTransition",methods:{setHeight:function(t){t.style.height=t.scrollHeight+"px"},unsetHeight:function(t){t.style.height=""}}}),Ea=(n(131),Object(_a.a)(Oa,function(){var t=this.$createElement;return(this._self._c||t)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)},[],!1,null,null,null).exports),Aa={components:{NavLink:xa,DropdownTransition:Ea},data:function(){return{open:!1}},props:{item:{required:!0}},methods:{toggle:function(){this.open=!this.open}}},ja=(n(133),{components:{NavLink:xa,DropdownLink:Object(_a.a)(Aa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[n("a",{staticClass:"dropdown-title",on:{click:t.toggle}},[n("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),n("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),n("DropdownTransition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,function(e,r){return n("li",{key:e.link||r,staticClass:"dropdown-item"},["links"===e.type?n("h4",[t._v(t._s(e.text))]):t._e(),t._v(" "),"links"===e.type?n("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(e.items,function(t){return n("li",{key:t.link,staticClass:"dropdown-subitem"},[n("NavLink",{attrs:{item:t}})],1)}),0):n("NavLink",{attrs:{item:e}})],1)}),0)])],1)},[],!1,null,null,null).exports},computed:{userNav:function(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav:function(){var t=this,e=this.$site.locales;if(e&&Object.keys(e).length>1){var n=this.$page.path,r=this.$router.options.routes,i=this.$site.themeConfig.locales||{},o={text:this.$themeLocaleConfig.selectText||"Languages",items:Object.keys(e).map(function(o){var a,s=e[o],u=i[o]&&i[o].label||s.lang;return s.lang===t.$lang?a=n:(a=n.replace(t.$localeConfig.path,o),r.some(function(t){return t.path===a})||(a=o)),{text:u,link:a}})};return na(this.userNav).concat([o])}return this.userNav},userLinks:function(){return(this.nav||[]).map(function(t){return Object.assign(ya(t),{items:(t.items||[]).map(ya)})})},repoLink:function(){var t=this.$site.themeConfig.repo;if(t)return/^https?:/.test(t)?t:"https://github.com/".concat(t)},repoLabel:function(){if(this.repoLink){if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;for(var t=this.repoLink.match(/^https?:\/\/[^\/]+/)[0],e=["GitHub","GitLab","Bitbucket"],n=0;n5&&void 0!==arguments[5]?arguments[5]:1;return!e||o>i?null:t("ul",{class:"sidebar-sub-headers"},e.map(function(e){var a=ha(r,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[Da(t,n+"#"+e.slug,e.title,a),Ua(t,e.children,n,r,i,o+1)])}))}var Fa={functional:!0,props:["item"],render:function(t,e){var n=e.parent,r=n.$page,i=n.$site,o=n.$route,a=e.props.item,s=ha(o,a.path),u="auto"===a.type?s||a.children.some(function(t){return ha(o,a.basePath+"#"+t.slug)}):s,c=Da(t,a.path,a.title||a.path,u),l=null!=r.frontmatter.sidebarDepth?r.frontmatter.sidebarDepth:i.themeConfig.sidebarDepth,f=null==l?1:l,p=!!i.themeConfig.displayAllHeaders;return"auto"===a.type?[c,Ua(t,a.children,a.basePath,o,f)]:(u||p)&&a.headers&&!sa.test(a.path)?[c,Ua(t,ga(a.headers),a.path,o,f)]:c}},Ba=(n(141),Object(_a.a)(Fa,void 0,void 0,!1,null,null,null).exports),qa={name:"SidebarGroup",props:["item","first","open","collapsable"],components:{SidebarLink:Ba,DropdownTransition:Ea}};n(143);var Ha={components:{SidebarGroup:Object(_a.a)(qa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-group",class:{first:t.first,collapsable:t.collapsable}},[n("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){t.$emit("toggle")}}},[n("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?n("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),t._v(" "),n("DropdownTransition",[t.open||!t.collapsable?n("ul",{ref:"items",staticClass:"sidebar-group-items"},t._l(t.item.children,function(t){return n("li",[n("SidebarLink",{attrs:{item:t}})],1)}),0):t._e()])],1)},[],!1,null,null,null).exports,SidebarLink:Ba,NavLinks:Ta},props:["items"],data:function(){return{openGroupIndex:0}},created:function(){this.refreshIndex()},watch:{$route:function(){this.refreshIndex()}},methods:{refreshIndex:function(){var t=function(t,e){for(var n=0;n-1&&(this.openGroupIndex=t)},toggleGroup:function(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive:function(t){return ha(this.$route,t.path)}}},Wa=(n(145),Object(_a.a)(Ha,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar"},[n("NavLinks"),t._v(" "),t._t("top"),t._v(" "),t.items.length?n("ul",{staticClass:"sidebar-links"},t._l(t.items,function(e,r){return n("li",{key:r},["group"===e.type?n("SidebarGroup",{attrs:{item:e,first:0===r,open:r===t.openGroupIndex,collapsable:e.collapsable||e.collapsible},on:{toggle:function(e){t.toggleGroup(r)}}}):n("SidebarLink",{attrs:{item:e}})],1)}),0):t._e(),t._v(" "),t._t("bottom")],2)},[],!1,null,null,null).exports);function Va(t){return(Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function za(t){return(za="function"==typeof Symbol&&"symbol"===Va(Symbol.iterator)?function(t){return Va(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Va(t)})(t)}var Ga={props:{updateEvent:{type:Object,default:null}},computed:{popupConfig:function(){for(var t=[this.$themeLocaleConfig,this.$site.themeConfig],e=0;eMath.abs(n)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))},onSWUpdated:function(t){this.swUpdateEvent=t}}}),Xa=(n(149),n(151),Object(_a.a)(Ka,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?n("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),t._v(" "),n("div",{staticClass:"sidebar-mask",on:{click:function(e){t.toggleSidebar(!1)}}}),t._v(" "),n("Sidebar",{attrs:{items:t.sidebarItems},on:{"toggle-sidebar":t.toggleSidebar}},[t._t("sidebar-top",null,{slot:"top"}),t._v(" "),t._t("sidebar-bottom",null,{slot:"bottom"})],2),t._v(" "),t.$page.frontmatter.layout?n("div",{staticClass:"custom-layout"},[n(t.$page.frontmatter.layout,{tag:"component"})],1):t.$page.frontmatter.home?n("Home"):n("Page",{attrs:{"sidebar-items":t.sidebarItems}},[t._t("page-top",null,{slot:"top"}),t._v(" "),t._t("page-bottom",null,{slot:"bottom"})],2),t._v(" "),n("SWUpdatePopup",{attrs:{updateEvent:t.swUpdateEvent}})],1)},[],!1,null,null,null).exports),Ja=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],Ya={methods:{getMsg:function(){return Ja[Math.floor(Math.random()*Ja.length)]}}},Qa=Object(_a.a)(Ya,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("router-link",{attrs:{to:"/"}},[this._v("Take me home.")])],1)])},[],!1,null,null,null).exports,Za=(n(153),n(154),{created:function(){this.$ssrContext&&(this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.description=this.$page.description||this.$description)},mounted:function(){var t=this;this.currentMetaTags=new Set;var e=function(){document.title=t.$title,document.documentElement.lang=t.$lang;var e=t.$page.frontmatter.meta||[],n=e.slice(0);0===e.filter(function(t){return"description"===t.name}).length&&n.push({name:"description",content:t.$description});var r=document.querySelectorAll('meta[name="description"]');r.length&&r.forEach(function(e){return t.currentMetaTags.add(e)}),t.currentMetaTags=new Set(ts(n,t.currentMetaTags))};this.$watch("$page",e),e()},beforeDestroy:function(){ts(null,this.currentMetaTags)}});function ts(t,e){if(e&&na(e).forEach(function(t){document.head.removeChild(t)}),t)return t.map(function(t){var e=document.createElement("meta");return Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),document.head.appendChild(e),e})}var es=n(92),ns=[Za,{mounted:function(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(es)()(function(){this.setActiveHash()},300),setActiveHash:function(){for(var t=this,e=[].slice.call(document.querySelectorAll(".sidebar-link")),n=[].slice.call(document.querySelectorAll(".header-anchor")).filter(function(t){return e.some(function(e){return e.hash===t.hash})}),r=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),i=0;i=o.parentElement.offsetTop+10&&(!a||r - + @@ -24,6 +24,6 @@ GitHub

Midway Development Guide

not ready, and coming soon...

- + diff --git a/en/index.html b/en/index.html index 53019e538fff..5d77bdf2b854 100644 --- a/en/index.html +++ b/en/index.html @@ -7,7 +7,7 @@ - + @@ -24,6 +24,6 @@ GitHub
- + diff --git a/guide.html b/guide.html index 989dcd5d1d91..b7d77a7a3770 100644 --- a/guide.html +++ b/guide.html @@ -7,7 +7,7 @@ - + @@ -336,6 +336,6 @@ "dev": "set NODE_ENV=local && midway-bin dev --ts" } - + diff --git a/index.html b/index.html index b26580209e11..81f38a2b93e5 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - + @@ -36,6 +36,6 @@

注意

请确保你的 Node.js 版本 >= 8。

特色功能

简洁至上

Midway 最大的特色是使用 IoC 机制将应用依赖管理起来,最大程度上帮助应用在 web 开发中提升可维护性和扩展性,在这一系列的增强下,开发者无需关注对象创建和销毁,把注意力集中在真正复杂的业务中。

面向未来

享受 Typescript 的开发体验,增强的语法和各种面向接口编程,让用户提前享受到便利。通过装饰器和依赖注入的通用能力,让应用开发变的流畅自然,便于多人沟通协作,可以专注业务逻辑编码,减少依赖错误。

拥抱社区

兼容社区 koa 中间件以及各种 Eggjs 插件,方便用户快速上手和迁移,降低开发和部署成本。同时我们也提供了各种工具帮助用户快速上手,IoC 模块可独立使用,方便迁移到不同的框架和平台。

- + diff --git a/ioc.html b/ioc.html index 22abcf63e50f..5b1943ab5a39 100644 --- a/ioc.html +++ b/ioc.html @@ -7,7 +7,7 @@ - + @@ -325,6 +325,6 @@ console.log(newTree);

通过 dumpDependency 方法生成的文本,可以直接在 viz-js 渲染为图案,方便排查问题。

也可以通过安装 graphviz 等工具将文本树转化为图片形式。

TIP

midway 在启动时会将依赖树生成到 /run 目录下,方便排错。

- + diff --git a/tool_set.html b/tool_set.html index 99f1ead59754..450d0db27a66 100644 --- a/tool_set.html +++ b/tool_set.html @@ -7,7 +7,7 @@ - + @@ -48,6 +48,6 @@

TIP

这里的路径相对于应用的根目录。

midway-init

提供了基础的 midway 应用脚手架,后续会增加其他模板。

npm install -g midway-init
 midway-init
 
- + diff --git a/ts_start.html b/ts_start.html index 830e10ef31db..e71a6c77534c 100644 --- a/ts_start.html +++ b/ts_start.html @@ -7,7 +7,7 @@ - + @@ -111,6 +111,6 @@

这个时候可以使用 * 做全部导出。

// ts 写法
 import * as path from 'path';
 

相关链接

- +