@valaxyjs/devtools 0.20.5 → 0.20.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.
- package/dist/client/assets/{about-fwLgTlz5.js → about-QDK4xJ09.js} +1 -1
- package/dist/client/assets/{categories-BH1LT9Ew.js → categories-C0UiWMvY.js} +1 -1
- package/dist/client/assets/{index-C0sDfLZp.js → index-Cctj86vv.js} +50 -50
- package/dist/client/assets/{index-C7UY5Jwe.js → index-hLDPRB1x.js} +2 -2
- package/dist/client/assets/{migration-DZ1dFStt.js → migration-Cl3VWEhn.js} +2 -2
- package/dist/client/assets/{splitpanes.es-9Ifkhfso.js → splitpanes.es-uW9xsEpm.js} +1 -1
- package/dist/client/assets/{tags-Cp1XyAHo.js → tags-DRVSo0Hb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/src/client/App.vue +1 -1
- package/src/client/components/PageFrontmatter.vue +2 -2
- package/src/client/components/PostPanel.vue +1 -1
- package/src/client/components/VDPostList.vue +1 -1
- package/src/client/composables/app.ts +2 -2
- package/src/client/pages/migration.vue +2 -2
- package/src/client/utils/index.ts +1 -1
- package/src/client/utils/init.ts +1 -1
- package/src/client/vite.config.ts +4 -4
- package/src/node/api/index.ts +1 -1
- package/src/node/index.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
|
|
2
|
-
import { a as createElementBlock, o as openBlock } from './index-
|
|
2
|
+
import { a as createElementBlock, o as openBlock } from './index-Cctj86vv.js';
|
|
3
3
|
|
|
4
4
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
|
|
2
|
-
import { a as createElementBlock, o as openBlock } from './index-
|
|
2
|
+
import { a as createElementBlock, o as openBlock } from './index-Cctj86vv.js';
|
|
3
3
|
|
|
4
4
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-hLDPRB1x.js","./_plugin-vue_export-helper-DgDhiqFL.js","./splitpanes.es-uW9xsEpm.js","./index-BsE069b2.css","./about-QDK4xJ09.js","./categories-C0UiWMvY.js","./migration-Cl3VWEhn.js","./tags-DRVSo0Hb.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
true&&(function polyfill() {
|
|
3
3
|
const relList = document.createElement("link").relList;
|
|
4
4
|
if (relList && relList.supports && relList.supports("modulepreload")) {
|
|
@@ -8391,81 +8391,37 @@ const routes = [
|
|
|
8391
8391
|
{
|
|
8392
8392
|
path: "/",
|
|
8393
8393
|
name: "/",
|
|
8394
|
-
component: () => __vitePreload(() => import('./index-
|
|
8394
|
+
component: () => __vitePreload(() => import('./index-hLDPRB1x.js'),true?__vite__mapDeps([0,1,2,3]):void 0,import.meta.url)
|
|
8395
8395
|
/* no children */
|
|
8396
8396
|
},
|
|
8397
8397
|
{
|
|
8398
8398
|
path: "/about",
|
|
8399
8399
|
name: "/about",
|
|
8400
|
-
component: () => __vitePreload(() => import('./about-
|
|
8400
|
+
component: () => __vitePreload(() => import('./about-QDK4xJ09.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url)
|
|
8401
8401
|
/* no children */
|
|
8402
8402
|
},
|
|
8403
8403
|
{
|
|
8404
8404
|
path: "/categories",
|
|
8405
8405
|
name: "/categories",
|
|
8406
|
-
component: () => __vitePreload(() => import('./categories-
|
|
8406
|
+
component: () => __vitePreload(() => import('./categories-C0UiWMvY.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url)
|
|
8407
8407
|
/* no children */
|
|
8408
8408
|
},
|
|
8409
8409
|
{
|
|
8410
8410
|
path: "/migration",
|
|
8411
8411
|
name: "/migration",
|
|
8412
|
-
component: () => __vitePreload(() => import('./migration-
|
|
8412
|
+
component: () => __vitePreload(() => import('./migration-Cl3VWEhn.js'),true?__vite__mapDeps([6,2]):void 0,import.meta.url)
|
|
8413
8413
|
/* no children */
|
|
8414
8414
|
},
|
|
8415
8415
|
{
|
|
8416
8416
|
path: "/tags",
|
|
8417
8417
|
name: "/tags",
|
|
8418
|
-
component: () => __vitePreload(() => import('./tags-
|
|
8418
|
+
component: () => __vitePreload(() => import('./tags-DRVSo0Hb.js'),true?__vite__mapDeps([7,1]):void 0,import.meta.url)
|
|
8419
8419
|
/* no children */
|
|
8420
8420
|
}
|
|
8421
8421
|
];
|
|
8422
8422
|
|
|
8423
8423
|
/* Injected with object hook! */
|
|
8424
8424
|
|
|
8425
|
-
const devtoolsRouter = ref();
|
|
8426
|
-
const activePath = ref("");
|
|
8427
|
-
const frontmatter = ref();
|
|
8428
|
-
const pageData = ref();
|
|
8429
|
-
|
|
8430
|
-
/* Injected with object hook! */
|
|
8431
|
-
|
|
8432
|
-
function getAppWindow() {
|
|
8433
|
-
return window.parent.parent;
|
|
8434
|
-
}
|
|
8435
|
-
function getWindowProperty(property) {
|
|
8436
|
-
return window.parent.parent[property];
|
|
8437
|
-
}
|
|
8438
|
-
function getGlobalValaxyProperty(property) {
|
|
8439
|
-
const $valaxy = window.parent.parent.$valaxy;
|
|
8440
|
-
return $valaxy[property];
|
|
8441
|
-
}
|
|
8442
|
-
|
|
8443
|
-
/* Injected with object hook! */
|
|
8444
|
-
|
|
8445
|
-
function initDevtoolsClient() {
|
|
8446
|
-
const __VUE_DEVTOOLS_ROUTER__ = getWindowProperty("__VUE_DEVTOOLS_ROUTER__");
|
|
8447
|
-
devtoolsRouter.value = __VUE_DEVTOOLS_ROUTER__;
|
|
8448
|
-
devtoolsRouter.value.beforeEach((to, _from, next) => {
|
|
8449
|
-
activePath.value = to.path;
|
|
8450
|
-
next();
|
|
8451
|
-
});
|
|
8452
|
-
onMounted(() => {
|
|
8453
|
-
frontmatter.value = getWindowProperty("$frontmatter");
|
|
8454
|
-
pageData.value = getWindowProperty("$pageData");
|
|
8455
|
-
});
|
|
8456
|
-
devtoolsRouter.value.afterEach(async () => {
|
|
8457
|
-
await nextTick();
|
|
8458
|
-
frontmatter.value = getWindowProperty("$frontmatter");
|
|
8459
|
-
pageData.value = getWindowProperty("$pageData");
|
|
8460
|
-
});
|
|
8461
|
-
}
|
|
8462
|
-
|
|
8463
|
-
/* Injected with object hook! */
|
|
8464
|
-
|
|
8465
|
-
const isStaticMode = document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
|
|
8466
|
-
|
|
8467
|
-
/* Injected with object hook! */
|
|
8468
|
-
|
|
8469
8425
|
const _hoisted_1$1 = {
|
|
8470
8426
|
class: "w-full border-b shadow flex justify-end",
|
|
8471
8427
|
dark: "border-b-black",
|
|
@@ -8536,6 +8492,50 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
8536
8492
|
|
|
8537
8493
|
/* Injected with object hook! */
|
|
8538
8494
|
|
|
8495
|
+
function getAppWindow() {
|
|
8496
|
+
return window.parent.parent;
|
|
8497
|
+
}
|
|
8498
|
+
function getWindowProperty(property) {
|
|
8499
|
+
return window.parent.parent[property];
|
|
8500
|
+
}
|
|
8501
|
+
function getGlobalValaxyProperty(property) {
|
|
8502
|
+
const $valaxy = window.parent.parent.$valaxy;
|
|
8503
|
+
return $valaxy[property];
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
/* Injected with object hook! */
|
|
8507
|
+
|
|
8508
|
+
const devtoolsRouter = ref();
|
|
8509
|
+
const activePath = ref("");
|
|
8510
|
+
const frontmatter = ref();
|
|
8511
|
+
const pageData = ref();
|
|
8512
|
+
|
|
8513
|
+
/* Injected with object hook! */
|
|
8514
|
+
|
|
8515
|
+
function initDevtoolsClient() {
|
|
8516
|
+
const __VUE_DEVTOOLS_ROUTER__ = getWindowProperty("__VUE_DEVTOOLS_ROUTER__");
|
|
8517
|
+
devtoolsRouter.value = __VUE_DEVTOOLS_ROUTER__;
|
|
8518
|
+
devtoolsRouter.value.beforeEach((to, _from, next) => {
|
|
8519
|
+
activePath.value = to.path;
|
|
8520
|
+
next();
|
|
8521
|
+
});
|
|
8522
|
+
onMounted(() => {
|
|
8523
|
+
frontmatter.value = getWindowProperty("$frontmatter");
|
|
8524
|
+
pageData.value = getWindowProperty("$pageData");
|
|
8525
|
+
});
|
|
8526
|
+
devtoolsRouter.value.afterEach(async () => {
|
|
8527
|
+
await nextTick();
|
|
8528
|
+
frontmatter.value = getWindowProperty("$frontmatter");
|
|
8529
|
+
pageData.value = getWindowProperty("$pageData");
|
|
8530
|
+
});
|
|
8531
|
+
}
|
|
8532
|
+
|
|
8533
|
+
/* Injected with object hook! */
|
|
8534
|
+
|
|
8535
|
+
const isStaticMode = document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
|
|
8536
|
+
|
|
8537
|
+
/* Injected with object hook! */
|
|
8538
|
+
|
|
8539
8539
|
const _hoisted_1 = {
|
|
8540
8540
|
class: "h-full",
|
|
8541
8541
|
flex: "~ col",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 isStaticMode } from './index-
|
|
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 isStaticMode } from './index-Cctj86vv.js';
|
|
2
2
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
|
|
3
|
-
import { a as axios, g, M } from './splitpanes.es-
|
|
3
|
+
import { a as axios, g, M } from './splitpanes.es-uW9xsEpm.js';
|
|
4
4
|
|
|
5
5
|
const target = getAppWindow();
|
|
6
6
|
function openInEditor(options = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, e as ref, f as onMounted, x as getGlobalValaxyProperty, o as openBlock, j as createBlock, w as withCtx, u as unref, m as createVNode, h as createBaseVNode, a as createElementBlock, k as renderList, F as Fragment, B as withDirectives, C as vModelCheckbox, t as toDisplayString, D as vModelText } from './index-
|
|
2
|
-
import { g, M, a as axios } from './splitpanes.es-
|
|
1
|
+
import { d as defineComponent, e as ref, f as onMounted, x as getGlobalValaxyProperty, o as openBlock, j as createBlock, w as withCtx, u as unref, m as createVNode, h as createBaseVNode, a as createElementBlock, k as renderList, F as Fragment, B as withDirectives, C as vModelCheckbox, t as toDisplayString, D as vModelText } from './index-Cctj86vv.js';
|
|
2
|
+
import { g, M, a as axios } from './splitpanes.es-uW9xsEpm.js';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
class: "h-full",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as h, o as openBlock, a as createElementBlock, r as renderSlot, G as normalizeStyle } from './index-
|
|
1
|
+
import { E as h, o as openBlock, a as createElementBlock, r as renderSlot, G as normalizeStyle } from './index-Cctj86vv.js';
|
|
2
2
|
|
|
3
3
|
function bind(fn, thisArg) {
|
|
4
4
|
return function wrap() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _export_sfc } from './_plugin-vue_export-helper-DgDhiqFL.js';
|
|
2
|
-
import { a as createElementBlock, o as openBlock } from './index-
|
|
2
|
+
import { a as createElementBlock, o as openBlock } from './index-Cctj86vv.js';
|
|
3
3
|
|
|
4
4
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
5
5
|
|
package/dist/client/index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
document.documentElement.classList.toggle('dark', true)
|
|
17
17
|
})()
|
|
18
18
|
</script>
|
|
19
|
-
<script type="module" crossorigin src="./assets/index-
|
|
19
|
+
<script type="module" crossorigin src="./assets/index-Cctj86vv.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="./assets/index-CGiiZwdq.css">
|
|
21
21
|
</head>
|
|
22
22
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const httpProxyMiddleware = require('http-proxy-middleware');
|
|
3
4
|
const c = require('picocolors');
|
|
4
5
|
const sirv = require('sirv');
|
|
5
|
-
const httpProxyMiddleware = require('http-proxy-middleware');
|
|
6
6
|
const node_path = require('node:path');
|
|
7
7
|
const node_url = require('node:url');
|
|
8
8
|
const bodyParser = require('body-parser');
|
|
9
|
+
const fs = require('fs-extra');
|
|
9
10
|
const matter = require('gray-matter');
|
|
10
11
|
const jsYaml = require('js-yaml');
|
|
11
|
-
const fs = require('fs-extra');
|
|
12
12
|
|
|
13
13
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
14
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
@@ -16,8 +16,8 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
const c__default = /*#__PURE__*/_interopDefaultCompat(c);
|
|
17
17
|
const sirv__default = /*#__PURE__*/_interopDefaultCompat(sirv);
|
|
18
18
|
const bodyParser__default = /*#__PURE__*/_interopDefaultCompat(bodyParser);
|
|
19
|
-
const matter__default = /*#__PURE__*/_interopDefaultCompat(matter);
|
|
20
19
|
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
20
|
+
const matter__default = /*#__PURE__*/_interopDefaultCompat(matter);
|
|
21
21
|
|
|
22
22
|
const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
|
|
23
23
|
const DEVTOOLS_CLIENT_FOLDER = node_path.resolve(DIR_DIST, "../dist/client");
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
1
2
|
import c from 'picocolors';
|
|
2
3
|
import sirv from 'sirv';
|
|
3
|
-
import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
4
4
|
import { dirname, resolve } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
import bodyParser from 'body-parser';
|
|
7
|
+
import fs from 'fs-extra';
|
|
7
8
|
import matter from 'gray-matter';
|
|
8
9
|
import { JSON_SCHEMA } from 'js-yaml';
|
|
9
|
-
import fs from 'fs-extra';
|
|
10
10
|
|
|
11
11
|
const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
12
12
|
const DEVTOOLS_CLIENT_FOLDER = resolve(DIR_DIST, "../dist/client");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valaxyjs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/YunYouJun/valaxy"
|
|
7
7
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typescript": "^5.7.2",
|
|
36
36
|
"unbuild": "^2.0.0",
|
|
37
37
|
"unplugin-vue-router": "^0.10.8",
|
|
38
|
-
"vite": "^6.0.
|
|
38
|
+
"vite": "^6.0.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rimraf dist && run-s build:*",
|
package/src/client/App.vue
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { ref, toRaw } from 'vue'
|
|
3
2
|
import type { PostFrontMatter } from 'valaxy'
|
|
4
|
-
|
|
5
3
|
import axios from 'axios'
|
|
4
|
+
|
|
6
5
|
import consola from 'consola'
|
|
6
|
+
import { ref, toRaw } from 'vue'
|
|
7
7
|
import { pageData } from '../composables/app'
|
|
8
8
|
|
|
9
9
|
const props = defineProps<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { onMounted, ref } from 'vue'
|
|
3
|
-
import { Pane, Splitpanes } from 'splitpanes'
|
|
4
2
|
import axios from 'axios'
|
|
3
|
+
import { Pane, Splitpanes } from 'splitpanes'
|
|
4
|
+
import { onMounted, ref } from 'vue'
|
|
5
5
|
import { getGlobalValaxyProperty } from '../utils'
|
|
6
6
|
|
|
7
7
|
interface frontmatter {
|
package/src/client/utils/init.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { join, resolve } from 'node:path'
|
|
2
|
-
import {
|
|
2
|
+
import { componentsDir } from '@advjs/gui/node'
|
|
3
3
|
import Vue from '@vitejs/plugin-vue'
|
|
4
|
-
import VueRouter from 'unplugin-vue-router/vite'
|
|
5
|
-
import VueComponents from 'unplugin-vue-components/vite'
|
|
6
4
|
import Unocss from 'unocss/vite'
|
|
7
|
-
import
|
|
5
|
+
import VueComponents from 'unplugin-vue-components/vite'
|
|
6
|
+
import VueRouter from 'unplugin-vue-router/vite'
|
|
7
|
+
import { defineConfig } from 'vite'
|
|
8
8
|
import { unoConfig } from '../../../../uno.config'
|
|
9
9
|
|
|
10
10
|
export default defineConfig({
|
package/src/node/api/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ResolvedConfig, ViteDevServer } from 'vite'
|
|
2
2
|
import bodyParser from 'body-parser'
|
|
3
3
|
|
|
4
|
+
import fs from 'fs-extra'
|
|
4
5
|
import matter from 'gray-matter'
|
|
5
6
|
import { JSON_SCHEMA } from 'js-yaml'
|
|
6
|
-
import fs from 'fs-extra'
|
|
7
7
|
|
|
8
8
|
const prefix = '/valaxy-devtools-api'
|
|
9
9
|
|
package/src/node/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Plugin, ResolvedConfig, ViteDevServer } from 'vite'
|
|
2
|
+
import type { ValaxyDevtoolsOptions } from './types'
|
|
3
|
+
import { createProxyMiddleware } from 'http-proxy-middleware'
|
|
2
4
|
import c from 'picocolors'
|
|
3
5
|
import sirv from 'sirv'
|
|
4
|
-
import { createProxyMiddleware } from 'http-proxy-middleware'
|
|
5
6
|
import { DIR_CLIENT } from '../dir'
|
|
6
|
-
import type { ValaxyDevtoolsOptions } from './types'
|
|
7
7
|
import { registerApi } from './api'
|
|
8
8
|
|
|
9
9
|
const NAME = 'valaxy:devtools'
|