@valaxyjs/devtools 0.0.1 → 0.18.0-beta.2

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/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @valaxyjs/devtools
2
+
3
+ ## Dev
4
+
5
+ ```bash
6
+ # in packages/devtools
7
+ pnpm dev
8
+ ```
9
+
10
+ ```bash
11
+ # in root
12
+ pnpm devtools
13
+ ```
@@ -0,0 +1,11 @@
1
+ import { _ as _export_sfc, o as openBlock, c as createElementBlock } from './index-8_TdlA6f.js';
2
+
3
+ /* unplugin-vue-components disabled */const _sfc_main = {};
4
+
5
+ function _sfc_render(_ctx, _cache) {
6
+ return (openBlock(), createElementBlock("div", null, " About "))
7
+ }
8
+ const about = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
9
+ /* Injected with object hook! */
10
+
11
+ export { about as default };
@@ -0,0 +1,11 @@
1
+ import { _ as _export_sfc, o as openBlock, c as createElementBlock } from './index-8_TdlA6f.js';
2
+
3
+ /* unplugin-vue-components disabled */const _sfc_main = {};
4
+
5
+ function _sfc_render(_ctx, _cache) {
6
+ return (openBlock(), createElementBlock("div", null, " Categories "))
7
+ }
8
+ const categories = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
9
+ /* Injected with object hook! */
10
+
11
+ export { categories as default };
@@ -0,0 +1,522 @@
1
+ import { d as defineComponent, o as openBlock, c as createElementBlock, F as Fragment, r as renderList, a as createCommentVNode, b as createBaseVNode, t as toDisplayString, e as createTextVNode, f as ref, g as onMounted, n as normalizeClass, h, i as renderSlot, j as normalizeStyle, k as createVNode, w as withCtx, u as unref } from './index-8_TdlA6f.js';
2
+
3
+ const _hoisted_1$2 = { key: 0 };
4
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5
+ __name: "PageFrontmatter",
6
+ props: {
7
+ frontmatter: {}
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("div", null, [
12
+ _ctx.frontmatter ? (openBlock(), createElementBlock("ul", _hoisted_1$2, [
13
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.frontmatter, (value, key) => {
14
+ return openBlock(), createElementBlock("li", { key }, [
15
+ createBaseVNode("strong", null, toDisplayString(key), 1),
16
+ createTextVNode(": " + toDisplayString(value), 1)
17
+ ]);
18
+ }), 128))
19
+ ])) : createCommentVNode("", true)
20
+ ]);
21
+ };
22
+ }
23
+ });
24
+
25
+ /* Injected with object hook! */
26
+
27
+ function getAppWindow() {
28
+ return window.parent.parent;
29
+ }
30
+ function getWindowProperty(property) {
31
+ return window.parent.parent[property];
32
+ }
33
+ function getGlobalValaxyProperty(property) {
34
+ const $valaxy = window.parent.parent.$valaxy;
35
+ return $valaxy[property];
36
+ }
37
+
38
+ /* Injected with object hook! */
39
+
40
+ const target = getAppWindow();
41
+ function openInEditor(options = {}) {
42
+ const { file, line = 0, column = 0 } = options;
43
+ if (file) {
44
+ const baseUrl = window.location.origin;
45
+ target?.__VUE_INSPECTOR__.openInEditor(baseUrl, file, line, column);
46
+ }
47
+ }
48
+
49
+ /* Injected with object hook! */
50
+
51
+ const isStaticMode = document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
52
+
53
+ /* Injected with object hook! */
54
+
55
+ const frontmatter = ref({});
56
+
57
+ /* Injected with object hook! */
58
+
59
+ const _hoisted_1$1 = {
60
+ class: "h-full",
61
+ overflow: "auto",
62
+ pl: "12",
63
+ pr: "4",
64
+ py: "4"
65
+ };
66
+ const _hoisted_2$1 = { flex: "" };
67
+ const _hoisted_3$1 = ["onClick"];
68
+ const _hoisted_4 = /* @__PURE__ */ createBaseVNode("div", { "i-vscode-icons:file-type-vscode": "" }, null, -1);
69
+ const _hoisted_5 = [
70
+ _hoisted_4
71
+ ];
72
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73
+ __name: "VDPostList",
74
+ setup(__props) {
75
+ const activePath = ref("");
76
+ const __VUE_DEVTOOLS_ROUTER__ = getWindowProperty("__VUE_DEVTOOLS_ROUTER__");
77
+ __VUE_DEVTOOLS_ROUTER__.beforeEach((to, _from, next) => {
78
+ activePath.value = to.path;
79
+ frontmatter.value = getWindowProperty("$frontmatter");
80
+ next();
81
+ });
82
+ const postList = ref();
83
+ onMounted(() => {
84
+ postList.value = getGlobalValaxyProperty("postList").value;
85
+ });
86
+ function onClickPost(post) {
87
+ __VUE_DEVTOOLS_ROUTER__.push(post.path);
88
+ }
89
+ function launchEditor() {
90
+ openInEditor({
91
+ file: getWindowProperty("$pageData").path
92
+ });
93
+ }
94
+ return (_ctx, _cache) => {
95
+ return openBlock(), createElementBlock("ul", _hoisted_1$1, [
96
+ createTextVNode(toDisplayString(activePath.value) + " ", 1),
97
+ (openBlock(true), createElementBlock(Fragment, null, renderList(postList.value, (post) => {
98
+ return openBlock(), createElementBlock("li", {
99
+ key: post.path,
100
+ class: "list-decimal"
101
+ }, [
102
+ createBaseVNode("div", _hoisted_2$1, [
103
+ createBaseVNode("span", {
104
+ class: normalizeClass(["inline-flex flex-grow cursor-pointer underline hover:text-blue-500", { "text-blue-500": activePath.value === post.path }]),
105
+ onClick: ($event) => onClickPost(post)
106
+ }, toDisplayString(post.title), 11, _hoisted_3$1),
107
+ createBaseVNode("button", {
108
+ class: "ml-2 text-xs",
109
+ onClick: _cache[0] || (_cache[0] = ($event) => launchEditor())
110
+ }, _hoisted_5)
111
+ ])
112
+ ]);
113
+ }), 128))
114
+ ]);
115
+ };
116
+ }
117
+ });
118
+
119
+ /* Injected with object hook! */
120
+
121
+ const M = {
122
+ name: "splitpanes",
123
+ emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
124
+ props: {
125
+ horizontal: { type: Boolean },
126
+ pushOtherPanes: { type: Boolean, default: !0 },
127
+ dblClickSplitter: { type: Boolean, default: !0 },
128
+ rtl: { type: Boolean, default: !1 },
129
+ firstSplitter: { type: Boolean }
130
+ },
131
+ provide() {
132
+ return {
133
+ requestUpdate: this.requestUpdate,
134
+ onPaneAdd: this.onPaneAdd,
135
+ onPaneRemove: this.onPaneRemove,
136
+ onPaneClick: this.onPaneClick
137
+ };
138
+ },
139
+ data: () => ({
140
+ container: null,
141
+ ready: !1,
142
+ panes: [],
143
+ touch: {
144
+ mouseDown: !1,
145
+ dragging: !1,
146
+ activeSplitter: null
147
+ },
148
+ splitterTaps: {
149
+ splitter: null,
150
+ timeoutId: null
151
+ }
152
+ }),
153
+ computed: {
154
+ panesCount() {
155
+ return this.panes.length;
156
+ },
157
+ indexedPanes() {
158
+ return this.panes.reduce((e, i) => (e[i.id] = i) && e, {});
159
+ }
160
+ },
161
+ methods: {
162
+ updatePaneComponents() {
163
+ this.panes.forEach((e) => {
164
+ e.update && e.update({
165
+ [this.horizontal ? "height" : "width"]: `${this.indexedPanes[e.id].size}%`
166
+ });
167
+ });
168
+ },
169
+ bindEvents() {
170
+ document.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.addEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.addEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.addEventListener("touchend", this.onMouseUp));
171
+ },
172
+ unbindEvents() {
173
+ document.removeEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.removeEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.removeEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.removeEventListener("touchend", this.onMouseUp));
174
+ },
175
+ onMouseDown(e, i) {
176
+ this.bindEvents(), this.touch.mouseDown = !0, this.touch.activeSplitter = i;
177
+ },
178
+ onMouseMove(e) {
179
+ this.touch.mouseDown && (e.preventDefault(), this.touch.dragging = !0, this.calculatePanesSize(this.getCurrentMouseDrag(e)), this.$emit("resize", this.panes.map((i) => ({ min: i.min, max: i.max, size: i.size }))));
180
+ },
181
+ onMouseUp() {
182
+ this.touch.dragging && this.$emit("resized", this.panes.map((e) => ({ min: e.min, max: e.max, size: e.size }))), this.touch.mouseDown = !1, setTimeout(() => {
183
+ this.touch.dragging = !1, this.unbindEvents();
184
+ }, 100);
185
+ },
186
+ onSplitterClick(e, i) {
187
+ "ontouchstart" in window && (e.preventDefault(), this.dblClickSplitter && (this.splitterTaps.splitter === i ? (clearTimeout(this.splitterTaps.timeoutId), this.splitterTaps.timeoutId = null, this.onSplitterDblClick(e, i), this.splitterTaps.splitter = null) : (this.splitterTaps.splitter = i, this.splitterTaps.timeoutId = setTimeout(() => {
188
+ this.splitterTaps.splitter = null;
189
+ }, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[i]);
190
+ },
191
+ onSplitterDblClick(e, i) {
192
+ let s = 0;
193
+ this.panes = this.panes.map((n, t) => (n.size = t === i ? n.max : n.min, t !== i && (s += n.min), n)), this.panes[i].size -= s, this.$emit("pane-maximize", this.panes[i]), this.$emit("resized", this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })));
194
+ },
195
+ onPaneClick(e, i) {
196
+ this.$emit("pane-click", this.indexedPanes[i]);
197
+ },
198
+ getCurrentMouseDrag(e) {
199
+ const i = this.container.getBoundingClientRect(), { clientX: s, clientY: n } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
200
+ return {
201
+ x: s - i.left,
202
+ y: n - i.top
203
+ };
204
+ },
205
+ getCurrentDragPercentage(e) {
206
+ e = e[this.horizontal ? "y" : "x"];
207
+ const i = this.container[this.horizontal ? "clientHeight" : "clientWidth"];
208
+ return this.rtl && !this.horizontal && (e = i - e), e * 100 / i;
209
+ },
210
+ calculatePanesSize(e) {
211
+ const i = this.touch.activeSplitter;
212
+ let s = {
213
+ prevPanesSize: this.sumPrevPanesSize(i),
214
+ nextPanesSize: this.sumNextPanesSize(i),
215
+ prevReachedMinPanes: 0,
216
+ nextReachedMinPanes: 0
217
+ };
218
+ const n = 0 + (this.pushOtherPanes ? 0 : s.prevPanesSize), t = 100 - (this.pushOtherPanes ? 0 : s.nextPanesSize), a = Math.max(Math.min(this.getCurrentDragPercentage(e), t), n);
219
+ let r = [i, i + 1], o = this.panes[r[0]] || null, h = this.panes[r[1]] || null;
220
+ const l = o.max < 100 && a >= o.max + s.prevPanesSize, u = h.max < 100 && a <= 100 - (h.max + this.sumNextPanesSize(i + 1));
221
+ if (l || u) {
222
+ l ? (o.size = o.max, h.size = Math.max(100 - o.max - s.prevPanesSize - s.nextPanesSize, 0)) : (o.size = Math.max(100 - h.max - s.prevPanesSize - this.sumNextPanesSize(i + 1), 0), h.size = h.max);
223
+ return;
224
+ }
225
+ if (this.pushOtherPanes) {
226
+ const d = this.doPushOtherPanes(s, a);
227
+ if (!d)
228
+ return;
229
+ (({ sums: s, panesToResize: r } = d)), o = this.panes[r[0]] || null, h = this.panes[r[1]] || null;
230
+ }
231
+ o !== null && (o.size = Math.min(Math.max(a - s.prevPanesSize - s.prevReachedMinPanes, o.min), o.max)), h !== null && (h.size = Math.min(Math.max(100 - a - s.nextPanesSize - s.nextReachedMinPanes, h.min), h.max));
232
+ },
233
+ doPushOtherPanes(e, i) {
234
+ const s = this.touch.activeSplitter, n = [s, s + 1];
235
+ return i < e.prevPanesSize + this.panes[n[0]].min && (n[0] = this.findPrevExpandedPane(s).index, e.prevReachedMinPanes = 0, n[0] < s && this.panes.forEach((t, a) => {
236
+ a > n[0] && a <= s && (t.size = t.min, e.prevReachedMinPanes += t.min);
237
+ }), e.prevPanesSize = this.sumPrevPanesSize(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((t, a) => {
238
+ a > 0 && a <= s && (t.size = t.min, e.prevReachedMinPanes += t.min);
239
+ }), this.panes[n[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : i > 100 - e.nextPanesSize - this.panes[n[1]].min && (n[1] = this.findNextExpandedPane(s).index, e.nextReachedMinPanes = 0, n[1] > s + 1 && this.panes.forEach((t, a) => {
240
+ a > s && a < n[1] && (t.size = t.min, e.nextReachedMinPanes += t.min);
241
+ }), e.nextPanesSize = this.sumNextPanesSize(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((t, a) => {
242
+ a < this.panesCount - 1 && a >= s + 1 && (t.size = t.min, e.nextReachedMinPanes += t.min);
243
+ }), this.panes[n[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: n };
244
+ },
245
+ sumPrevPanesSize(e) {
246
+ return this.panes.reduce((i, s, n) => i + (n < e ? s.size : 0), 0);
247
+ },
248
+ sumNextPanesSize(e) {
249
+ return this.panes.reduce((i, s, n) => i + (n > e + 1 ? s.size : 0), 0);
250
+ },
251
+ findPrevExpandedPane(e) {
252
+ return [...this.panes].reverse().find((s) => s.index < e && s.size > s.min) || {};
253
+ },
254
+ findNextExpandedPane(e) {
255
+ return this.panes.find((s) => s.index > e + 1 && s.size > s.min) || {};
256
+ },
257
+ checkSplitpanesNodes() {
258
+ Array.from(this.container.children).forEach((i) => {
259
+ const s = i.classList.contains("splitpanes__pane"), n = i.classList.contains("splitpanes__splitter");
260
+ !s && !n && (i.parentNode.removeChild(i), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
261
+ });
262
+ },
263
+ addSplitter(e, i, s = !1) {
264
+ const n = e - 1, t = document.createElement("div");
265
+ t.classList.add("splitpanes__splitter"), s || (t.onmousedown = (a) => this.onMouseDown(a, n), typeof window < "u" && "ontouchstart" in window && (t.ontouchstart = (a) => this.onMouseDown(a, n)), t.onclick = (a) => this.onSplitterClick(a, n + 1)), this.dblClickSplitter && (t.ondblclick = (a) => this.onSplitterDblClick(a, n + 1)), i.parentNode.insertBefore(t, i);
266
+ },
267
+ removeSplitter(e) {
268
+ e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
269
+ },
270
+ redoSplitters() {
271
+ const e = Array.from(this.container.children);
272
+ e.forEach((s) => {
273
+ s.className.includes("splitpanes__splitter") && this.removeSplitter(s);
274
+ });
275
+ let i = 0;
276
+ e.forEach((s) => {
277
+ s.className.includes("splitpanes__pane") && (!i && this.firstSplitter ? this.addSplitter(i, s, !0) : i && this.addSplitter(i, s), i++);
278
+ });
279
+ },
280
+ requestUpdate({ target: e, ...i }) {
281
+ const s = this.indexedPanes[e._.uid];
282
+ Object.entries(i).forEach(([n, t]) => s[n] = t);
283
+ },
284
+ onPaneAdd(e) {
285
+ let i = -1;
286
+ Array.from(e.$el.parentNode.children).some((t) => (t.className.includes("splitpanes__pane") && i++, t === e.$el));
287
+ const s = parseFloat(e.minSize), n = parseFloat(e.maxSize);
288
+ this.panes.splice(i, 0, {
289
+ id: e._.uid,
290
+ index: i,
291
+ min: isNaN(s) ? 0 : s,
292
+ max: isNaN(n) ? 100 : n,
293
+ size: e.size === null ? null : parseFloat(e.size),
294
+ givenSize: e.size,
295
+ update: e.update
296
+ }), this.panes.forEach((t, a) => t.index = a), this.ready && this.$nextTick(() => {
297
+ this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[i] }), this.$emit("pane-add", { index: i, panes: this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size })) });
298
+ });
299
+ },
300
+ onPaneRemove(e) {
301
+ const i = this.panes.findIndex((n) => n.id === e._.uid), s = this.panes.splice(i, 1)[0];
302
+ this.panes.forEach((n, t) => n.index = t), this.$nextTick(() => {
303
+ this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...s, index: i } }), this.$emit("pane-remove", { removed: s, panes: this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
304
+ });
305
+ },
306
+ resetPaneSizes(e = {}) {
307
+ !e.addedPane && !e.removedPane ? this.initialPanesSizing() : this.panes.some((i) => i.givenSize !== null || i.min || i.max < 100) ? this.equalizeAfterAddOrRemove(e) : this.equalize(), this.ready && this.$emit("resized", this.panes.map((i) => ({ min: i.min, max: i.max, size: i.size })));
308
+ },
309
+ equalize() {
310
+ const e = 100 / this.panesCount;
311
+ let i = 0;
312
+ const s = [], n = [];
313
+ this.panes.forEach((t) => {
314
+ t.size = Math.max(Math.min(e, t.max), t.min), i -= t.size, t.size >= t.max && s.push(t.id), t.size <= t.min && n.push(t.id);
315
+ }), i > 0.1 && this.readjustSizes(i, s, n);
316
+ },
317
+ initialPanesSizing() {
318
+ let e = 100;
319
+ const i = [], s = [];
320
+ let n = 0;
321
+ this.panes.forEach((a) => {
322
+ e -= a.size, a.size !== null && n++, a.size >= a.max && i.push(a.id), a.size <= a.min && s.push(a.id);
323
+ });
324
+ let t = 100;
325
+ e > 0.1 && (this.panes.forEach((a) => {
326
+ a.size === null && (a.size = Math.max(Math.min(e / (this.panesCount - n), a.max), a.min)), t -= a.size;
327
+ }), t > 0.1 && this.readjustSizes(e, i, s));
328
+ },
329
+ equalizeAfterAddOrRemove({ addedPane: e, removedPane: i } = {}) {
330
+ let s = 100 / this.panesCount, n = 0;
331
+ const t = [], a = [];
332
+ e && e.givenSize !== null && (s = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((r) => {
333
+ n -= r.size, r.size >= r.max && t.push(r.id), r.size <= r.min && a.push(r.id);
334
+ }), !(Math.abs(n) < 0.1) && (this.panes.forEach((r) => {
335
+ e && e.givenSize !== null && e.id === r.id || (r.size = Math.max(Math.min(s, r.max), r.min)), n -= r.size, r.size >= r.max && t.push(r.id), r.size <= r.min && a.push(r.id);
336
+ }), n > 0.1 && this.readjustSizes(n, t, a));
337
+ },
338
+ readjustSizes(e, i, s) {
339
+ let n;
340
+ e > 0 ? n = e / (this.panesCount - i.length) : n = e / (this.panesCount - s.length), this.panes.forEach((t, a) => {
341
+ if (e > 0 && !i.includes(t.id)) {
342
+ const r = Math.max(Math.min(t.size + n, t.max), t.min), o = r - t.size;
343
+ e -= o, t.size = r;
344
+ } else if (!s.includes(t.id)) {
345
+ const r = Math.max(Math.min(t.size + n, t.max), t.min), o = r - t.size;
346
+ e -= o, t.size = r;
347
+ }
348
+ t.update({
349
+ [this.horizontal ? "height" : "width"]: `${this.indexedPanes[t.id].size}%`
350
+ });
351
+ }), Math.abs(e) > 0.1 && this.$nextTick(() => {
352
+ this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
353
+ });
354
+ }
355
+ },
356
+ watch: {
357
+ panes: {
358
+ deep: !0,
359
+ immediate: !1,
360
+ handler() {
361
+ this.updatePaneComponents();
362
+ }
363
+ },
364
+ horizontal() {
365
+ this.updatePaneComponents();
366
+ },
367
+ firstSplitter() {
368
+ this.redoSplitters();
369
+ },
370
+ dblClickSplitter(e) {
371
+ [...this.container.querySelectorAll(".splitpanes__splitter")].forEach((s, n) => {
372
+ s.ondblclick = e ? (t) => this.onSplitterDblClick(t, n) : void 0;
373
+ });
374
+ }
375
+ },
376
+ beforeUnmount() {
377
+ this.ready = !1;
378
+ },
379
+ mounted() {
380
+ this.container = this.$refs.container, this.checkSplitpanesNodes(), this.redoSplitters(), this.resetPaneSizes(), this.$emit("ready"), this.ready = !0;
381
+ },
382
+ render() {
383
+ return h(
384
+ "div",
385
+ {
386
+ ref: "container",
387
+ class: [
388
+ "splitpanes",
389
+ `splitpanes--${this.horizontal ? "horizontal" : "vertical"}`,
390
+ {
391
+ "splitpanes--dragging": this.touch.dragging
392
+ }
393
+ ]
394
+ },
395
+ this.$slots.default()
396
+ );
397
+ }
398
+ }, S = (e, i) => {
399
+ const s = e.__vccOpts || e;
400
+ for (const [n, t] of i)
401
+ s[n] = t;
402
+ return s;
403
+ }, x = {
404
+ name: "pane",
405
+ inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
406
+ props: {
407
+ size: { type: [Number, String], default: null },
408
+ minSize: { type: [Number, String], default: 0 },
409
+ maxSize: { type: [Number, String], default: 100 }
410
+ },
411
+ data: () => ({
412
+ style: {}
413
+ }),
414
+ mounted() {
415
+ this.onPaneAdd(this);
416
+ },
417
+ beforeUnmount() {
418
+ this.onPaneRemove(this);
419
+ },
420
+ methods: {
421
+ update(e) {
422
+ this.style = e;
423
+ }
424
+ },
425
+ computed: {
426
+ sizeNumber() {
427
+ return this.size || this.size === 0 ? parseFloat(this.size) : null;
428
+ },
429
+ minSizeNumber() {
430
+ return parseFloat(this.minSize);
431
+ },
432
+ maxSizeNumber() {
433
+ return parseFloat(this.maxSize);
434
+ }
435
+ },
436
+ watch: {
437
+ sizeNumber(e) {
438
+ this.requestUpdate({ target: this, size: e });
439
+ },
440
+ minSizeNumber(e) {
441
+ this.requestUpdate({ target: this, min: e });
442
+ },
443
+ maxSizeNumber(e) {
444
+ this.requestUpdate({ target: this, max: e });
445
+ }
446
+ }
447
+ };
448
+ function P(e, i, s, n, t, a) {
449
+ return openBlock(), createElementBlock("div", {
450
+ class: "splitpanes__pane",
451
+ onClick: i[0] || (i[0] = (r) => a.onPaneClick(r, e._.uid)),
452
+ style: normalizeStyle(e.style)
453
+ }, [
454
+ renderSlot(e.$slots, "default")
455
+ ], 4);
456
+ }
457
+ const g = /* @__PURE__ */ S(x, [["render", P]]);
458
+
459
+ /* Injected with object hook! */
460
+
461
+ const _hoisted_1 = {
462
+ class: "h-full",
463
+ flex: "~ col",
464
+ text: "gray-700 dark:gray-200"
465
+ };
466
+ const _hoisted_2 = /* @__PURE__ */ createBaseVNode("div", { class: "w-full border-b shadow flex justify-end" }, [
467
+ /* @__PURE__ */ createBaseVNode("a", {
468
+ href: "https://valaxy.site",
469
+ target: "_blank",
470
+ class: "bg-gray-100 inline-flex justify-center items-center w-8 h-8"
471
+ }, [
472
+ /* @__PURE__ */ createBaseVNode("div", { "i-ri-book-line": "" })
473
+ ])
474
+ ], -1);
475
+ const _hoisted_3 = {
476
+ style: { "height": "calc(100% - 32px)" },
477
+ overflow: "auto"
478
+ };
479
+ const _sfc_main = /* @__PURE__ */ defineComponent({
480
+ __name: "index",
481
+ setup(__props) {
482
+ onMounted(() => {
483
+ if (isStaticMode)
484
+ document.title = "Valaxy DevTools (Production)";
485
+ const $frontmatter = getWindowProperty("$frontmatter");
486
+ if ($frontmatter)
487
+ frontmatter.value = $frontmatter;
488
+ });
489
+ return (_ctx, _cache) => {
490
+ const _component_VDPostList = _sfc_main$1;
491
+ const _component_PageFrontmatter = _sfc_main$2;
492
+ return openBlock(), createElementBlock("main", _hoisted_1, [
493
+ _hoisted_2,
494
+ createBaseVNode("div", _hoisted_3, [
495
+ createVNode(unref(M), { class: "h-full" }, {
496
+ default: withCtx(() => [
497
+ createVNode(unref(g), null, {
498
+ default: withCtx(() => [
499
+ createVNode(_component_VDPostList)
500
+ ]),
501
+ _: 1
502
+ }),
503
+ createVNode(unref(g), null, {
504
+ default: withCtx(() => [
505
+ createVNode(_component_PageFrontmatter, { frontmatter: unref(frontmatter) }, null, 8, ["frontmatter"])
506
+ ]),
507
+ _: 1
508
+ })
509
+ ]),
510
+ _: 1
511
+ })
512
+ ])
513
+ ]);
514
+ };
515
+ }
516
+ });
517
+
518
+ /* Injected with object hook! */
519
+
520
+ /* Injected with object hook! */
521
+
522
+ export { _sfc_main as default };