quick ui cleanup removed admin buttons from the public front and changed readme and renamed the .env to avoid collisions on live server

This commit is contained in:
Sebastian 2025-10-19 18:25:40 +02:00
parent 32dbd476f8
commit 8cd8ee92a4
4 changed files with 4 additions and 19 deletions

View file

View file

@ -17,7 +17,7 @@
``` ```
- Change `JWT_SECRET` and `ADMIN_PASSWORD` before production use. - Change `JWT_SECRET` and `ADMIN_PASSWORD` before production use.
- Keep `JWT_COOKIE_SECURE=false` and `ENABLE_HTTPS_REDIRECT=false` unless you run behind HTTPS. - Keep `JWT_COOKIE_SECURE=false` and `ENABLE_HTTPS_REDIRECT=false` unless you run behind HTTPS.
- Update `CSRF_ALLOWED_ORIGINS` to the host/port youll use to access the web app. - Update `CSRF_ALLOWED_ORIGINS` local network ip/port you will use to host the application on.
2. Start the stack: 2. Start the stack:
```bash ```bash

View file

@ -127,9 +127,9 @@
</div> </div>
{/if} {/if}
</dl> </dl>
<p class="mt-6 text-center text-xs uppercase tracking-wide text-slate-500/70"> <p class="mt-6 text-center text-xs uppercase tracking-wide text-slate-500/70">
Tryck här för att registrera Tryck här för att registrera
</p> </p>
</article> </article>
</a> </a>
{/each} {/each}
@ -141,14 +141,5 @@
Inga turneringar är publicerade ännu. Kom tillbaka senare! Inga turneringar är publicerade ännu. Kom tillbaka senare!
</p> </p>
{/if} {/if}
<div class="text-center">
<a
href="/admin"
class="inline-flex items-center justify-center rounded-full bg-indigo-500 px-6 py-3 text-sm font-semibold tracking-wide text-white uppercase transition hover:bg-indigo-600"
>
Till admin
</a>
</div>
</div> </div>
</div> </div>

View file

@ -624,12 +624,6 @@
<footer class="mt-auto flex items-center justify-between text-xs text-slate-500"> <footer class="mt-auto flex items-center justify-between text-xs text-slate-500">
<p>Senast uppdaterad {formatDateTime(tournament.updated_at) ?? tournament.updated_at}</p> <p>Senast uppdaterad {formatDateTime(tournament.updated_at) ?? tournament.updated_at}</p>
<a
href="/admin/tournament"
class="rounded-full border border-indigo-300 px-4 py-2 font-semibold text-indigo-300 transition hover:border-indigo-400 hover:bg-indigo-50/5"
>
Administrera
</a>
</footer> </footer>
</div> </div>
</div> </div>