fix: nested button in inventar list view, uload-server port 3041→3070

- inventar-web: second nested <button> in list view also converted to
  <div role="button"> to fix Svelte 5 HTML validation
- uload-server: port changed from 3041 to 3070 to avoid conflict with
  Forgejo which also binds port 3041

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-30 21:37:18 +02:00
parent df19d3acc4
commit b9232438cf
2 changed files with 10 additions and 7 deletions

View file

@ -268,9 +268,12 @@
<!-- List View -->
<div class="space-y-2">
{#each sortedItems as item (item.id)}
<button
<div
onclick={() => goto(`/items/${item.id}`)}
class="group flex w-full items-center gap-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-4 py-3 text-left transition-colors hover:border-[hsl(var(--primary)/0.3)]"
onkeydown={(e) => e.key === 'Enter' && goto(`/items/${item.id}`)}
role="button"
tabindex="0"
class="group flex w-full cursor-pointer items-center gap-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-4 py-3 text-left transition-colors hover:border-[hsl(var(--primary)/0.3)]"
>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-2">
@ -308,7 +311,7 @@
/>
</svg>
</button>
</button>
</div>
{/each}
</div>
{/if}

View file

@ -1401,14 +1401,14 @@ services:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 3041
PORT: 3070
DATABASE_URL: postgresql://manacore:${POSTGRES_PASSWORD:-devpassword}@postgres:5432/mana_sync
MANA_CORE_AUTH_URL: http://mana-auth:3001
CORS_ORIGINS: http://uload-web:5029,https://uload.mana.how,https://ulo.ad
ports:
- "3041:3041"
- "3070:3070"
healthcheck:
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3041/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:3070/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
@ -1428,7 +1428,7 @@ services:
environment:
NODE_ENV: production
PORT: 5029
PUBLIC_ULOAD_SERVER_URL: http://uload-server:3041
PUBLIC_ULOAD_SERVER_URL: http://uload-server:3070
PUBLIC_ULOAD_SERVER_URL_CLIENT: https://uload-api.mana.how
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how