feat: harden plugin api for separate repos, signed updates and generic external login

This commit is contained in:
LukeGus committed 2026-09-29 18:11:59 -05:00
1 parent fb9c168b6b
commit 80944301dd
310 files changed
+6577 -4927

No files matched your search

@@ -26,7 +26,6 @@ type PluginSettingsBag = Record<string, Record<string, unknown>>;
*/
export function HostStatsTab({
form,
setField,
updateForm,
host,
}: HostEditorSectionProps) {
@@ -27,7 +27,7 @@ function RowBar({ label, value }: { label: string; value: number }) {
);
}
/** CPU, RAM and disk bars in a dashboard host row ("dashboard.hostMetrics"). */
/** CPU, RAM and disk bars in a dashboard host row ("dashboard.hostRow"). */
export function createDashboardHostMetrics(store: MetricsSummaryStore) {
return function DashboardHostMetrics(props: Record<string, unknown>) {
const { t } = useTranslation();
@@ -13,13 +13,6 @@ import { useTranslation } from "@termix/plugin-sdk/frontend";
import { type MetricsHistoryRow, useHostMetricsApi } from "../host-metrics-api";
import { CardTimeTabs, type HistoryTab } from "./CardTimeTabs";
function computeChartData(rows: MetricsHistoryRow[]) {
return {
data: rows.map((r) => r.cpu_percent),
timestamps: rows.map((r) => r.ts),
};
}
export function CpuCard({
metrics,
history,
+1 -1
View File
@@ -111,7 +111,7 @@ export async function activate(app: TermixApp): Promise<void> {
});
// The usage bars in the dashboard's host status card.
app.registerSlotContribution("dashboard.hostMetrics", {
app.registerSlotContribution("dashboard.hostRow", {
actionId: "host-metrics.dashboardHost",
titleKey: "nav.hostMetrics",
kind: "component",