@vitejs/devtools 0.1.0 → 0.1.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/dist/DockIcon-BtMEW4VE.js +97 -0
- package/dist/{DockStandalone-Dd6Dcd5B.js → DockStandalone-BVlum9C_.js} +4 -8
- package/dist/{LogItem-CfTxUV6A.js → LogItem-BTrEubKY.js} +2 -1
- package/dist/{ToastOverlay-BVErqkif.js → ToastOverlay-BYqNPsVN.js} +42 -23
- package/dist/{ViewBuiltinLogs-DQLxnQ1c.js → ViewBuiltinLogs-BL373XPJ.js} +3 -2
- package/dist/{ViewBuiltinTerminals-B83FB-cT.js → ViewBuiltinTerminals-DdpE1Ftb.js} +4 -2
- package/dist/ViewJsonRender-coidkW9b.js +6835 -0
- package/dist/{cli-commands-DRp01A04.js → cli-commands-BDDMPsV-.js} +5 -3
- package/dist/cli-commands.js +2 -2
- package/dist/cli.js +2 -2
- package/dist/client/inject.js +3 -6
- package/dist/client/standalone/assets/DockStandalone-Bxu-C-j2.js +1 -0
- package/dist/client/standalone/assets/LogItem-CKbVrExA.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-9oWDdl1G.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-Dkd5qdlN.js → ViewBuiltinTerminals-Ddb8owMl.js} +2 -2
- package/dist/client/standalone/assets/ViewJsonRender-CKPzRgqQ.js +43 -0
- package/dist/client/standalone/assets/dist-JpCJ4ieR.js +1 -0
- package/dist/client/standalone/assets/iconify-C-CPDXMf.js +2 -0
- package/dist/client/standalone/assets/index-BOLMv7zA.css +1 -0
- package/dist/client/standalone/assets/index-Dx34o0Zb.js +3 -0
- package/dist/client/standalone/assets/runtime-core.esm-bundler-oO31W4LZ.js +1 -0
- package/dist/client/standalone/index.html +6 -4
- package/dist/client/webcomponents.js +7 -9
- package/dist/config.js +1 -1
- package/dist/dist-Cgqg5_oP.js +1113 -0
- package/dist/{DockIcon-Jbdv1CYn.js → iconify-YyqAMHKf.js} +1 -96
- package/dist/index.js +1 -1
- package/dist/{plugins-6tW2SoNv.js → plugins-CsDUv5C2.js} +23 -10
- package/dist/{popup-EDv_a9nQ.js → popup-CU4L49wm.js} +8 -10
- package/dist/utils-Csuu5uNf.js +10 -0
- package/dist/{dist-3NIYLDlS.js → vue.runtime.esm-bundler-D2MZbyFr.js} +74 -1185
- package/package.json +9 -6
- package/dist/client/standalone/assets/DockStandalone-B8W-HO8N.js +0 -1
- package/dist/client/standalone/assets/LogItem-B-ayIBi6.js +0 -1
- package/dist/client/standalone/assets/ViewBuiltinLogs-B8M7lPbt.js +0 -1
- package/dist/client/standalone/assets/dist-ZC9UAo6H.js +0 -1
- package/dist/client/standalone/assets/index-6F2y1lxr.css +0 -1
- package/dist/client/standalone/assets/index-odNIfapG.js +0 -4
- package/dist/utils--qjmgani.js +0 -6
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { C as createElementBlock, E as createVNode, N as openBlock, O as defineComponent, R as watchEffect, U as ref, _ as Fragment, w as createStaticVNode, x as createBlock, y as computed } from "./dist-3NIYLDlS.js";
|
|
2
1
|
//#region ../../node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
|
|
3
2
|
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
4
3
|
const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object;
|
|
@@ -1623,98 +1622,4 @@ async function getIconifySvg(collection, icon) {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
}
|
|
1625
1624
|
//#endregion
|
|
1626
|
-
|
|
1627
|
-
const _hoisted_1$2 = ["innerHTML"];
|
|
1628
|
-
const _hoisted_2 = ["src"];
|
|
1629
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1630
|
-
__name: "IconifyIcon",
|
|
1631
|
-
props: { icon: {} },
|
|
1632
|
-
setup(__props) {
|
|
1633
|
-
const props = __props;
|
|
1634
|
-
const isUrlIcon = computed(() => props.icon.includes("/") || props.icon.startsWith("data:") || props.icon.startsWith("builtin:"));
|
|
1635
|
-
const iconifyParsed = computed(() => {
|
|
1636
|
-
if (isUrlIcon.value) return void 0;
|
|
1637
|
-
const match = props.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/);
|
|
1638
|
-
if (!match) return void 0;
|
|
1639
|
-
return {
|
|
1640
|
-
collection: match[1],
|
|
1641
|
-
icon: match[2]
|
|
1642
|
-
};
|
|
1643
|
-
});
|
|
1644
|
-
const iconifyLoaded = ref(void 0);
|
|
1645
|
-
watchEffect(async () => {
|
|
1646
|
-
if (!iconifyParsed.value) {
|
|
1647
|
-
iconifyLoaded.value = void 0;
|
|
1648
|
-
return;
|
|
1649
|
-
}
|
|
1650
|
-
iconifyLoaded.value = await getIconifySvg(iconifyParsed.value.collection, iconifyParsed.value.icon);
|
|
1651
|
-
});
|
|
1652
|
-
return (_ctx, _cache) => {
|
|
1653
|
-
return iconifyParsed.value ? (openBlock(), createElementBlock("div", {
|
|
1654
|
-
key: 0,
|
|
1655
|
-
innerHTML: iconifyLoaded.value
|
|
1656
|
-
}, null, 8, _hoisted_1$2)) : (openBlock(), createElementBlock("img", {
|
|
1657
|
-
key: 1,
|
|
1658
|
-
src: __props.icon,
|
|
1659
|
-
class: "w-full h-full m-auto",
|
|
1660
|
-
draggable: "false"
|
|
1661
|
-
}, null, 8, _hoisted_2));
|
|
1662
|
-
};
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
//#endregion
|
|
1666
|
-
//#region \0/plugin-vue/export-helper
|
|
1667
|
-
var export_helper_default = (sfc, props) => {
|
|
1668
|
-
const target = sfc.__vccOpts || sfc;
|
|
1669
|
-
for (const [key, val] of props) target[key] = val;
|
|
1670
|
-
return target;
|
|
1671
|
-
};
|
|
1672
|
-
//#endregion
|
|
1673
|
-
//#region src/client/webcomponents/components/icons/VitePlusCore.vue
|
|
1674
|
-
const _sfc_main$1 = {};
|
|
1675
|
-
const _hoisted_1$1 = {
|
|
1676
|
-
viewBox: "0 0 22 22",
|
|
1677
|
-
fill: "none",
|
|
1678
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1679
|
-
};
|
|
1680
|
-
function _sfc_render(_ctx, _cache) {
|
|
1681
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createStaticVNode("<g clip-path=\"url(#clip0_2_2)\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#6254FE\"></path><mask id=\"mask0_2_2\" style=\"mask-type:alpha;\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"1\" width=\"22\" height=\"20\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#833BFF\"></path></mask><g mask=\"url(#mask0_2_2)\"><g filter=\"url(#filter0_f_2_2)\"><path d=\"M11.4271 17.1119C11.4313 18.412 8.62134 19.475 5.1508 19.4863C1.68026 19.4975 -1.13659 18.4528 -1.14081 17.1527C-1.14503 15.8526 1.66497 14.7896 5.13551 14.7783C8.60605 14.767 11.4229 15.8118 11.4271 17.1119Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter1_f_2_2)\"><path d=\"M9.48364 9.06048C9.49161 11.5148 3.78614 13.523 -3.25987 13.5459C-10.3059 13.5688 -16.0243 11.5977 -16.0322 9.14332C-16.0402 6.68898 -10.3347 4.6808 -3.28872 4.65792C3.75729 4.63505 9.47567 6.60614 9.48364 9.06048Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter2_f_2_2)\"><path d=\"M9.53104 8.43813C9.53526 9.7382 3.70543 10.8111 -3.49025 10.8344C-10.6859 10.8578 -16.5226 9.82279 -16.5268 8.52272C-16.531 7.22265 -10.7012 6.1498 -3.50554 6.12644C3.69014 6.10308 9.52682 7.13806 9.53104 8.43813Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter3_f_2_2)\"><path d=\"M11.5916 16.1293C11.5958 17.4293 5.74448 18.5022 -1.47775 18.5256C-8.69997 18.549 -14.5582 17.5141 -14.5624 16.214C-14.5666 14.9139 -8.71523 13.841 -1.493 13.8176C5.72923 13.7942 11.5874 14.8292 11.5916 16.1293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter4_f_2_2)\"><path d=\"M12.2473 16.6206C12.2515 17.9206 6.40021 18.9935 -0.821978 19.017C-8.04417 19.0404 -13.9023 18.0055 -13.9066 16.7055C-13.9108 15.4054 -8.05945 14.3325 -0.837261 14.309C6.38493 14.2856 12.2431 15.3205 12.2473 16.6206Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter5_f_2_2)\"><path d=\"M14.047 5.7039C14.2411 2.38813 18.6158 -0.0529585 23.8183 0.251568C29.0207 0.556095 33.0808 3.49092 32.8867 6.80669C32.6926 10.1225 28.3179 12.5635 23.1154 12.259C17.913 11.9545 13.8529 9.01966 14.047 5.7039Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter6_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter7_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter8_f_2_2)\"><path d=\"M-6.98848 14.7616C-6.18615 15.4233 -1.99229 11.6626 2.37876 6.362C6.74982 1.06138 9.64283 -3.77199 8.84049 -4.43362C8.03816 -5.09525 3.8443 -1.3346 -0.526755 3.96602C-4.89781 9.26665 -7.79082 14.1 -6.98848 14.7616Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter9_f_2_2)\"><path d=\"M13.4305 8.5449C14.2512 9.18361 18.3372 5.30605 22.5568 -0.115883C26.7764 -5.53781 29.5318 -10.4509 28.7111 -11.0896C27.8904 -11.7284 23.8044 -7.8508 19.5848 -2.42887C15.3651 2.99306 12.6098 7.90619 13.4305 8.5449Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter10_f_2_2)\"><path d=\"M14.9501 9.73878C16.4926 10.9392 19.2111 10.026 21.0221 7.69897C22.8331 5.37198 23.0507 2.51245 21.5083 1.31202C19.9658 0.111596 17.2473 1.02485 15.4363 3.35184C13.6253 5.67882 13.4077 8.53835 14.9501 9.73878Z\" fill=\"#2BFDD2\"></path></g><g filter=\"url(#filter11_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter12_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter13_f_2_2)\"><path d=\"M8.26366 23.8563C9.13579 24.535 13.2635 20.6899 17.4831 15.268C21.7028 9.84604 24.4165 4.90047 23.5443 4.22173C22.6722 3.54299 18.5445 7.38811 14.3249 12.81C10.1052 18.232 7.39153 23.1775 8.26366 23.8563Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter14_f_2_2)\"><path d=\"M12.2866 22.5389C13.7846 23.7047 17.4746 21.4689 20.5284 17.5449C23.5822 13.621 24.8434 9.49495 23.3454 8.32912C21.8474 7.16329 18.1574 9.39917 15.1036 13.3231C12.0498 17.247 10.7886 21.3731 12.2866 22.5389Z\" fill=\"#2BFDD2\"></path></g></g></g><defs><filter id=\"filter0_f_2_2\" x=\"-7.68682\" y=\"8.2322\" width=\"25.6599\" height=\"17.8002\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter1_f_2_2\" x=\"-22.5782\" y=\"-1.88827\" width=\"38.6079\" height=\"21.9804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter2_f_2_2\" x=\"-20.4548\" y=\"2.19805\" width=\"33.9139\" height=\"12.5647\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter3_f_2_2\" x=\"-18.4904\" y=\"9.88925\" width=\"34.01\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter4_f_2_2\" x=\"-17.8346\" y=\"10.3806\" width=\"34.0099\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter5_f_2_2\" x=\"7.4943\" y=\"-6.32009\" width=\"31.9451\" height=\"25.1508\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter6_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter7_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter8_f_2_2\" x=\"-11.0501\" y=\"-8.43711\" width=\"23.9523\" height=\"27.2022\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter9_f_2_2\" x=\"9.35783\" y=\"-15.0865\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter10_f_2_2\" x=\"9.99386\" y=\"-3.14457\" width=\"16.4707\" height=\"17.3399\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter11_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter12_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter13_f_2_2\" x=\"4.17262\" y=\"0.216058\" width=\"23.4628\" height=\"27.6459\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter14_f_2_2\" x=\"7.72776\" y=\"4.09222\" width=\"20.1765\" height=\"22.6836\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><clipPath id=\"clip0_2_2\"><rect width=\"22\" height=\"22\" fill=\"white\"></rect></clipPath></defs>", 2)])]);
|
|
1682
|
-
}
|
|
1683
|
-
var VitePlusCore_default = /* @__PURE__ */ export_helper_default(_sfc_main$1, [["render", _sfc_render]]);
|
|
1684
|
-
//#endregion
|
|
1685
|
-
//#region src/client/webcomponents/components/DockIcon.vue
|
|
1686
|
-
const _hoisted_1 = { key: 1 };
|
|
1687
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1688
|
-
__name: "DockIcon",
|
|
1689
|
-
props: {
|
|
1690
|
-
icon: {},
|
|
1691
|
-
title: {}
|
|
1692
|
-
},
|
|
1693
|
-
setup(__props) {
|
|
1694
|
-
const props = __props;
|
|
1695
|
-
const icon = computed(() => {
|
|
1696
|
-
if (typeof props.icon === "string") return {
|
|
1697
|
-
dark: props.icon,
|
|
1698
|
-
light: props.icon
|
|
1699
|
-
};
|
|
1700
|
-
return props.icon;
|
|
1701
|
-
});
|
|
1702
|
-
return (_ctx, _cache) => {
|
|
1703
|
-
return icon.value.light === "builtin:vite-plus-core" ? (openBlock(), createBlock(VitePlusCore_default, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [icon.value.light === icon.value.dark ? (openBlock(), createBlock(_sfc_main$2, {
|
|
1704
|
-
key: 0,
|
|
1705
|
-
icon: icon.value.light,
|
|
1706
|
-
title: __props.title
|
|
1707
|
-
}, null, 8, ["icon", "title"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$2, {
|
|
1708
|
-
class: "dark-hidden",
|
|
1709
|
-
icon: icon.value.light,
|
|
1710
|
-
title: __props.title
|
|
1711
|
-
}, null, 8, ["icon", "title"]), createVNode(_sfc_main$2, {
|
|
1712
|
-
class: "light-hidden",
|
|
1713
|
-
icon: icon.value.dark,
|
|
1714
|
-
title: __props.title
|
|
1715
|
-
}, null, 8, ["icon", "title"])], 64))]));
|
|
1716
|
-
};
|
|
1717
|
-
}
|
|
1718
|
-
});
|
|
1719
|
-
//#endregion
|
|
1720
|
-
export { VitePlusCore_default as n, export_helper_default as r, _sfc_main as t };
|
|
1625
|
+
export { getIconifySvg as t };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createDevToolsContext, r as createDevToolsMiddleware, t as DevTools } from "./plugins-
|
|
1
|
+
import { a as createDevToolsContext, r as createDevToolsMiddleware, t as DevTools } from "./plugins-CsDUv5C2.js";
|
|
2
2
|
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as isObject } from "./utils
|
|
1
|
+
import { t as isObject } from "./utils-Csuu5uNf.js";
|
|
2
2
|
import { dirClientStandalone, dirDist } from "./dirs.js";
|
|
3
3
|
import { createDebug } from "obug";
|
|
4
4
|
import { debounce } from "perfect-debounce";
|
|
@@ -19,11 +19,11 @@ import ot from "node:readline";
|
|
|
19
19
|
import "node:tty";
|
|
20
20
|
import { join as join$1 } from "node:path";
|
|
21
21
|
import { defineRpcFunction } from "@vitejs/devtools-kit";
|
|
22
|
+
import { createServer } from "node:net";
|
|
22
23
|
import { createApp, eventHandler, fromNodeMiddleware, toNodeListener } from "h3";
|
|
23
24
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
24
25
|
import { createWsRpcPreset } from "@vitejs/devtools-rpc/presets/ws/server";
|
|
25
26
|
import { createRpcServer } from "@vitejs/devtools-rpc/server";
|
|
26
|
-
import { createServer } from "node:net";
|
|
27
27
|
import { networkInterfaces } from "node:os";
|
|
28
28
|
import "node:fs/promises";
|
|
29
29
|
//#region \0rolldown/runtime.js
|
|
@@ -121,13 +121,6 @@ var DevToolsDockHost = class {
|
|
|
121
121
|
return size > 0 ? String(size) : void 0;
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
{
|
|
125
|
-
type: "~builtin",
|
|
126
|
-
id: "~popup",
|
|
127
|
-
title: "Popup",
|
|
128
|
-
category: "~builtin",
|
|
129
|
-
icon: "ph:arrow-square-out-duotone"
|
|
130
|
-
},
|
|
131
124
|
{
|
|
132
125
|
type: "~builtin",
|
|
133
126
|
id: "~settings",
|
|
@@ -1658,7 +1651,8 @@ async function createDevToolsContext(viteConfig, viteServer) {
|
|
|
1658
1651
|
views: void 0,
|
|
1659
1652
|
utils: ContextUtils,
|
|
1660
1653
|
terminals: void 0,
|
|
1661
|
-
logs: void 0
|
|
1654
|
+
logs: void 0,
|
|
1655
|
+
createJsonRenderer: void 0
|
|
1662
1656
|
};
|
|
1663
1657
|
const rpcHost = new RpcFunctionsHost(context);
|
|
1664
1658
|
const docksHost = new DevToolsDockHost(context);
|
|
@@ -1670,6 +1664,25 @@ async function createDevToolsContext(viteConfig, viteServer) {
|
|
|
1670
1664
|
context.views = viewsHost;
|
|
1671
1665
|
context.terminals = terminalsHost;
|
|
1672
1666
|
context.logs = logsHost;
|
|
1667
|
+
let jrCounter = 0;
|
|
1668
|
+
context.createJsonRenderer = (initialSpec) => {
|
|
1669
|
+
const stateKey = `__jr:${jrCounter++}`;
|
|
1670
|
+
const statePromise = rpcHost.sharedState.get(stateKey, { initialValue: initialSpec });
|
|
1671
|
+
return {
|
|
1672
|
+
_stateKey: stateKey,
|
|
1673
|
+
async updateSpec(spec) {
|
|
1674
|
+
(await statePromise).mutate(() => spec);
|
|
1675
|
+
},
|
|
1676
|
+
async updateState(newState) {
|
|
1677
|
+
(await statePromise).mutate((draft) => {
|
|
1678
|
+
draft.state = {
|
|
1679
|
+
...draft.state,
|
|
1680
|
+
...newState
|
|
1681
|
+
};
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1673
1686
|
for (const fn of builtinRpcDeclarations) rpcHost.register(fn);
|
|
1674
1687
|
await docksHost.init();
|
|
1675
1688
|
const docksSharedState = await rpcHost.sharedState.get("devtoolskit:internal:docks", { initialValue: [] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as shallowRef, M as watch, V as reactive, z as markRaw } from "./vue.runtime.esm-bundler-D2MZbyFr.js";
|
|
2
2
|
import { createEventEmitter } from "@vitejs/devtools-kit/utils/events";
|
|
3
3
|
//#region src/client/webcomponents/constants.ts
|
|
4
4
|
const BUILTIN_ENTRY_CLIENT_AUTH_NOTICE = Object.freeze({
|
|
@@ -153,7 +153,6 @@ const PANEL_MIN_SIZE = 20;
|
|
|
153
153
|
const PANEL_MAX_SIZE = 100;
|
|
154
154
|
const POPUP_MIN_WIDTH = 320;
|
|
155
155
|
const POPUP_MIN_HEIGHT = 240;
|
|
156
|
-
const POPUP_DOCK_ID = "~popup";
|
|
157
156
|
const MAIN_FRAME_ACTION_HANDLER_KEY = "__VITE_DEVTOOLS_TRIGGER_DOCK_ACTION__";
|
|
158
157
|
const popupWindow = shallowRef(null);
|
|
159
158
|
const isPopupOpen = shallowRef(false);
|
|
@@ -161,8 +160,9 @@ const popupEvents = createEventEmitter();
|
|
|
161
160
|
let detachPopupListeners;
|
|
162
161
|
let detachColorModeSync;
|
|
163
162
|
let popupDockElement;
|
|
163
|
+
let popupContext;
|
|
164
164
|
let loadDockStandalone = async () => {
|
|
165
|
-
return await import("./DockStandalone-
|
|
165
|
+
return await import("./DockStandalone-BVlum9C_.js").then((m) => m.DockStandalone);
|
|
166
166
|
};
|
|
167
167
|
popupEvents.on("popup:open-requested", (context) => {
|
|
168
168
|
openDockPopup(context);
|
|
@@ -236,6 +236,9 @@ function clearPopupState() {
|
|
|
236
236
|
unmountPopupElement();
|
|
237
237
|
popupWindow.value = null;
|
|
238
238
|
isPopupOpen.value = false;
|
|
239
|
+
const ctx = popupContext;
|
|
240
|
+
popupContext = void 0;
|
|
241
|
+
ctx?.docks.switchEntry(null);
|
|
239
242
|
}
|
|
240
243
|
function clamp(value, min, max) {
|
|
241
244
|
return Math.min(Math.max(value, min), max);
|
|
@@ -298,12 +301,6 @@ async function triggerMainFrameDockAction(clientType, entryId) {
|
|
|
298
301
|
return;
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
|
-
function isDockPopupEntryVisible(clientType) {
|
|
302
|
-
return isDockPopupSupported() && !isPopupOpen.value && clientType !== "standalone";
|
|
303
|
-
}
|
|
304
|
-
function filterPopupDockEntry(groups) {
|
|
305
|
-
return groups.map(([category, entries]) => [category, entries.filter((entry) => entry.id !== POPUP_DOCK_ID)]).filter(([, entries]) => entries.length > 0);
|
|
306
|
-
}
|
|
307
304
|
function useIsDockPopupOpen() {
|
|
308
305
|
return isPopupOpen;
|
|
309
306
|
}
|
|
@@ -345,6 +342,7 @@ async function openDockPopup(context) {
|
|
|
345
342
|
popup.removeEventListener("resize", onResize);
|
|
346
343
|
popup.removeEventListener("pagehide", onPageHide);
|
|
347
344
|
};
|
|
345
|
+
popupContext = context;
|
|
348
346
|
popupWindow.value = popup;
|
|
349
347
|
isPopupOpen.value = true;
|
|
350
348
|
return popup;
|
|
@@ -355,4 +353,4 @@ async function openDockPopup(context) {
|
|
|
355
353
|
}
|
|
356
354
|
}
|
|
357
355
|
//#endregion
|
|
358
|
-
export {
|
|
356
|
+
export { docksGroupByCategories as _, triggerMainFrameDockAction as a, BUILTIN_ENTRY_CLIENT_AUTH_NOTICE as b, setDocksOverflowPanel as c, useDocksOverflowPanel as d, useFloatingTooltip as f, useDocksEntries as g, sharedStateToRef as h, requestDockPopupOpen as i, setFloatingTooltip as l, createDockEntryState as m, isDockPopupSupported as n, useIsDockPopupOpen as o, DEFAULT_DOCK_PANEL_STORE as p, registerMainFrameDockActionHandler as r, setDockContextMenu as s, closeDockPopup as t, useDockContextMenu as u, docksSplitGroupsWithCapacity as v, BUILTIN_ENTRIES as y };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isIP } from "node:net";
|
|
2
|
+
//#region src/node/utils.ts
|
|
3
|
+
function isObject(value) {
|
|
4
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
5
|
+
}
|
|
6
|
+
function normalizeHttpServerUrl(host, port) {
|
|
7
|
+
return `http://${host === "127.0.0.1" ? "localhost" : isIP(host) === 6 ? `[${host}]` : host}:${port}`;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { normalizeHttpServerUrl as n, isObject as t };
|