DL6ER
61a3ec1b2b
Merge pull request #1298 from pi-hole/XhmikosR-patch-5
...
Enable `no-zero-fractions` rule
2020-05-25 19:48:01 +02:00
XhmikosR
c7e3be4b07
footer.js: remove duplicate function.
...
There's already a function checking for cookies in the previous document.ready function.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-25 09:41:21 +03:00
XhmikosR
4356bd5f04
Always use !== -1 to check for a string's existence
...
`String.indexOf()` returns -1 if the string isn't found so this is consistent with the rest of the codebase.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-25 09:38:47 +03:00
XhmikosR
138e4b6e1a
db_graph.js: move variable where it's used
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 13:14:47 +03:00
XhmikosR
e70e108cce
Use .hidden/.show for showing/hiding the reset buttons
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 13:04:13 +03:00
XhmikosR
9c5fb734c4
Remove redundant variable.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 11:27:59 +03:00
Adam Warner
3957e9eef1
Move some duplicated code to utils.js
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-23 11:04:30 +03:00
Adam Warner
eb05394b66
Add saveState/loadState callbacks
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-23 10:53:34 +03:00
Adam Warner
6b1340cfdf
Add staveSave property bool to DHCP tables to remember last used sort direction/column
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-23 10:53:32 +03:00
XhmikosR
4247c973c9
Rename function.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 10:29:50 +03:00
XhmikosR
444e97b2b9
Rename groups-common.js to utils.js.
...
It's not used only in group pages, and we should try to move more common stuff here later.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 10:29:48 +03:00
XhmikosR
0fa7de82b0
JS: Enforce camelcase.
...
It's a common convention to use camelcase for variable names.
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-23 10:29:44 +03:00
Adam Warner
8729995ed1
Merge pull request #1342 from pi-hole/XhmikosR-patch-2
...
Update settings.js
2020-05-23 08:14:51 +01:00
Adam Warner
685f262b91
Merge pull request #1341 from pi-hole/rm-glyphicons
...
Remove glyphicons again.
2020-05-23 08:12:22 +01:00
Adam Warner
2de1c94a5f
Merge pull request #1333 from pi-hole/auditlog-row-fix
...
auditlog: fix buttons grouping
2020-05-23 08:03:58 +01:00
Matthias rank
212da94228
Added token verification
...
Moved CNAME functions to func.php
Added teleporter support
Fixed CNAME and DNS file declaration (filename was declarated in seperate file, therefore trying to read those files from func.php failed)
Fixed error and success response functions in func.php (calling addCustomDNSEntry and addCustomCNAMEEntry repeatedly from teleporter failed because of error function defined inside of those functions)
Signed-off-by: Matthias Rank <development@m-rank.de >
2020-05-21 14:48:13 +02:00
XhmikosR
617447e534
Update settings.js
...
* fix "Pi-hole" case
* remove moot modal class
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-21 15:39:15 +03:00
XhmikosR
f158e25d2e
Remove glyphicons again.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-21 09:55:36 +03:00
Adam Warner
7b2d396295
require auth for the customDNS page
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-20 08:26:21 +01:00
XhmikosR
3202c10c2c
auditlog: fix buttons grouping
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-19 10:23:43 +03:00
Adam Warner
c4091a7b3b
Add checkbox (save state in localstorage) to toggle between bar and smooth charts
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-18 20:56:21 +01:00
Adam Warner
d47d284ef9
Set default sort on DHCP lease tables to that of Hostname for ease of access
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-18 18:22:34 +01:00
XhmikosR
6bfc95ff85
Remove unneeded stuff and fix linting
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-17 16:11:05 +03:00
DL6ER
f591280d58
Review comments
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-17 16:07:22 +03:00
DL6ER
0d834b9b1c
Fix domain management JS error.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-17 16:07:21 +03:00
DL6ER
4a29d93a2f
Add support for SUBNET messages.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-17 16:07:21 +03:00
DL6ER
b0f54f5451
Add new Pi-hole diagnostics page.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-17 16:07:21 +03:00
Adam Warner
7d409ad76c
Merge pull request #1269 from pi-hole/fix/client_sorting
...
Add proper IP sorting to the groups->client table
2020-05-17 13:49:56 +01:00
XhmikosR
623087346a
Enable no-zero-fractions rule
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-17 15:03:52 +03:00
Adam Warner
aec571579d
Merge pull request #1312 from pi-hole/tweak/fix_summary
...
Fix summary header
2020-05-17 12:46:24 +01:00
Adam Warner
1e639e9dc5
Merge pull request #1306 from pi-hole/xmr-network
...
network: use Font Awesome
2020-05-17 11:54:29 +01:00
Adam Warner
dcf3c42924
flip null check on elName. === null was not working
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-17 11:46:50 +01:00
XhmikosR
f2b11caf58
Rename variable to camelcase.
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-17 08:53:53 +03:00
XhmikosR
0b3371030f
network: use Font Awesome
...
Signed-off-by: XhmikosR <xhmikosr@gmail.com >
2020-05-17 08:51:07 +03:00
Adam Warner
b351f45cb2
Change the names of the info elements without changing the property names of the API
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2020-05-15 09:25:01 +01:00
DL6ER
a3df25c845
Merge pull request #1293 from jacklul/patch-2
...
Trim user input where applicable
2020-05-14 18:22:18 +02:00
Jack'lul
e12ebcbd08
Trim user input where applicable
...
Signed-off-by: Jack'lul <jacklulcat@gmail.com >
2020-05-14 18:01:36 +02:00
Jack'lul
9b92548ae1
Make sure ip-custom field is editable when no suggestions are available
...
Signed-off-by: Jack'lul <jacklulcat@gmail.com >
2020-05-14 17:38:49 +02:00
DL6ER
6b8e12a0d1
Fix autocomplete bug on group pages.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-13 23:54:22 +02:00
DL6ER
b7d74ff772
Reinstall loading overlay on long-term graphs page (shown only if data has been requested).
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
b5e64653db
Update network colors
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
ec53843379
Restore coloring of the entire rows in the Query Log
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
05d5f02a36
Add theme chooser to Setting -> Web interface.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
064a0aae9c
Use the iCheck library for input box styling.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:50:29 +02:00
DL6ER
6b47a937fb
Add network table theming.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:55 +02:00
DL6ER
b23afb4516
Dark mode for Long-term Query Log and Lists
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:55 +02:00
DL6ER
8468f129eb
Dark mode optimizations for Query Log and Long-term graphics
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:55 +02:00
DL6ER
a08a85994e
Initial (incomplete) support for themes. Currently, the default is the new Pi-hole dark theme.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 22:44:52 +02:00
Matthias rank
4e07ae24f1
Added support for CNAME records add/remove
...
Signed-off-by: Matthias rank <development@m-rank.de >
2020-05-12 22:24:45 +02:00
DL6ER
2314a60d5b
Get an endless array of colors without altering the colors array itself.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2020-05-12 17:16:55 +02:00