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