feat: workspace lives in the terminal view and keeps its sessions across pages; terminal panes split out

This commit is contained in:
redtea committed 2026-10-15 20:10:28 +03:00
1 parent 113c63fd1b
commit 012c0af7f9
9 files changed
+791 -736

No files matched your search

+7
View File
@@ -30,6 +30,13 @@
// the tab is hidden.
App.register('dashboard', {
mount(root, S) {
// Terminal and files buttons open a tab in the workspace, no reload.
S.on(root, 'click', function (ev) {
var b = ev.target.closest('[data-open]');
if (!b || !window.Workspace || !Workspace.paneTypes[b.dataset.open]) return;
ev.preventDefault();
Workspace.open(b.dataset.open, {id: b.dataset.id, name: b.dataset.name, host: b.dataset.host, user: b.dataset.user});
});
var setTimeout = S.timeout, clearTimeout = S.clear, fetch = S.fetch;
var rows = {};