Load Workplace client JARs from current MES JNLP only
This commit is contained in:
@@ -257,7 +257,7 @@ async function start(e,data){
|
||||
const params=new URL(location.href).searchParams;
|
||||
const rawWindowMode=data.windowMode ?? params.get('windows');
|
||||
const windowMode=isWorkplace && ['off','diagnose','rescue'].includes(rawWindowMode)
|
||||
? rawWindowMode : (isWorkplace ? 'diagnose' : 'off');
|
||||
? rawWindowMode : 'off';
|
||||
boot('JNLP-Abruf');
|
||||
status(id,'loading','JNLP wird gelesen …');
|
||||
const r=await fetch(url.href,{credentials:'same-origin',redirect:'follow',cache:'no-store'});
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@ const autoStartEnabled = computed(()=>shouldAutoStartWidget(props.widget.type,pr
|
||||
const javaVersion = computed(()=>[8,11,17].includes(Number(props.widget.props.javaVersion))?Number(props.widget.props.javaVersion):8);
|
||||
const windowProtocolWarning = window.location.protocol==='http:' && !['localhost','127.0.0.1'].includes(window.location.hostname);
|
||||
const displayMode = computed(()=>['fit','original'].includes(String(props.widget.props.displayMode))?String(props.widget.props.displayMode):'fit');
|
||||
const windowMode = ref<'off'|'diagnose'|'rescue'>('diagnose'); // Client-only; no vendor settings changed.
|
||||
const windowMode = ref<'off'|'diagnose'|'rescue'>('off'); // Client-only; no vendor settings changed.
|
||||
const launchRequested = ref(false);
|
||||
const failure = ref('');
|
||||
const status = ref('');
|
||||
@@ -105,7 +105,7 @@ onBeforeUnmount(()=>window.removeEventListener('message',onMessage));
|
||||
<button v-if="!demo && !launchRequested" type="button" @click.stop="launch" :disabled="!url">▶ Start</button>
|
||||
<template v-else-if="!demo"><button type="button" @click.stop="launch">↻ Neustart</button><button type="button" @click.stop="stop">■ Stop</button></template>
|
||||
</div>
|
||||
<div v-if="workplace" class="cheerpj-warning">Java 11 · „Fenster: Diagnose“ protokolliert virtuelle Bildschirmgrenzen und alle Swing-Dialoge. „Dialoge zurückholen“ korrigiert nur außerhalb liegende sichtbare JDialogs; ein JAAS-Fehler wird dadurch nicht behoben.</div>
|
||||
<div v-if="workplace && windowMode!=='off'" class="cheerpj-warning">Java 11 · „Fenster: Diagnose“ protokolliert virtuelle Bildschirmgrenzen und alle Swing-Dialoge. „Dialoge zurückholen“ korrigiert nur außerhalb liegende sichtbare JDialogs; ein JAAS-Fehler wird dadurch nicht behoben.</div>
|
||||
<div v-if="!demo && windowProtocolWarning" class="cheerpj-warning">HTTP aktiv: Anmeldedaten und MES-Daten sind nicht transportverschlüsselt. Nur in geschützten Netzen einsetzen.</div>
|
||||
<div v-if="demo" class="cheerpj-placeholder">☕ CheerpJ-Vorschau: Der Java-Client wird erst im Werker-Modus gestartet.<small>{{url||'JNLP-Adresse noch nicht konfiguriert'}}</small></div>
|
||||
<div v-else-if="!launchRequested" class="cheerpj-placeholder">☕ JNLP-Anwendung starten<small>{{url||'Bitte eine JNLP-URL im Designer hinterlegen'}}</small></div>
|
||||
|
||||
@@ -14,6 +14,8 @@ assert.match(html, /cjrtnc\.leaningtech\.com/);
|
||||
assert.match(html, /body\.cheerpj-standalone #state/);
|
||||
assert.match(widget, /standalone=workplace&runtime=/);
|
||||
assert.match(widget, /Fensterdiagnose/);
|
||||
assert.match(widget, /ref<'off'\|'diagnose'\|'rescue'>\('off'\)/);
|
||||
assert.match(js, /\? rawWindowMode : 'off'/);
|
||||
assert.match(widget, /windowMode:windowMode\.value/);
|
||||
assert.match(html, /id="window-diagnostics"/);
|
||||
assert.match(widget, /rel="noopener noreferrer"/);
|
||||
|
||||
Reference in New Issue
Block a user