style(services): apply formatter to frontend services runtime

This commit is contained in:
Developer
2026-06-22 19:13:59 +00:00
parent 1da67f38c7
commit 739ad38e29
13 changed files with 177 additions and 61 deletions
+13 -4
View File
@@ -55,7 +55,10 @@ export const SERVICE_REGISTRY: Record<string, ServiceBinding> = {
defaultConfig: { dashboard_uid: "" },
configSchema: {
type: "object",
properties: { dashboard_uid: { type: "string" }, panel_id: { type: "integer" } },
properties: {
dashboard_uid: { type: "string" },
panel_id: { type: "integer" },
},
required: ["dashboard_uid"],
},
component: GrafanaLinkWidget,
@@ -151,11 +154,15 @@ export const BUILTIN_WIDGETS: Record<string, ServiceWidgetBinding> = {
},
};
export function getServiceBinding(serviceType: string): ServiceBinding | undefined {
export function getServiceBinding(
serviceType: string,
): ServiceBinding | undefined {
return SERVICE_REGISTRY[serviceType];
}
export function getBuiltinBinding(kind: string): ServiceWidgetBinding | undefined {
export function getBuiltinBinding(
kind: string,
): ServiceWidgetBinding | undefined {
return BUILTIN_WIDGETS[kind];
}
@@ -199,6 +206,8 @@ export function resolveWidget(
}
/** Merge backend type metadata (config_schema, secret_fields) onto bindings. */
export function enrichServiceTypes(types: ServiceTypeInfo[]): ServiceTypeInfo[] {
export function enrichServiceTypes(
types: ServiceTypeInfo[],
): ServiceTypeInfo[] {
return types;
}