From 3a2e874887f236696f1c2bd7d418c4f98ebead4e Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 8 Oct 2023 14:41:02 -0400 Subject: [PATCH] Move WTV Admin to wtv-tricks, add link to PB --- .../includes/ServiceVault/wtv-home/home.js | 10 +--------- .../includes/ServiceVault/wtv-tricks/tricks.js | 11 ++++++++++- zefie_wtvp_minisrv/package-lock.json | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js index 6e8ed9fb..1a512d9c 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js @@ -29,14 +29,6 @@ var notImplementedAlert = new clientShowAlert({ 'noback': true, }).getURL(); -var notAdminAlert = new clientShowAlert({ - 'image': minisrv_config.config.service_logo, - 'message': "Sorry, you are not configured as an admin on this server.

If you are the server operator, please
see user_config.example.json
for an example on how to configure yourself as an administrator.", - 'buttonlabel1': "Ugh, fine.", - 'buttonaction1': "client:donothing", - 'noback': true, -}).getURL(); - var ownMinisrv = new clientShowAlert({ 'image': minisrv_config.config.service_logo, 'message': "To run your own minisrv, please visit the following link on your PC:

https://zef.pw/minisrv", @@ -263,7 +255,7 @@ data += ` -€ WTV Admin +€ Pagebuilder diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-tricks/tricks.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-tricks/tricks.js index f2fda2c4..01f589cf 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-tricks/tricks.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-tricks/tricks.js @@ -1,5 +1,14 @@ var minisrv_service_file = true; + +var notAdminAlert = new clientShowAlert({ + 'image': minisrv_config.config.service_logo, + 'message': "Sorry, you are not configured as an admin on this server.

If you are the server operator, please
see user_config.example.json
for an example on how to configure yourself as an administrator.", + 'buttonlabel1': "Ugh, fine.", + 'buttonaction1': "client:donothing", + 'noback': true, +}).getURL(); + headers = `200 OK Content-Type: text/html` @@ -48,7 +57,7 @@ data += ` - +${minisrv_config.config.service_name} Admin diff --git a/zefie_wtvp_minisrv/package-lock.json b/zefie_wtvp_minisrv/package-lock.json index 700213b1..c1142f69 100644 --- a/zefie_wtvp_minisrv/package-lock.json +++ b/zefie_wtvp_minisrv/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "zefie_wtvp_minisrv", - "version": "0.9.41", + "version": "0.9.43", "license": "GPL3", "dependencies": { "@mafintosh/vm2": "^3.9.2",