Compare commits

...

4 Commits

Author SHA1 Message Date
Max Quoß 0772eb3c39 v1.0.1 2021-10-01 16:20:44 +02:00
Max Quoß 5d9264494a fix wake button not spinning 2021-10-01 16:20:18 +02:00
Max Quoß a59672bffc fix indention 2021-10-01 16:19:24 +02:00
seriousm4x 8b315c34b4 add firefox datetime notice 2021-10-01 10:52:16 +02:00
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -52,3 +52,4 @@ You can use the example [docker-compose.yml](docker-compose.yml) file and just r
## 📝 Other infos
* The django container needs to run in host network mode to send the wakeonlan command on your local network. Therefore all other containers also need to run in host network mode. I don't like it but there is no way around.
* Firefox 92 and below: The datetime picker for wake events will be available with version 93 and above. [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#browser_compatibility)
+1 -1
View File
@@ -142,4 +142,4 @@ STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
VERSION = "v1.0.0"
VERSION = "v1.0.1"
+1 -1
View File
@@ -10,7 +10,7 @@ if [ -n "$DJANGO_SUPERUSER_USER" ] && [ -n "$DJANGO_SUPERUSER_PASSWORD" ]; then
fi
# set visitors to 0
python -u manage.py shell -c "from wol.models import Websocket; [i.delete() for i in Websocket.objects.all()]; Websocket.objects.create(visitors=0)"
python -u manage.py shell -c "from wol.models import Websocket; [i.delete() for i in Websocket.objects.all()]; Websocket.objects.create(visitors=0)"
# set notifications
if [ -n "$ENABLE_NOTIFICATIONS" ]; then
+2 -2
View File
@@ -295,7 +295,7 @@ socket.onmessage = function (event) {
// set wake by client
if ("wake" in message) {
document.getElementById(message.wake.id + "-btn-wake").classList.add("is-loading");
document.querySelector(`[id="btn-wake"][data-id="${message.wake.id}"]`).classList.add("is-loading");
if (enableNotifications) {
notif.show("Wake started", message.wake.name + " has been started.", "is-info", 5000);
}
@@ -303,7 +303,7 @@ socket.onmessage = function (event) {
// set wake by schedule
if ("wake_schedule" in message) {
document.getElementById(message.wake_schedule.id + "-btn-wake").classList.add("is-loading");
document.querySelector(`[id="btn-wake"][data-id="${message.wake_schedule.id}"]`).classList.add("is-loading");
document.getElementById(message.wake_schedule.id + "-schedule-notice").innerHTML = "";
if (enableNotifications) {
notif.show("Scheduled wake started", message.wake_schedule.name + " has been started.", "is-info", 5000);