Compare commits

...

6 Commits

Author SHA1 Message Date
Maxi Quoß e02ecbc639 v2.0.6 2022-05-03 18:55:26 +02:00
Maxi Quoß 42bb71a017 also fix key error in consumers, just to make sure 2022-04-30 22:01:01 +02:00
Maxi Quoß 20a3ddea1a v2.0.5 2022-04-30 17:58:27 +02:00
Maxi Quoß 4906ce722b fix key error link when restoring from v1 #17 2022-04-30 17:57:27 +02:00
Maxi Quoß f36be22e46 remove row 2022-04-22 21:24:12 +02:00
Maxi Quoß b1e8eaf864 close div 2022-04-22 21:19:53 +02:00
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -174,4 +174,4 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
VERSION = "v2.0.4"
VERSION = "v2.0.6"
+1 -1
View File
@@ -187,7 +187,7 @@ class WSConsumer(AsyncWebsocketConsumer):
"name": data["name"],
"ip": data["ip"],
"netmask": data["netmask"],
"link": data["link"],
"link": data["link"] if data.get("link") else "",
"shutdown_cmd": data["shutdown"]["command"] if data.get("shutdown") else ""
}
)
+6 -6
View File
@@ -67,6 +67,7 @@
// v1 file restore
for (const [key, value] of Object.entries(data)) {
value["mac"] = key
value["link"] = ""
updateDevice(value)
}
}
@@ -161,12 +162,11 @@
<input type="text" class="form-control" id="inputNetmaskAddDevice" placeholder="255.255.255.0" bind:value="{addDevice.netmask}" pattern="^(((255\.){'{'}3{'}'}(255|254|252|248|240|224|192|128|0+))|((255\.){'{'}2{'}'}(255|254|252|248|240|224|192|128|0+)\.0)|((255\.)(255|254|252|248|240|224|192|128|0+)(\.0+){'{'}2{'}'})|((255|254|252|248|240|224|192|128|0+)(\.0+){'{'}3{'}'}))$" required>
</div>
</div>
<div class="row">
<div class="col">
<div class="mb-3">
<label for="inputLinkAddDevice" class="form-label">Web link</label>
<input type="text" class="form-control" id="inputILinkAddDevice" placeholder="http://...." bind:value="{addDevice.link}">
</div>
</div>
<div class="col">
<div class="mb-3">
<label for="inputLinkAddDevice" class="form-label">Web link</label>
<input type="text" class="form-control" id="inputILinkAddDevice" placeholder="http://...." bind:value="{addDevice.link}">
</div>
</div>
<div class="row">