vite-plugin-vue-devtools 0.0.1-alpha.1 → 0.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{VCard-71dc6c0a.js → VCard-9037cc6c.js} +1 -1
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-527d8187.js → VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js} +1 -1
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-e9a02b1e.js → VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js} +1 -1
- package/dist/client/assets/{VPanelGrids-0fa9ab66.js → VPanelGrids-1bf7082d.js} +1 -1
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-3269f8e0.js → VTextInput.vue_vue_type_script_setup_true_lang-b905b78e.js} +3 -3
- package/dist/client/assets/{__inspecting-e003e6f0.js → __inspecting-62c3dbcc.js} +2 -2
- package/dist/client/assets/{assets-d5f2037f.js → assets-95a58404.js} +7 -7
- package/dist/client/assets/{components-ce0097f5.js → components-a220bbbe.js} +3 -3
- package/dist/client/assets/{graph-c308dc8c.js → graph-92ab6145.js} +2 -2
- package/dist/client/assets/{index-bed0f7d1.js → index-5b5586cd.js} +327 -500
- package/dist/client/assets/{inspect-1db9f22a.js → inspect-82ea9761.js} +2 -2
- package/dist/client/assets/{overview-8afd7e36.js → overview-bfce273d.js} +13 -12
- package/dist/client/assets/{pages-d25b8928.js → pages-fe1fbff1.js} +4 -6
- package/dist/client/assets/{pinia-622c9a72.js → pinia-09a6969e.js} +6 -42
- package/dist/client/assets/{routes-abe90ae8.js → routes-48f13761.js} +6 -6
- package/dist/client/assets/{rpc-9c16d07a.js → rpc-85ddbc2c.js} +1 -1
- package/dist/client/assets/{settings-256557dc.js → settings-7d02fcf4.js} +3 -3
- package/dist/client/assets/{splitpanes.es-012cdbb8.js → splitpanes.es-48981724.js} +2 -2
- package/dist/client/assets/{timeline-d6eff46a.js → timeline-8ad30834.js} +5 -5
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/src/node/Container.vue +1 -1
- package/dist/client/assets/pages-1eda0955.js +0 -21
|
@@ -10151,18 +10151,6 @@ function stringifyURL(stringifyQuery, location) {
|
|
|
10151
10151
|
const query = location.query ? stringifyQuery(location.query) : '';
|
|
10152
10152
|
return location.path + (query && '?') + query + (location.hash || '');
|
|
10153
10153
|
}
|
|
10154
|
-
/**
|
|
10155
|
-
* Strips off the base from the beginning of a location.pathname in a non-case-sensitive way.
|
|
10156
|
-
*
|
|
10157
|
-
* @param pathname - location.pathname
|
|
10158
|
-
* @param base - base to strip off
|
|
10159
|
-
*/
|
|
10160
|
-
function stripBase(pathname, base) {
|
|
10161
|
-
// no base or base is not found at the beginning
|
|
10162
|
-
if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase()))
|
|
10163
|
-
return pathname;
|
|
10164
|
-
return pathname.slice(base.length) || '/';
|
|
10165
|
-
}
|
|
10166
10154
|
/**
|
|
10167
10155
|
* Checks if two RouteLocation are equal. This means that both locations are
|
|
10168
10156
|
* pointing towards the same {@link RouteRecord} and that all `params`, `query`
|
|
@@ -10273,6 +10261,10 @@ var NavigationDirection;
|
|
|
10273
10261
|
NavigationDirection["forward"] = "forward";
|
|
10274
10262
|
NavigationDirection["unknown"] = "";
|
|
10275
10263
|
})(NavigationDirection || (NavigationDirection = {}));
|
|
10264
|
+
/**
|
|
10265
|
+
* Starting location for Histories
|
|
10266
|
+
*/
|
|
10267
|
+
const START = '';
|
|
10276
10268
|
// Generic utils
|
|
10277
10269
|
/**
|
|
10278
10270
|
* Normalizes a base by removing any trailing slash and reading the base tag if
|
|
@@ -10359,283 +10351,92 @@ function getSavedScrollPosition(key) {
|
|
|
10359
10351
|
scrollPositions.delete(key);
|
|
10360
10352
|
return scroll;
|
|
10361
10353
|
}
|
|
10362
|
-
|
|
10363
|
-
/**
|
|
10364
|
-
* ScrollBehavior instance used by the router to compute and restore the scroll
|
|
10365
|
-
* position when navigating.
|
|
10366
|
-
*/
|
|
10367
|
-
// export interface ScrollHandler<ScrollPositionEntry extends HistoryStateValue, ScrollPosition extends ScrollPositionEntry> {
|
|
10368
|
-
// // returns a scroll position that can be saved in history
|
|
10369
|
-
// compute(): ScrollPositionEntry
|
|
10370
|
-
// // can take an extended ScrollPositionEntry
|
|
10371
|
-
// scroll(position: ScrollPosition): void
|
|
10372
|
-
// }
|
|
10373
|
-
// export const scrollHandler: ScrollHandler<ScrollPosition> = {
|
|
10374
|
-
// compute: computeScroll,
|
|
10375
|
-
// scroll: scrollToPosition,
|
|
10376
|
-
// }
|
|
10377
|
-
|
|
10378
|
-
let createBaseLocation = () => location.protocol + '//' + location.host;
|
|
10354
|
+
|
|
10379
10355
|
/**
|
|
10380
|
-
* Creates
|
|
10381
|
-
*
|
|
10356
|
+
* Creates an in-memory based history. The main purpose of this history is to handle SSR. It starts in a special location that is nowhere.
|
|
10357
|
+
* It's up to the user to replace that location with the starter location by either calling `router.push` or `router.replace`.
|
|
10358
|
+
*
|
|
10359
|
+
* @param base - Base applied to all urls, defaults to '/'
|
|
10360
|
+
* @returns a history object that can be passed to the router constructor
|
|
10382
10361
|
*/
|
|
10383
|
-
function
|
|
10384
|
-
const { pathname, search, hash } = location;
|
|
10385
|
-
// allows hash bases like #, /#, #/, #!, #!/, /#!/, or even /folder#end
|
|
10386
|
-
const hashPos = base.indexOf('#');
|
|
10387
|
-
if (hashPos > -1) {
|
|
10388
|
-
let slicePos = hash.includes(base.slice(hashPos))
|
|
10389
|
-
? base.slice(hashPos).length
|
|
10390
|
-
: 1;
|
|
10391
|
-
let pathFromHash = hash.slice(slicePos);
|
|
10392
|
-
// prepend the starting slash to hash so the url starts with /#
|
|
10393
|
-
if (pathFromHash[0] !== '/')
|
|
10394
|
-
pathFromHash = '/' + pathFromHash;
|
|
10395
|
-
return stripBase(pathFromHash, '');
|
|
10396
|
-
}
|
|
10397
|
-
const path = stripBase(pathname, base);
|
|
10398
|
-
return path + search + hash;
|
|
10399
|
-
}
|
|
10400
|
-
function useHistoryListeners(base, historyState, currentLocation, replace) {
|
|
10362
|
+
function createMemoryHistory(base = '') {
|
|
10401
10363
|
let listeners = [];
|
|
10402
|
-
let
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
let delta = 0;
|
|
10411
|
-
if (state) {
|
|
10412
|
-
currentLocation.value = to;
|
|
10413
|
-
historyState.value = state;
|
|
10414
|
-
// ignore the popstate and reset the pauseState
|
|
10415
|
-
if (pauseState && pauseState === from) {
|
|
10416
|
-
pauseState = null;
|
|
10417
|
-
return;
|
|
10418
|
-
}
|
|
10419
|
-
delta = fromState ? state.position - fromState.position : 0;
|
|
10364
|
+
let queue = [START];
|
|
10365
|
+
let position = 0;
|
|
10366
|
+
base = normalizeBase(base);
|
|
10367
|
+
function setLocation(location) {
|
|
10368
|
+
position++;
|
|
10369
|
+
if (position === queue.length) {
|
|
10370
|
+
// we are at the end, we can simply append a new entry
|
|
10371
|
+
queue.push(location);
|
|
10420
10372
|
}
|
|
10421
10373
|
else {
|
|
10422
|
-
|
|
10374
|
+
// we are in the middle, we remove everything from here in the queue
|
|
10375
|
+
queue.splice(position);
|
|
10376
|
+
queue.push(location);
|
|
10423
10377
|
}
|
|
10424
|
-
// console.log({ deltaFromCurrent })
|
|
10425
|
-
// Here we could also revert the navigation by calling history.go(-delta)
|
|
10426
|
-
// this listener will have to be adapted to not trigger again and to wait for the url
|
|
10427
|
-
// to be updated before triggering the listeners. Some kind of validation function would also
|
|
10428
|
-
// need to be passed to the listeners so the navigation can be accepted
|
|
10429
|
-
// call all listeners
|
|
10430
|
-
listeners.forEach(listener => {
|
|
10431
|
-
listener(currentLocation.value, from, {
|
|
10432
|
-
delta,
|
|
10433
|
-
type: NavigationType.pop,
|
|
10434
|
-
direction: delta
|
|
10435
|
-
? delta > 0
|
|
10436
|
-
? NavigationDirection.forward
|
|
10437
|
-
: NavigationDirection.back
|
|
10438
|
-
: NavigationDirection.unknown,
|
|
10439
|
-
});
|
|
10440
|
-
});
|
|
10441
|
-
};
|
|
10442
|
-
function pauseListeners() {
|
|
10443
|
-
pauseState = currentLocation.value;
|
|
10444
10378
|
}
|
|
10445
|
-
function
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
if (index > -1)
|
|
10451
|
-
listeners.splice(index, 1);
|
|
10379
|
+
function triggerListeners(to, from, { direction, delta }) {
|
|
10380
|
+
const info = {
|
|
10381
|
+
direction,
|
|
10382
|
+
delta,
|
|
10383
|
+
type: NavigationType.pop,
|
|
10452
10384
|
};
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
}
|
|
10456
|
-
function beforeUnloadListener() {
|
|
10457
|
-
const { history } = window;
|
|
10458
|
-
if (!history.state)
|
|
10459
|
-
return;
|
|
10460
|
-
history.replaceState(assign({}, history.state, { scroll: computeScrollPosition() }), '');
|
|
10461
|
-
}
|
|
10462
|
-
function destroy() {
|
|
10463
|
-
for (const teardown of teardowns)
|
|
10464
|
-
teardown();
|
|
10465
|
-
teardowns = [];
|
|
10466
|
-
window.removeEventListener('popstate', popStateHandler);
|
|
10467
|
-
window.removeEventListener('beforeunload', beforeUnloadListener);
|
|
10468
|
-
}
|
|
10469
|
-
// set up the listeners and prepare teardown callbacks
|
|
10470
|
-
window.addEventListener('popstate', popStateHandler);
|
|
10471
|
-
window.addEventListener('beforeunload', beforeUnloadListener);
|
|
10472
|
-
return {
|
|
10473
|
-
pauseListeners,
|
|
10474
|
-
listen,
|
|
10475
|
-
destroy,
|
|
10476
|
-
};
|
|
10477
|
-
}
|
|
10478
|
-
/**
|
|
10479
|
-
* Creates a state object
|
|
10480
|
-
*/
|
|
10481
|
-
function buildState(back, current, forward, replaced = false, computeScroll = false) {
|
|
10482
|
-
return {
|
|
10483
|
-
back,
|
|
10484
|
-
current,
|
|
10485
|
-
forward,
|
|
10486
|
-
replaced,
|
|
10487
|
-
position: window.history.length,
|
|
10488
|
-
scroll: computeScroll ? computeScrollPosition() : null,
|
|
10489
|
-
};
|
|
10490
|
-
}
|
|
10491
|
-
function useHistoryStateNavigation(base) {
|
|
10492
|
-
const { history, location } = window;
|
|
10493
|
-
// private variables
|
|
10494
|
-
const currentLocation = {
|
|
10495
|
-
value: createCurrentLocation(base, location),
|
|
10496
|
-
};
|
|
10497
|
-
const historyState = { value: history.state };
|
|
10498
|
-
// build current history entry as this is a fresh navigation
|
|
10499
|
-
if (!historyState.value) {
|
|
10500
|
-
changeLocation(currentLocation.value, {
|
|
10501
|
-
back: null,
|
|
10502
|
-
current: currentLocation.value,
|
|
10503
|
-
forward: null,
|
|
10504
|
-
// the length is off by one, we need to decrease it
|
|
10505
|
-
position: history.length - 1,
|
|
10506
|
-
replaced: true,
|
|
10507
|
-
// don't add a scroll as the user may have an anchor, and we want
|
|
10508
|
-
// scrollBehavior to be triggered without a saved position
|
|
10509
|
-
scroll: null,
|
|
10510
|
-
}, true);
|
|
10511
|
-
}
|
|
10512
|
-
function changeLocation(to, state, replace) {
|
|
10513
|
-
/**
|
|
10514
|
-
* if a base tag is provided, and we are on a normal domain, we have to
|
|
10515
|
-
* respect the provided `base` attribute because pushState() will use it and
|
|
10516
|
-
* potentially erase anything before the `#` like at
|
|
10517
|
-
* https://github.com/vuejs/router/issues/685 where a base of
|
|
10518
|
-
* `/folder/#` but a base of `/` would erase the `/folder/` section. If
|
|
10519
|
-
* there is no host, the `<base>` tag makes no sense and if there isn't a
|
|
10520
|
-
* base tag we can just use everything after the `#`.
|
|
10521
|
-
*/
|
|
10522
|
-
const hashIndex = base.indexOf('#');
|
|
10523
|
-
const url = hashIndex > -1
|
|
10524
|
-
? (location.host && document.querySelector('base')
|
|
10525
|
-
? base
|
|
10526
|
-
: base.slice(hashIndex)) + to
|
|
10527
|
-
: createBaseLocation() + base + to;
|
|
10528
|
-
try {
|
|
10529
|
-
// BROWSER QUIRK
|
|
10530
|
-
// NOTE: Safari throws a SecurityError when calling this function 100 times in 30 seconds
|
|
10531
|
-
history[replace ? 'replaceState' : 'pushState'](state, '', url);
|
|
10532
|
-
historyState.value = state;
|
|
10533
|
-
}
|
|
10534
|
-
catch (err) {
|
|
10535
|
-
{
|
|
10536
|
-
console.error(err);
|
|
10537
|
-
}
|
|
10538
|
-
// Force the navigation, this also resets the call count
|
|
10539
|
-
location[replace ? 'replace' : 'assign'](url);
|
|
10385
|
+
for (const callback of listeners) {
|
|
10386
|
+
callback(to, from, info);
|
|
10540
10387
|
}
|
|
10541
10388
|
}
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
currentLocation.value = to;
|
|
10548
|
-
}
|
|
10549
|
-
function push(to, data) {
|
|
10550
|
-
// Add to current entry the information of where we are going
|
|
10551
|
-
// as well as saving the current position
|
|
10552
|
-
const currentState = assign({},
|
|
10553
|
-
// use current history state to gracefully handle a wrong call to
|
|
10554
|
-
// history.replaceState
|
|
10555
|
-
// https://github.com/vuejs/router/issues/366
|
|
10556
|
-
historyState.value, history.state, {
|
|
10557
|
-
forward: to,
|
|
10558
|
-
scroll: computeScrollPosition(),
|
|
10559
|
-
});
|
|
10560
|
-
changeLocation(currentState.current, currentState, true);
|
|
10561
|
-
const state = assign({}, buildState(currentLocation.value, to, null), { position: currentState.position + 1 }, data);
|
|
10562
|
-
changeLocation(to, state, false);
|
|
10563
|
-
currentLocation.value = to;
|
|
10564
|
-
}
|
|
10565
|
-
return {
|
|
10566
|
-
location: currentLocation,
|
|
10567
|
-
state: historyState,
|
|
10568
|
-
push,
|
|
10569
|
-
replace,
|
|
10570
|
-
};
|
|
10571
|
-
}
|
|
10572
|
-
/**
|
|
10573
|
-
* Creates an HTML5 history. Most common history for single page applications.
|
|
10574
|
-
*
|
|
10575
|
-
* @param base -
|
|
10576
|
-
*/
|
|
10577
|
-
function createWebHistory(base) {
|
|
10578
|
-
base = normalizeBase(base);
|
|
10579
|
-
const historyNavigation = useHistoryStateNavigation(base);
|
|
10580
|
-
const historyListeners = useHistoryListeners(base, historyNavigation.state, historyNavigation.location, historyNavigation.replace);
|
|
10581
|
-
function go(delta, triggerListeners = true) {
|
|
10582
|
-
if (!triggerListeners)
|
|
10583
|
-
historyListeners.pauseListeners();
|
|
10584
|
-
history.go(delta);
|
|
10585
|
-
}
|
|
10586
|
-
const routerHistory = assign({
|
|
10587
|
-
// it's overridden right after
|
|
10588
|
-
location: '',
|
|
10389
|
+
const routerHistory = {
|
|
10390
|
+
// rewritten by Object.defineProperty
|
|
10391
|
+
location: START,
|
|
10392
|
+
// TODO: should be kept in queue
|
|
10393
|
+
state: {},
|
|
10589
10394
|
base,
|
|
10590
|
-
go,
|
|
10591
10395
|
createHref: createHref.bind(null, base),
|
|
10592
|
-
|
|
10396
|
+
replace(to) {
|
|
10397
|
+
// remove current entry and decrement position
|
|
10398
|
+
queue.splice(position--, 1);
|
|
10399
|
+
setLocation(to);
|
|
10400
|
+
},
|
|
10401
|
+
push(to, data) {
|
|
10402
|
+
setLocation(to);
|
|
10403
|
+
},
|
|
10404
|
+
listen(callback) {
|
|
10405
|
+
listeners.push(callback);
|
|
10406
|
+
return () => {
|
|
10407
|
+
const index = listeners.indexOf(callback);
|
|
10408
|
+
if (index > -1)
|
|
10409
|
+
listeners.splice(index, 1);
|
|
10410
|
+
};
|
|
10411
|
+
},
|
|
10412
|
+
destroy() {
|
|
10413
|
+
listeners = [];
|
|
10414
|
+
queue = [START];
|
|
10415
|
+
position = 0;
|
|
10416
|
+
},
|
|
10417
|
+
go(delta, shouldTrigger = true) {
|
|
10418
|
+
const from = this.location;
|
|
10419
|
+
const direction =
|
|
10420
|
+
// we are considering delta === 0 going forward, but in abstract mode
|
|
10421
|
+
// using 0 for the delta doesn't make sense like it does in html5 where
|
|
10422
|
+
// it reloads the page
|
|
10423
|
+
delta < 0 ? NavigationDirection.back : NavigationDirection.forward;
|
|
10424
|
+
position = Math.max(0, Math.min(position + delta, queue.length - 1));
|
|
10425
|
+
if (shouldTrigger) {
|
|
10426
|
+
triggerListeners(this.location, from, {
|
|
10427
|
+
direction,
|
|
10428
|
+
delta,
|
|
10429
|
+
});
|
|
10430
|
+
}
|
|
10431
|
+
},
|
|
10432
|
+
};
|
|
10593
10433
|
Object.defineProperty(routerHistory, 'location', {
|
|
10594
10434
|
enumerable: true,
|
|
10595
|
-
get: () =>
|
|
10596
|
-
});
|
|
10597
|
-
Object.defineProperty(routerHistory, 'state', {
|
|
10598
|
-
enumerable: true,
|
|
10599
|
-
get: () => historyNavigation.state.value,
|
|
10435
|
+
get: () => queue[position],
|
|
10600
10436
|
});
|
|
10601
10437
|
return routerHistory;
|
|
10602
10438
|
}
|
|
10603
10439
|
|
|
10604
|
-
/**
|
|
10605
|
-
* Creates a hash history. Useful for web applications with no host (e.g. `file://`) or when configuring a server to
|
|
10606
|
-
* handle any URL is not possible.
|
|
10607
|
-
*
|
|
10608
|
-
* @param base - optional base to provide. Defaults to `location.pathname + location.search` If there is a `<base>` tag
|
|
10609
|
-
* in the `head`, its value will be ignored in favor of this parameter **but note it affects all the history.pushState()
|
|
10610
|
-
* calls**, meaning that if you use a `<base>` tag, it's `href` value **has to match this parameter** (ignoring anything
|
|
10611
|
-
* after the `#`).
|
|
10612
|
-
*
|
|
10613
|
-
* @example
|
|
10614
|
-
* ```js
|
|
10615
|
-
* // at https://example.com/folder
|
|
10616
|
-
* createWebHashHistory() // gives a url of `https://example.com/folder#`
|
|
10617
|
-
* createWebHashHistory('/folder/') // gives a url of `https://example.com/folder/#`
|
|
10618
|
-
* // if the `#` is provided in the base, it won't be added by `createWebHashHistory`
|
|
10619
|
-
* createWebHashHistory('/folder/#/app/') // gives a url of `https://example.com/folder/#/app/`
|
|
10620
|
-
* // you should avoid doing this because it changes the original url and breaks copying urls
|
|
10621
|
-
* createWebHashHistory('/other-folder/') // gives a url of `https://example.com/other-folder/#`
|
|
10622
|
-
*
|
|
10623
|
-
* // at file:///usr/etc/folder/index.html
|
|
10624
|
-
* // for locations with no `host`, the base is ignored
|
|
10625
|
-
* createWebHashHistory('/iAmIgnored') // gives a url of `file:///usr/etc/folder/index.html#`
|
|
10626
|
-
* ```
|
|
10627
|
-
*/
|
|
10628
|
-
function createWebHashHistory(base) {
|
|
10629
|
-
// Make sure this implementation is fine in terms of encoding, specially for IE11
|
|
10630
|
-
// for `file://`, directly use the pathname and ignore the base
|
|
10631
|
-
// location.pathname contains an initial `/` even at the root: `https://example.com`
|
|
10632
|
-
base = location.host ? base || location.pathname + location.search : '';
|
|
10633
|
-
// allow the user to provide a `#` in the middle: `/base/#/app`
|
|
10634
|
-
if (!base.includes('#'))
|
|
10635
|
-
base += '#';
|
|
10636
|
-
return createWebHistory(base);
|
|
10637
|
-
}
|
|
10638
|
-
|
|
10639
10440
|
function isRouteLocation(route) {
|
|
10640
10441
|
return typeof route === 'string' || (route && typeof route === 'object');
|
|
10641
10442
|
}
|
|
@@ -14263,7 +14064,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
14263
14064
|
const router = useRouter();
|
|
14264
14065
|
function visit() {
|
|
14265
14066
|
isFirstVisit.value = false;
|
|
14266
|
-
router.
|
|
14067
|
+
router.replace("/overview");
|
|
14267
14068
|
}
|
|
14268
14069
|
return (_ctx, _cache) => {
|
|
14269
14070
|
const _component_Logo = __unplugin_components_0;
|
|
@@ -14301,19 +14102,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
14301
14102
|
|
|
14302
14103
|
/* Injected with object hook! */
|
|
14303
14104
|
|
|
14304
|
-
const __pages_import_0__ = () => __vitePreload(() => import('./timeline-
|
|
14305
|
-
const __pages_import_1__ = () => __vitePreload(() => import('./settings-
|
|
14306
|
-
const __pages_import_2__ = () => __vitePreload(() => import('./routes-
|
|
14307
|
-
const __pages_import_3__ = () => __vitePreload(() => import('./pinia-
|
|
14308
|
-
const __pages_import_4__ = () => __vitePreload(() => import('./pages-
|
|
14309
|
-
const __pages_import_5__ = () => __vitePreload(() => import('./overview-
|
|
14310
|
-
const __pages_import_6__ = () => __vitePreload(() => import('./inspect-
|
|
14311
|
-
const __pages_import_8__ = () => __vitePreload(() => import('./graph-
|
|
14312
|
-
const __pages_import_9__ = () => __vitePreload(() => import('./components-
|
|
14313
|
-
const __pages_import_10__ = () => __vitePreload(() => import('./assets-
|
|
14314
|
-
const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-
|
|
14315
|
-
|
|
14316
|
-
const routes = [{"name":"timeline","path":"/timeline","component":__pages_import_0__,"props":true},{"name":"settings","path":"/settings","component":__pages_import_1__,"props":true},{"name":"routes","path":"/routes","component":__pages_import_2__,"props":true},{"name":"pinia","path":"/pinia","component":__pages_import_3__,"props":true},{"name":"pages","path":"/pages","component":__pages_import_4__,"props":true},{"name":"overview","path":"/overview","component":__pages_import_5__,"props":true},{"name":"inspect","path":"/inspect","component":__pages_import_6__,"props":true},{"name":"index","path":"/","component":_sfc_main$6,"props":true},{"name":"graph","path":"/graph","component":__pages_import_8__,"props":true},{"name":"components","path":"/components","component":__pages_import_9__,"props":true},{"name":"assets","path":"/assets","component":__pages_import_10__,"props":true},{"name":"__inspecting","path":"/__inspecting","component":__pages_import_11__,"props":true}];
|
|
14105
|
+
const __pages_import_0__ = () => __vitePreload(() => import('./timeline-8ad30834.js'),true?["./timeline-8ad30834.js","./splitpanes.es-48981724.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js","./VPanelGrids-1bf7082d.js","./VCard-9037cc6c.js"]:void 0,import.meta.url);
|
|
14106
|
+
const __pages_import_1__ = () => __vitePreload(() => import('./settings-7d02fcf4.js'),true?["./settings-7d02fcf4.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js","./VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js"]:void 0,import.meta.url);
|
|
14107
|
+
const __pages_import_2__ = () => __vitePreload(() => import('./routes-48f13761.js'),true?["./routes-48f13761.js","./VPanelGrids-1bf7082d.js","./VCard-9037cc6c.js","./splitpanes.es-48981724.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js"]:void 0,import.meta.url);
|
|
14108
|
+
const __pages_import_3__ = () => __vitePreload(() => import('./pinia-09a6969e.js'),true?["./pinia-09a6969e.js","./splitpanes.es-48981724.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js"]:void 0,import.meta.url);
|
|
14109
|
+
const __pages_import_4__ = () => __vitePreload(() => import('./pages-fe1fbff1.js'),true?["./pages-fe1fbff1.js","./VTextInput.vue_vue_type_script_setup_true_lang-b905b78e.js","./VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js","./VTextInput-52804693.css"]:void 0,import.meta.url);
|
|
14110
|
+
const __pages_import_5__ = () => __vitePreload(() => import('./overview-bfce273d.js'),true?["./overview-bfce273d.js","./VPanelGrids-1bf7082d.js","./rpc-85ddbc2c.js"]:void 0,import.meta.url);
|
|
14111
|
+
const __pages_import_6__ = () => __vitePreload(() => import('./inspect-82ea9761.js'),true?["./inspect-82ea9761.js","./rpc-85ddbc2c.js"]:void 0,import.meta.url);
|
|
14112
|
+
const __pages_import_8__ = () => __vitePreload(() => import('./graph-92ab6145.js'),true?["./graph-92ab6145.js","./fuse.esm-c317b696.js","./rpc-85ddbc2c.js"]:void 0,import.meta.url);
|
|
14113
|
+
const __pages_import_9__ = () => __vitePreload(() => import('./components-a220bbbe.js'),true?["./components-a220bbbe.js","./splitpanes.es-48981724.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js"]:void 0,import.meta.url);
|
|
14114
|
+
const __pages_import_10__ = () => __vitePreload(() => import('./assets-95a58404.js'),true?["./assets-95a58404.js","./VPanelGrids-1bf7082d.js","./VCard-9037cc6c.js","./VIcon.vue_vue_type_script_setup_true_lang-b2faf063.js","./rpc-85ddbc2c.js","./VTextInput.vue_vue_type_script_setup_true_lang-b905b78e.js","./VIconTitle.vue_vue_type_script_setup_true_lang-cb9f1433.js","./VTextInput-52804693.css","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
|
|
14115
|
+
const __pages_import_11__ = () => __vitePreload(() => import('./__inspecting-62c3dbcc.js'),true?["./__inspecting-62c3dbcc.js","./VPanelGrids-1bf7082d.js"]:void 0,import.meta.url);
|
|
14116
|
+
|
|
14117
|
+
const routes$1 = [{"name":"timeline","path":"/timeline","component":__pages_import_0__,"props":true},{"name":"settings","path":"/settings","component":__pages_import_1__,"props":true},{"name":"routes","path":"/routes","component":__pages_import_2__,"props":true},{"name":"pinia","path":"/pinia","component":__pages_import_3__,"props":true},{"name":"pages","path":"/pages","component":__pages_import_4__,"props":true},{"name":"overview","path":"/overview","component":__pages_import_5__,"props":true},{"name":"inspect","path":"/inspect","component":__pages_import_6__,"props":true},{"name":"index","path":"/","component":_sfc_main$6,"props":true},{"name":"graph","path":"/graph","component":__pages_import_8__,"props":true},{"name":"components","path":"/components","component":__pages_import_9__,"props":true},{"name":"assets","path":"/assets","component":__pages_import_10__,"props":true},{"name":"__inspecting","path":"/__inspecting","component":__pages_import_11__,"props":true}];
|
|
14317
14118
|
/* Injected with object hook! */
|
|
14318
14119
|
|
|
14319
14120
|
const _hoisted_1$3 = ["src", "alt"];
|
|
@@ -14378,6 +14179,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14378
14179
|
]),
|
|
14379
14180
|
default: withCtx(() => [
|
|
14380
14181
|
(openBlock(), createBlock(resolveDynamicComponent(__props.tab.path ? "RouterLink" : "button"), {
|
|
14182
|
+
replace: "",
|
|
14381
14183
|
to: `/${__props.tab.path}`,
|
|
14382
14184
|
flex: "~",
|
|
14383
14185
|
hover: "bg-active",
|
|
@@ -14537,6 +14339,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14537
14339
|
_: 1
|
|
14538
14340
|
}),
|
|
14539
14341
|
createVNode(_component_RouterLink, {
|
|
14342
|
+
replace: "",
|
|
14540
14343
|
class: "n-button-base active:n-button-active focus-visible:n-focus-base n-transition n-primary n-sm hover:n-button-hover n-disabled:n-disabled",
|
|
14541
14344
|
to: "/settings"
|
|
14542
14345
|
}, {
|
|
@@ -14621,7 +14424,7 @@ const builtinTabs = [
|
|
|
14621
14424
|
icon: "i-carbon-select-window",
|
|
14622
14425
|
category: "advanced",
|
|
14623
14426
|
event: (client, router) => {
|
|
14624
|
-
router.
|
|
14427
|
+
router.replace("/__inspecting");
|
|
14625
14428
|
client?.inspector?.enable();
|
|
14626
14429
|
}
|
|
14627
14430
|
}
|
|
@@ -14757,6 +14560,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
14757
14560
|
createBaseVNode("div", _hoisted_8, [
|
|
14758
14561
|
_hoisted_9,
|
|
14759
14562
|
createVNode(_component_RouterLink, {
|
|
14563
|
+
replace: "",
|
|
14760
14564
|
to: "/settings",
|
|
14761
14565
|
flex: "~ items-center justify-center",
|
|
14762
14566
|
hover: "bg-active",
|
|
@@ -14789,43 +14593,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
14789
14593
|
|
|
14790
14594
|
/* Injected with object hook! */
|
|
14791
14595
|
|
|
14792
|
-
/*!
|
|
14793
|
-
* pinia v2.0.35
|
|
14794
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
14795
|
-
* @license MIT
|
|
14796
|
-
*/
|
|
14797
|
-
// type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
|
|
14798
|
-
// TODO: can we change these to numbers?
|
|
14799
|
-
/**
|
|
14800
|
-
* Possible types for SubscriptionCallback
|
|
14801
|
-
*/
|
|
14802
|
-
var MutationType;
|
|
14803
|
-
(function (MutationType) {
|
|
14804
|
-
/**
|
|
14805
|
-
* Direct mutation of the state:
|
|
14806
|
-
*
|
|
14807
|
-
* - `store.name = 'new name'`
|
|
14808
|
-
* - `store.$state.name = 'new name'`
|
|
14809
|
-
* - `store.list.push('new item')`
|
|
14810
|
-
*/
|
|
14811
|
-
MutationType["direct"] = "direct";
|
|
14812
|
-
/**
|
|
14813
|
-
* Mutated the state with `$patch` and an object
|
|
14814
|
-
*
|
|
14815
|
-
* - `store.$patch({ name: 'newName' })`
|
|
14816
|
-
*/
|
|
14817
|
-
MutationType["patchObject"] = "patch object";
|
|
14818
|
-
/**
|
|
14819
|
-
* Mutated the state with `$patch` and a function
|
|
14820
|
-
*
|
|
14821
|
-
* - `store.$patch(state => state.name = 'newName')`
|
|
14822
|
-
*/
|
|
14823
|
-
MutationType["patchFunction"] = "patch function";
|
|
14824
|
-
// maybe reset? for $state = {} and $reset
|
|
14825
|
-
})(MutationType || (MutationType = {}));
|
|
14826
|
-
|
|
14827
|
-
/* Injected with object hook! */
|
|
14828
|
-
|
|
14829
14596
|
function isBeingDestroyed(instance) {
|
|
14830
14597
|
return instance._isBeingDestroyed || instance.isUnmounted;
|
|
14831
14598
|
}
|
|
@@ -14928,6 +14695,9 @@ function toggleTimelineLayer(id) {
|
|
|
14928
14695
|
activeTimelineEventIndex.value = 0;
|
|
14929
14696
|
}
|
|
14930
14697
|
const timelineApi = {
|
|
14698
|
+
removeTimelineLayer(layerId) {
|
|
14699
|
+
timelineLayer.value = timelineLayer.value.filter((layer) => layer.id !== layerId);
|
|
14700
|
+
},
|
|
14931
14701
|
addTimelineLayer(layer) {
|
|
14932
14702
|
timelineLayer.value.push(layer);
|
|
14933
14703
|
},
|
|
@@ -15022,6 +14792,25 @@ function initTimeline(events) {
|
|
|
15022
14792
|
|
|
15023
14793
|
/* Injected with object hook! */
|
|
15024
14794
|
|
|
14795
|
+
const router$2 = ref();
|
|
14796
|
+
const currentRoute = computed(() => unref(router$2.value?.currentRoute));
|
|
14797
|
+
const map = /* @__PURE__ */ new Map();
|
|
14798
|
+
const routes = computed(() => {
|
|
14799
|
+
return (router$2.value?.getRoutes() || []).map((i) => {
|
|
14800
|
+
return {
|
|
14801
|
+
...i
|
|
14802
|
+
};
|
|
14803
|
+
}).filter((i) => !map.has(i.path) && map.set(i.path, 1));
|
|
14804
|
+
});
|
|
14805
|
+
function initPages() {
|
|
14806
|
+
router$2.value = app$1.value?.config.globalProperties.$router;
|
|
14807
|
+
router$2.value?.afterEach(() => {
|
|
14808
|
+
triggerRef(router$2);
|
|
14809
|
+
});
|
|
14810
|
+
}
|
|
14811
|
+
|
|
14812
|
+
/* Injected with object hook! */
|
|
14813
|
+
|
|
15025
14814
|
const app$1 = shallowRef();
|
|
15026
14815
|
const vueVersion = computed(() => app$1.value?.version);
|
|
15027
14816
|
const instance = shallowRef();
|
|
@@ -15036,6 +14825,7 @@ function initVueApp(_app, component) {
|
|
|
15036
14825
|
if (_app) {
|
|
15037
14826
|
app$1.value = _app;
|
|
15038
14827
|
triggerRef(app$1);
|
|
14828
|
+
initPages();
|
|
15039
14829
|
}
|
|
15040
14830
|
if (component.root) {
|
|
15041
14831
|
instance.value = component.root;
|
|
@@ -15046,7 +14836,197 @@ function initVueApp(_app, component) {
|
|
|
15046
14836
|
|
|
15047
14837
|
/* Injected with object hook! */
|
|
15048
14838
|
|
|
15049
|
-
const
|
|
14839
|
+
const CYAN_400 = 2282478;
|
|
14840
|
+
const ORANGE_400 = 16486972;
|
|
14841
|
+
const DARK = 6710886;
|
|
14842
|
+
const LAYER_ID$1 = "router";
|
|
14843
|
+
const router$1 = ref();
|
|
14844
|
+
const routeRecordMatcher = ref();
|
|
14845
|
+
const activeRouteRecordIndex = ref(0);
|
|
14846
|
+
const routeRecordMatcherState = computed(() => {
|
|
14847
|
+
return routeRecordMatcher.value?.map((route) => {
|
|
14848
|
+
const state = formatRouteRecordMatcherForStateInspector(route);
|
|
14849
|
+
const tags = formatRouteRecordForInspector(route);
|
|
14850
|
+
return {
|
|
14851
|
+
path: state.path,
|
|
14852
|
+
tags,
|
|
14853
|
+
state
|
|
14854
|
+
};
|
|
14855
|
+
}).sort((a, b) => a.path.length - b.path.length);
|
|
14856
|
+
});
|
|
14857
|
+
const activeRouteRecordMatcherState = computed(() => {
|
|
14858
|
+
const state = routeRecordMatcherState.value?.[activeRouteRecordIndex.value]?.state;
|
|
14859
|
+
return {
|
|
14860
|
+
key: "options",
|
|
14861
|
+
value: state
|
|
14862
|
+
};
|
|
14863
|
+
});
|
|
14864
|
+
function formatRouteRecordForInspector(route) {
|
|
14865
|
+
const tags = [];
|
|
14866
|
+
const { record } = route;
|
|
14867
|
+
if (record.name != null) {
|
|
14868
|
+
tags.push({
|
|
14869
|
+
label: String(record.name),
|
|
14870
|
+
bgColor: CYAN_400
|
|
14871
|
+
});
|
|
14872
|
+
}
|
|
14873
|
+
if (record.aliasOf) {
|
|
14874
|
+
tags.push({
|
|
14875
|
+
label: "alias",
|
|
14876
|
+
bgColor: ORANGE_400
|
|
14877
|
+
});
|
|
14878
|
+
}
|
|
14879
|
+
if (record.redirect) {
|
|
14880
|
+
tags.push({
|
|
14881
|
+
label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
|
|
14882
|
+
bgColor: DARK
|
|
14883
|
+
});
|
|
14884
|
+
}
|
|
14885
|
+
return tags;
|
|
14886
|
+
}
|
|
14887
|
+
function formatRouteRecordMatcherForStateInspector(route) {
|
|
14888
|
+
const { record } = route;
|
|
14889
|
+
const fields = {
|
|
14890
|
+
path: record.path
|
|
14891
|
+
};
|
|
14892
|
+
if (record.name != null)
|
|
14893
|
+
fields.name = record.name;
|
|
14894
|
+
fields.regexp = route.re;
|
|
14895
|
+
if (route.keys.length)
|
|
14896
|
+
fields.keys = toRaw(route.keys);
|
|
14897
|
+
if (record.redirect != null)
|
|
14898
|
+
fields.redirect = record.redirect;
|
|
14899
|
+
if (route.alias.length)
|
|
14900
|
+
fields.aliases = route.alias.map((alias) => alias.record.path);
|
|
14901
|
+
if (Object.keys(route.record.meta).length)
|
|
14902
|
+
fields.meta = route.record.meta;
|
|
14903
|
+
fields.score = toRaw(route.score);
|
|
14904
|
+
return fields;
|
|
14905
|
+
}
|
|
14906
|
+
function toggleRouteRecordMatcher(index) {
|
|
14907
|
+
activeRouteRecordIndex.value = index;
|
|
14908
|
+
}
|
|
14909
|
+
function formatRouteLocation(routeLocation) {
|
|
14910
|
+
const copy = Object.assign({}, routeLocation, {
|
|
14911
|
+
// remove variables that can contain vue instances
|
|
14912
|
+
matched: routeLocation.matched.map(
|
|
14913
|
+
(matched) => reactiveOmit(matched, ["instances", "children", "aliasOf"])
|
|
14914
|
+
)
|
|
14915
|
+
});
|
|
14916
|
+
return copy;
|
|
14917
|
+
}
|
|
14918
|
+
function subscribeRouterChanged(router2) {
|
|
14919
|
+
router2.onError((error, to) => {
|
|
14920
|
+
timelineApi.addTimelineEvent({
|
|
14921
|
+
layerId: LAYER_ID$1,
|
|
14922
|
+
event: {
|
|
14923
|
+
title: "Error during Navigation",
|
|
14924
|
+
subtitle: to.fullPath,
|
|
14925
|
+
time: Date.now(),
|
|
14926
|
+
now: Date.now(),
|
|
14927
|
+
data: { error: error.message }
|
|
14928
|
+
}
|
|
14929
|
+
});
|
|
14930
|
+
});
|
|
14931
|
+
router2.beforeEach((to, from) => {
|
|
14932
|
+
const data = {
|
|
14933
|
+
guard: "beforeEach",
|
|
14934
|
+
from: formatRouteLocation(
|
|
14935
|
+
from
|
|
14936
|
+
),
|
|
14937
|
+
to: formatRouteLocation(to)
|
|
14938
|
+
};
|
|
14939
|
+
timelineApi.addTimelineEvent({
|
|
14940
|
+
layerId: LAYER_ID$1,
|
|
14941
|
+
event: {
|
|
14942
|
+
time: Date.now(),
|
|
14943
|
+
now: Date.now(),
|
|
14944
|
+
title: "Start of navigation",
|
|
14945
|
+
subtitle: to.fullPath,
|
|
14946
|
+
data
|
|
14947
|
+
}
|
|
14948
|
+
});
|
|
14949
|
+
});
|
|
14950
|
+
router2.afterEach((to, from, failure) => {
|
|
14951
|
+
const data = {
|
|
14952
|
+
guard: "afterEach"
|
|
14953
|
+
};
|
|
14954
|
+
if (failure) {
|
|
14955
|
+
data.failure = failure ? failure.message : "";
|
|
14956
|
+
data.status = "❌";
|
|
14957
|
+
} else {
|
|
14958
|
+
data.status = "✅";
|
|
14959
|
+
}
|
|
14960
|
+
data.from = formatRouteLocation(from);
|
|
14961
|
+
data.to = formatRouteLocation(to);
|
|
14962
|
+
timelineApi.addTimelineEvent({
|
|
14963
|
+
layerId: LAYER_ID$1,
|
|
14964
|
+
event: {
|
|
14965
|
+
title: "End of navigation",
|
|
14966
|
+
subtitle: to.fullPath,
|
|
14967
|
+
time: Date.now(),
|
|
14968
|
+
now: Date.now(),
|
|
14969
|
+
data
|
|
14970
|
+
}
|
|
14971
|
+
});
|
|
14972
|
+
});
|
|
14973
|
+
}
|
|
14974
|
+
function initRoutes() {
|
|
14975
|
+
router$1.value = app$1.value?.config.globalProperties.$router;
|
|
14976
|
+
if (router$1.value) {
|
|
14977
|
+
const matcher = createRouterMatcher(router$1.value?.options.routes, router$1.value?.options);
|
|
14978
|
+
routeRecordMatcher.value = matcher.getRoutes();
|
|
14979
|
+
timelineApi.addTimelineLayer({
|
|
14980
|
+
id: LAYER_ID$1,
|
|
14981
|
+
label: "Router Navigations"
|
|
14982
|
+
});
|
|
14983
|
+
subscribeRouterChanged(router$1.value);
|
|
14984
|
+
router$1.value?.afterEach(() => {
|
|
14985
|
+
triggerRef(router$1);
|
|
14986
|
+
});
|
|
14987
|
+
}
|
|
14988
|
+
}
|
|
14989
|
+
|
|
14990
|
+
/* Injected with object hook! */
|
|
14991
|
+
|
|
14992
|
+
/*!
|
|
14993
|
+
* pinia v2.0.35
|
|
14994
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
14995
|
+
* @license MIT
|
|
14996
|
+
*/
|
|
14997
|
+
// type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
|
|
14998
|
+
// TODO: can we change these to numbers?
|
|
14999
|
+
/**
|
|
15000
|
+
* Possible types for SubscriptionCallback
|
|
15001
|
+
*/
|
|
15002
|
+
var MutationType;
|
|
15003
|
+
(function (MutationType) {
|
|
15004
|
+
/**
|
|
15005
|
+
* Direct mutation of the state:
|
|
15006
|
+
*
|
|
15007
|
+
* - `store.name = 'new name'`
|
|
15008
|
+
* - `store.$state.name = 'new name'`
|
|
15009
|
+
* - `store.list.push('new item')`
|
|
15010
|
+
*/
|
|
15011
|
+
MutationType["direct"] = "direct";
|
|
15012
|
+
/**
|
|
15013
|
+
* Mutated the state with `$patch` and an object
|
|
15014
|
+
*
|
|
15015
|
+
* - `store.$patch({ name: 'newName' })`
|
|
15016
|
+
*/
|
|
15017
|
+
MutationType["patchObject"] = "patch object";
|
|
15018
|
+
/**
|
|
15019
|
+
* Mutated the state with `$patch` and a function
|
|
15020
|
+
*
|
|
15021
|
+
* - `store.$patch(state => state.name = 'newName')`
|
|
15022
|
+
*/
|
|
15023
|
+
MutationType["patchFunction"] = "patch function";
|
|
15024
|
+
// maybe reset? for $state = {} and $reset
|
|
15025
|
+
})(MutationType || (MutationType = {}));
|
|
15026
|
+
|
|
15027
|
+
/* Injected with object hook! */
|
|
15028
|
+
|
|
15029
|
+
const LAYER_ID = "pinia";
|
|
15050
15030
|
const piniaVisible = ref(false);
|
|
15051
15031
|
const stores = ref();
|
|
15052
15032
|
const subscribes = ref([]);
|
|
@@ -15096,7 +15076,7 @@ function formatMutationType(type) {
|
|
|
15096
15076
|
function subscribeStore(store) {
|
|
15097
15077
|
const action = store.$onAction(({ after, onError, name, args }) => {
|
|
15098
15078
|
timelineApi.addTimelineEvent({
|
|
15099
|
-
layerId: LAYER_ID
|
|
15079
|
+
layerId: LAYER_ID,
|
|
15100
15080
|
event: {
|
|
15101
15081
|
time: Date.now(),
|
|
15102
15082
|
title: `🛫 ${name}`,
|
|
@@ -15111,7 +15091,7 @@ function subscribeStore(store) {
|
|
|
15111
15091
|
});
|
|
15112
15092
|
after((result) => {
|
|
15113
15093
|
timelineApi.addTimelineEvent({
|
|
15114
|
-
layerId: LAYER_ID
|
|
15094
|
+
layerId: LAYER_ID,
|
|
15115
15095
|
event: {
|
|
15116
15096
|
time: Date.now(),
|
|
15117
15097
|
title: `🛬 ${name}`,
|
|
@@ -15128,7 +15108,7 @@ function subscribeStore(store) {
|
|
|
15128
15108
|
});
|
|
15129
15109
|
onError((error) => {
|
|
15130
15110
|
timelineApi.addTimelineEvent({
|
|
15131
|
-
layerId: LAYER_ID
|
|
15111
|
+
layerId: LAYER_ID,
|
|
15132
15112
|
event: {
|
|
15133
15113
|
now: Date.now(),
|
|
15134
15114
|
time: Date.now(),
|
|
@@ -15151,7 +15131,7 @@ function subscribeStore(store) {
|
|
|
15151
15131
|
() => unref(store[name]),
|
|
15152
15132
|
(newValue, oldValue) => {
|
|
15153
15133
|
timelineApi.addTimelineEvent({
|
|
15154
|
-
layerId: LAYER_ID
|
|
15134
|
+
layerId: LAYER_ID,
|
|
15155
15135
|
event: {
|
|
15156
15136
|
now: Date.now(),
|
|
15157
15137
|
time: Date.now(),
|
|
@@ -15186,7 +15166,7 @@ function subscribeStore(store) {
|
|
|
15186
15166
|
else if (events && !Array.isArray(events))
|
|
15187
15167
|
eventData.subtitle = events.type;
|
|
15188
15168
|
timelineApi.addTimelineEvent({
|
|
15189
|
-
layerId: LAYER_ID
|
|
15169
|
+
layerId: LAYER_ID,
|
|
15190
15170
|
event: eventData
|
|
15191
15171
|
});
|
|
15192
15172
|
},
|
|
@@ -15195,7 +15175,7 @@ function subscribeStore(store) {
|
|
|
15195
15175
|
subscribes.value.push(subscribe);
|
|
15196
15176
|
store._hotUpdate = markRaw((newStore) => {
|
|
15197
15177
|
timeApi.addTimelineEvent({
|
|
15198
|
-
layerId: LAYER_ID
|
|
15178
|
+
layerId: LAYER_ID,
|
|
15199
15179
|
event: {
|
|
15200
15180
|
time: Date.now(),
|
|
15201
15181
|
now: Date.now(),
|
|
@@ -15226,190 +15206,35 @@ function normalizePiniaInfo() {
|
|
|
15226
15206
|
subscribeStore(store);
|
|
15227
15207
|
});
|
|
15228
15208
|
}
|
|
15229
|
-
function updatePinia() {
|
|
15209
|
+
function updatePinia(component) {
|
|
15230
15210
|
stores.value = null;
|
|
15231
15211
|
subscribes.value.forEach((stop) => stop());
|
|
15232
15212
|
subscribes.value = [];
|
|
15213
|
+
piniaState.value = {};
|
|
15214
|
+
piniaGetters.value = {};
|
|
15215
|
+
piniaStoresId.value = ["🍍 Pinia (root)"];
|
|
15233
15216
|
nextTick(() => {
|
|
15234
|
-
const proxy =
|
|
15217
|
+
const proxy = component?.proxy;
|
|
15235
15218
|
const _stores = proxy?._pStores;
|
|
15236
15219
|
piniaVisible.value = !!_stores;
|
|
15237
15220
|
if (_stores) {
|
|
15238
15221
|
stores.value = _stores;
|
|
15239
|
-
piniaState.value = {};
|
|
15240
|
-
piniaGetters.value = {};
|
|
15241
|
-
piniaStoresId.value = ["🍍 Pinia (root)"];
|
|
15242
15222
|
normalizePiniaInfo();
|
|
15243
15223
|
}
|
|
15244
15224
|
});
|
|
15245
15225
|
}
|
|
15246
|
-
function initPinia() {
|
|
15247
|
-
updatePinia();
|
|
15226
|
+
function initPinia(component) {
|
|
15227
|
+
updatePinia(component);
|
|
15248
15228
|
setTimeout(() => {
|
|
15249
15229
|
if (stores.value) {
|
|
15230
|
+
timelineApi.removeTimelineLayer(LAYER_ID);
|
|
15250
15231
|
timelineApi.addTimelineLayer({
|
|
15251
|
-
id:
|
|
15232
|
+
id: LAYER_ID,
|
|
15252
15233
|
label: "Pinia 🍍"
|
|
15253
15234
|
});
|
|
15254
15235
|
}
|
|
15255
15236
|
});
|
|
15256
15237
|
}
|
|
15257
|
-
onVueInstanceUpdate(() => {
|
|
15258
|
-
updatePinia();
|
|
15259
|
-
});
|
|
15260
|
-
|
|
15261
|
-
/* Injected with object hook! */
|
|
15262
|
-
|
|
15263
|
-
const CYAN_400 = 2282478;
|
|
15264
|
-
const ORANGE_400 = 16486972;
|
|
15265
|
-
const DARK = 6710886;
|
|
15266
|
-
const LAYER_ID = "router";
|
|
15267
|
-
const router$1 = ref();
|
|
15268
|
-
const routeRecordMatcher = ref();
|
|
15269
|
-
const activeRouteRecordIndex = ref(0);
|
|
15270
|
-
const routeRecordMatcherState = computed(() => {
|
|
15271
|
-
return routeRecordMatcher.value?.map((route) => {
|
|
15272
|
-
const state = formatRouteRecordMatcherForStateInspector(route);
|
|
15273
|
-
const tags = formatRouteRecordForInspector(route);
|
|
15274
|
-
return {
|
|
15275
|
-
path: state.path,
|
|
15276
|
-
tags,
|
|
15277
|
-
state
|
|
15278
|
-
};
|
|
15279
|
-
}).sort((a, b) => a.path.length - b.path.length);
|
|
15280
|
-
});
|
|
15281
|
-
const activeRouteRecordMatcherState = computed(() => {
|
|
15282
|
-
const state = routeRecordMatcherState.value?.[activeRouteRecordIndex.value]?.state;
|
|
15283
|
-
return {
|
|
15284
|
-
key: "options",
|
|
15285
|
-
value: state
|
|
15286
|
-
};
|
|
15287
|
-
});
|
|
15288
|
-
function formatRouteRecordForInspector(route) {
|
|
15289
|
-
const tags = [];
|
|
15290
|
-
const { record } = route;
|
|
15291
|
-
if (record.name != null) {
|
|
15292
|
-
tags.push({
|
|
15293
|
-
label: String(record.name),
|
|
15294
|
-
bgColor: CYAN_400
|
|
15295
|
-
});
|
|
15296
|
-
}
|
|
15297
|
-
if (record.aliasOf) {
|
|
15298
|
-
tags.push({
|
|
15299
|
-
label: "alias",
|
|
15300
|
-
bgColor: ORANGE_400
|
|
15301
|
-
});
|
|
15302
|
-
}
|
|
15303
|
-
if (record.redirect) {
|
|
15304
|
-
tags.push({
|
|
15305
|
-
label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
|
|
15306
|
-
bgColor: DARK
|
|
15307
|
-
});
|
|
15308
|
-
}
|
|
15309
|
-
return tags;
|
|
15310
|
-
}
|
|
15311
|
-
function formatRouteRecordMatcherForStateInspector(route) {
|
|
15312
|
-
const { record } = route;
|
|
15313
|
-
const fields = {
|
|
15314
|
-
path: record.path
|
|
15315
|
-
};
|
|
15316
|
-
if (record.name != null)
|
|
15317
|
-
fields.name = record.name;
|
|
15318
|
-
fields.regexp = route.re;
|
|
15319
|
-
if (route.keys.length)
|
|
15320
|
-
fields.keys = toRaw(route.keys);
|
|
15321
|
-
if (record.redirect != null)
|
|
15322
|
-
fields.redirect = record.redirect;
|
|
15323
|
-
if (route.alias.length)
|
|
15324
|
-
fields.aliases = route.alias.map((alias) => alias.record.path);
|
|
15325
|
-
if (Object.keys(route.record.meta).length)
|
|
15326
|
-
fields.meta = route.record.meta;
|
|
15327
|
-
fields.score = toRaw(route.score);
|
|
15328
|
-
return fields;
|
|
15329
|
-
}
|
|
15330
|
-
function toggleRouteRecordMatcher(index) {
|
|
15331
|
-
activeRouteRecordIndex.value = index;
|
|
15332
|
-
}
|
|
15333
|
-
function formatRouteLocation(routeLocation) {
|
|
15334
|
-
const copy = Object.assign({}, routeLocation, {
|
|
15335
|
-
// remove variables that can contain vue instances
|
|
15336
|
-
matched: routeLocation.matched.map(
|
|
15337
|
-
(matched) => reactiveOmit(matched, ["instances", "children", "aliasOf"])
|
|
15338
|
-
)
|
|
15339
|
-
});
|
|
15340
|
-
return copy;
|
|
15341
|
-
}
|
|
15342
|
-
function subscribeRouterChanged(router2) {
|
|
15343
|
-
router2.onError((error, to) => {
|
|
15344
|
-
timelineApi.addTimelineEvent({
|
|
15345
|
-
layerId: LAYER_ID,
|
|
15346
|
-
event: {
|
|
15347
|
-
title: "Error during Navigation",
|
|
15348
|
-
subtitle: to.fullPath,
|
|
15349
|
-
time: Date.now(),
|
|
15350
|
-
now: Date.now(),
|
|
15351
|
-
data: { error: error.message }
|
|
15352
|
-
}
|
|
15353
|
-
});
|
|
15354
|
-
});
|
|
15355
|
-
router2.beforeEach((to, from) => {
|
|
15356
|
-
const data = {
|
|
15357
|
-
guard: "beforeEach",
|
|
15358
|
-
from: formatRouteLocation(
|
|
15359
|
-
from
|
|
15360
|
-
),
|
|
15361
|
-
to: formatRouteLocation(to)
|
|
15362
|
-
};
|
|
15363
|
-
timelineApi.addTimelineEvent({
|
|
15364
|
-
layerId: LAYER_ID,
|
|
15365
|
-
event: {
|
|
15366
|
-
time: Date.now(),
|
|
15367
|
-
now: Date.now(),
|
|
15368
|
-
title: "Start of navigation",
|
|
15369
|
-
subtitle: to.fullPath,
|
|
15370
|
-
data
|
|
15371
|
-
}
|
|
15372
|
-
});
|
|
15373
|
-
});
|
|
15374
|
-
router2.afterEach((to, from, failure) => {
|
|
15375
|
-
const data = {
|
|
15376
|
-
guard: "afterEach"
|
|
15377
|
-
};
|
|
15378
|
-
if (failure) {
|
|
15379
|
-
data.failure = failure ? failure.message : "";
|
|
15380
|
-
data.status = "❌";
|
|
15381
|
-
} else {
|
|
15382
|
-
data.status = "✅";
|
|
15383
|
-
}
|
|
15384
|
-
data.from = formatRouteLocation(from);
|
|
15385
|
-
data.to = formatRouteLocation(to);
|
|
15386
|
-
timelineApi.addTimelineEvent({
|
|
15387
|
-
layerId: LAYER_ID,
|
|
15388
|
-
event: {
|
|
15389
|
-
title: "End of navigation",
|
|
15390
|
-
subtitle: to.fullPath,
|
|
15391
|
-
time: Date.now(),
|
|
15392
|
-
now: Date.now(),
|
|
15393
|
-
data
|
|
15394
|
-
}
|
|
15395
|
-
});
|
|
15396
|
-
});
|
|
15397
|
-
}
|
|
15398
|
-
function initRoutes() {
|
|
15399
|
-
router$1.value = app$1.value?.config.globalProperties.$router;
|
|
15400
|
-
if (router$1.value) {
|
|
15401
|
-
const matcher = createRouterMatcher(router$1.value?.options.routes, router$1.value?.options);
|
|
15402
|
-
routeRecordMatcher.value = matcher.getRoutes();
|
|
15403
|
-
timelineApi.addTimelineLayer({
|
|
15404
|
-
id: LAYER_ID,
|
|
15405
|
-
label: "Router Navigations"
|
|
15406
|
-
});
|
|
15407
|
-
subscribeRouterChanged(router$1.value);
|
|
15408
|
-
router$1.value?.afterEach(() => {
|
|
15409
|
-
triggerRef(router$1);
|
|
15410
|
-
});
|
|
15411
|
-
}
|
|
15412
|
-
}
|
|
15413
15238
|
|
|
15414
15239
|
/* Injected with object hook! */
|
|
15415
15240
|
|
|
@@ -15431,6 +15256,7 @@ function connect() {
|
|
|
15431
15256
|
initVueApp(app, component);
|
|
15432
15257
|
});
|
|
15433
15258
|
hook.on("component:added" /* COMPONENT_ADDED */, (app, uid, parentUid, component) => {
|
|
15259
|
+
initPinia(component);
|
|
15434
15260
|
if (!app || typeof uid !== "number" && !uid || !component || hideInDevtools(component))
|
|
15435
15261
|
return;
|
|
15436
15262
|
initVueApp(app, component);
|
|
@@ -15447,7 +15273,9 @@ function connect() {
|
|
|
15447
15273
|
});
|
|
15448
15274
|
}
|
|
15449
15275
|
function initHook(buffer) {
|
|
15450
|
-
buffer.forEach(([
|
|
15276
|
+
buffer.forEach(([eventType, { app, component }]) => {
|
|
15277
|
+
if (eventType === "component:added" /* COMPONENT_ADDED */)
|
|
15278
|
+
initPinia(component);
|
|
15451
15279
|
initVueApp(app, component);
|
|
15452
15280
|
});
|
|
15453
15281
|
}
|
|
@@ -15516,13 +15344,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15516
15344
|
onMounted(() => {
|
|
15517
15345
|
setTimeout(() => {
|
|
15518
15346
|
initRoutes();
|
|
15519
|
-
initPinia();
|
|
15520
15347
|
}, 200);
|
|
15521
15348
|
watchEffect(() => {
|
|
15522
15349
|
document.body.style.fontSize = `${scale.value * 15}px`;
|
|
15523
15350
|
});
|
|
15524
15351
|
});
|
|
15525
|
-
router.
|
|
15352
|
+
router.replace(_route.value);
|
|
15526
15353
|
return (_ctx, _cache) => {
|
|
15527
15354
|
const _component_SideNav = _sfc_main$1;
|
|
15528
15355
|
const _component_RouterView = resolveComponent("RouterView");
|
|
@@ -15556,8 +15383,8 @@ initClient();
|
|
|
15556
15383
|
connect();
|
|
15557
15384
|
const app = createApp(_sfc_main);
|
|
15558
15385
|
const router = createRouter({
|
|
15559
|
-
history:
|
|
15560
|
-
routes
|
|
15386
|
+
history: createMemoryHistory(),
|
|
15387
|
+
routes: routes$1
|
|
15561
15388
|
});
|
|
15562
15389
|
app.use(router);
|
|
15563
15390
|
app.use(plugin);
|
|
@@ -15565,4 +15392,4 @@ app.mount("#app");
|
|
|
15565
15392
|
|
|
15566
15393
|
/* Injected with object hook! */
|
|
15567
15394
|
|
|
15568
|
-
export {
|
|
15395
|
+
export { router$2 as $, vModelCheckbox as A, withKeys as B, useTabs as C, useCategorizedTabs as D, createTextVNode as E, Fragment as F, useDevToolsSettings as G, _sfc_main$3 as H, _sfc_main$5 as I, router$1 as J, routeRecordMatcherState as K, activeRouteRecordMatcherState as L, activeRouteRecordIndex as M, toggleRouteRecordMatcher as N, normalizeStyle as O, __unplugin_components_1 as P, ref as Q, computed as R, piniaStoresId as S, reactivePick as T, toRaw as U, piniaState as V, piniaGetters as W, resolveComponent as X, withModifiers as Y, currentRoute as Z, _sfc_main$9 as _, createBlock as a, routes as a0, vueVersion as a1, __unplugin_components_0 as a2, useColorMode as a3, reactive as a4, useElementBounding as a5, nextTick as a6, watchEffect as a7, useStorage as a8, vModelText as a9, pushScopeId as aA, popScopeId as aB, vModelDynamic as aC, __vitePreload as aD, useEventListener as aE, useClient as aF, useDark as aa, watch as ab, getInstanceName as ac, classify as ad, kebabize as ae, isFragment as af, camelize as ag, returnError as ah, isBeingDestroyed as ai, getUniqueComponentId as aj, getRenderKey as ak, shallowRef as al, onVueInstanceUpdate as am, instance as an, h as ao, mergeProps as ap, resolveDynamicComponent as aq, useElementSize as ar, onClickOutside as as, Transition as at, useStyleTag as au, computedAsync as av, useTimeAgo as aw, onKeyDown as ax, _export_sfc as ay, resolveDirective as az, createVNode as b, createElementBlock as c, defineComponent as d, createBaseVNode as e, onMounted as f, onUnmounted as g, timelineLayer as h, activeTimelineEvents as i, activeTimelineEventIndex as j, toggleTimelineEventIndex as k, timelineEventDetails as l, createCommentVNode as m, normalizeClass as n, openBlock as o, activeLayerId as p, toggleTimelineLayer as q, renderList as r, useVModel as s, toDisplayString as t, unref as u, renderSlot as v, withCtx as w, withDirectives as x, vModelSelect as y, isRef as z };
|