Compare commits

...

4 Commits

Author SHA1 Message Date
Maxi Quoß 9351889337 minor changes 2023-03-05 16:20:06 +01:00
Maxi Quoß 327ac67e33 update screenshots 2023-03-05 15:39:46 +01:00
Maxi Quoß 2764ed6ac5 rel="external" fixes "not found" build error 2023-03-05 15:37:03 +01:00
Maxi Quoß c519084e78 message is prerendered and cant be changed at runtime 2023-03-05 08:40:24 +01:00
5 changed files with 2 additions and 14 deletions
+1 -2
View File
@@ -11,7 +11,6 @@
<a target="_blank" href="https://github.com/seriousm4x/UpSnap/releases"><img src="https://img.shields.io/github/v/release/seriousm4x/upsnap?display_name=tag" /></a>
<a target="_blank" href="https://github.com/seriousm4x/UpSnap/actions"><img src="https://github.com/seriousm4x/upsnap/actions/workflows/deploy.yml/badge.svg?event=push" /></a>
<a target="_blank" href="https://github.com/seriousm4x/UpSnap/commits/master"><img src="https://img.shields.io/github/last-commit/seriousm4x/upsnap" /></a>
<h3><a href="https://github.com/seriousm4x/UpSnap/releases/tag/3.0.0">v3 is here! 🤩 Check it out</a></h3>
</div>
## ✨ Features
@@ -43,7 +42,7 @@ If you need network discovery, make sure to have `nmap` installed and run upsnap
## 🐳 Run in docker
Alternatively use the [docker-compose](docker-compose.yml) example. See the comments in the file for customization.
You can use the [docker-compose](docker-compose.yml) example. See the comments in the file for customization.
If you want to change the port, change the following (5000 in this case):
Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 71 KiB

-1
View File
@@ -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:
+1 -11
View File
@@ -1,5 +1,4 @@
<script>
import { goto } from '$app/navigation';
import { pocketbase, authorizedStore } from '@stores/pocketbase';
let username;
@@ -10,7 +9,6 @@
title: '',
msg: ''
};
const welcomeMsg = import.meta.env?.UPSNAP_WELCOME_MESSAGE || '';
async function login() {
if (isAdmin) {
@@ -51,10 +49,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>
@@ -96,11 +90,7 @@
</form>
<p class="text-center m-0 mt-3">
<!-- hacky way of linking a non existing route in svelte -->
<span
on:click={() => goto('/_/')}
on:keydown={() => goto('/_/')}
class="text-muted cursor-pointer">Manage users</span
>
<a href="/_/" rel="external" class="text-muted cursor-pointer">Manage users</a>
</p>
</div>
</div>