sidekick-docker 0.2.3 → 0.2.4
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/sidekick-docker.mjs +20 -20
- package/package.json +1 -1
package/dist/sidekick-docker.mjs
CHANGED
|
@@ -97380,8 +97380,8 @@ function Dashboard({ panels, metrics, onViewStateChange, execTriggerRef, onExecF
|
|
|
97380
97380
|
)
|
|
97381
97381
|
] })
|
|
97382
97382
|
] }),
|
|
97383
|
-
state.overlay === "help" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(HelpOverlay, { panels, activePanelIndex: state.activePanelIndex, version: "0.2.
|
|
97384
|
-
state.overlay === "version" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(VersionOverlay, { version: "0.2.
|
|
97383
|
+
state.overlay === "help" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(HelpOverlay, { panels, activePanelIndex: state.activePanelIndex, version: "0.2.4" }),
|
|
97384
|
+
state.overlay === "version" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(VersionOverlay, { version: "0.2.4" }),
|
|
97385
97385
|
state.overlay === "exec" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
97386
97386
|
ExecOverlay,
|
|
97387
97387
|
{
|
|
@@ -97398,7 +97398,7 @@ function Dashboard({ panels, metrics, onViewStateChange, execTriggerRef, onExecF
|
|
|
97398
97398
|
filterString: state.filterString,
|
|
97399
97399
|
containerCount: metrics.containers.length,
|
|
97400
97400
|
runningCount,
|
|
97401
|
-
version: "0.2.
|
|
97401
|
+
version: "0.2.4",
|
|
97402
97402
|
matchCount: state.filterString ? currentItems.length : void 0,
|
|
97403
97403
|
totalCount: state.filterString ? totalItemCount : void 0,
|
|
97404
97404
|
lastRefresh: metrics.lastRefresh,
|
|
@@ -97463,6 +97463,22 @@ async function dashboardAction(_opts, cmd) {
|
|
|
97463
97463
|
let composeLogFlushTimer = null;
|
|
97464
97464
|
let secondaryLogFlushTimer = null;
|
|
97465
97465
|
let secondaryComposeLogFlushTimer = null;
|
|
97466
|
+
let renderTimer = null;
|
|
97467
|
+
function scheduleRender() {
|
|
97468
|
+
if (renderTimer) return;
|
|
97469
|
+
renderTimer = setTimeout(() => {
|
|
97470
|
+
renderTimer = null;
|
|
97471
|
+
instance.rerender(
|
|
97472
|
+
import_react37.default.createElement(Dashboard, {
|
|
97473
|
+
panels,
|
|
97474
|
+
metrics: getEnrichedMetrics(),
|
|
97475
|
+
onViewStateChange,
|
|
97476
|
+
execTriggerRef,
|
|
97477
|
+
onExecFallback
|
|
97478
|
+
})
|
|
97479
|
+
);
|
|
97480
|
+
}, 100);
|
|
97481
|
+
}
|
|
97466
97482
|
const logManager = new LogStreamManager(client, () => {
|
|
97467
97483
|
if (logFlushTimer) return;
|
|
97468
97484
|
logFlushTimer = setTimeout(() => {
|
|
@@ -97690,7 +97706,6 @@ async function dashboardAction(_opts, cmd) {
|
|
|
97690
97706
|
servicesPanel.setOnCopyLogs((text) => {
|
|
97691
97707
|
copyToClipboard(text);
|
|
97692
97708
|
});
|
|
97693
|
-
let renderTimer = null;
|
|
97694
97709
|
function getEnrichedMetrics() {
|
|
97695
97710
|
const m = state.getMetrics();
|
|
97696
97711
|
m.logSeverityCounts = logSeverityCounts;
|
|
@@ -97700,21 +97715,6 @@ async function dashboardAction(_opts, cmd) {
|
|
|
97700
97715
|
m.secondaryLogSeverityTimeSeries = secondaryLogManager.getSeverityTimeSeries();
|
|
97701
97716
|
return m;
|
|
97702
97717
|
}
|
|
97703
|
-
function scheduleRender() {
|
|
97704
|
-
if (renderTimer) return;
|
|
97705
|
-
renderTimer = setTimeout(() => {
|
|
97706
|
-
renderTimer = null;
|
|
97707
|
-
instance.rerender(
|
|
97708
|
-
import_react37.default.createElement(Dashboard, {
|
|
97709
|
-
panels,
|
|
97710
|
-
metrics: getEnrichedMetrics(),
|
|
97711
|
-
onViewStateChange,
|
|
97712
|
-
execTriggerRef,
|
|
97713
|
-
onExecFallback
|
|
97714
|
-
})
|
|
97715
|
-
);
|
|
97716
|
-
}, 100);
|
|
97717
|
-
}
|
|
97718
97718
|
let stopped = false;
|
|
97719
97719
|
function cleanup() {
|
|
97720
97720
|
if (stopped) return;
|
|
@@ -97839,7 +97839,7 @@ async function logsAction(container, opts) {
|
|
|
97839
97839
|
|
|
97840
97840
|
// src/cli.ts
|
|
97841
97841
|
var program2 = new Command();
|
|
97842
|
-
program2.name("sidekick-docker").description("Docker management TUI dashboard").version("0.2.
|
|
97842
|
+
program2.name("sidekick-docker").description("Docker management TUI dashboard").version("0.2.4").option("--socket <path>", "Docker socket path").action(async (_opts, cmd) => {
|
|
97843
97843
|
await dashboardAction(_opts, cmd);
|
|
97844
97844
|
});
|
|
97845
97845
|
program2.command("ps").description("List containers").option("-a, --all", "Show all containers (default: running only)", false).action(async (opts) => {
|