@qwik.dev/devtools 0.2.7 → 0.2.8
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,18 +1,25 @@
|
|
|
1
1
|
import { inspectorLink } from "./constant.qwik.mjs";
|
|
2
2
|
import { setupIframeThemeSync } from "./iframe-theme.qwik.mjs";
|
|
3
|
-
import { _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
3
|
+
import { _jsxSorted, componentQrl, inlinedQrl, isBrowser } from "@qwik.dev/core";
|
|
4
4
|
//#region src/features/inspect/Inspect.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Inspect iframe must load under app root (Vite `BASE_URL` + origin), not `location.pathname`,
|
|
7
|
+
* so deep routes do not produce `.../nested/route__inspect/`.
|
|
8
|
+
* SSR: no `location` — return empty until the client runs.
|
|
9
|
+
*/ function getInspectIframeSrc() {
|
|
10
|
+
if (!isBrowser) return "";
|
|
11
|
+
const base = new URL("/", location.origin);
|
|
12
|
+
return new URL(inspectorLink, base).href;
|
|
13
|
+
}
|
|
5
14
|
var Inspect = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
|
-
return /* @__PURE__ */ _jsxSorted("div", null, { class: "h-full w-full flex-1 overflow-hidden rounded-2xl border border-glass-border bg-card-item-bg" }, /* @__PURE__ */ _jsxSorted("iframe", {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
src: `${location.href}${inspectorLink}`
|
|
15
|
-
}, {
|
|
15
|
+
return /* @__PURE__ */ _jsxSorted("div", null, { class: "h-full w-full flex-1 overflow-hidden rounded-2xl border border-glass-border bg-card-item-bg" }, /* @__PURE__ */ _jsxSorted("iframe", { "q-e:load": /* @__PURE__ */ inlinedQrl((_, el) => {
|
|
16
|
+
try {
|
|
17
|
+
setupIframeThemeSync(el);
|
|
18
|
+
} catch (err) {
|
|
19
|
+
console.error("Failed to inject theme into inspect iframe:", err);
|
|
20
|
+
}
|
|
21
|
+
}, "Inspect_component_div_iframe_q_e_load_dBYi9MiDVFM") }, {
|
|
22
|
+
src: getInspectIframeSrc(),
|
|
16
23
|
width: "100%",
|
|
17
24
|
height: "100%",
|
|
18
25
|
id: "inspect_qwik",
|
|
@@ -13,9 +13,9 @@ var GLASSMORPHISM_CSS = `
|
|
|
13
13
|
--c-bg-base: transparent !important;
|
|
14
14
|
--c-bg-nav: transparent !important;
|
|
15
15
|
--c-bg-active: transparent !important;
|
|
16
|
-
--iframe-border: rgba(
|
|
17
|
-
--iframe-hover: rgba(
|
|
18
|
-
color-scheme:
|
|
16
|
+
--iframe-border: rgba(0, 0, 0, 0.1) !important;
|
|
17
|
+
--iframe-hover: rgba(0, 0, 0, 0.04) !important;
|
|
18
|
+
color-scheme: light;
|
|
19
19
|
}
|
|
20
20
|
/* 仅针对主视图容器做透明处理,不再暴力让所有 div/section 变透明 */
|
|
21
21
|
html, body, #app, main, header, nav, footer { background-color: transparent !important; }
|
package/dist/ui/q-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1",
|
|
3
|
-
"manifestHash": "
|
|
3
|
+
"manifestHash": "ufxnom",
|
|
4
4
|
"options": {
|
|
5
5
|
"target": "lib",
|
|
6
6
|
"buildMode": "development",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
},
|
|
232
232
|
"../devtools.qwik.mjs": {
|
|
233
233
|
"size": 10276,
|
|
234
|
-
"total":
|
|
234
|
+
"total": 3639856,
|
|
235
235
|
"imports": [
|
|
236
236
|
"../_virtual/_rolldown/runtime.qwik.mjs",
|
|
237
237
|
"../components/DevtoolsButton/DevtoolsButton.qwik.mjs",
|
|
@@ -314,16 +314,16 @@
|
|
|
314
314
|
"interactivity": 0
|
|
315
315
|
},
|
|
316
316
|
"../features/inspect/iframe-theme.qwik.mjs": {
|
|
317
|
-
"size":
|
|
318
|
-
"total":
|
|
317
|
+
"size": 2573,
|
|
318
|
+
"total": 2573,
|
|
319
319
|
"origins": [
|
|
320
320
|
"src/features/inspect/iframe-theme.ts"
|
|
321
321
|
],
|
|
322
322
|
"interactivity": 0
|
|
323
323
|
},
|
|
324
324
|
"../features/inspect/Inspect.qwik.mjs": {
|
|
325
|
-
"size":
|
|
326
|
-
"total":
|
|
325
|
+
"size": 1356,
|
|
326
|
+
"total": 4045,
|
|
327
327
|
"imports": [
|
|
328
328
|
"../features/inspect/constant.qwik.mjs",
|
|
329
329
|
"../features/inspect/iframe-theme.qwik.mjs"
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
},
|
|
511
511
|
"../index.qwik.mjs": {
|
|
512
512
|
"size": 77,
|
|
513
|
-
"total":
|
|
513
|
+
"total": 3639933,
|
|
514
514
|
"imports": [
|
|
515
515
|
"../devtools.qwik.mjs"
|
|
516
516
|
],
|