feat(custom-widgets): complete JSX v2

This commit is contained in:
Thomas Camlong committed 2026-07-18 15:33:25 +02:00
1 parent c0f1d6624c
commit eae48f50fd
263 files changed
+65503 -17816

No files matched your search

+253 -307
View File
@@ -384,6 +384,19 @@
}
}
},
"custom-widget": {
"title": "Custom widgets",
"item": {
"manage": {
"label": "Manage custom widgets",
"description": "Allow members to create, edit, and delete custom widget definitions"
},
"secret-write": {
"label": "Configure custom widget secrets",
"description": "Allow members and their API keys to set encrypted custom widget credentials"
}
}
},
"app": {
"title": "Apps",
"item": {
@@ -685,6 +698,22 @@
}
},
"customWidget": {
"secretEntry": {
"title": "Configure credential",
"description": "The value is encrypted by Homarr and is never returned to the requesting agent.",
"loading": "Loading secure request…",
"saved": "Credential saved. You can close this page.",
"unavailable": "Request unavailable",
"saveError": "Unable to save credentials",
"source": "API source: {name}",
"save": "Save encrypted credential",
"expires": "This one-time request expires at {time}.",
"field": {
"apiKey": "API key or token",
"username": "Username",
"password": "Password"
}
},
"page": {
"list": {
"title": "Custom Widgets",
@@ -693,18 +722,12 @@
},
"create": {
"title": "Create Custom Widget",
"subtitle": "Define an API URL, authentication, and how to display the response data."
"subtitle": "Build a safe JSX widget with inline API sources, options, state, queries, and actions."
},
"edit": {
"title": "Edit Custom Widget"
}
},
"betaBanner": {
"title": "Custom Widgets are in Beta",
"description": "This feature is experimental and will probably change. If you encounter bugs, need more capabilities, or find something confusing, tell us in the",
"link": "official discussion thread",
"closing": "Your feedback directly shapes what comes next. Happy hacking!"
},
"action": {
"create": "Create",
"import": "Import",
@@ -713,96 +736,21 @@
"delete": "Delete Custom Widget",
"deleteConfirm": "Are you sure you want to delete \"{name}\"? This action cannot be undone.",
"export": "Export",
"addMapping": "Add Mapping",
"addColumn": "Add Column",
"edit": "Edit",
"removeMapping": "Remove mapping",
"removeColumn": "Remove column",
"addItem": "Add Item",
"removeItem": "Remove item",
"addBar": "Add Bar",
"duplicate": "Duplicate",
"copyAiPrompt": "Copy AI prompt",
"readyToSave": "Ready to save",
"enable": "Enable",
"disable": "Disable",
"menu": "Actions"
"menu": "Actions",
"downloadSkill": "Download Custom Widget Skill",
"publishWorkshop": "Publish to Workshop"
},
"field": {
"name": "Name",
"description": "Description",
"iconUrl": "Icon URL",
"url": "URL",
"authType": "Auth Type",
"headerName": "Header/Query Parameter Name",
"method": "Method",
"requestBody": "Request Body",
"displayType": "Display Type",
"jsonPath": "JSON Path",
"jsonPathHint": "Use JSONPath syntax to extract values, e.g. $.data.temperature or $.items[0].name",
"label": "Label",
"unit": "Unit",
"mappings": "Mappings",
"tablePath": "Array JSON Path",
"tablePathHint": "Path to the array in the response, e.g. $.data.items",
"columns": "Columns",
"header": "Header",
"items": "Items",
"gridColumns": "Grid Columns",
"cardStyle": "Card Style",
"bars": "Bars",
"valuePath": "Value JSON Path",
"maxPath": "Max Value JSON Path",
"showPercentage": "Show Percentage",
"barSize": "Bar Size",
"goodValues": "Good Values (comma-separated)",
"dotSize": "Dot Size",
"valueSize": "Value Size",
"labelPosition": "Label Position",
"kvLayout": "Layout",
"striped": "Striped Rows",
"compact": "Compact Mode",
"maxHeight": "Max Height (px)",
"color": "Color",
"buttonLabel": "Button Label",
"buttonColor": "Button Color",
"confirmText": "Confirmation Text",
"confirmTextHint": "If set, a confirmation dialog will appear before executing the request",
"successMessage": "Success Message",
"successMessageHint": "Message shown after successful execution",
"enabled": "Enabled",
"template": {
"label": "JSX Template",
"description": "Mantine JSX template. Read the base response from data and call named requests with SubFetch, ActionButton, or ToggleSwitch."
},
"jsxApiVersion": {
"label": "JSX API version",
"v2": "Version 2 (recommended)",
"v1": "Version 1 (legacy)",
"legacyWarning": "Version 1 is display-only. Inline network components are disabled until this widget is migrated to named requests."
},
"networkScope": {
"label": "Network scope",
"option": {
"public": "Public networks",
"private": "Private networks",
"loopback": "Loopback"
},
"description": {
"public": "Allow public HTTP and HTTPS destinations only.",
"private": "Allow public and RFC1918 or ULA private destinations.",
"loopback": "Allow loopback destinations for trusted local services."
}
},
"requestManifest": {
"label": "Named requests",
"description": "JSON array of same-origin query and action capabilities. Templates reference entries by requestId and pass only declared parameters.",
"invalid": "Named requests must be a valid JSON array."
}
"iconUrl": "Icon URL"
},
"editor": {
"saveBlocked": "Resolve the editor errors before saving.",
"saveReady": "The configuration is ready to save.",
"errorBoundary": {
"title": "Something went wrong",
"retry": "Try again"
@@ -835,209 +783,163 @@
"title": "Template diagnostics",
"line": "Line {line, number}",
"ast": "{value}",
"dangerousProperty": "Reflective property \"{value}\" is not available in templates.",
"dynamicRequestId": "A literal requestId is required. Dynamic request IDs are not accepted.",
"eventHandler": "Event handler \"{value}\" is not allowed. Use the declarative action components.",
"invalidRequestManifest": "Named requests must be a valid JSON array.",
"legacyNetworkProps": "Version 2 network components accept requestId and params, not inline URL, method, header, or body props.",
"dynamicStateBinding": "A literal state name is required for bind.",
"inlineRequestProps": "Network components accept requestId and params; inline URL, method, header, and body props are blocked.",
"invalidRequestManifest": "Named requests must be a valid request array. {value}",
"missingRequestId": "This network component requires a literal requestId.",
"templateEmpty": "Enter a JSX template.",
"templateTooLong": "The template exceeds the 50,000 character limit.",
"unknownRequest": "No named request with ID \"{value}\" exists.",
"unsafeTag": "The <{value}> element is not available in templates."
"unknownStateBinding": "No local state named \"{value}\" exists.",
"unknownRequest": "No named request with ID \"{value}\" exists."
}
},
"placeholder": {
"exampleLabel": "CPU Temperature",
"exampleLabelShort": "CPU Temp",
"exampleHeader": "Name",
"exampleUnit": "°C",
"iconUrl": "https://...",
"url": "https://api.example.com/api/v1/status",
"headerName": "X-API-Key",
"jsonPath": "$.data.value",
"tablePath": "$.data.items",
"columnJsonPath": "$.name",
"valuePath": "$.data.used",
"maxPath": "$.data.total",
"goodValues": "online, true, up",
"color": "blue"
},
"cardStyleOption": {
"filled": "Filled",
"outline": "Outline",
"subtle": "Subtle"
},
"layoutOption": {
"list": "List",
"grid": "Grid"
},
"sizeOption": {
"sm": "Small",
"md": "Medium",
"lg": "Large",
"xl": "Extra Large"
},
"labelPositionOption": {
"above": "Above",
"below": "Below"
},
"fieldset": {
"general": "General",
"connection": "API Connection",
"display": "Display Configuration"
},
"steps": {
"format": {
"label": "Choose format",
"description": "Purpose and presentation",
"help": "Choose how this widget should communicate its data. This determines which configuration options are available next."
},
"connection": {
"label": "Connect data",
"description": "Endpoint and authentication"
},
"configure": {
"label": "Configure",
"description": "Fields and behavior"
},
"back": "Back",
"next": "Continue",
"continueTo": "Continue to {step}"
},
"workbench": {
"configure": "Configure",
"preview": "Preview and test"
},
"displayTypeDescription": {
"singleValue": "Show one extracted value with a label and unit",
"keyValue": "Show multiple labeled values side by side",
"table": "Show rows of data in a table format",
"statGrid": "Colored stat cards in a grid — like Pi-Hole or Speedtest widgets",
"progressBars": "Progress bars showing usage or completion — for disk, memory, quotas",
"statusIndicator": "Colored status dots showing online/offline or health states",
"countGrid": "Compact number + label counters in a tight grid",
"raw": "Pretty-printed JSON output for debugging",
"actionButton": "A button that triggers a request when clicked",
"customJsx": "Custom JSX layout using whitelisted Mantine components with full API data binding"
},
"method": {
"GET": "GET",
"POST": "POST",
"PUT": "PUT",
"DELETE": "DELETE",
"PATCH": "PATCH"
},
"authType": {
"none": "None",
"bearer": "Bearer Token",
"basic": "Basic Auth",
"apiKeyHeader": "API Key (Header)",
"apiKeyQuery": "API Key (Query)"
},
"displayType": {
"singleValue": "Single Value",
"keyValue": "Key-Value",
"table": "Table",
"statGrid": "Stat Grid",
"progressBars": "Progress Bars",
"statusIndicator": "Status Indicator",
"countGrid": "Count Grid",
"raw": "Raw JSON",
"actionButton": "Action Button",
"customJsx": "Custom JSX"
},
"secret": {
"apiKey": "API Key / Token",
"username": "Username",
"password": "Password",
"savedPlaceholder": "••••••• (saved, leave empty to keep)"
"sectionNavigation": "Custom widget sections",
"widgetPreview": "Widget preview",
"generalInformation": "General information",
"invalidWidget": "Invalid widget",
"section": {
"general": "General",
"sources": "API sources",
"requests": "Requests",
"options": "Options",
"state": "State",
"jsx": "JSX",
"preview": "Preview"
},
"status": {
"unsaved": "Unsaved changes",
"invalid": "Needs attention",
"ready": "Ready"
},
"action": {
"preview": "Test and preview",
"create": "Create",
"save": "Save"
},
"requests": {
"title": "Named queries and actions",
"label": "Requests",
"description": "Queries load data; actions only run after user interaction. Any HTTP method is valid for either kind.",
"selected": "Request",
"goTo": "Go to request",
"newId": "New request ID",
"rename": "Rename references",
"renameFailed": "The request could not be renamed"
},
"options": {
"title": "Widget options",
"schema": "Options schema",
"defaults": "Default option values"
},
"state": {
"title": "Local state",
"description": "State lives in this widget instance and browser session. Persisted choices belong in options.",
"schema": "State schema",
"defaults": "Default state"
},
"jsx": {
"title": "JSX template",
"label": "Template"
},
"sources": {
"title": "API sources and credentials",
"newName": "API {count, number}",
"credentialRemoved": "Credential removed",
"credentialRemovedDescription": "The stored value was deleted.",
"primary": "Primary API",
"id": "Source ID",
"name": "Name",
"baseUrl": "Base URL",
"networkScope": "Network access",
"authentication": "Authentication",
"headerName": "Header name",
"queryParameter": "Query parameter",
"configured": "Configured — enter a replacement",
"clear": "Clear",
"remove": "Remove source and its requests",
"advanced": "Advanced",
"add": "Add another API source",
"secret": {
"apiKey": "API key or token",
"username": "Username",
"password": "Password"
}
},
"ai": {
"title": "Create or fix with any AI",
"request": "What should this widget do?",
"documentationUrl": "API documentation URL (optional)",
"paste": "Paste AI response",
"copyDiagnostics": "Copy diagnostics",
"response": "AI response",
"loaded": "Widget loaded into the editor",
"invalidResponse": "Clipboard does not contain a valid v2 widget",
"invalidResponseDetail": "The AI response is invalid: {message}",
"diagnostics": "Diagnostics",
"diagnosticsCopied": "Redacted fix prompt copied"
},
"preview": {
"invalid": "Fix validation errors to preview this widget.",
"fixtureError": "Preview fixture error",
"requestData": "Request data",
"instanceOptions": "Instance options",
"localState": "Local state",
"liveActions": "Run actions against the configured API",
"liveActionsDescription": "Off is safe simulation. Turning this on affects the real service.",
"noActions": "No actions are defined.",
"sessionActive": "Preview session active",
"simulationPending": "Actions are simulated until you run preview",
"containedFailures": "Runtime failures are contained inside this widget. Request journals never include secret values.",
"accessibility": {
"title": "Accessibility checks",
"ready": "No common accessibility omissions detected.",
"imageAlt": "Add alt text to every Image, using an empty alt only for decorative images.",
"actionIconLabel": "Add an aria-label or title to every ActionIcon.",
"inputLabel": "Add a visible label or accessible name to every input."
},
"journal": "Redacted request journal",
"actionParameters": "Action parameters (JSON)",
"invalidParameters": "Use the declared string, number, and boolean parameter types.",
"runDestructive": "Run destructive action",
"runAction": "Run action",
"deleteConfirmation": "This preview action sends a DELETE request to the configured API.",
"simulated": "Action simulated",
"httpStatus": "HTTP {status, number}",
"tab": {
"widget": "Widget",
"data": "Data",
"options": "Options",
"state": "State",
"actions": "Actions",
"diagnostics": "Diagnostics"
},
"size": {
"compact": "Compact",
"standard": "Standard",
"wide": "Wide"
},
"theme": {
"light": "Light",
"dark": "Dark"
},
"fixture": {
"live": "Live",
"loading": "Loading",
"empty": "Empty",
"error": "Error"
}
}
},
"preview": {
"title": "Preview",
"errorBoundary": {
"title": "The preview could not be rendered",
"description": "Your form is still safe. Reset the preview, then review the Checks tab if the problem returns.",
"retry": "Reset preview"
},
"test": "Test",
"execute": "Execute",
"hint": "Click Test to preview the API response with your current configuration.",
"rawResponse": "Open raw JSON",
"mutationDisabled": "Preview only runs GET requests. Named actions are executed from an explicit widget control after the widget is saved.",
"tab": {
"widget": "Widget",
"response": "Response",
"request": "Request",
"diagnostics": "Checks"
},
"size": {
"compact": "Compact",
"standard": "Standard",
"wide": "Wide"
},
"empty": {
"title": "No preview data yet"
},
"stale": {
"title": "Sample data is out of date",
"description": "The connection or display configuration changed after the last test. Test again before relying on this preview."
},
"capabilities": {
"interactive": "Interactive",
"title": "Network capabilities",
"description": "This widget declares the following HTTP methods. Actions still require board permission and an explicit user gesture.",
"liveActions": "Enable live preview actions",
"liveActionsDescription": "Off runs action controls as simulations. On sends real requests for this short-lived preview session.",
"runTestFirst": "Run a GET test to create a short-lived preview session.",
"simulated": "Actions simulated"
},
"response": {
"copy": "Copy response",
"copied": "Copied",
"addSample": "Add sample JSON",
"editSample": "Edit sample JSON",
"sampleLabel": "Sample response",
"sampleDescription": "Use local JSON to design and test the display without calling the API.",
"sampleHint": "Inspect the response or replace it with local sample data.",
"applySample": "Apply sample data",
"cancelSample": "Cancel",
"invalidSample": "Enter valid JSON before applying the sample.",
"localSample": "Local sample data",
"raw": "Raw JSON",
"copyPath": "Copy data path",
"pathCopied": "Data path copied",
"insertPath": "Insert data path into the JSX template",
"expand": "Expand value",
"collapse": "Collapse value",
"empty": "Run a GET test to inspect the sanitized JSON response."
},
"request": {
"method": "Base method",
"authentication": "Authentication",
"endpoint": "Endpoint",
"status": "Last status",
"notRun": "Not tested",
"named": "{count, number} named requests",
"journal": "Redacted request journal",
"journalEmpty": "Run the preview or use an interactive control to populate the request journal.",
"duration": "{duration, number} ms",
"simulated": "Simulated",
"redacted": "Secret values and query parameter values are hidden from this summary.",
"permission": {
"view": "View",
"modify": "Modify",
"full": "Full"
}
},
"diagnostics": {
"templateSize": "Template size",
"characters": "{count, number} characters",
"namedRequests": "Named requests",
"methods": "HTTP methods",
"networkScope": "Network scope",
"legacy": "Legacy",
"ready": "The editor checks did not find any blocking template issues."
}
},
"notification": {
@@ -1046,30 +948,19 @@
"deleted": "Widget \"{name}\" deleted.",
"imported": "Widget imported successfully.",
"aiPromptCopied": "AI prompt copied to clipboard",
"aiPromptDescription": "Copy a pre-built prompt to paste into any AI chatbot (ChatGPT, Claude, Gemini...). It includes the full widget schema and your API response so the AI can generate a ready-to-import JSON config for you.",
"aiPromptCopy": "Copy to clipboard",
"aiPromptNoResponse": "Tip: Run a test first to include your API response in the prompt for better results.",
"aiPromptCopyError": "Failed to copy prompt to clipboard. Your browser may not support this feature.",
"createError": "Failed to create widget. Check your API endpoint is reachable.",
"aiPromptCopyError": "Failed to copy the prompt to the clipboard.",
"updateError": "Failed to update widget. Your changes were not saved.",
"importError": "Failed to import widget. Ensure the file is a valid custom widget JSON export.",
"importError": "Failed to import widget. Ensure the file uses the homarr-custom-widget-v2 schema.",
"exportError": "Failed to export widget.",
"duplicated": "Widget \"{name}\" duplicated.",
"duplicateError": "Failed to duplicate widget.",
"toggleError": "Failed to toggle widget status.",
"deleteError": "Failed to delete widget.",
"previewError": "Failed to fetch preview. Check the URL and try again.",
"previewActionsError": "Failed to update live preview actions. Run the GET test again if the session expired.",
"pastedForReplacement": "The pasted widget configuration is ready to review and save.",
"executed": "Action executed successfully.",
"executeError": "Action failed: {error}"
"previewError": "Failed to create the preview. Check the API source and try again."
},
"importReview": {
"title": "Review custom widget import",
"description": "Check where this widget connects and what board access its controls require before importing it.",
"replaceTitle": "Replace with pasted widget",
"replaceDescription": "Replace this form with \"{name}\" from {origin}? Stored credentials are preserved only when the authentication method is unchanged.",
"replaceConfirm": "Replace form",
"fileLabel": "Choose a custom widget JSON file",
"name": "Name",
"origin": "Base origin",
@@ -1083,16 +974,61 @@
},
"cancel": "Cancel import",
"confirm": "Import widget"
},
"table": {
"name": "Name",
"url": "URL",
"display": "Display"
},
"widget": {
"disabled": "This widget is disabled"
}
},
"workshop": {
"installSuccess": "Custom widget installed",
"installSuccessDescription": "Add its credentials, test the requests, and save when it is ready.",
"installError": "Could not install widget",
"installErrorDescription": "The Workshop submission is not a valid Custom JSX v2 widget.",
"title": "Workshop",
"description": "Community Custom JSX v2 widgets. Inspect the source and network capabilities before installing.",
"securityNotice": "Workshop widgets can call their declared API sources and perform declared actions with credentials you configure locally. Secrets are never included.",
"signIn": "Sign in with GitHub",
"signOut": "Sign out",
"search": "Search widgets",
"sort": "Sort",
"sortTop": "Top rated",
"sortNewest": "Newest",
"unavailable": "Workshop is unavailable. Your installed widgets are unaffected.",
"empty": "No widgets match this search.",
"noDescription": "No description",
"author": "by {name}",
"inspect": "Inspect widget",
"details": "Widget details",
"loadError": "This submission could not be loaded.",
"revision": "Revision {revision}",
"sources": "Declared API sources",
"requests": "Declared queries and actions",
"noRequests": "This widget does not declare network requests.",
"export": "Export",
"report": "Report",
"install": "Install widget",
"signInHint": "Sign in to vote or report. Installing does not require a Workshop account.",
"reportTitle": "Report submission",
"reportReason": "Reason",
"reportExplanation": "What should the administrators know?",
"reportSend": "Send report",
"reportSent": "Report sent",
"reportSentDescription": "Workshop administrators can now review this submission.",
"voteError": "The vote could not be saved.",
"publish": {
"title": "Publish to Workshop",
"success": "Published immediately. Community members can now install and report this widget.",
"signInHint": "Sign in to publish under your Workshop identity.",
"titleField": "Title",
"descriptionField": "Description",
"changelog": "Changelog",
"initialChangelog": "Initial publication",
"screenshots": "Screenshots",
"screenshotsDescription": "Up to five PNG, JPEG, or WebP images",
"action": "Publish now",
"error": "Publication failed"
},
"installDialog": "Install from Workshop",
"installed": "Widget installed",
"installedDescription": "{name} is ready to configure."
},
"integration": {
"page": {
"list": {
@@ -4052,13 +3988,13 @@
}
},
"customApi": {
"name": "Custom API",
"description": "Display data from any external API with custom configuration.",
"name": "Custom widget",
"description": "Render a configured Custom JSX definition.",
"customJsx": {
"noTemplate": "No JSX template is configured.",
"interactive": "Interactive",
"templateWarnings": "{count} template warnings:",
"migrationRequired": "This template must be migrated to Custom JSX version 2 before it can use network requests.",
"requestIdRequired": "This network control requires a named requestId.",
"unsavedPreview": "Run a GET test in the editor before testing named requests.",
"invalidParams": "The request parameters are invalid.",
"loading": "Loading request...",
@@ -4079,7 +4015,7 @@
},
"option": {
"definitionId": {
"label": "Definition ID"
"label": "Custom widget"
},
"refreshInterval": {
"label": "Refresh interval",
@@ -4087,15 +4023,24 @@
}
},
"noDefinition": "No definition selected",
"definitionNotFound": "Widget definition not found. It may have been deleted.",
"definitionNotFound": "Custom widget unavailable",
"configurationNeedsRepair": "This widget's options changed. Edit the widget to repair its configuration.",
"removeFromBoard": "Remove from board",
"editModePending": "Save the board to load this widget.",
"noDisplayOutput": "No display output",
"openJson": "Open in browser JSON viewer",
"execute": "Execute",
"executeConfirm": "Are you sure you want to execute this action?",
"executing": "Executing...",
"executeSuccess": "Action executed successfully",
"executeFailed": "Action failed. Check the widget configuration."
"picker": {
"group": "Custom JSX widgets",
"empty": "No custom widgets found",
"preview": "Preview",
"sources": "{count, plural, one {# source} other {# sources}}",
"requests": "{count, plural, one {# request} other {# requests}}"
},
"configuration": {
"needsAttention": "Configuration needs attention: {message}",
"advancedOptions": "Advanced options",
"advancedJson": "Advanced JSON",
"jsonObjectRequired": "Configuration must be a JSON object",
"invalidJson": "Invalid JSON"
}
},
"beszelSystemTable": {
"name": "Beszel Systems (Table)",
@@ -4724,6 +4669,7 @@
"apps": "Apps",
"integrations": "Integrations",
"customWidgets": "Custom Widgets",
"workshop": "Workshop",
"searchEngies": "Search engines",
"medias": "Medias",
"users": {