mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 00:09:39 -06:00
3 lines
25 KiB
JavaScript
3 lines
25 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[4,25,26,27],{249:function(t,e,s){"use strict";s.r(e);var i=s(248),n=s.n(i);if("undefined"!=typeof window){s(253)}var a={props:{options:{type:Object,default:function(){return{}}}},mounted:function(){this.create()},destroyed:function(){n()(this.$el).slick("unslick")},methods:{create:function(){const t=n()(this.$el);t.on("afterChange",this.onAfterChange),t.on("beforeChange",this.onBeforeChange),t.on("breakpoint",this.onBreakpoint),t.on("destroy",this.onDestroy),t.on("edge",this.onEdge),t.on("init",this.onInit),t.on("reInit",this.onReInit),t.on("setPosition",this.onSetPosition),t.on("swipe",this.onSwipe),t.on("lazyLoaded",this.onLazyLoaded),t.on("lazyLoadError",this.onLazyLoadError),t.slick(this.options)},destroy:function(){const t=n()(this.$el);t.off("afterChange",this.onAfterChange),t.off("beforeChange",this.onBeforeChange),t.off("breakpoint",this.onBreakpoint),t.off("destroy",this.onDestroy),t.off("edge",this.onEdge),t.off("init",this.onInit),t.off("reInit",this.onReInit),t.off("setPosition",this.onSetPosition),t.off("swipe",this.onSwipe),t.off("lazyLoaded",this.onLazyLoaded),t.off("lazyLoadError",this.onLazyLoadError),n()(this.$el).slick("unslick")},reSlick:function(){this.destroy(),this.create()},next:function(){n()(this.$el).slick("slickNext")},prev:function(){n()(this.$el).slick("slickPrev")},pause:function(){n()(this.$el).slick("slickPause")},play:function(){n()(this.$el).slick("slickPlay")},goTo:function(t,e){n()(this.$el).slick("slickGoTo",t,e)},currentSlide:function(){return n()(this.$el).slick("slickCurrentSlide")},add:function(t,e,s){n()(this.$el).slick("slickAdd",t,e,s)},remove:function(t,e){n()(this.$el).slick("slickRemove",t,e)},filter:function(t){n()(this.$el).slick("slickFilter",t)},unfilter:function(){n()(this.$el).slick("slickUnfilter")},getOption:function(t){n()(this.$el).slick("slickGetOption",t)},setOption:function(t,e,s){n()(this.$el).slick("slickSetOption",t,e,s)},setPosition:function(){n()(this.$el).slick("setPosition")},onAfterChange:function(t,e,s){this.$emit("afterChange",t,e,s)},onBeforeChange:function(t,e,s,i){this.$emit("beforeChange",t,e,s,i)},onBreakpoint:function(t,e,s){this.$emit("breakpoint",t,e,s)},onDestroy:function(t,e){this.$emit("destroy",t,e)},onEdge:function(t,e,s){this.$emit("edge",t,e,s)},onInit:function(t,e){this.$emit("init",t,e)},onReInit:function(t,e){this.$emit("reInit",t,e)},onSetPosition:function(t,e){this.$emit("setPosition",t,e)},onSwipe:function(t,e,s){this.$emit("swipe",t,e,s)},onLazyLoaded:function(t,e,s,i){this.$emit("lazyLoaded",t,e,s,i)},onLazyLoadError:function(t,e,s,i){this.$emit("lazyLoadError",t,e,s,i)}}},o=s(15),r=Object(o.a)(a,(function(){return(0,this._self._c)("div",[this._t("default")],2)}),[],!1,null,null,null);e.default=r.exports},250:function(t,e,s){"use strict";s.r(e);s(90);var i={data:()=>({query:"",focused:!1,focusIndex:0}),computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const t=this.query.trim().toLowerCase();if(!t)return;const{pages:e,themeConfig:s}=this.$site,i=s.searchMaxSuggestions||5,n=this.$localePath,a=e=>e.title&&e.title.toLowerCase().indexOf(t)>-1,o=[];for(let t=0;t<e.length&&!(o.length>=i);t++){const s=e[t];if(this.getPageLocalePath(s)===n)if(a(s))o.push(s);else if(s.headers)for(let t=0;t<s.headers.length&&!(o.length>=i);t++){const e=s.headers[t];a(e)&&o.push(Object.assign({},s,{path:s.path+"#"+e.slug,header:e}))}}return o},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath(t){for(const e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex<this.suggestions.length-1?this.focusIndex++:this.focusIndex=0)},go(t){this.showSuggestions&&(this.$router.push(this.suggestions[t].path),this.query="",this.focusIndex=0)},focus(t){this.focusIndex=t},unfocus(){this.focusIndex=-1}}},n=s(15),a=Object(n.a)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-box"},[e("input",{attrs:{"aria-label":"Search",placeholder:"Search",autocomplete:"off",spellcheck:"false"},domProps:{value:t.query},on:{input:function(e){t.query=e.target.value},focus:function(e){t.focused=!0},blur:function(e){t.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.go(t.focusIndex)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.onUp.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.onDown.apply(null,arguments)}]}}),t._v(" "),t.showSuggestions?e("div",{staticClass:"suggestion-container",on:{mouseleave:t.unfocus}},[e("div",{staticClass:"suggestion-padding"}),t._v(" "),e("ul",{staticClass:"suggestions",class:{"align-right":t.alignRight}},t._l(t.suggestions,(function(s,i){return e("li",{staticClass:"suggestion",class:{focused:i===t.focusIndex},on:{mousedown:function(e){return t.go(i)},mouseenter:function(e){return t.focus(i)}}},[e("a",{attrs:{href:s.path},on:{click:function(t){t.preventDefault()}}},[e("span",{staticClass:"page-title"},[t._v(t._s(s.title||s.path))]),t._v(" "),s.header?e("span",{staticClass:"header"},[t._v("> "+t._s(s.header.title))]):t._e()])])})),0)]):t._e()])}),[],!1,null,null,null);e.default=a.exports},252:function(t,e,s){"use strict";s.r(e);var i=s(15),n=Object(i.a)({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-button",on:{click:function(e){return t.$emit("toggle-sidebar")}}},[e("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[e("path",{attrs:{fill:"currentColor",d:"M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"}})])])}),[],!1,null,null,null);e.default=n.exports},255:function(t,e,s){},256:function(t,e,s){},258:function(t,e,s){"use strict";s.r(e);var i=s(241),n=s(249),a={components:{NavLink:i.default,Slick:n.default},data:()=>({slickOptions:{slidesToShow:1,centerMode:!0,centerPadding:"0",speed:1e3,autoplay:!0,variableWidth:!0,arrows:!1,dots:!0,pauseOnHover:!1,pauseOnDotsHover:!0}}),computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},o=s(15),r=Object(o.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"home"},[e("div",{staticClass:"header section bg-blue text-grey-lightest less-padding emphasize"},[e("div",{staticClass:"container z-10"},[e("div",{staticClass:"text-center"},[t._m(0),t._v(" "),e("div",{staticClass:"mt-4"},[e("router-link",{staticClass:"btn inline-block",attrs:{to:"/panel/getting_started.html"}},[t._v("Let's Get Started!")])],1)])])]),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"section bg-white"},[e("div",{staticClass:"text-center"},[e("h1",[t._v("Screenshots")]),t._v(" "),e("div",{staticClass:"screenshots"},[e("slick",{ref:"slick",attrs:{options:t.slickOptions}},[e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-1.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-1.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-2.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-2.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-3.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-3.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-4.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-4.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-5.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-5.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-6.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-6.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-7.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-7.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-8.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-8.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-9.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-9.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-10.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-10.png"}})]),t._v(" "),e("a",{attrs:{href:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-11.png"}},[e("img",{attrs:{src:"https://cdn.pterodactyl.io/site-assets/carousel/screenshot-11.png"}})])])],1)])]),t._v(" "),e("div",{staticClass:"section bg-blue text-grey-lightest"},[e("div",{staticClass:"container text-center"},[e("h1",[t._v("Get Started")]),t._v(" "),e("p",{staticClass:"m-4"},[t._v("Ready to fly on the Pterodactyl?")]),t._v(" "),e("div",{staticClass:"mt-4"},[e("router-link",{staticClass:"btn inline-block",attrs:{to:"/project/introduction.html"}},[t._v("About the project")]),t._v(" "),e("a",{staticClass:"btn inline-block",attrs:{href:"https://discord.gg/pterodactyl"}},[t._v("Discord")])],1)])]),t._v(" "),e("div",{staticClass:"section bg-black text-grey-lighter text-sm less-padding"},[e("div",{staticClass:"container text-center"},[e("div",[e("img",{staticClass:"h-20",attrs:{src:t.$withBase("logos/banner_logo.png"),alt:"pterodactyl banner logo"}})]),t._v(" "),t._m(3),t._v(" "),e("div",{staticClass:"footer"},[t._v("MIT Licensed | Pterodactyl® Copyright © Dane Everitt and contributors")])])])])}),[function(){var t=this._self._c;return t("div",[t("img",{staticClass:"max-w-xl w-full inline-block",attrs:{src:"https://cdn.pterodactyl.io/logos/new/pterodactyl_logo_transparent.png",alt:"Pterodactyl"}})])},function(){var t=this._self._c;return t("div",{staticClass:"section bg-white"},[t("div",{staticClass:"container text-center"},[t("h1",{staticClass:"text-blue mb-4"},[this._v("Pterodactyl Panel")]),this._v(" "),t("h3",{staticClass:"border-0 font-normal leading-normal mx-auto",staticStyle:{"max-width":"50rem"}},[this._v("\n Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go.\n Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers\n while exposing a beautiful and intuitive UI to end users.\n ")]),this._v(" "),t("h3",{staticClass:"border-0 leading-normal mx-auto mt-4",staticStyle:{"max-width":"50rem"}},[this._v("\n Stop settling for less. Make game servers a first class citizen on your platform.\n ")]),this._v(" "),t("img",{staticClass:"max-w-lg w-full m-4 inline-block",attrs:{src:"https://cdn.pterodactyl.io/site-assets/mockup-macbook-grey-1.0.png"}})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"section bg-blue text-grey-lightest"},[e("div",{staticClass:"container text-center"},[e("h1",{staticClass:"mb-4"},[t._v("Why Pterodactyl®")]),t._v(" "),e("div",{staticClass:"flex flex-wrap"},[e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-lock"})]),t._v(" "),e("h3",[t._v("Security First")]),t._v(" "),e("p",[t._v("Security is a first-class citizen on this platform with bcrypt hashing, AES-256-CBC encryption, and HTTPS support out of the box.")])]),t._v(" "),e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-beaker"})]),t._v(" "),e("h3",[t._v("Modern Tooling")]),t._v(" "),e("p",[t._v("Built on a modern stack utilizing the best design practices that make it easy to jump in and make modifications.")])]),t._v(" "),e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-anchor"})]),t._v(" "),e("h3",[t._v("Docker to the Core")]),t._v(" "),e("p",[t._v("All servers run in isolated Docker containers that limit attack vectors, provide strict resource limits, and provide environments tailored to each specific game.")])]),t._v(" "),e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-wallet"})]),t._v(" "),e("h3",[t._v("Free & Open Source")]),t._v(" "),e("p",[t._v("Pterodactyl is 100% free and licensed under a MIT license. All of our code is completely open source as well.")])]),t._v(" "),e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-browser"})]),t._v(" "),e("h3",[t._v("User Friendly")]),t._v(" "),e("p",[t._v("Save the furious clicking and screaming for Overwatch. Pterodactyl's interface is designed so well even Hanzo can use it.")])]),t._v(" "),e("div",{staticClass:"feature"},[e("span",[e("i",{staticClass:"icon icon-expand"})]),t._v(" "),e("h3",[t._v("Scalable")]),t._v(" "),e("p",[t._v("Whether you're a hosting company, the next Hyplex, or just some dudes playing video games, we've got you covered.")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-left md:flex"},[e("div",{staticClass:"flex-none w-full md:w-1/2 md:pr-12"},[e("p",{staticClass:"my-4"},[t._v("\n Since 2015 Pterodactyl® has been delivering robust, performant, and secure software that allows\n individuals, networks, and hosting companies to run game servers at scale; easily. Best of all?\n No exorbitant monthly costs.\n ")]),t._v(" "),e("p",{staticClass:"my-4"},[t._v("\n Take the plunge today and discover why thousands of users trust Pterodactyl® to manage their\n game servers.\n ")])]),t._v(" "),e("div",{staticClass:"hidden md:block md:flex-1 md:pr-12"},[e("p",[e("a",{staticClass:"text-grey-lightest",attrs:{href:"https://github.com/pterodactyl"}},[t._v("GitHub")])]),t._v(" "),e("p",[e("a",{staticClass:"text-grey-lightest",attrs:{href:"https://github.com/sponsors/matthewpi"}},[t._v("Sponsor")])]),t._v(" "),e("p",[e("a",{staticClass:"text-grey-lightest",attrs:{href:"https://paypal.me/PterodactylSoftware"}},[t._v("Donate")])]),t._v(" "),e("p",[e("a",{staticClass:"text-grey-lightest",attrs:{href:"/panel/troubleshooting.html"}},[t._v("Troubleshooting")])]),t._v(" "),e("p",[e("a",{staticClass:"text-grey-lightest",attrs:{href:"https://pterodactyleggs.com"}},[t._v("Additional Game Configurations")])])]),t._v(" "),e("div",{staticClass:"text-center mt-8 md:flex-1 md:mt-0"},[e("a",{attrs:{href:"https://discord.gg/pterodactyl",target:"_blank",rel:"nofollow noopener"}},[e("img",{staticClass:"w-3/4",attrs:{src:"https://cdn.pterodactyl.io/site-assets/discord.png"}})])])])}],!1,null,null,null);e.default=r.exports},259:function(t,e,s){"use strict";s.r(e);var i=s(252),n=s(250),a=s(246),o={components:{SidebarButton:i.default,NavLinks:a.default,SearchBox:n.default},computed:{}},r=s(15),c=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("header",{staticClass:"nav"},[e("SidebarButton",{staticClass:"block md:hidden flex-no-shrink",on:{"toggle-sidebar":function(e){return t.$emit("toggle-sidebar")}}}),t._v(" "),e("div",{staticClass:"logo-container"},[e("router-link",{staticClass:"home-link",attrs:{to:t.$localePath}},[t.$site.themeConfig.logo?e("img",{staticClass:"logo",attrs:{src:t.$withBase(t.$site.themeConfig.logo)}}):t._e(),t._v(" "),t.$siteTitle?e("span",{staticClass:"site-name hidden md:inline",class:{"can-hide":t.$site.themeConfig.logo}},[t._v(t._s(t.$siteTitle))]):t._e()])],1),t._v(" "),e("div",{staticClass:"w-full"},[e("div",{staticClass:"flex"},[e("SearchBox"),t._v(" "),e("NavLinks",{staticClass:"hidden md:flex"})],1)])],1)}),[],!1,null,null,null);e.default=c.exports},260:function(t,e,s){"use strict";s.r(e);s(90);var i=s(239);function n(t,e,s){const i=[];e.forEach(t=>{"group"===t.type?i.push(...t.children||[]):i.push(t)});for(let e=0;e<i.length;e++){const n=i[e];if("page"===n.type&&n.path===t.path)return i[e+s]}}var a={props:["sidebarItems"],computed:{lastUpdated(){if(this.$page.lastUpdated)return new Date(this.$page.lastUpdated).toLocaleString(this.$lang)},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},prev(){const t=this.$page.frontmatter.prev;return!1===t?void 0:t?Object(i.l)(this.$site.pages,t,this.$route.path):(e=this.$page,s=this.sidebarItems,n(e,s,-1));var e,s},next(){const t=this.$page.frontmatter.next;return!1===t?void 0:t?Object(i.l)(this.$site.pages,t,this.$route.path):(e=this.$page,s=this.sidebarItems,n(e,s,1));var e,s},editLink(){if(!1===this.$page.frontmatter.editLink)return;const{repo:t,editLinks:e,docsDir:s="",docsBranch:n="master",docsRepo:a=t}=this.$site.themeConfig;let o=Object(i.i)(this.$page.path);return i.a.test(o)?o+="README.md":o+=".md",a&&e?this.createEditLink(t,a,s,n,o):void 0},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,s,n,a){if(/bitbucket.org/.test(t)){return(i.j.test(e)?e:t).replace(i.a,"")+"/"+n+(s?"/"+s.replace(i.a,""):"")+a+`?mode=edit&spa=0&at=${n}&fileviewer=file-view-default`}return(i.j.test(e)?e:"https://github.com/"+e).replace(i.a,"")+"/edit/"+n+(s?"/"+s.replace(i.a,""):"")+a}}},o=s(15),r=Object(o.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page"},[t._t("top"),t._v(" "),e("Content",{staticClass:"content",attrs:{custom:!1}}),t._v(" "),e("div",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()]),t._v(" "),t.prev||t.next?e("div",{staticClass:"page-nav"},[e("p",{staticClass:"inner"}),t._v(" "),e("div",{staticClass:"prev"},[t.prev?e("span",[t._v("\n ←\n "),t.prev?e("router-link",{attrs:{to:t.prev.path}},[t._v(t._s(t.prev.title||t.prev.path))]):t._e()],1):t._e()]),t._v(" "),e("div",{staticClass:"next"},[t.next?e("span",[t.next?e("router-link",{attrs:{to:t.next.path}},[t._v(t._s(t.next.title||t.next.path))]):t._e(),t._v("→\n ")],1):t._e()])]):t._e(),t._v(" "),t._t("bottom")],2)}),[],!1,null,null,null);e.default=r.exports},262:function(t,e,s){var i,n;
|
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT */void 0===(n="function"==typeof(i=function(){var t,e,s={version:"0.2.0"},i=s.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,s){return t<e?e:t>s?s:t}function a(t){return 100*(-1+t)}s.configure=function(t){var e,s;for(e in t)void 0!==(s=t[e])&&t.hasOwnProperty(e)&&(i[e]=s);return this},s.status=null,s.set=function(t){var e=s.isStarted();t=n(t,i.minimum,1),s.status=1===t?null:t;var c=s.render(!e),l=c.querySelector(i.barSelector),d=i.speed,u=i.easing;return c.offsetWidth,o((function(e){""===i.positionUsing&&(i.positionUsing=s.getPositioningCSS()),r(l,function(t,e,s){var n;return(n="translate3d"===i.positionUsing?{transform:"translate3d("+a(t)+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+a(t)+"%,0)"}:{"margin-left":a(t)+"%"}).transition="all "+e+"ms "+s,n}(t,d,u)),1===t?(r(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){r(c,{transition:"all "+d+"ms linear",opacity:0}),setTimeout((function(){s.remove(),e()}),d)}),d)):setTimeout(e,d)})),this},s.isStarted=function(){return"number"==typeof s.status},s.start=function(){s.status||s.set(0);var t=function(){setTimeout((function(){s.status&&(s.trickle(),t())}),i.trickleSpeed)};return i.trickle&&t(),this},s.done=function(t){return t||s.status?s.inc(.3+.5*Math.random()).set(1):this},s.inc=function(t){var e=s.status;return e?("number"!=typeof t&&(t=(1-e)*n(Math.random()*e,.1,.95)),e=n(e+t,0,.994),s.set(e)):s.start()},s.trickle=function(){return s.inc(Math.random()*i.trickleRate)},t=0,e=0,s.promise=function(i){return i&&"resolved"!==i.state()?(0===e&&s.start(),t++,e++,i.always((function(){0==--e?(t=0,s.done()):s.set((t-e)/t)})),this):this},s.render=function(t){if(s.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var n,o=e.querySelector(i.barSelector),c=t?"-100":a(s.status||0),d=document.querySelector(i.parent);return r(o,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),i.showSpinner||(n=e.querySelector(i.spinnerSelector))&&h(n),d!=document.body&&l(d,"nprogress-custom-parent"),d.appendChild(e),e},s.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},s.isRendered=function(){return!!document.getElementById("nprogress")},s.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var s=t.shift();s&&s(e)}return function(s){t.push(s),1==t.length&&e()}}(),r=function(){var t=["Webkit","O","Moz","ms"],e={};function s(s){return s=s.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[s]||(e[s]=function(e){var s=document.body.style;if(e in s)return e;for(var i,n=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);n--;)if((i=t[n]+a)in s)return i;return e}(s))}function i(t,e,i){e=s(e),t.style[e]=i}return function(t,e){var s,n,a=arguments;if(2==a.length)for(s in e)void 0!==(n=e[s])&&e.hasOwnProperty(s)&&i(t,s,n);else i(t,a[1],a[2])}}();function c(t,e){return("string"==typeof t?t:u(t)).indexOf(" "+e+" ")>=0}function l(t,e){var s=u(t),i=s+e;c(s,e)||(t.className=i.substring(1))}function d(t,e){var s,i=u(t);c(t,e)&&(s=i.replace(" "+e+" "," "),t.className=s.substring(1,s.length-1))}function u(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return s})?i.call(e,s,e,t):i)||(t.exports=n)},263:function(t,e,s){"use strict";s(255)},264:function(t,e,s){"use strict";s(256)},282:function(t,e,s){"use strict";s.r(e);var i=s(0),n=s(262),a=s.n(n),o=s(258),r=s(259),c=s(260),l=s(281),d=s(239),u={components:{Home:o.default,Page:c.default,Sidebar:l.default,Navbar:r.default},data:()=>({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:t}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==t.navbar&&(this.$title||t.logo||t.repo||t.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:t}=this.$page;return!t.layout&&!t.home&&!1!==t.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(d.m)(this.$page,this.$route,this.$site,this.$localePath)},pageClasses(){const t=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},t]}},mounted(){window.addEventListener("scroll",this.onScroll),a.a.configure({showSpinner:!1}),this.$router.beforeEach((t,e,s)=>{t.path===e.path||i.a.component(t.name)||a.a.start(),s()}),this.$router.afterEach(()=>{a.a.done(),this.isSidebarOpen=!1})},methods:{toggleSidebar(t){this.isSidebarOpen="boolean"==typeof t?t:!this.isSidebarOpen},onTouchStart(t){this.touchStart={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}},onTouchEnd(t){const e=t.changedTouches[0].clientX-this.touchStart.x,s=t.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(s)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}},h=(s(263),s(264),s(15)),p=Object(h.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?e("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),t._v(" "),e("div",{staticClass:"sidebar-mask",on:{click:function(e){return t.toggleSidebar(!1)}}}),t._v(" "),e("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?e("div",{staticClass:"custom-layout"},[e(t.$page.frontmatter.layout,{tag:"component"})],1):t.$page.frontmatter.home?e("Home"):e("Page",{attrs:{"sidebar-items":t.sidebarItems}},[t._t("page-top",null,{slot:"top"}),t._v(" "),t._t("page-bottom",null,{slot:"bottom"})],2)],1)])}),[],!1,null,null,null);e.default=p.exports}}]); |