mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-06-06 15:11:54 -04:00
message is prerendered and cant be changed at runtime
This commit is contained in:
@@ -12,7 +12,6 @@ services:
|
||||
# - UPSNAP_INTERVAL=@every 10s # Sets the interval in which the devices are pinged
|
||||
# - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network
|
||||
# - UPSNAP_WEBSITE_TITLE=Custom name # Custom website title
|
||||
# - UPSNAP_WELCOME_MESSAGE="Welcome to my wake on lan dashboard" # Show this message on the login form
|
||||
# you can change the listen ip:port inside the container like this:
|
||||
# entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000"
|
||||
# healthcheck:
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
title: '',
|
||||
msg: ''
|
||||
};
|
||||
const welcomeMsg = import.meta.env?.UPSNAP_WELCOME_MESSAGE || '';
|
||||
|
||||
async function login() {
|
||||
if (isAdmin) {
|
||||
@@ -51,10 +50,6 @@
|
||||
</div>
|
||||
<div class="row justify-content-center align-items-center p-2">
|
||||
<div class="col-md-6 col-lg-5 p-4 login rounded-5 shadow-sm">
|
||||
{#if welcomeMsg !== ''}
|
||||
<h5 class="text-center fw-bold">{welcomeMsg}</h5>
|
||||
<hr />
|
||||
{/if}
|
||||
<form class="w-100" on:submit|preventDefault={login}>
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Username or email address</label>
|
||||
|
||||
Reference in New Issue
Block a user