Browse Source

Upgrade dependencies and improve UI handling.

Updated "applesauce-core" and "applesauce-signers" to newer versions in lockfile and package.json. Enhanced UI with better button styling and added logic to hide the "policy" tab if not enabled. Included "bun update" in approved commands.
main
mleku 1 month ago
parent
commit
930e3eb1b1
No known key found for this signature in database
  1. 3
      .claude/settings.local.json
  2. 8
      app/web/bun.lock
  3. 4
      app/web/package.json
  4. 4
      app/web/src/App.svelte
  5. 26
      app/web/src/EventsView.svelte

3
.claude/settings.local.json

@ -14,7 +14,8 @@ @@ -14,7 +14,8 @@
"Bash(go test:*)",
"Bash(./scripts/test.sh:*)",
"Bash(./scripts/update-embedded-web.sh:*)",
"Bash(bun run build:*)"
"Bash(bun run build:*)",
"Bash(bun update:*)"
],
"deny": [],
"ask": []

8
app/web/bun.lock

@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
"": {
"name": "svelte-app",
"dependencies": {
"applesauce-core": "^4.1.0",
"applesauce-signers": "^4.1.0",
"applesauce-core": "^4.4.2",
"applesauce-signers": "^4.2.0",
"nostr-tools": "^2.17.0",
"sirv-cli": "^2.0.0",
},
@ -79,9 +79,9 @@ @@ -79,9 +79,9 @@
"anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="],
"applesauce-core": ["applesauce-core@4.1.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@scure/base": "^1.2.4", "debug": "^4.4.0", "fast-deep-equal": "^3.1.3", "hash-sum": "^2.0.0", "light-bolt11-decoder": "^3.2.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.1" } }, "sha512-vFOHfqWW4DJfvPkMYLYNiy2ozO2IF+ZNwetGqaLuPjgE1Iwu4trZmG3GJUH+lO1Oq1N4e/OQ/EcotJoEBEiW7Q=="],
"applesauce-core": ["applesauce-core@4.4.2", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@scure/base": "^1.2.4", "debug": "^4.4.0", "fast-deep-equal": "^3.1.3", "hash-sum": "^2.0.0", "light-bolt11-decoder": "^3.2.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.1" } }, "sha512-zuZB74Pp28UGM4e8DWbN1atR95xL7ODENvjkaGGnvAjIKvfdgMznU7m9gLxr/Hu+IHOmVbbd4YxwNmKBzCWhHQ=="],
"applesauce-signers": ["applesauce-signers@4.1.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@noble/secp256k1": "^1.7.1", "@scure/base": "^1.2.4", "applesauce-core": "^4.1.0", "debug": "^4.4.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.2" } }, "sha512-S+nTkAt1CAGhalwI7warLTINsxxjBpS3NqbViz6LVy1ZrzEqaNirlalX+rbCjxjRrvIGhYV+rszkxDFhCYbPkg=="],
"applesauce-signers": ["applesauce-signers@4.2.0", "", { "dependencies": { "@noble/hashes": "^1.7.1", "@noble/secp256k1": "^1.7.1", "@scure/base": "^1.2.4", "applesauce-core": "^4.2.0", "debug": "^4.4.0", "nanoid": "^5.0.9", "nostr-tools": "~2.17", "rxjs": "^7.8.2" } }, "sha512-celexNd+aLt6/vhf72XXw2oAk8ohjna+aWEg/Z2liqPwP+kbVjnqq4Z1RXvt79QQbTIQbXYGWqervXWLE8HmHg=="],
"array-union": ["array-union@2.1.0", "", {}, "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="],

4
app/web/package.json

@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
"svelte": "^3.55.0"
},
"dependencies": {
"applesauce-core": "^4.1.0",
"applesauce-signers": "^4.1.0",
"applesauce-core": "^4.4.2",
"applesauce-signers": "^4.2.0",
"nostr-tools": "^2.17.0",
"sirv-cli": "^2.0.0"
}

4
app/web/src/App.svelte

@ -1663,6 +1663,10 @@ @@ -1663,6 +1663,10 @@
if (tab.id === "sprocket" && !sprocketEnabled) {
return false;
}
// Hide policy tab if not enabled
if (tab.id === "policy" && !policyEnabled) {
return false;
}
// Hide managed ACL tab if not in managed mode
if (tab.id === "managed-acl" && aclMode !== "managed") {
return false;

26
app/web/src/EventsView.svelte

@ -559,14 +559,22 @@ @@ -559,14 +559,22 @@
background: var(--primary);
color: var(--text-color);
border: none;
padding: 0.5em 1em;
padding: 0.4em 1em;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
transition: background-color 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 0.25em;
box-sizing: border-box;
line-height: 1;
}
.reload-btn {
width: 2.5em;
padding: 0.4em;
}
.refresh-btn:hover:not(:disabled),
@ -578,5 +586,21 @@ @@ -578,5 +586,21 @@
.reload-btn:disabled {
background: var(--secondary);
cursor: not-allowed;
padding: 0.4em 1em;
}
.reload-btn:disabled {
padding: 0.4em;
}
.reload-btn .spinner {
width: 0.8em;
height: 0.8em;
border: 1.5px solid var(--text-color);
border-top-color: transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0;
box-sizing: border-box;
}
</style>

Loading…
Cancel
Save