diff --git a/error403.lp b/error403.lp
index d071669f..82144646 100644
--- a/error403.lp
+++ b/error403.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header.lp','r')
+mg.include('scripts/lua/header.lp','r')
?>
diff --git a/error404.lp b/error404.lp
index 394e1a89..4aed89b5 100644
--- a/error404.lp
+++ b/error404.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header.lp','r')
+mg.include('scripts/lua/header.lp','r')
?>
diff --git a/gravity.lp b/gravity.lp
index 063125d8..c2312acd 100644
--- a/gravity.lp
+++ b/gravity.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -27,5 +27,5 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/groups-clients.lp b/groups-clients.lp
index e0fd29c7..2ffbea9b 100644
--- a/groups-clients.lp
+++ b/groups-clients.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -93,8 +93,8 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
-
-
+
+
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/groups-domains.lp b/groups-domains.lp
index 80d4a8c8..59d460f1 100644
--- a/groups-domains.lp
+++ b/groups-domains.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -150,7 +150,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
-
+
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/groups-lists.lp b/groups-lists.lp
index 4fb0c73d..4803e37f 100644
--- a/groups-lists.lp
+++ b/groups-lists.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -92,7 +92,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
-
+
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/groups.lp b/groups.lp
index 0e70f5d9..06db01da 100644
--- a/groups.lp
+++ b/groups.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -81,7 +81,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
-
+
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/index.lp b/index.lp
index 3cb316ef..a5b3ab83 100644
--- a/index.lp
+++ b/index.lp
@@ -8,7 +8,7 @@
--]]
indexpage = true
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
-
-
+
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/package.json b/package.json
index 1404f2bd..f173bc27 100644
--- a/package.json
+++ b/package.json
@@ -16,11 +16,11 @@
"homepage": "https://github.com/pi-hole/web#readme",
"scripts": {
"prefix": "postcss \"style/*.css\" \"style/themes/*.css\" --use autoprefixer --no-map --replace",
- "prettier:check": "prettier -l \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**/*.js\"",
- "prettier:fix": "prettier --write \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**/*.js\"",
+ "prettier:check": "prettier -l \"style/*.css\" \"style/themes/*.css\" \"scripts/**/*.js\"",
+ "prettier:fix": "prettier --write \"style/*.css\" \"style/themes/*.css\" \"scripts/**/*.js\"",
"xo": "xo",
- "xo:check": "npm run xo -- \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**\"",
- "xo:fix": "npm run xo -- --fix \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**\"",
+ "xo:check": "npm run xo -- \"style/*.css\" \"style/themes/*.css\" \"scripts/**\"",
+ "xo:fix": "npm run xo -- --fix \"style/*.css\" \"style/themes/*.css\" \"scripts/**\"",
"test": "npm run prettier:check && npm run xo:check",
"testpr": "npm run prettier:fix && git diff --ws-error-highlight=all --color=always --exit-code && npm run xo:check"
},
diff --git a/queries.lp b/queries.lp
index 3c5b9d01..baeaa1b4 100644
--- a/queries.lp
+++ b/queries.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -195,8 +195,8 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
+
-
+
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/scripts/pi-hole/js/charts.js b/scripts/js/charts.js
similarity index 100%
rename from scripts/pi-hole/js/charts.js
rename to scripts/js/charts.js
diff --git a/scripts/pi-hole/js/debug.js b/scripts/js/debug.js
similarity index 91%
rename from scripts/pi-hole/js/debug.js
rename to scripts/js/debug.js
index 314588ba..022f6b95 100644
--- a/scripts/pi-hole/js/debug.js
+++ b/scripts/js/debug.js
@@ -26,7 +26,7 @@ function eventsource() {
if (typeof EventSource !== "function") {
$.ajax({
method: "GET",
- url: "scripts/pi-hole/php/debug.php?IE&token=" + token + checked,
+ url: "scripts/php/debug.php?IE&token=" + token + checked,
async: false,
}).done(function (data) {
ta.show();
@@ -36,7 +36,7 @@ function eventsource() {
return;
}
- var source = new EventSource("scripts/pi-hole/php/debug.php?&token=" + token + checked);
+ var source = new EventSource("scripts/php/debug.php?&token=" + token + checked);
// Reset and show field
ta.empty();
diff --git a/scripts/pi-hole/js/footer.js b/scripts/js/footer.js
similarity index 100%
rename from scripts/pi-hole/js/footer.js
rename to scripts/js/footer.js
diff --git a/scripts/pi-hole/js/gravity.js b/scripts/js/gravity.js
similarity index 100%
rename from scripts/pi-hole/js/gravity.js
rename to scripts/js/gravity.js
diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/js/groups-clients.js
similarity index 100%
rename from scripts/pi-hole/js/groups-clients.js
rename to scripts/js/groups-clients.js
diff --git a/scripts/pi-hole/js/groups-common.js b/scripts/js/groups-common.js
similarity index 100%
rename from scripts/pi-hole/js/groups-common.js
rename to scripts/js/groups-common.js
diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/js/groups-domains.js
similarity index 100%
rename from scripts/pi-hole/js/groups-domains.js
rename to scripts/js/groups-domains.js
diff --git a/scripts/pi-hole/js/groups-lists.js b/scripts/js/groups-lists.js
similarity index 100%
rename from scripts/pi-hole/js/groups-lists.js
rename to scripts/js/groups-lists.js
diff --git a/scripts/pi-hole/js/groups.js b/scripts/js/groups.js
similarity index 100%
rename from scripts/pi-hole/js/groups.js
rename to scripts/js/groups.js
diff --git a/scripts/pi-hole/js/index.js b/scripts/js/index.js
similarity index 100%
rename from scripts/pi-hole/js/index.js
rename to scripts/js/index.js
diff --git a/scripts/pi-hole/js/interfaces.js b/scripts/js/interfaces.js
similarity index 100%
rename from scripts/pi-hole/js/interfaces.js
rename to scripts/js/interfaces.js
diff --git a/scripts/pi-hole/js/ip-address-sorting.js b/scripts/js/ip-address-sorting.js
similarity index 100%
rename from scripts/pi-hole/js/ip-address-sorting.js
rename to scripts/js/ip-address-sorting.js
diff --git a/scripts/pi-hole/js/login.js b/scripts/js/login.js
similarity index 100%
rename from scripts/pi-hole/js/login.js
rename to scripts/js/login.js
diff --git a/scripts/pi-hole/js/logout.js b/scripts/js/logout.js
similarity index 100%
rename from scripts/pi-hole/js/logout.js
rename to scripts/js/logout.js
diff --git a/scripts/pi-hole/js/messages.js b/scripts/js/messages.js
similarity index 100%
rename from scripts/pi-hole/js/messages.js
rename to scripts/js/messages.js
diff --git a/scripts/pi-hole/js/network.js b/scripts/js/network.js
similarity index 100%
rename from scripts/pi-hole/js/network.js
rename to scripts/js/network.js
diff --git a/scripts/pi-hole/js/queries.js b/scripts/js/queries.js
similarity index 100%
rename from scripts/pi-hole/js/queries.js
rename to scripts/js/queries.js
diff --git a/scripts/pi-hole/js/search.js b/scripts/js/search.js
similarity index 100%
rename from scripts/pi-hole/js/search.js
rename to scripts/js/search.js
diff --git a/scripts/pi-hole/js/settings-advanced.js b/scripts/js/settings-advanced.js
similarity index 100%
rename from scripts/pi-hole/js/settings-advanced.js
rename to scripts/js/settings-advanced.js
diff --git a/scripts/pi-hole/js/settings-api.js b/scripts/js/settings-api.js
similarity index 100%
rename from scripts/pi-hole/js/settings-api.js
rename to scripts/js/settings-api.js
diff --git a/scripts/pi-hole/js/settings-dhcp.js b/scripts/js/settings-dhcp.js
similarity index 100%
rename from scripts/pi-hole/js/settings-dhcp.js
rename to scripts/js/settings-dhcp.js
diff --git a/scripts/pi-hole/js/settings-dns-records.js b/scripts/js/settings-dns-records.js
similarity index 100%
rename from scripts/pi-hole/js/settings-dns-records.js
rename to scripts/js/settings-dns-records.js
diff --git a/scripts/pi-hole/js/settings-dns.js b/scripts/js/settings-dns.js
similarity index 100%
rename from scripts/pi-hole/js/settings-dns.js
rename to scripts/js/settings-dns.js
diff --git a/scripts/pi-hole/js/settings-privacy.js b/scripts/js/settings-privacy.js
similarity index 100%
rename from scripts/pi-hole/js/settings-privacy.js
rename to scripts/js/settings-privacy.js
diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/js/settings-system.js
similarity index 100%
rename from scripts/pi-hole/js/settings-system.js
rename to scripts/js/settings-system.js
diff --git a/scripts/pi-hole/js/settings-teleporter.js b/scripts/js/settings-teleporter.js
similarity index 100%
rename from scripts/pi-hole/js/settings-teleporter.js
rename to scripts/js/settings-teleporter.js
diff --git a/scripts/pi-hole/js/settings.js b/scripts/js/settings.js
similarity index 100%
rename from scripts/pi-hole/js/settings.js
rename to scripts/js/settings.js
diff --git a/scripts/pi-hole/js/taillog.js b/scripts/js/taillog.js
similarity index 100%
rename from scripts/pi-hole/js/taillog.js
rename to scripts/js/taillog.js
diff --git a/scripts/pi-hole/js/utils.js b/scripts/js/utils.js
similarity index 100%
rename from scripts/pi-hole/js/utils.js
rename to scripts/js/utils.js
diff --git a/scripts/pi-hole/lua/footer.lp b/scripts/lua/footer.lp
similarity index 97%
rename from scripts/pi-hole/lua/footer.lp
rename to scripts/lua/footer.lp
index d290af7f..6dcb5640 100644
--- a/scripts/pi-hole/lua/footer.lp
+++ b/scripts/lua/footer.lp
@@ -66,7 +66,7 @@ end
-
+
diff --git a/scripts/pi-hole/lua/header.lp b/scripts/lua/header.lp
similarity index 98%
rename from scripts/pi-hole/lua/header.lp
rename to scripts/lua/header.lp
index 3dfb482b..257b046d 100644
--- a/scripts/pi-hole/lua/header.lp
+++ b/scripts/lua/header.lp
@@ -120,6 +120,6 @@ if startsWith(scriptname, 'groups') then
-
+
diff --git a/scripts/pi-hole/lua/header_authenticated.lp b/scripts/lua/header_authenticated.lp
similarity index 98%
rename from scripts/pi-hole/lua/header_authenticated.lp
rename to scripts/lua/header_authenticated.lp
index be65a501..8c20d9c8 100644
--- a/scripts/pi-hole/lua/header_authenticated.lp
+++ b/scripts/lua/header_authenticated.lp
@@ -9,7 +9,7 @@
]]--
mg.include('header.lp','r')
?>
-
+
diff --git a/scripts/pi-hole/lua/settings_header.lp b/scripts/lua/settings_header.lp
similarity index 100%
rename from scripts/pi-hole/lua/settings_header.lp
rename to scripts/lua/settings_header.lp
diff --git a/scripts/pi-hole/lua/sidebar.lp b/scripts/lua/sidebar.lp
similarity index 100%
rename from scripts/pi-hole/lua/sidebar.lp
rename to scripts/lua/sidebar.lp
diff --git a/search.lp b/search.lp
index 7b5a0892..01b60ae6 100644
--- a/search.lp
+++ b/search.lp
@@ -7,7 +7,7 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
?>
@@ -48,5 +48,5 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
-
- mg.include('scripts/pi-hole/lua/footer.lp','r')?>
+
+ mg.include('scripts/lua/footer.lp','r')?>
diff --git a/settings-all.lp b/settings-all.lp
index 75905fbc..f758b761 100644
--- a/settings-all.lp
+++ b/settings-all.lp
@@ -7,11 +7,11 @@
* Please see LICENSE file for your rights under this license.
--]]
-mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+mg.include('scripts/lua/header_authenticated.lp','r')
-- Page title and level selector
PageTitle = "All Settings"
-mg.include('scripts/pi-hole/lua/settings_header.lp','r')
+mg.include('scripts/lua/settings_header.lp','r')
?>