Workplace Widget

This commit is contained in:
chris
2026-10-25 08:01:19 +00:00
parent 1781520414
commit d37ac7ed4c
61 changed files with 2289 additions and 632 deletions

View File

@@ -27,6 +27,8 @@ export function parseWidgetPackage(raw:string):WidgetPortablePackage {
throw Error('Ungültige Rollenzuordnung');
if(typeof w.mandatory!=='boolean'||typeof w.personalizable!=='boolean')throw Error('Widget-Flags fehlen');
if(w.mandatory && w.visibleToRoles.length)throw Error('Pflichtwidget darf keine Sichtbarkeitsrollen haben');
if(w.type==='ui.cheerpj-workplace' && (w.props.jnlpUrl!=='/backend/api/hmi/v1/cheerpj/workplace/manifest.jnlp'||Number(w.props.javaVersion)!==11))
throw Error('Ungültige iTAC Workplace-JNLP-Konfiguration');
if(w.type==='ui.script' && (typeof w.props.script!=='string'||w.props.script.length>8000))
throw Error('Ungültiger JavaScript-Code');
if(pkg.image){