mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: improve UI loading time and jitter
This commit is contained in:
1 parent
0f8956dcf3
commit
4a320a2258
8 files changed
+279
-137
No files matched your search
+1
-13
@@ -175,12 +175,10 @@ import {
|
||||
} from "@/shell/tab-registry";
|
||||
import { getPanel, usePanels } from "@/shell/panel-registry";
|
||||
import { invokeAction } from "@/shell/action-registry";
|
||||
import { startPluginRuntime, stopPluginRuntime } from "@/plugin-host/loader";
|
||||
import { usePluginStore } from "@/plugin-host/plugin-store";
|
||||
import {
|
||||
notifyShellReady,
|
||||
notifyTabsChanged,
|
||||
resetShellBridge,
|
||||
setShellCallbacks,
|
||||
setShellHosts,
|
||||
setShellLayoutProvider,
|
||||
@@ -401,17 +399,6 @@ export function AppShell({
|
||||
.catch(() => setIsAdmin(false));
|
||||
}, []);
|
||||
|
||||
// Plugin frontends register the tabs, panels and actions that a saved
|
||||
// session may need, so they load before tabs are restored. On logout every
|
||||
// plugin is deactivated, since the next user may see different ones.
|
||||
useEffect(() => {
|
||||
startPluginRuntime().catch(() => {});
|
||||
return () => {
|
||||
void stopPluginRuntime();
|
||||
resetShellBridge();
|
||||
};
|
||||
}, []);
|
||||
|
||||
const handleDismissDonationModal = useCallback(() => {
|
||||
setShowDonationModal(false);
|
||||
dismissDonationModal().catch(() => {});
|
||||
@@ -2661,6 +2648,7 @@ export function AppShell({
|
||||
splitMode={splitMode}
|
||||
username={username}
|
||||
isAdmin={showAdminUI}
|
||||
pluginsSettled={pluginsSettled}
|
||||
onRailClick={handleRailClick}
|
||||
onOpenTab={openSingletonTab}
|
||||
onOpenInRightDock={openInRightDock}
|
||||
|
||||
Reference in new issue
Block a user