feat(custom-widgets): complete Custom JSX v2 (#6390)
This commit is contained in:
1 parent
3a1245cbc5
commit
acdfcbb18e
416 files changed
+37853
-18066
No files matched your search
@@ -1,5 +1,18 @@
|
||||
export * from "./built-in-display-schemas";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
import { customWidgetImportSchema } from "./custom-jsx-schema";
|
||||
|
||||
export * from "./custom-jsx-schema";
|
||||
export * from "./definition-schemas";
|
||||
export * from "./display-config-schema";
|
||||
export * from "./schema-types";
|
||||
|
||||
let customWidgetJsonSchema: Record<string, unknown> | undefined;
|
||||
|
||||
export function getCustomWidgetJsonSchema() {
|
||||
customWidgetJsonSchema ??= {
|
||||
...z.toJSONSchema(customWidgetImportSchema, { io: "input" }),
|
||||
title: "Homarr Custom JSX v2 widget",
|
||||
description: "The only supported Homarr custom-widget format. Secrets are configured separately.",
|
||||
};
|
||||
return customWidgetJsonSchema;
|
||||
}
|
||||
Reference in new issue
Block a user