Nuxt/examples/hello-world/dist/_nuxt/nuxt.bundle.js

1 line
7.5 KiB
JavaScript
Raw Normal View History

2016-11-10 12:24:20 +00:00
webpackJsonp([2],[,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.router=e.app=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=n(0),a=(r(i),n(11)),s=r(a),u=n(14),c=r(u),f=o({router:s.default},c.default);e.app=f,e.router=s.default},function(t,e){"use strict";function n(t){return[].concat.apply([],t.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})}))}function r(t,e){return Array.prototype.concat.apply([],t.matched.map(function(t,n){return Object.keys(t.components).map(function(r){return e(t.components[r],t.instances[r],t,r,n)})}))}function o(t){var e={isServer:!!t.isServer,isClient:!!t.isClient,route:t.to?t.to:t.route};return e.params=e.route.params||{},e.query=e.route.query||{},t.req&&(e.req=t.req),t.res&&(e.res=t.res),e}function i(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}Object.defineProperty(e,"__esModule",{value:!0}),e.getMatchedComponents=n,e.flatMapComponents=r,e.getContext=o,e.getLocation=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),i=r(o),a=n(15),s=r(a);e.default={data:function(){return{err:null}},mounted:function(){this.$loading=this.$refs.loading},methods:{error:function(t){return t=t||null,this.err=t||null,this.err&&this.$loading&&this.$loading.fail&&this.$loading.fail(),this.err}},components:{NuxtError:i.default,NuxtLoading:s.default}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);e.default={data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"black",failedColor:"red"}},methods:{start:function(){var t=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){t.increase(t._cut*Math.random()),t.percent>95&&t.finish()},100),this},set:function(t){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(t),this},get:function(){return Math.floor(this.percent)},increase:function(t){return this.percent=this.percent+Math.floor(t),this},decrease:function(){return this.percent=this.percent-Math.floor(num),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var t=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){t.show=!1,r.nextTick(function(){setTimeout(function(){t.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this.percent=100,this.hide(),this}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["error"]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),a=n(4),s=r(a),u=n(3),c=r(u);i.default.use(s.default),i.default.use(c.default);var f=function(){return n.e(0).then(n.bind(null,24))},d=function(){return n.e(1).then(n.bind(null,25))},l=function(t,e,n){if(n)return n;var r={x:0,y:0};return t.hash&&(r={selector:t.hash}),r};e.default=new s.default({mode:"history",scrollBehavior:l,routes:[{path:"/about",component:f},{path:"/",component:d}]})},function(t,e){},function(t,e){},function(t,e,n){var r,o;r=n(8);var i=n(19);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(12),r=n(9);var i=n(17);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,o._scopeId="data-v-3223f20f",t.exports=r},function(t,e,n){var r,o;n(13),r=n(10