Initial commit: update2

This commit is contained in:
chris
2026-10-22 19:23:47 +00:00
parent 67a7fb6385
commit 1781520414
50 changed files with 1560 additions and 69 deletions

File diff suppressed because one or more lines are too long

View File

@@ -43,7 +43,7 @@ import org.json.JSONObject;
private static final String CSRF = "HMI_CSRF";
<span class="nc" id="L44"> private static final Set&lt;String&gt; WIDGET_TYPES = new HashSet&lt;&gt;();</span>
static {
<span class="nc" id="L46"> Collections.addAll(WIDGET_TYPES, &quot;ui.text&quot;, &quot;ui.table&quot;, &quot;ui.button&quot;, &quot;ui.header&quot;, &quot;ui.image&quot;, &quot;ui.script&quot;, &quot;mes.active-order&quot;,</span>
<span class="nc" id="L46"> Collections.addAll(WIDGET_TYPES, &quot;ui.text&quot;, &quot;ui.table&quot;, &quot;ui.button&quot;, &quot;ui.header&quot;, &quot;ui.image&quot;, &quot;ui.script&quot;, &quot;ui.curved-header&quot;, &quot;ui.neon-actions&quot;, &quot;ui.metal-panel&quot;, &quot;mes.active-order&quot;,</span>
&quot;mes.serial-scanner&quot;, &quot;mes.station-status&quot;, &quot;mes.booking-table&quot;, &quot;mes.workplan&quot;,
&quot;wb.station-tree&quot;, &quot;wb.station-config&quot;, &quot;wb.workorders&quot;, &quot;wb.history&quot;,
&quot;wb.activities&quot;, &quot;wb.activity-designer&quot;, &quot;wb.contacts&quot;, &quot;wb.erp-groups&quot;,
@@ -106,7 +106,7 @@ import org.json.JSONObject;
<span class="nc bnc" id="L106" title="All 2 branches missed."> for (String key : input.keySet()) {</span>
<span class="nc bnc" id="L107" title="All 5 branches missed."> switch (key) {</span>
<span class="nc" id="L108"> case &quot;fontScale&quot;: out.put(key, boundedScale(input.getDouble(key))); break;</span>
<span class="nc bnc" id="L109" title="All 8 branches missed."> case &quot;theme&quot;: { String s = input.getString(key); if (!s.equals(&quot;dark&quot;) &amp;&amp; !s.equals(&quot;light&quot;) &amp;&amp; !s.equals(&quot;system&quot;) &amp;&amp; !s.equals(&quot;ios&quot;)) throw new JSONException(&quot;Invalid theme&quot;); out.put(key, s); break; }</span>
<span class="nc bnc" id="L109" title="All 10 branches missed."> case &quot;theme&quot;: { String s = input.getString(key); if (!s.equals(&quot;dark&quot;) &amp;&amp; !s.equals(&quot;light&quot;) &amp;&amp; !s.equals(&quot;system&quot;) &amp;&amp; !s.equals(&quot;ios&quot;) &amp;&amp; !s.equals(&quot;neon&quot;)) throw new JSONException(&quot;Invalid theme&quot;); out.put(key, s); break; }</span>
<span class="nc bnc" id="L110" title="All 4 branches missed."> case &quot;contrast&quot;: { String s = input.getString(key); if (!s.equals(&quot;normal&quot;) &amp;&amp; !s.equals(&quot;high&quot;)) throw new JSONException(&quot;Invalid contrast&quot;); out.put(key, s); break; }</span>
<span class="nc bnc" id="L111" title="All 2 branches missed."> case &quot;accent&quot;: { String s = input.getString(key); if (!s.matches(&quot;#[0-9a-fA-F]{6}&quot;)) throw new JSONException(&quot;Invalid accent color&quot;); out.put(key, s); break; }</span>
<span class="nc" id="L112"> default: throw new JSONException(&quot;Unknown preference: &quot; + key);</span>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long