my-durable 0.0.93 → 0.0.95
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/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/{index-DAf4sRIx.css → index-B6uxt0Za.css} +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/{index-Cq41QXVd.js → index-Do9gnLTf.js} +2 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +3 -3
- package/apps/dpi-playground/apps/dpi-playground-fe/index.html +1 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/src/main.ts +31 -1
- package/apps/dpi-playground/apps/dpi-playground-fe/src/style.css +35 -15
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
6
|
<meta name="theme-color" content="#171214" />
|
|
7
7
|
<meta name="referrer" content="no-referrer" />
|
|
8
8
|
<link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
|
|
9
9
|
<title>Durable Pi | Network</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-Do9gnLTf.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B6uxt0Za.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="app"></div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
6
|
<meta name="theme-color" content="#171214" />
|
|
7
7
|
<meta name="referrer" content="no-referrer" />
|
|
8
8
|
<link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
|
|
@@ -33,7 +33,8 @@ createApp(App).mount("#app");
|
|
|
33
33
|
const vv = window.visualViewport;
|
|
34
34
|
const root = document.documentElement;
|
|
35
35
|
const apply = () => {
|
|
36
|
-
|
|
36
|
+
const vh = Math.max(vv?.height ?? window.innerHeight, window.innerHeight);
|
|
37
|
+
root.style.setProperty("--vvh", `${Math.round(vh)}px`);
|
|
37
38
|
};
|
|
38
39
|
vv?.addEventListener("resize", apply);
|
|
39
40
|
vv?.addEventListener("scroll", apply);
|
|
@@ -41,3 +42,32 @@ createApp(App).mount("#app");
|
|
|
41
42
|
window.addEventListener("orientationchange", apply);
|
|
42
43
|
apply();
|
|
43
44
|
}
|
|
45
|
+
|
|
46
|
+
// ?debug=1 — an evidence panel for live engine diagnosis (one screenshot
|
|
47
|
+
// answers: which engine, which viewport, which visual scale, which knob).
|
|
48
|
+
{
|
|
49
|
+
if (/[?&]debug=1\b/.test(location.search)) {
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
const el = document.createElement("pre");
|
|
52
|
+
el.style.cssText = "position:fixed;left:6px;bottom:6px;z-index:99999;background:#000d;color:#fff;padding:8px;font:11px/1.5 ui-monospace,monospace;max-width:92vw;border-radius:6px;white-space:pre-wrap";
|
|
53
|
+
const vv = window.visualViewport;
|
|
54
|
+
const upd = () => {
|
|
55
|
+
el.textContent = [
|
|
56
|
+
`UA: ${navigator.userAgent}`,
|
|
57
|
+
`innerW×H: ${innerWidth}×${innerHeight}`,
|
|
58
|
+
`clientW: ${document.documentElement.clientWidth}`,
|
|
59
|
+
`visualViewport: ${vv ? `${Math.round(vv.width)}×${Math.round(vv.height)} scale=${vv.scale.toFixed(3)}` : "none"}`,
|
|
60
|
+
`root font-size: ${getComputedStyle(document.documentElement).fontSize}`,
|
|
61
|
+
`dpr: ${devicePixelRatio}`,
|
|
62
|
+
`mq740: ${matchMedia("(max-width: 740px)").matches}`,
|
|
63
|
+
`touch: ${matchMedia("(pointer: coarse)").matches}`,
|
|
64
|
+
].join("\n");
|
|
65
|
+
};
|
|
66
|
+
vv?.addEventListener("resize", upd);
|
|
67
|
+
vv?.addEventListener("scroll", upd);
|
|
68
|
+
window.addEventListener("resize", upd);
|
|
69
|
+
upd();
|
|
70
|
+
document.body.appendChild(el);
|
|
71
|
+
}, 600);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -2138,24 +2138,36 @@ textarea.app-state-json {
|
|
|
2138
2138
|
padding: 3px;
|
|
2139
2139
|
flex-shrink: 0;
|
|
2140
2140
|
}
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2141
|
+
/* Everything fits WITHOUT swiping — that was the real "lost content":
|
|
2142
|
+
items past the right edge of a swipeable bar are invisible unless the
|
|
2143
|
+
user discovers the swipe. Bar = brand + live-dot + New agent + New
|
|
2144
|
+
session + bell + help; the toggles ARE the bottom tabs (Network/Details),
|
|
2145
|
+
usage lives in the Details → Usage panel, and the connection chip
|
|
2146
|
+
collapses to its colored dot (title carries the words). */
|
|
2147
|
+
/* .topbar prefix beats network.css' ≤1100 '.inspector-toggle{display:
|
|
2148
|
+
inline-flex}' which loads later and re-showed the toggle (beyond-edge at
|
|
2149
|
+
320px). The tabs own these actions on phones. */
|
|
2150
|
+
.topbar .tree-toggle,
|
|
2151
|
+
.topbar .inspector-toggle {
|
|
2152
|
+
display: none;
|
|
2152
2153
|
}
|
|
2153
2154
|
.usage-chip {
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2155
|
+
display: none;
|
|
2156
|
+
}
|
|
2157
|
+
.chip.connection {
|
|
2158
|
+
width: 12px;
|
|
2159
|
+
min-width: 12px;
|
|
2160
|
+
height: 12px;
|
|
2161
|
+
min-height: 12px;
|
|
2162
|
+
padding: 0;
|
|
2163
|
+
border-radius: 999px;
|
|
2164
|
+
background: transparent;
|
|
2157
2165
|
overflow: hidden;
|
|
2158
|
-
|
|
2166
|
+
font-size: 0;
|
|
2167
|
+
}
|
|
2168
|
+
.chip.connection .dot {
|
|
2169
|
+
width: 10px;
|
|
2170
|
+
height: 10px;
|
|
2159
2171
|
}
|
|
2160
2172
|
.top-actions .primary.small {
|
|
2161
2173
|
padding: 0 7px;
|
|
@@ -3410,3 +3422,11 @@ select:focus {
|
|
|
3410
3422
|
}
|
|
3411
3423
|
}
|
|
3412
3424
|
}
|
|
3425
|
+
|
|
3426
|
+
@media (max-width: 740px) {
|
|
3427
|
+
input,
|
|
3428
|
+
textarea,
|
|
3429
|
+
select {
|
|
3430
|
+
padding: 6px 9px;
|
|
3431
|
+
}
|
|
3432
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-durable",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|