mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: finish the homepage plugin, move service links and canvas out of core (B19)
This commit is contained in:
1 parent
21937a6b02
commit
d4ec444558
256 files changed
+27365
-9077
No files matched your search
@@ -18,20 +18,10 @@ import { getTabType } from "./tab-registry";
|
||||
* purpose: the shell always keeps one alive as the fallback tab, so it is
|
||||
* not a meaningful part of an arrangement.
|
||||
*/
|
||||
const CORE_CAPTURABLE = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"macros",
|
||||
"ssh-tools",
|
||||
]);
|
||||
const CORE_CAPTURABLE = new Set(["termix-id", "macros", "ssh-tools"]);
|
||||
|
||||
/** Core types reopened as singletons, with an optional preselected host. */
|
||||
const CORE_SINGLETON = new Set([
|
||||
"homepage",
|
||||
"termix-id",
|
||||
"macros",
|
||||
"ssh-tools",
|
||||
]);
|
||||
const CORE_SINGLETON = new Set(["termix-id", "macros", "ssh-tools"]);
|
||||
|
||||
/** Core tab types that are never part of a saved arrangement. */
|
||||
const CORE_UNSAVED = new Set([
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import {
|
||||
Braces,
|
||||
LayoutDashboard,
|
||||
LayoutGrid,
|
||||
LayoutPanelLeft,
|
||||
Server,
|
||||
Settings,
|
||||
@@ -31,11 +30,6 @@ const DashboardTab = lazy(() =>
|
||||
default: m.DashboardTab,
|
||||
})),
|
||||
);
|
||||
const HomepageCanvas = lazy(() =>
|
||||
import("@/features/homepage/HomepageCanvas").then((m) => ({
|
||||
default: m.HomepageCanvas,
|
||||
})),
|
||||
);
|
||||
// Rail panels promoted to full tabs.
|
||||
const TermixIdPanel = lazy(() =>
|
||||
import("@/sidebar/TermixIdPanel").then((m) => ({ default: m.TermixIdPanel })),
|
||||
@@ -114,8 +108,6 @@ export function tabIcon(type: TabType) {
|
||||
return <User className="size-3.5" />;
|
||||
case "admin-settings":
|
||||
return <Settings className="size-3.5" />;
|
||||
case "homepage":
|
||||
return <LayoutGrid className="size-3.5" />;
|
||||
case "termix-id":
|
||||
return <Fingerprint className="size-3.5" />;
|
||||
case "macros":
|
||||
@@ -211,9 +203,6 @@ export function renderTabContent(tab: Tab, context: TabRenderContext) {
|
||||
/>,
|
||||
);
|
||||
|
||||
case "homepage":
|
||||
return withTabSuspense(<HomepageCanvas />);
|
||||
|
||||
case "termix-id":
|
||||
return withTabSuspense(
|
||||
<PanelTabFrame>
|
||||
|
||||
Reference in new issue
Block a user