@valaxyjs/devtools 0.19.5 → 0.19.6

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.
@@ -1,177 +1,4 @@
1
- import { g as getAppWindow, d as defineComponent, c as computed, o as openBlock, a as createElementBlock, n as normalizeClass, b as createCommentVNode, r as renderSlot, e as ref, f as onMounted, h as createBaseVNode, i as resolveComponent, j as createBlock, w as withCtx, t as toDisplayString, F as Fragment, k as renderList, l as createTextVNode, m as createVNode, p as pageData, q as toRaw, u as unref, s as frontmatter, v as getWindowProperty, x as getGlobalValaxyProperty, y as activePath, z as devtoolsRouter, A as h, B as normalizeStyle, C as isStaticMode } from './index-DUxi88Gt.js';
2
- import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
3
-
4
- const target = getAppWindow();
5
- function openInEditor(options = {}) {
6
- const { file, line = 0, column = 0 } = options;
7
- if (file) {
8
- const baseUrl = window.location.origin;
9
- target?.__VUE_INSPECTOR__.openInEditor(baseUrl, file, line, column);
10
- }
11
- }
12
-
13
- /* Injected with object hook! */
14
-
15
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
16
- __name: "AGUIButton",
17
- props: {
18
- icon: {},
19
- size: {}
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const classes = computed(() => {
24
- const cls = [];
25
- if (props.size)
26
- cls.push(props.size);
27
- return cls;
28
- });
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("button", {
31
- class: normalizeClass([classes.value, "agui-button"])
32
- }, [
33
- _ctx.icon ? (openBlock(), createElementBlock("div", {
34
- key: 0,
35
- class: normalizeClass(["mr-1 inline-flex", _ctx.icon])
36
- }, null, 2)) : createCommentVNode("", true),
37
- renderSlot(_ctx.$slots, "default")
38
- ], 2);
39
- };
40
- }
41
- });
42
-
43
- /* Injected with object hook! */
44
-
45
- /* Injected with object hook! */
46
-
47
- const _hoisted_1$6 = {
48
- key: 0,
49
- class: "relative flex"
50
- };
51
- const _hoisted_2$4 = {
52
- key: 0,
53
- class: "absolute"
54
- };
55
- const _hoisted_3$3 = { class: "absolute left-1 h-full flex items-center justify-center text-xs op-60" };
56
- const _hoisted_4$1 = ["value", "placeholder", "autofocus"];
57
- const _hoisted_5 = ["value", "placeholder"];
58
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
59
- __name: "AGUIInput",
60
- props: {
61
- autofocus: { type: Boolean },
62
- className: {},
63
- prefixIcon: {},
64
- modelValue: {},
65
- placeholder: {}
66
- },
67
- emits: ["update:modelValue"],
68
- setup(__props, { emit: __emit }) {
69
- const props = __props;
70
- const emit = __emit;
71
- function updateModelValue(event) {
72
- const val = event.target?.value || "";
73
- emit("update:modelValue", val);
74
- }
75
- const inputRef = ref();
76
- onMounted(async () => {
77
- if (props.autofocus) {
78
- setTimeout(() => {
79
- inputRef.value?.focus();
80
- }, 1);
81
- }
82
- });
83
- return (_ctx, _cache) => {
84
- return _ctx.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
85
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
86
- renderSlot(_ctx.$slots, "prefix")
87
- ])) : createCommentVNode("", true),
88
- createBaseVNode("div", _hoisted_3$3, [
89
- _ctx.prefixIcon ? (openBlock(), createElementBlock("div", {
90
- key: 0,
91
- class: normalizeClass(_ctx.prefixIcon)
92
- }, null, 2)) : createCommentVNode("", true)
93
- ]),
94
- createBaseVNode("input", {
95
- ref_key: "inputRef",
96
- ref: inputRef,
97
- class: normalizeClass(["agui-input w-full px-1 shadow shadow-inset", {
98
- "pl-5": _ctx.prefixIcon,
99
- [_ctx.className || ""]: true
100
- }]),
101
- value: _ctx.modelValue,
102
- placeholder: _ctx.placeholder,
103
- autofocus: _ctx.autofocus,
104
- onInput: updateModelValue
105
- }, null, 42, _hoisted_4$1)
106
- ])) : (openBlock(), createElementBlock("input", {
107
- key: 1,
108
- class: "agui-input w-full px-1 shadow shadow-inset",
109
- value: _ctx.modelValue,
110
- placeholder: _ctx.placeholder,
111
- onInput: updateModelValue
112
- }, null, 40, _hoisted_5));
113
- };
114
- }
115
- });
116
-
117
- /* Injected with object hook! */
118
-
119
- /* Injected with object hook! */
120
-
121
- const _hoisted_1$5 = /* @__PURE__ */ createBaseVNode("div", {
122
- m: "x-1",
123
- "inline-flex": "",
124
- "i-ri-folder-2-line": ""
125
- }, null, -1);
126
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
127
- __name: "VDPostCategories",
128
- props: {
129
- categories: {}
130
- },
131
- setup(__props) {
132
- return (_ctx, _cache) => {
133
- const _component_RouterLink = resolveComponent("RouterLink");
134
- return openBlock(), createBlock(_component_RouterLink, {
135
- to: {
136
- path: "/categories",
137
- query: { category: Array.isArray(_ctx.categories) ? _ctx.categories.join("/") : _ctx.categories }
138
- },
139
- class: "post-category transition text-xs hover:(text-blue-500 border-blue-500)",
140
- "px-2": "",
141
- "py-1": "",
142
- border: "",
143
- "rounded-full": "",
144
- "inline-flex": "",
145
- "justify-center": "",
146
- "items-center": "",
147
- bg: "hover:(blue-500 opacity-10)"
148
- }, {
149
- default: withCtx(() => [
150
- _hoisted_1$5,
151
- createBaseVNode("span", null, toDisplayString(Array.isArray(_ctx.categories) ? _ctx.categories.join(" > ") : _ctx.categories), 1)
152
- ]),
153
- _: 1
154
- }, 8, ["to"]);
155
- };
156
- }
157
- });
158
-
159
- /* Injected with object hook! */
160
-
161
- /* unplugin-vue-components disabled */const _sfc_main$4 = {};
162
-
163
- const _hoisted_1$4 = {
164
- class: "vd-tag inline-flex shadow border rounded text-xs",
165
- p: "x-2 y-1"
166
- };
167
-
168
- function _sfc_render(_ctx, _cache) {
169
- return (openBlock(), createElementBlock("div", _hoisted_1$4, [
170
- renderSlot(_ctx.$slots, "default")
171
- ]))
172
- }
173
- const __unplugin_components_0 = /*#__PURE__*/_export_sfc(_sfc_main$4, [['render',_sfc_render]]);
174
- /* Injected with object hook! */
1
+ import { E as h, o as openBlock, a as createElementBlock, r as renderSlot, G as normalizeStyle } from './index-CPK49_y2.js';
175
2
 
176
3
  function bind(fn, thisArg) {
177
4
  return function wrap() {
@@ -288,7 +115,7 @@ const isNumber = typeOfTest('number');
288
115
  *
289
116
  * @returns {boolean} True if value is an Object, otherwise false
290
117
  */
291
- const isObject$1 = (thing) => thing !== null && typeof thing === 'object';
118
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
292
119
 
293
120
  /**
294
121
  * Determine if a value is a Boolean
@@ -305,7 +132,7 @@ const isBoolean = thing => thing === true || thing === false;
305
132
  *
306
133
  * @returns {boolean} True if value is a plain Object, otherwise false
307
134
  */
308
- const isPlainObject$1 = (val) => {
135
+ const isPlainObject = (val) => {
309
136
  if (kindOf(val) !== 'object') {
310
137
  return false;
311
138
  }
@@ -357,7 +184,7 @@ const isFileList = kindOfTest('FileList');
357
184
  *
358
185
  * @returns {boolean} True if value is a Stream, otherwise false
359
186
  */
360
- const isStream = (val) => isObject$1(val) && isFunction(val.pipe);
187
+ const isStream = (val) => isObject(val) && isFunction(val.pipe);
361
188
 
362
189
  /**
363
190
  * Determine if a value is a FormData
@@ -493,9 +320,9 @@ function merge(/* obj1, obj2, obj3, ... */) {
493
320
  const result = {};
494
321
  const assignValue = (val, key) => {
495
322
  const targetKey = caseless && findKey(result, key) || key;
496
- if (isPlainObject$1(result[targetKey]) && isPlainObject$1(val)) {
323
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
497
324
  result[targetKey] = merge(result[targetKey], val);
498
- } else if (isPlainObject$1(val)) {
325
+ } else if (isPlainObject(val)) {
499
326
  result[targetKey] = merge({}, val);
500
327
  } else if (isArray(val)) {
501
328
  result[targetKey] = val.slice();
@@ -817,7 +644,7 @@ const toJSONObject = (obj) => {
817
644
 
818
645
  const visit = (source, i) => {
819
646
 
820
- if (isObject$1(source)) {
647
+ if (isObject(source)) {
821
648
  if (stack.indexOf(source) >= 0) {
822
649
  return;
823
650
  }
@@ -846,7 +673,37 @@ const toJSONObject = (obj) => {
846
673
  const isAsyncFn = kindOfTest('AsyncFunction');
847
674
 
848
675
  const isThenable = (thing) =>
849
- thing && (isObject$1(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
676
+ thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
677
+
678
+ // original code
679
+ // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
680
+
681
+ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
682
+ if (setImmediateSupported) {
683
+ return setImmediate;
684
+ }
685
+
686
+ return postMessageSupported ? ((token, callbacks) => {
687
+ _global.addEventListener("message", ({source, data}) => {
688
+ if (source === _global && data === token) {
689
+ callbacks.length && callbacks.shift()();
690
+ }
691
+ }, false);
692
+
693
+ return (cb) => {
694
+ callbacks.push(cb);
695
+ _global.postMessage(token, "*");
696
+ }
697
+ })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
698
+ })(
699
+ typeof setImmediate === 'function',
700
+ isFunction(_global.postMessage)
701
+ );
702
+
703
+ const asap = typeof queueMicrotask !== 'undefined' ?
704
+ queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
705
+
706
+ // *********************
850
707
 
851
708
  const utils$1 = {
852
709
  isArray,
@@ -857,8 +714,8 @@ const utils$1 = {
857
714
  isString,
858
715
  isNumber,
859
716
  isBoolean,
860
- isObject: isObject$1,
861
- isPlainObject: isPlainObject$1,
717
+ isObject,
718
+ isPlainObject,
862
719
  isReadableStream,
863
720
  isRequest,
864
721
  isResponse,
@@ -903,7 +760,9 @@ const utils$1 = {
903
760
  isSpecCompliantForm,
904
761
  toJSONObject,
905
762
  isAsyncFn,
906
- isThenable
763
+ isThenable,
764
+ setImmediate: _setImmediate,
765
+ asap
907
766
  };
908
767
 
909
768
  /* Injected with object hook! */
@@ -2258,28 +2117,39 @@ function speedometer(samplesCount, min) {
2258
2117
  */
2259
2118
  function throttle(fn, freq) {
2260
2119
  let timestamp = 0;
2261
- const threshold = 1000 / freq;
2262
- let timer = null;
2263
- return function throttled() {
2264
- const force = this === true;
2120
+ let threshold = 1000 / freq;
2121
+ let lastArgs;
2122
+ let timer;
2123
+
2124
+ const invoke = (args, now = Date.now()) => {
2125
+ timestamp = now;
2126
+ lastArgs = null;
2127
+ if (timer) {
2128
+ clearTimeout(timer);
2129
+ timer = null;
2130
+ }
2131
+ fn.apply(null, args);
2132
+ };
2265
2133
 
2134
+ const throttled = (...args) => {
2266
2135
  const now = Date.now();
2267
- if (force || now - timestamp > threshold) {
2268
- if (timer) {
2269
- clearTimeout(timer);
2270
- timer = null;
2136
+ const passed = now - timestamp;
2137
+ if ( passed >= threshold) {
2138
+ invoke(args, now);
2139
+ } else {
2140
+ lastArgs = args;
2141
+ if (!timer) {
2142
+ timer = setTimeout(() => {
2143
+ timer = null;
2144
+ invoke(lastArgs);
2145
+ }, threshold - passed);
2271
2146
  }
2272
- timestamp = now;
2273
- return fn.apply(null, arguments);
2274
- }
2275
- if (!timer) {
2276
- timer = setTimeout(() => {
2277
- timer = null;
2278
- timestamp = Date.now();
2279
- return fn.apply(null, arguments);
2280
- }, threshold - (now - timestamp));
2281
2147
  }
2282
2148
  };
2149
+
2150
+ const flush = () => lastArgs && invoke(lastArgs);
2151
+
2152
+ return [throttled, flush];
2283
2153
  }
2284
2154
 
2285
2155
  /* Injected with object hook! */
@@ -2305,15 +2175,26 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2305
2175
  rate: rate ? rate : undefined,
2306
2176
  estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2307
2177
  event: e,
2308
- lengthComputable: total != null
2178
+ lengthComputable: total != null,
2179
+ [isDownloadStream ? 'download' : 'upload']: true
2309
2180
  };
2310
2181
 
2311
- data[isDownloadStream ? 'download' : 'upload'] = true;
2312
-
2313
2182
  listener(data);
2314
2183
  }, freq);
2315
2184
  };
2316
2185
 
2186
+ const progressEventDecorator = (total, throttled) => {
2187
+ const lengthComputable = total != null;
2188
+
2189
+ return [(loaded) => throttled[0]({
2190
+ lengthComputable,
2191
+ total,
2192
+ loaded
2193
+ }), throttled[1]];
2194
+ };
2195
+
2196
+ const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2197
+
2317
2198
  /* Injected with object hook! */
2318
2199
 
2319
2200
  const isURLSameOrigin = platform.hasStandardBrowserEnv ?
@@ -2636,16 +2517,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2636
2517
  const _config = resolveConfig(config);
2637
2518
  let requestData = _config.data;
2638
2519
  const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
2639
- let {responseType} = _config;
2520
+ let {responseType, onUploadProgress, onDownloadProgress} = _config;
2640
2521
  let onCanceled;
2522
+ let uploadThrottled, downloadThrottled;
2523
+ let flushUpload, flushDownload;
2524
+
2641
2525
  function done() {
2642
- if (_config.cancelToken) {
2643
- _config.cancelToken.unsubscribe(onCanceled);
2644
- }
2526
+ flushUpload && flushUpload(); // flush events
2527
+ flushDownload && flushDownload(); // flush events
2645
2528
 
2646
- if (_config.signal) {
2647
- _config.signal.removeEventListener('abort', onCanceled);
2648
- }
2529
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
2530
+
2531
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
2649
2532
  }
2650
2533
 
2651
2534
  let request = new XMLHttpRequest();
@@ -2715,7 +2598,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2715
2598
  return;
2716
2599
  }
2717
2600
 
2718
- reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, _config, request));
2601
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
2719
2602
 
2720
2603
  // Clean up request
2721
2604
  request = null;
@@ -2725,7 +2608,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2725
2608
  request.onerror = function handleError() {
2726
2609
  // Real errors are hidden from us by the browser
2727
2610
  // onerror should only fire if it's a network error
2728
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, _config, request));
2611
+ reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
2729
2612
 
2730
2613
  // Clean up request
2731
2614
  request = null;
@@ -2741,7 +2624,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2741
2624
  reject(new AxiosError(
2742
2625
  timeoutErrorMessage,
2743
2626
  transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
2744
- _config,
2627
+ config,
2745
2628
  request));
2746
2629
 
2747
2630
  // Clean up request
@@ -2769,13 +2652,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2769
2652
  }
2770
2653
 
2771
2654
  // Handle progress if needed
2772
- if (typeof _config.onDownloadProgress === 'function') {
2773
- request.addEventListener('progress', progressEventReducer(_config.onDownloadProgress, true));
2655
+ if (onDownloadProgress) {
2656
+ ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
2657
+ request.addEventListener('progress', downloadThrottled);
2774
2658
  }
2775
2659
 
2776
2660
  // Not all browsers support upload events
2777
- if (typeof _config.onUploadProgress === 'function' && request.upload) {
2778
- request.upload.addEventListener('progress', progressEventReducer(_config.onUploadProgress));
2661
+ if (onUploadProgress && request.upload) {
2662
+ ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
2663
+
2664
+ request.upload.addEventListener('progress', uploadThrottled);
2665
+
2666
+ request.upload.addEventListener('loadend', flushUpload);
2779
2667
  }
2780
2668
 
2781
2669
  if (_config.cancelToken || _config.signal) {
@@ -2883,25 +2771,38 @@ const trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {
2883
2771
  const iterator = readBytes(stream, chunkSize, encode);
2884
2772
 
2885
2773
  let bytes = 0;
2774
+ let done;
2775
+ let _onFinish = (e) => {
2776
+ if (!done) {
2777
+ done = true;
2778
+ onFinish && onFinish(e);
2779
+ }
2780
+ };
2886
2781
 
2887
2782
  return new ReadableStream({
2888
- type: 'bytes',
2889
-
2890
2783
  async pull(controller) {
2891
- const {done, value} = await iterator.next();
2784
+ try {
2785
+ const {done, value} = await iterator.next();
2892
2786
 
2893
- if (done) {
2894
- controller.close();
2895
- onFinish();
2896
- return;
2897
- }
2787
+ if (done) {
2788
+ _onFinish();
2789
+ controller.close();
2790
+ return;
2791
+ }
2898
2792
 
2899
- let len = value.byteLength;
2900
- onProgress && onProgress(bytes += len);
2901
- controller.enqueue(new Uint8Array(value));
2793
+ let len = value.byteLength;
2794
+ if (onProgress) {
2795
+ let loadedBytes = bytes += len;
2796
+ onProgress(loadedBytes);
2797
+ }
2798
+ controller.enqueue(new Uint8Array(value));
2799
+ } catch (err) {
2800
+ _onFinish(err);
2801
+ throw err;
2802
+ }
2902
2803
  },
2903
2804
  cancel(reason) {
2904
- onFinish(reason);
2805
+ _onFinish(reason);
2905
2806
  return iterator.return();
2906
2807
  }
2907
2808
  }, {
@@ -2911,15 +2812,6 @@ const trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {
2911
2812
 
2912
2813
  /* Injected with object hook! */
2913
2814
 
2914
- const fetchProgressDecorator = (total, fn) => {
2915
- const lengthComputable = total != null;
2916
- return (loaded) => setTimeout(() => fn({
2917
- lengthComputable,
2918
- total,
2919
- loaded
2920
- }));
2921
- };
2922
-
2923
2815
  const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
2924
2816
  const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
2925
2817
 
@@ -2929,7 +2821,15 @@ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2929
2821
  async (str) => new Uint8Array(await new Response(str).arrayBuffer())
2930
2822
  );
2931
2823
 
2932
- const supportsRequestStream = isReadableStreamSupported && (() => {
2824
+ const test = (fn, ...args) => {
2825
+ try {
2826
+ return !!fn(...args);
2827
+ } catch (e) {
2828
+ return false
2829
+ }
2830
+ };
2831
+
2832
+ const supportsRequestStream = isReadableStreamSupported && test(() => {
2933
2833
  let duplexAccessed = false;
2934
2834
 
2935
2835
  const hasContentType = new Request(platform.origin, {
@@ -2942,17 +2842,13 @@ const supportsRequestStream = isReadableStreamSupported && (() => {
2942
2842
  }).headers.has('Content-Type');
2943
2843
 
2944
2844
  return duplexAccessed && !hasContentType;
2945
- })();
2845
+ });
2946
2846
 
2947
2847
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
2948
2848
 
2949
- const supportsResponseStream = isReadableStreamSupported && !!(()=> {
2950
- try {
2951
- return utils$1.isReadableStream(new Response('').body);
2952
- } catch(err) {
2953
- // return undefined
2954
- }
2955
- })();
2849
+ const supportsResponseStream = isReadableStreamSupported &&
2850
+ test(() => utils$1.isReadableStream(new Response('').body));
2851
+
2956
2852
 
2957
2853
  const resolvers = {
2958
2854
  stream: supportsResponseStream && ((res) => res.body)
@@ -2980,7 +2876,7 @@ const getBodyLength = async (body) => {
2980
2876
  return (await new Request(body).arrayBuffer()).byteLength;
2981
2877
  }
2982
2878
 
2983
- if(utils$1.isArrayBufferView(body)) {
2879
+ if(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2984
2880
  return body.byteLength;
2985
2881
  }
2986
2882
 
@@ -3050,15 +2946,17 @@ const fetchAdapter = isFetchSupported && (async (config) => {
3050
2946
  }
3051
2947
 
3052
2948
  if (_request.body) {
3053
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
2949
+ const [onProgress, flush] = progressEventDecorator(
3054
2950
  requestContentLength,
3055
- progressEventReducer(onUploadProgress)
3056
- ), null, encodeText);
2951
+ progressEventReducer(asyncDecorator(onUploadProgress))
2952
+ );
2953
+
2954
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
3057
2955
  }
3058
2956
  }
3059
2957
 
3060
2958
  if (!utils$1.isString(withCredentials)) {
3061
- withCredentials = withCredentials ? 'cors' : 'omit';
2959
+ withCredentials = withCredentials ? 'include' : 'omit';
3062
2960
  }
3063
2961
 
3064
2962
  request = new Request(url, {
@@ -3068,7 +2966,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
3068
2966
  headers: headers.normalize().toJSON(),
3069
2967
  body: data,
3070
2968
  duplex: "half",
3071
- withCredentials
2969
+ credentials: withCredentials
3072
2970
  });
3073
2971
 
3074
2972
  let response = await fetch(request);
@@ -3084,11 +2982,16 @@ const fetchAdapter = isFetchSupported && (async (config) => {
3084
2982
 
3085
2983
  const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
3086
2984
 
2985
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2986
+ responseContentLength,
2987
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
2988
+ ) || [];
2989
+
3087
2990
  response = new Response(
3088
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
3089
- responseContentLength,
3090
- progressEventReducer(onDownloadProgress, true)
3091
- ), isStreamResponse && onFinish, encodeText),
2991
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
2992
+ flush && flush();
2993
+ isStreamResponse && onFinish();
2994
+ }, encodeText),
3092
2995
  options
3093
2996
  );
3094
2997
  }
@@ -3282,7 +3185,7 @@ function dispatchRequest(config) {
3282
3185
 
3283
3186
  /* Injected with object hook! */
3284
3187
 
3285
- const VERSION = "1.7.2";
3188
+ const VERSION = "1.7.3";
3286
3189
  /* Injected with object hook! */
3287
3190
 
3288
3191
  const validators$1 = {};
@@ -3893,627 +3796,6 @@ axios.default = axios;
3893
3796
 
3894
3797
  /* Injected with object hook! */
3895
3798
 
3896
- const LogLevels = {
3897
- silent: Number.NEGATIVE_INFINITY,
3898
- fatal: 0,
3899
- error: 0,
3900
- warn: 1,
3901
- log: 2,
3902
- info: 3,
3903
- success: 3,
3904
- fail: 3,
3905
- ready: 3,
3906
- start: 3,
3907
- box: 3,
3908
- debug: 4,
3909
- trace: 5,
3910
- verbose: Number.POSITIVE_INFINITY
3911
- };
3912
- const LogTypes = {
3913
- // Silent
3914
- silent: {
3915
- level: -1
3916
- },
3917
- // Level 0
3918
- fatal: {
3919
- level: LogLevels.fatal
3920
- },
3921
- error: {
3922
- level: LogLevels.error
3923
- },
3924
- // Level 1
3925
- warn: {
3926
- level: LogLevels.warn
3927
- },
3928
- // Level 2
3929
- log: {
3930
- level: LogLevels.log
3931
- },
3932
- // Level 3
3933
- info: {
3934
- level: LogLevels.info
3935
- },
3936
- success: {
3937
- level: LogLevels.success
3938
- },
3939
- fail: {
3940
- level: LogLevels.fail
3941
- },
3942
- ready: {
3943
- level: LogLevels.info
3944
- },
3945
- start: {
3946
- level: LogLevels.info
3947
- },
3948
- box: {
3949
- level: LogLevels.info
3950
- },
3951
- // Level 4
3952
- debug: {
3953
- level: LogLevels.debug
3954
- },
3955
- // Level 5
3956
- trace: {
3957
- level: LogLevels.trace
3958
- },
3959
- // Verbose
3960
- verbose: {
3961
- level: LogLevels.verbose
3962
- }
3963
- };
3964
-
3965
- function isObject(value) {
3966
- return value !== null && typeof value === "object";
3967
- }
3968
- function _defu(baseObject, defaults, namespace = ".", merger) {
3969
- if (!isObject(defaults)) {
3970
- return _defu(baseObject, {}, namespace);
3971
- }
3972
- const object = Object.assign({}, defaults);
3973
- for (const key in baseObject) {
3974
- if (key === "__proto__" || key === "constructor") {
3975
- continue;
3976
- }
3977
- const value = baseObject[key];
3978
- if (value === null || value === void 0) {
3979
- continue;
3980
- }
3981
- if (Array.isArray(value) && Array.isArray(object[key])) {
3982
- object[key] = [...value, ...object[key]];
3983
- } else if (isObject(value) && isObject(object[key])) {
3984
- object[key] = _defu(
3985
- value,
3986
- object[key],
3987
- (namespace ? `${namespace}.` : "") + key.toString());
3988
- } else {
3989
- object[key] = value;
3990
- }
3991
- }
3992
- return object;
3993
- }
3994
- function createDefu(merger) {
3995
- return (...arguments_) => (
3996
- // eslint-disable-next-line unicorn/no-array-reduce
3997
- arguments_.reduce((p, c) => _defu(p, c, ""), {})
3998
- );
3999
- }
4000
- const defu = createDefu();
4001
-
4002
- function isPlainObject(obj) {
4003
- return Object.prototype.toString.call(obj) === "[object Object]";
4004
- }
4005
- function isLogObj(arg) {
4006
- if (!isPlainObject(arg)) {
4007
- return false;
4008
- }
4009
- if (!arg.message && !arg.args) {
4010
- return false;
4011
- }
4012
- if (arg.stack) {
4013
- return false;
4014
- }
4015
- return true;
4016
- }
4017
-
4018
- let paused = false;
4019
- const queue = [];
4020
- class Consola {
4021
- constructor(options = {}) {
4022
- const types = options.types || LogTypes;
4023
- this.options = defu(
4024
- {
4025
- ...options,
4026
- defaults: { ...options.defaults },
4027
- level: _normalizeLogLevel(options.level, types),
4028
- reporters: [...options.reporters || []]
4029
- },
4030
- {
4031
- types: LogTypes,
4032
- throttle: 1e3,
4033
- throttleMin: 5,
4034
- formatOptions: {
4035
- date: true,
4036
- colors: false,
4037
- compact: true
4038
- }
4039
- }
4040
- );
4041
- for (const type in types) {
4042
- const defaults = {
4043
- type,
4044
- ...this.options.defaults,
4045
- ...types[type]
4046
- };
4047
- this[type] = this._wrapLogFn(defaults);
4048
- this[type].raw = this._wrapLogFn(
4049
- defaults,
4050
- true
4051
- );
4052
- }
4053
- if (this.options.mockFn) {
4054
- this.mockTypes();
4055
- }
4056
- this._lastLog = {};
4057
- }
4058
- get level() {
4059
- return this.options.level;
4060
- }
4061
- set level(level) {
4062
- this.options.level = _normalizeLogLevel(
4063
- level,
4064
- this.options.types,
4065
- this.options.level
4066
- );
4067
- }
4068
- prompt(message, opts) {
4069
- if (!this.options.prompt) {
4070
- throw new Error("prompt is not supported!");
4071
- }
4072
- return this.options.prompt(message, opts);
4073
- }
4074
- create(options) {
4075
- const instance = new Consola({
4076
- ...this.options,
4077
- ...options
4078
- });
4079
- if (this._mockFn) {
4080
- instance.mockTypes(this._mockFn);
4081
- }
4082
- return instance;
4083
- }
4084
- withDefaults(defaults) {
4085
- return this.create({
4086
- ...this.options,
4087
- defaults: {
4088
- ...this.options.defaults,
4089
- ...defaults
4090
- }
4091
- });
4092
- }
4093
- withTag(tag) {
4094
- return this.withDefaults({
4095
- tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
4096
- });
4097
- }
4098
- addReporter(reporter) {
4099
- this.options.reporters.push(reporter);
4100
- return this;
4101
- }
4102
- removeReporter(reporter) {
4103
- if (reporter) {
4104
- const i = this.options.reporters.indexOf(reporter);
4105
- if (i >= 0) {
4106
- return this.options.reporters.splice(i, 1);
4107
- }
4108
- } else {
4109
- this.options.reporters.splice(0);
4110
- }
4111
- return this;
4112
- }
4113
- setReporters(reporters) {
4114
- this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
4115
- return this;
4116
- }
4117
- wrapAll() {
4118
- this.wrapConsole();
4119
- this.wrapStd();
4120
- }
4121
- restoreAll() {
4122
- this.restoreConsole();
4123
- this.restoreStd();
4124
- }
4125
- wrapConsole() {
4126
- for (const type in this.options.types) {
4127
- if (!console["__" + type]) {
4128
- console["__" + type] = console[type];
4129
- }
4130
- console[type] = this[type].raw;
4131
- }
4132
- }
4133
- restoreConsole() {
4134
- for (const type in this.options.types) {
4135
- if (console["__" + type]) {
4136
- console[type] = console["__" + type];
4137
- delete console["__" + type];
4138
- }
4139
- }
4140
- }
4141
- wrapStd() {
4142
- this._wrapStream(this.options.stdout, "log");
4143
- this._wrapStream(this.options.stderr, "log");
4144
- }
4145
- _wrapStream(stream, type) {
4146
- if (!stream) {
4147
- return;
4148
- }
4149
- if (!stream.__write) {
4150
- stream.__write = stream.write;
4151
- }
4152
- stream.write = (data) => {
4153
- this[type].raw(String(data).trim());
4154
- };
4155
- }
4156
- restoreStd() {
4157
- this._restoreStream(this.options.stdout);
4158
- this._restoreStream(this.options.stderr);
4159
- }
4160
- _restoreStream(stream) {
4161
- if (!stream) {
4162
- return;
4163
- }
4164
- if (stream.__write) {
4165
- stream.write = stream.__write;
4166
- delete stream.__write;
4167
- }
4168
- }
4169
- pauseLogs() {
4170
- paused = true;
4171
- }
4172
- resumeLogs() {
4173
- paused = false;
4174
- const _queue = queue.splice(0);
4175
- for (const item of _queue) {
4176
- item[0]._logFn(item[1], item[2]);
4177
- }
4178
- }
4179
- mockTypes(mockFn) {
4180
- const _mockFn = mockFn || this.options.mockFn;
4181
- this._mockFn = _mockFn;
4182
- if (typeof _mockFn !== "function") {
4183
- return;
4184
- }
4185
- for (const type in this.options.types) {
4186
- this[type] = _mockFn(type, this.options.types[type]) || this[type];
4187
- this[type].raw = this[type];
4188
- }
4189
- }
4190
- _wrapLogFn(defaults, isRaw) {
4191
- return (...args) => {
4192
- if (paused) {
4193
- queue.push([this, defaults, args, isRaw]);
4194
- return;
4195
- }
4196
- return this._logFn(defaults, args, isRaw);
4197
- };
4198
- }
4199
- _logFn(defaults, args, isRaw) {
4200
- if ((defaults.level || 0) > this.level) {
4201
- return false;
4202
- }
4203
- const logObj = {
4204
- date: /* @__PURE__ */ new Date(),
4205
- args: [],
4206
- ...defaults,
4207
- level: _normalizeLogLevel(defaults.level, this.options.types)
4208
- };
4209
- if (!isRaw && args.length === 1 && isLogObj(args[0])) {
4210
- Object.assign(logObj, args[0]);
4211
- } else {
4212
- logObj.args = [...args];
4213
- }
4214
- if (logObj.message) {
4215
- logObj.args.unshift(logObj.message);
4216
- delete logObj.message;
4217
- }
4218
- if (logObj.additional) {
4219
- if (!Array.isArray(logObj.additional)) {
4220
- logObj.additional = logObj.additional.split("\n");
4221
- }
4222
- logObj.args.push("\n" + logObj.additional.join("\n"));
4223
- delete logObj.additional;
4224
- }
4225
- logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
4226
- logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
4227
- const resolveLog = (newLog = false) => {
4228
- const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
4229
- if (this._lastLog.object && repeated > 0) {
4230
- const args2 = [...this._lastLog.object.args];
4231
- if (repeated > 1) {
4232
- args2.push(`(repeated ${repeated} times)`);
4233
- }
4234
- this._log({ ...this._lastLog.object, args: args2 });
4235
- this._lastLog.count = 1;
4236
- }
4237
- if (newLog) {
4238
- this._lastLog.object = logObj;
4239
- this._log(logObj);
4240
- }
4241
- };
4242
- clearTimeout(this._lastLog.timeout);
4243
- const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
4244
- this._lastLog.time = logObj.date;
4245
- if (diffTime < this.options.throttle) {
4246
- try {
4247
- const serializedLog = JSON.stringify([
4248
- logObj.type,
4249
- logObj.tag,
4250
- logObj.args
4251
- ]);
4252
- const isSameLog = this._lastLog.serialized === serializedLog;
4253
- this._lastLog.serialized = serializedLog;
4254
- if (isSameLog) {
4255
- this._lastLog.count = (this._lastLog.count || 0) + 1;
4256
- if (this._lastLog.count > this.options.throttleMin) {
4257
- this._lastLog.timeout = setTimeout(
4258
- resolveLog,
4259
- this.options.throttle
4260
- );
4261
- return;
4262
- }
4263
- }
4264
- } catch {
4265
- }
4266
- }
4267
- resolveLog(true);
4268
- }
4269
- _log(logObj) {
4270
- for (const reporter of this.options.reporters) {
4271
- reporter.log(logObj, {
4272
- options: this.options
4273
- });
4274
- }
4275
- }
4276
- }
4277
- function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
4278
- if (input === void 0) {
4279
- return defaultLevel;
4280
- }
4281
- if (typeof input === "number") {
4282
- return input;
4283
- }
4284
- if (types[input] && types[input].level !== void 0) {
4285
- return types[input].level;
4286
- }
4287
- return defaultLevel;
4288
- }
4289
- Consola.prototype.add = Consola.prototype.addReporter;
4290
- Consola.prototype.remove = Consola.prototype.removeReporter;
4291
- Consola.prototype.clear = Consola.prototype.removeReporter;
4292
- Consola.prototype.withScope = Consola.prototype.withTag;
4293
- Consola.prototype.mock = Consola.prototype.mockTypes;
4294
- Consola.prototype.pause = Consola.prototype.pauseLogs;
4295
- Consola.prototype.resume = Consola.prototype.resumeLogs;
4296
- function createConsola$1(options = {}) {
4297
- return new Consola(options);
4298
- }
4299
-
4300
- /* Injected with object hook! */
4301
-
4302
- class BrowserReporter {
4303
- constructor(options) {
4304
- this.options = { ...options };
4305
- this.defaultColor = "#7f8c8d";
4306
- this.levelColorMap = {
4307
- 0: "#c0392b",
4308
- // Red
4309
- 1: "#f39c12",
4310
- // Yellow
4311
- 3: "#00BCD4"
4312
- // Cyan
4313
- };
4314
- this.typeColorMap = {
4315
- success: "#2ecc71"
4316
- // Green
4317
- };
4318
- }
4319
- _getLogFn(level) {
4320
- if (level < 1) {
4321
- return console.__error || console.error;
4322
- }
4323
- if (level === 1) {
4324
- return console.__warn || console.warn;
4325
- }
4326
- return console.__log || console.log;
4327
- }
4328
- log(logObj) {
4329
- const consoleLogFn = this._getLogFn(logObj.level);
4330
- const type = logObj.type === "log" ? "" : logObj.type;
4331
- const tag = logObj.tag || "";
4332
- const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor;
4333
- const style = `
4334
- background: ${color};
4335
- border-radius: 0.5em;
4336
- color: white;
4337
- font-weight: bold;
4338
- padding: 2px 0.5em;
4339
- `;
4340
- const badge = `%c${[tag, type].filter(Boolean).join(":")}`;
4341
- if (typeof logObj.args[0] === "string") {
4342
- consoleLogFn(
4343
- `${badge}%c ${logObj.args[0]}`,
4344
- style,
4345
- // Empty string as style resets to default console style
4346
- "",
4347
- ...logObj.args.slice(1)
4348
- );
4349
- } else {
4350
- consoleLogFn(badge, style, ...logObj.args);
4351
- }
4352
- }
4353
- }
4354
-
4355
- function createConsola(options = {}) {
4356
- const consola2 = createConsola$1({
4357
- reporters: options.reporters || [new BrowserReporter({})],
4358
- prompt(message, options2 = {}) {
4359
- if (options2.type === "confirm") {
4360
- return Promise.resolve(confirm(message));
4361
- }
4362
- return Promise.resolve(prompt(message));
4363
- },
4364
- ...options
4365
- });
4366
- return consola2;
4367
- }
4368
- const consola = createConsola();
4369
-
4370
- /* Injected with object hook! */
4371
-
4372
- const _hoisted_1$3 = { key: 0 };
4373
- const _hoisted_2$3 = /* @__PURE__ */ createBaseVNode("span", { "mr-1": "" }, ":", -1);
4374
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4375
- __name: "PageFrontmatter",
4376
- props: {
4377
- frontmatter: {}
4378
- },
4379
- setup(__props) {
4380
- const props = __props;
4381
- const newFm = ref(props.frontmatter);
4382
- async function saveNewFm() {
4383
- const res = await axios.post("/valaxy-devtools-api/frontmatter", {
4384
- pageData: pageData.value,
4385
- frontmatter: toRaw(newFm.value)
4386
- });
4387
- if (res)
4388
- consola.success("Frontmatter saved");
4389
- }
4390
- return (_ctx, _cache) => {
4391
- const _component_VDTag = __unplugin_components_0;
4392
- const _component_VDPostCategories = _sfc_main$5;
4393
- const _component_AGUIInput = _sfc_main$6;
4394
- const _component_AGUIButton = _sfc_main$7;
4395
- return openBlock(), createElementBlock("div", null, [
4396
- _ctx.frontmatter ? (openBlock(), createElementBlock("ul", _hoisted_1$3, [
4397
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.frontmatter, (value, key) => {
4398
- return openBlock(), createElementBlock("li", { key }, [
4399
- createBaseVNode("strong", null, toDisplayString(key), 1),
4400
- _hoisted_2$3,
4401
- key === "tags" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(value, (tag) => {
4402
- return openBlock(), createBlock(_component_VDTag, { key: tag }, {
4403
- default: withCtx(() => [
4404
- createTextVNode(toDisplayString(tag), 1)
4405
- ]),
4406
- _: 2
4407
- }, 1024);
4408
- }), 128)) : key === "categories" ? (openBlock(), createBlock(_component_VDPostCategories, {
4409
- key: 1,
4410
- categories: value
4411
- }, null, 8, ["categories"])) : key === "encryptedContent" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
4412
- createTextVNode(" [Encrypted] ")
4413
- ], 64)) : key === "partiallyEncryptedContents" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
4414
- createTextVNode(" [Partially Encrypted] ")
4415
- ], 64)) : key === "title" ? (openBlock(), createBlock(_component_AGUIInput, {
4416
- key: 4,
4417
- modelValue: newFm.value.title,
4418
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => newFm.value.title = $event)
4419
- }, null, 8, ["modelValue"])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
4420
- createTextVNode(toDisplayString(value), 1)
4421
- ], 64))
4422
- ]);
4423
- }), 128))
4424
- ])) : createCommentVNode("", true),
4425
- createVNode(_component_AGUIButton, { onClick: saveNewFm }, {
4426
- default: withCtx(() => [
4427
- createTextVNode(" Save Frontmatter ")
4428
- ]),
4429
- _: 1
4430
- })
4431
- ]);
4432
- };
4433
- }
4434
- });
4435
-
4436
- /* Injected with object hook! */
4437
-
4438
- const _hoisted_1$2 = { p: "2" };
4439
- const _hoisted_2$2 = {
4440
- class: "flex",
4441
- gap: "2",
4442
- "py-2": ""
4443
- };
4444
- const _hoisted_3$2 = /* @__PURE__ */ createBaseVNode("div", { "i-vscode-icons:file-type-vscode": "" }, null, -1);
4445
- const _hoisted_4 = [
4446
- _hoisted_3$2
4447
- ];
4448
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4449
- __name: "PostPanel",
4450
- setup(__props) {
4451
- function launchEditor() {
4452
- openInEditor({
4453
- file: getWindowProperty("$pageData").path
4454
- });
4455
- }
4456
- return (_ctx, _cache) => {
4457
- const _component_PageFrontmatter = _sfc_main$3;
4458
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
4459
- createBaseVNode("div", _hoisted_2$2, [
4460
- createBaseVNode("button", {
4461
- class: "text-xs shadow transition hover:shadow-lg p-2",
4462
- onClick: _cache[0] || (_cache[0] = ($event) => launchEditor())
4463
- }, _hoisted_4)
4464
- ]),
4465
- unref(frontmatter) ? (openBlock(), createBlock(_component_PageFrontmatter, {
4466
- key: 0,
4467
- frontmatter: unref(frontmatter)
4468
- }, null, 8, ["frontmatter"])) : createCommentVNode("", true)
4469
- ]);
4470
- };
4471
- }
4472
- });
4473
-
4474
- /* Injected with object hook! */
4475
-
4476
- const _hoisted_1$1 = {
4477
- class: "h-full",
4478
- overflow: "auto",
4479
- pl: "12",
4480
- pr: "4",
4481
- py: "4"
4482
- };
4483
- const _hoisted_2$1 = { flex: "" };
4484
- const _hoisted_3$1 = ["onClick"];
4485
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4486
- __name: "VDPostList",
4487
- setup(__props) {
4488
- const postList = ref();
4489
- onMounted(() => {
4490
- postList.value = getGlobalValaxyProperty("postList").value;
4491
- });
4492
- function onClickPost(post) {
4493
- devtoolsRouter.value?.push(post.path);
4494
- }
4495
- return (_ctx, _cache) => {
4496
- return openBlock(), createElementBlock("ul", _hoisted_1$1, [
4497
- (openBlock(true), createElementBlock(Fragment, null, renderList(postList.value, (post) => {
4498
- return openBlock(), createElementBlock("li", {
4499
- key: post.path,
4500
- class: "list-decimal"
4501
- }, [
4502
- createBaseVNode("div", _hoisted_2$1, [
4503
- createBaseVNode("span", {
4504
- class: normalizeClass(["inline-flex flex-grow cursor-pointer hover:text-blue-500", { "text-blue-500 font-bold": unref(activePath) === post.path }]),
4505
- onClick: ($event) => onClickPost(post)
4506
- }, toDisplayString(post.title), 11, _hoisted_3$1)
4507
- ])
4508
- ]);
4509
- }), 128))
4510
- ]);
4511
- };
4512
- }
4513
- });
4514
-
4515
- /* Injected with object hook! */
4516
-
4517
3799
  const M = {
4518
3800
  name: "splitpanes",
4519
3801
  emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
@@ -4854,65 +4136,4 @@ const g = /* @__PURE__ */ S(x, [["render", P]]);
4854
4136
 
4855
4137
  /* Injected with object hook! */
4856
4138
 
4857
- const _hoisted_1 = {
4858
- class: "h-full",
4859
- flex: "~ col",
4860
- text: "gray-700 dark:gray-200"
4861
- };
4862
- const _hoisted_2 = /* @__PURE__ */ createBaseVNode("div", {
4863
- class: "w-full border-b shadow flex justify-end",
4864
- dark: "border-b-black"
4865
- }, [
4866
- /* @__PURE__ */ createBaseVNode("a", {
4867
- href: "https://valaxy.site",
4868
- target: "_blank",
4869
- class: "bg-gray-100 dark:bg-gray-900 inline-flex justify-center items-center w-8 h-8"
4870
- }, [
4871
- /* @__PURE__ */ createBaseVNode("div", { "i-ri-book-line": "" })
4872
- ])
4873
- ], -1);
4874
- const _hoisted_3 = {
4875
- style: { "height": "calc(100% - 32px)" },
4876
- overflow: "auto"
4877
- };
4878
- const _sfc_main = /* @__PURE__ */ defineComponent({
4879
- __name: "index",
4880
- setup(__props) {
4881
- onMounted(() => {
4882
- if (isStaticMode)
4883
- document.title = "Valaxy DevTools (Production)";
4884
- });
4885
- return (_ctx, _cache) => {
4886
- const _component_VDPostList = _sfc_main$1;
4887
- const _component_PostPanel = _sfc_main$2;
4888
- return openBlock(), createElementBlock("main", _hoisted_1, [
4889
- _hoisted_2,
4890
- createBaseVNode("div", _hoisted_3, [
4891
- createVNode(unref(M), { class: "h-full" }, {
4892
- default: withCtx(() => [
4893
- createVNode(unref(g), null, {
4894
- default: withCtx(() => [
4895
- createVNode(_component_VDPostList)
4896
- ]),
4897
- _: 1
4898
- }),
4899
- createVNode(unref(g), null, {
4900
- default: withCtx(() => [
4901
- createVNode(_component_PostPanel)
4902
- ]),
4903
- _: 1
4904
- })
4905
- ]),
4906
- _: 1
4907
- })
4908
- ])
4909
- ]);
4910
- };
4911
- }
4912
- });
4913
-
4914
- /* Injected with object hook! */
4915
-
4916
- /* Injected with object hook! */
4917
-
4918
- export { _sfc_main as default };
4139
+ export { M, axios as a, g };