D2: Remote Host browser, compare and sync preview in the UI; docs and G17
Remote Host tool window (server select, tree, read-only viewer with Edit and Upload, rename, new folder, delete after its question), server tabs in the diff viewer, sync preview (uploads preselected, deletions never, extra confirmation before deleting on the server), Compare with Server in the tree menu and Tools › Deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7601ce12f6
commit
1c6c67194a
16 changed files with 1813 additions and 19 deletions
|
|
@ -17,7 +17,8 @@
|
|||
*
|
||||
* The bottom panel ({@link BottomPanel}) holds the Find, Terminal and
|
||||
* Problems tool windows (and the Deployment log, G17, which appears with
|
||||
* `deployment.showLog`), as tabs in its header while more than one is
|
||||
* `deployment.showLog`, and the Remote Host browser, C9 D2, with
|
||||
* `deployment.browse`), as tabs in its header while more than one is
|
||||
* shown. Find appears with the UI command `find.open` (`Mod+Alt+F`),
|
||||
* Terminal with `terminal.open` (`Mod+Shift+T`, M3.6), Problems with
|
||||
* `problems.open` (`Mod+Alt+P`, M3.3); all are supplied here so they work
|
||||
|
|
@ -62,6 +63,8 @@ import LogToolWindow from "../vcs/log/LogToolWindow.vue";
|
|||
import { SHOW_HISTORY_COMMAND, SHOW_LOG_COMMAND, useLogStore } from "../vcs/log/log";
|
||||
import StashDialog from "../vcs/stash/StashDialog.vue";
|
||||
import DeploymentLogToolWindow from "../deploy/DeploymentLogToolWindow.vue";
|
||||
import RemoteBrowserToolWindow from "../deploy/RemoteBrowserToolWindow.vue";
|
||||
import { useRemoteBrowserStore } from "../deploy/remoteBrowser";
|
||||
import { useDeployStore } from "../deploy/deploy";
|
||||
import { SHOW_COMMIT_COMMAND, TOGGLE_BLAME_COMMAND, setCommitOpener, toggleBlame } from "../editor/blame";
|
||||
import { SHOW_CHUNK_COMMAND, openChunkPopup } from "../editor/chunkPopup";
|
||||
|
|
@ -117,11 +120,12 @@ const nav = useNavStore();
|
|||
const changes = useChangesStore();
|
||||
const vcsLog = useLogStore();
|
||||
const deploy = useDeployStore();
|
||||
const remoteBrowser = useRemoteBrowserStore();
|
||||
const editor = useEditorStore();
|
||||
const project = useProjectStore();
|
||||
|
||||
/** Tool windows of the bottom panel. */
|
||||
type BottomTool = "find" | "terminal" | "problems" | "references" | "changes" | "log" | "deployment";
|
||||
type BottomTool = "find" | "terminal" | "problems" | "references" | "changes" | "log" | "deployment" | "remote";
|
||||
/** The bottom tool window last chosen. */
|
||||
const bottomTool = ref<BottomTool>("find");
|
||||
/** Bottom tool windows that are shown, in tab order. */
|
||||
|
|
@ -134,6 +138,7 @@ const bottomTools = computed(() => {
|
|||
if (changes.visible) tools.push({ id: "changes", title: t("vcs.changes.toolWindow.title") });
|
||||
if (vcsLog.visible) tools.push({ id: "log", title: t("vcs.log.toolWindow.title") });
|
||||
if (deploy.visible) tools.push({ id: "deployment", title: t("deploy.log.title") });
|
||||
if (remoteBrowser.visible) tools.push({ id: "remote", title: t("deploy.remote.title") });
|
||||
return tools;
|
||||
});
|
||||
/** The active bottom tool window: the chosen one if shown, else the first. */
|
||||
|
|
@ -155,7 +160,9 @@ const bottomStore = computed(() =>
|
|||
? vcsLog
|
||||
: bottomActive.value === "deployment"
|
||||
? deploy
|
||||
: find,
|
||||
: bottomActive.value === "remote"
|
||||
? remoteBrowser
|
||||
: find,
|
||||
);
|
||||
/** Expansion of the panel, kept per tool window by its store. */
|
||||
const bottomOpen = computed({
|
||||
|
|
@ -178,7 +185,8 @@ function chooseBottom(id: string): void {
|
|||
id === "references" ||
|
||||
id === "changes" ||
|
||||
id === "log" ||
|
||||
id === "deployment"
|
||||
id === "deployment" ||
|
||||
id === "remote"
|
||||
) {
|
||||
bottomTool.value = id;
|
||||
}
|
||||
|
|
@ -288,6 +296,13 @@ onMounted(() => {
|
|||
},
|
||||
enabled: () => project.root !== null && activeView() !== null,
|
||||
}),
|
||||
commands.provide("deployment.browse", {
|
||||
run: () => {
|
||||
bottomTool.value = "remote";
|
||||
return remoteBrowser.show();
|
||||
},
|
||||
enabled: () => project.root !== null,
|
||||
}),
|
||||
commands.provide("deployment.showLog", {
|
||||
run: () => {
|
||||
bottomTool.value = "deployment";
|
||||
|
|
@ -395,6 +410,10 @@ onBeforeUnmount(() => {
|
|||
v-if="deploy.visible"
|
||||
v-show="bottomActive === 'deployment'"
|
||||
/>
|
||||
<RemoteBrowserToolWindow
|
||||
v-if="remoteBrowser.visible"
|
||||
v-show="bottomActive === 'remote'"
|
||||
/>
|
||||
</BottomPanel>
|
||||
<StatusBar />
|
||||
<StashDialog />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue