Add Update and restart, a remembered window and safer copy and paste to the desktop app

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-17 18:07:59 -08:00
1 parent c07e679105
commit 710c751c2f
24 files changed
+4347 -422

No files matched your search

+8 -3
View File
@@ -1,5 +1,8 @@
// Copies the xterm files the page loads from node_modules into ui/vendor/, so the
// page is plain files with no bundler. Run before `tauri dev` and `tauri build`.
// Copies the files the page loads from outside ui/ into ui/vendor/, so the page is
// plain files with no bundler: the xterm files from node_modules, and the web
// console's own tokens.css (its colors, type, radii and layers), so the shell
// wears the same ones and cannot drift from them. Run before `tauri dev` and
// `tauri build`.
import { copyFileSync, mkdirSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
@@ -12,6 +15,8 @@ const files = [
['node_modules/@xterm/xterm/lib/xterm.js', 'xterm.js'],
['node_modules/@xterm/xterm/css/xterm.css', 'xterm.css'],
['node_modules/@xterm/addon-fit/lib/addon-fit.js', 'addon-fit.js'],
['node_modules/@xterm/addon-web-links/lib/addon-web-links.js', 'addon-web-links.js'],
['../src/web-console/public/styles/tokens.css', 'tokens.css'],
];
for (const [from, to] of files) copyFileSync(join(root, from), join(out, to));
console.log(`vendored ${files.length} xterm files into ui/vendor/`);
console.log(`vendored ${files.length} files into ui/vendor/`);