@enigmax/dashboard 0.1.66 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index.html +7 -3
- package/package.json +1 -1
package/assets/index.html
CHANGED
|
@@ -3804,11 +3804,15 @@ export {
|
|
|
3804
3804
|
+ '<button type="button" class="toggle" data-pack="update" data-id="' + esc(p.id) + '">Update</button>'
|
|
3805
3805
|
+ '<button type="button" class="btn-danger" data-pack="remove" data-id="' + esc(p.id) + '">Remove</button>'
|
|
3806
3806
|
: '<button type="button" class="toggle on" data-pack="install" data-id="' + esc(p.id) + '">Install</button>';
|
|
3807
|
-
const
|
|
3808
|
-
|
|
3807
|
+
const stTag = (s) => s === "expired" ? " (login expired)" : s === "empty" ? " (not signed in)" : s === "absent" ? " (no login)" : "";
|
|
3808
|
+
const opts = '<option value="">follow active (' + esc(p.resolvedAccount || "default") + ")" + stTag(p.resolvedState) + "</option>"
|
|
3809
|
+
+ (p.accounts || []).map((a) => '<option value="' + esc(a.name) + '"' + (p.defaultAccount === a.name ? " selected" : "") + ">" + esc(a.name) + (a.label && a.label !== a.name ? " - " + esc(a.label) : "") + stTag(a.state) + "</option>").join("");
|
|
3810
|
+
const warn = p.installed && (p.resolvedState === "expired" || p.resolvedState === "empty")
|
|
3811
|
+
? '<div class="set-hint" style="margin-top:6px;color:var(--warn,#e0a020)">This login is ' + (p.resolvedState === "expired" ? "expired" : "not signed in") + ' - the pack may ask you to log in. Refresh it (launch that account once) or pick another above.</div>'
|
|
3812
|
+
: "";
|
|
3809
3813
|
const accountSel = p.installed
|
|
3810
3814
|
? '<label class="set-hint" style="display:flex;align-items:center;gap:8px;margin-top:10px">Account that seeds this pack:'
|
|
3811
|
-
+ '<select data-pack-account data-id="' + esc(p.id) + '">' + opts + "</select></label>"
|
|
3815
|
+
+ '<select data-pack-account data-id="' + esc(p.id) + '">' + opts + "</select></label>" + warn
|
|
3812
3816
|
: "";
|
|
3813
3817
|
return '<div class="panel"><div class="set-row"><div class="set-meta">'
|
|
3814
3818
|
+ '<div class="set-name">' + esc(p.label) + " " + state + " " + added + '</div>'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmax/dashboard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "Local browser dashboard UI for enigma: the static page and chart assets enigma serves on its loopback dashboard (savings, real tool usage, in-browser settings). Installed on demand by enigma-cli; not a runtime dependency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|