Workplace Widget
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user