mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25: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
+1
-21
@@ -764,9 +764,6 @@ function initializeApiInstances() {
|
||||
// Authentication API (port 30001)
|
||||
authApi = createApiInstance(getApiUrl("", 30001), "AUTH");
|
||||
|
||||
// Dashboard API (port 30006)
|
||||
dashboardApi = createApiInstance(getApiUrl("", 30006), "DASHBOARD");
|
||||
|
||||
// RBAC API (port 30001)
|
||||
rbacApi = createApiInstance(getApiUrl("", 30001), "RBAC");
|
||||
|
||||
@@ -775,9 +772,6 @@ function initializeApiInstances() {
|
||||
getApiUrl("/tmux_monitor", 30010),
|
||||
"TMUX_MONITOR",
|
||||
);
|
||||
|
||||
// Homepage API (port 30012)
|
||||
homepageApi = createApiInstance(getApiUrl("/homepage", 30012), "HOMEPAGE");
|
||||
}
|
||||
|
||||
// Host Management API (port 30001) - supports SSH, RDP, VNC, Telnet
|
||||
@@ -791,18 +785,12 @@ export let fileManagerApi: AxiosInstance;
|
||||
// Authentication API (port 30001)
|
||||
export let authApi: AxiosInstance;
|
||||
|
||||
// Dashboard API (port 30006)
|
||||
export let dashboardApi: AxiosInstance;
|
||||
|
||||
// RBAC API (port 30001)
|
||||
export let rbacApi: AxiosInstance;
|
||||
|
||||
// Tmux Monitor API (port 30010) --- tmux-monitor ---
|
||||
export let tmuxMonitorApi: AxiosInstance;
|
||||
|
||||
// Homepage API (port 30012)
|
||||
export let homepageApi: AxiosInstance;
|
||||
|
||||
// Pre-initialize with default values to avoid undefined errors during early mounting
|
||||
initializeApiInstances();
|
||||
|
||||
@@ -1862,20 +1850,12 @@ export {
|
||||
export { getSnippets, executeSnippet } from "@/api/snippets-api";
|
||||
|
||||
// ============================================================================
|
||||
export type {
|
||||
UptimeInfo,
|
||||
RecentActivityItem,
|
||||
ServiceLink,
|
||||
} from "@/api/dashboard-api";
|
||||
export type { UptimeInfo, RecentActivityItem } from "@/api/dashboard-api";
|
||||
export {
|
||||
getUptime,
|
||||
getRecentActivity,
|
||||
logActivity,
|
||||
resetRecentActivity,
|
||||
getServiceLinks,
|
||||
createServiceLink,
|
||||
deleteServiceLink,
|
||||
updateServiceLink,
|
||||
} from "@/api/dashboard-api";
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in new issue
Block a user