@windypro-rourou/dsh-logcat 0.5.0-preview.1 → 0.5.0-preview.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/lib/client.js +8 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -33,8 +33,9 @@ window.__ModuleLoader__.load({
|
|
|
33
33
|
[data-dsh-logcat-entry][data-active] { background: rgba(128,128,128,.22); }
|
|
34
34
|
[data-dsh-logcat-entry] .lc-entry-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; }
|
|
35
35
|
[data-dsh-logcat-entry] .lc-entry-label { font-size: 13px; line-height: 1.2; opacity: .92; }
|
|
36
|
-
.dsh-logcat-view { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 94vw);
|
|
36
|
+
.dsh-logcat-view { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 94vw); z-index: 9999; }
|
|
37
37
|
.dsh-logcat-view[hidden] { display: none !important; }
|
|
38
|
+
.dsh-logcat-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--lc-bg, #ffffff); border-left: 1px solid rgba(128,128,128,.3); box-shadow: -10px 0 28px rgba(0,0,0,.18); }
|
|
38
39
|
.dsh-logcat-resize { position: absolute; left: -6px; top: 0; bottom: 0; width: 12px; cursor: col-resize; z-index: 2; display: flex; align-items: center; justify-content: center; }
|
|
39
40
|
.dsh-logcat-resize::before { content: ""; width: 3px; height: 48px; border-radius: 2px; background: rgba(128,128,128,.35); transition: background .15s, height .15s; }
|
|
40
41
|
.dsh-logcat-resize:hover::before, .dsh-logcat-resize[data-drag]::before { background: rgba(128,128,128,.75); height: 72px; }
|
|
@@ -689,6 +690,8 @@ window.__ModuleLoader__.load({
|
|
|
689
690
|
root = undefined;
|
|
690
691
|
container?.remove();
|
|
691
692
|
handle = undefined;
|
|
693
|
+
// Wrapper keeps the resize handle OUTSIDE the React root — createRoot clears
|
|
694
|
+
// the container's children on render, which used to delete the handle.
|
|
692
695
|
container = document.createElement("div");
|
|
693
696
|
container.dataset.dshLogcatView = "";
|
|
694
697
|
container.className = "dsh-logcat-view";
|
|
@@ -699,8 +702,11 @@ window.__ModuleLoader__.load({
|
|
|
699
702
|
handle.title = "拖拽调整宽度(双击重置)";
|
|
700
703
|
handle.addEventListener("mousedown", onDown);
|
|
701
704
|
container.appendChild(handle);
|
|
705
|
+
const panel = document.createElement("div");
|
|
706
|
+
panel.className = "dsh-logcat-panel";
|
|
707
|
+
container.appendChild(panel);
|
|
702
708
|
document.body.appendChild(container);
|
|
703
|
-
root = createRoot(
|
|
709
|
+
root = createRoot(panel);
|
|
704
710
|
root.render(h(LogcatPanel, { controller }));
|
|
705
711
|
};
|
|
706
712
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windypro-rourou/dsh-logcat",
|
|
3
3
|
"description": "Android Logcat viewer for the dsh web GUI: auto-connects to any adb device in debug mode, live logcat stream with level/keyword filters, pause/clear/export, plus agent tools (logcat_recent). Hot-pluggable — mounted via ~/.dsh/cordis.patch.yml + a profile node_modules copy, no dsh source changes.",
|
|
4
|
-
"version": "0.5.0-preview.
|
|
4
|
+
"version": "0.5.0-preview.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|
|
7
7
|
"engines": {
|