@artenx/dshb 0.1.12 → 0.1.13
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 +0 -23
- package/lib/client.js.map +1 -1
- package/lib/exec-docker/docker-backend.d.ts +1 -0
- package/lib/exec-docker/docker-client.d.ts +1 -0
- package/lib/exec-docker/docker-client.js +18 -2
- package/lib/exec-docker/docker-client.js.map +1 -1
- package/lib/exec-docker/fs-provider.d.ts +4 -0
- package/lib/exec-docker/fs-provider.js +4 -0
- package/lib/exec-docker/fs-provider.js.map +1 -1
- package/lib/exec-docker/remote-docker-cli.d.ts +1 -0
- package/lib/exec-docker/remote-docker-cli.js +20 -3
- package/lib/exec-docker/remote-docker-cli.js.map +1 -1
- package/lib/exec-docker/world.d.ts +1 -1
- package/lib/exec-ssh/executor.d.ts +1 -0
- package/lib/exec-ssh/executor.js +25 -0
- package/lib/exec-ssh/executor.js.map +1 -1
- package/lib/exec-ssh/fs-provider.d.ts +4 -0
- package/lib/exec-ssh/fs-provider.js +4 -0
- package/lib/exec-ssh/fs-provider.js.map +1 -1
- package/lib/exec-ssh/world.d.ts +1 -1
- package/lib/router/decorate-fs.js +13 -0
- package/lib/router/decorate-fs.js.map +1 -1
- package/lib/router/decorate-shell.d.ts +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/resolve.d.ts +1 -1
- package/lib/router/router-fs.d.ts +4 -0
- package/lib/router/router-fs.js +9 -0
- package/lib/router/router-fs.js.map +1 -1
- package/lib/router/types.d.ts +1 -1
- package/lib/{types-DPP05ZsA.d.ts → types-_0vpT-jm.d.ts} +5 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -3052,29 +3052,6 @@ window.__ModuleLoader__.load({
|
|
|
3052
3052
|
}, DirectoryFlowOccupant));
|
|
3053
3053
|
}
|
|
3054
3054
|
});
|
|
3055
|
-
const workspaces = ctx.workspaces;
|
|
3056
|
-
if (workspaces && typeof workspaces.openPath === "function") {
|
|
3057
|
-
const originalOpenPath = workspaces.openPath.bind(workspaces);
|
|
3058
|
-
workspaces.openPath = async (path) => {
|
|
3059
|
-
try {
|
|
3060
|
-
const res = await fetch(`/api/dshb/remote/bound?path=${encodeURIComponent(path)}`);
|
|
3061
|
-
if (res.ok) {
|
|
3062
|
-
const data = await res.json();
|
|
3063
|
-
if (data.bound) {
|
|
3064
|
-
if (data.kind !== "file") return originalOpenPath(path);
|
|
3065
|
-
const a = document.createElement("a");
|
|
3066
|
-
a.href = `/api/dshb/remote/file?path=${encodeURIComponent(path)}`;
|
|
3067
|
-
a.download = "";
|
|
3068
|
-
document.body.appendChild(a);
|
|
3069
|
-
a.click();
|
|
3070
|
-
a.remove();
|
|
3071
|
-
return;
|
|
3072
|
-
}
|
|
3073
|
-
}
|
|
3074
|
-
} catch {}
|
|
3075
|
-
return originalOpenPath(path);
|
|
3076
|
-
};
|
|
3077
|
-
}
|
|
3078
3055
|
const ICON_SVG = {
|
|
3079
3056
|
auth: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 7C9.3807 7 10.5 5.8807 10.5 4.5C10.5 3.1193 9.3807 2 8 2C6.6193 2 5.5 3.1193 5.5 4.5C5.5 5.8807 6.6193 7 8 7Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 14C3 11.2386 5.2386 9 8 9C10.7614 9 13 11.2386 13 14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,
|
|
3080
3057
|
"dshb-nodes": `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="3.5" cy="4" r="2" stroke="currentColor" stroke-width="1.5"/><circle cx="12.5" cy="4" r="2" stroke="currentColor" stroke-width="1.5"/><circle cx="8" cy="12" r="2" stroke="currentColor" stroke-width="1.5"/><path d="M3.5 6V8C3.5 9.1 4.4 10 5.5 10H8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.5 6V8C12.5 9.1 11.6 10 10.5 10H8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>`
|