mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
feat: dev:all runner for web, electron and docker with plugin hot reload, termix-plugin dev
This commit is contained in:
1 parent
49fc241e06
commit
ec80a8ef8d
24 files changed
+1848
-44
No files matched your search
@@ -398,6 +398,11 @@ function onPluginsChanged() {
|
||||
void syncPlugins();
|
||||
}
|
||||
|
||||
// Sent by scripts/dev.mjs after it rebuilt a plugin or restarted the backend.
|
||||
import.meta.hot?.on("termix:plugins-reloaded", () => {
|
||||
if (started) void syncPlugins();
|
||||
});
|
||||
|
||||
function onFocus() {
|
||||
const now = Date.now();
|
||||
if (now - lastFocusSync < FOCUS_SYNC_INTERVAL_MS) return;
|
||||
|
||||
Reference in new issue
Block a user