Move WTV Admin to wtv-tricks, add link to PB
This commit is contained in:
@@ -29,14 +29,6 @@ var notImplementedAlert = new clientShowAlert({
|
|||||||
'noback': true,
|
'noback': true,
|
||||||
}).getURL();
|
}).getURL();
|
||||||
|
|
||||||
var notAdminAlert = new clientShowAlert({
|
|
||||||
'image': minisrv_config.config.service_logo,
|
|
||||||
'message': "Sorry, you are not configured as an admin on this server.<br><br>If you are the server operator, please<br> see <strong>user_config.example.json</strong><br> for an example on how to configure yourself as an administrator.",
|
|
||||||
'buttonlabel1': "Ugh, fine.",
|
|
||||||
'buttonaction1': "client:donothing",
|
|
||||||
'noback': true,
|
|
||||||
}).getURL();
|
|
||||||
|
|
||||||
var ownMinisrv = new clientShowAlert({
|
var ownMinisrv = new clientShowAlert({
|
||||||
'image': minisrv_config.config.service_logo,
|
'image': minisrv_config.config.service_logo,
|
||||||
'message': "To run your own minisrv, please visit the following link on your PC:<br><br><strong>https://zef.pw/minisrv</strong>",
|
'message': "To run your own minisrv, please visit the following link on your PC:<br><br><strong>https://zef.pw/minisrv</strong>",
|
||||||
@@ -263,7 +255,7 @@ data += `
|
|||||||
<td absheight="3">
|
<td absheight="3">
|
||||||
<tr>
|
<tr>
|
||||||
<td abswidth="6">
|
<td abswidth="6">
|
||||||
<td href="${(wtvshared.isAdmin(session_data)) ? "wtv-admin:/admin" : notAdminAlert}" height="21" valign="middle" bgcolor="#BBAEC8"><font color="#454C73">€ </font><font color="#000000">WTV Admin</font>
|
<td href="wtv-author:/documents" height="21" valign="middle" bgcolor="#BBAEC8"><font color="#454C73">€ </font><font color="#000000">Pagebuilder</font>
|
||||||
<td abswidth="6">
|
<td abswidth="6">
|
||||||
<tr>
|
<tr>
|
||||||
<td absheight="3">
|
<td absheight="3">
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
var minisrv_service_file = true;
|
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.<br><br>If you are the server operator, please<br> see <strong>user_config.example.json</strong><br> for an example on how to configure yourself as an administrator.",
|
||||||
|
'buttonlabel1': "Ugh, fine.",
|
||||||
|
'buttonaction1': "client:donothing",
|
||||||
|
'noback': true,
|
||||||
|
}).getURL();
|
||||||
|
|
||||||
headers = `200 OK
|
headers = `200 OK
|
||||||
Content-Type: text/html`
|
Content-Type: text/html`
|
||||||
|
|
||||||
@@ -48,7 +57,7 @@ data += `
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan=3 height=6>
|
<td colspan=3 height=6>
|
||||||
<tr>
|
<tr>
|
||||||
<td><!-- TODO -->
|
<td><a href="${(wtvshared.isAdmin(session_data)) ? "wtv-admin:/admin" : notAdminAlert}">${minisrv_config.config.service_name} Admin</a>
|
||||||
<td width = 25>
|
<td width = 25>
|
||||||
<td><!-- TODO -->
|
<td><!-- TODO -->
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
2
zefie_wtvp_minisrv/package-lock.json
generated
2
zefie_wtvp_minisrv/package-lock.json
generated
@@ -6,7 +6,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "zefie_wtvp_minisrv",
|
"name": "zefie_wtvp_minisrv",
|
||||||
"version": "0.9.41",
|
"version": "0.9.43",
|
||||||
"license": "GPL3",
|
"license": "GPL3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mafintosh/vm2": "^3.9.2",
|
"@mafintosh/vm2": "^3.9.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user