node_modules updated, buefy add to lib folder
This commit is contained in:
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
'use strict';
|
||||
@@ -60,11 +60,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -103,6 +106,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1084,16 +1098,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1272,8 +1294,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2130,7 +2154,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2218,7 +2242,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2327,7 +2351,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2355,7 +2395,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2478,7 +2518,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2568,9 +2620,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2611,7 +2664,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
/* */
|
||||
@@ -58,11 +58,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -101,6 +104,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1082,16 +1096,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1270,8 +1292,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2128,7 +2152,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2216,7 +2240,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2325,7 +2349,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2353,7 +2393,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2476,7 +2516,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2566,9 +2618,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2609,7 +2662,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
(function (global, factory) {
|
||||
@@ -64,11 +64,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -107,6 +110,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1088,16 +1102,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
{
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1276,8 +1298,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2134,7 +2158,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2222,7 +2246,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2331,7 +2355,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2359,7 +2399,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2482,7 +2522,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2572,9 +2624,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2615,7 +2668,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user