Commit Graph

219 Commits

Author SHA1 Message Date
XhmikosR
1bef0bb17b Tweak CSP (#1445)
Switch to `default-src` `'none'` and specify the directives we were missing that were being inherited.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-06-07 14:20:45 +03:00
XhmikosR
9aa11ec6aa Fix typo "Long term" -> "Long-term"
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-06-04 19:01:10 +03:00
XhmikosR
a9cee0039a Improve CSP config (#1377)
* Remove `'unsafe-eval'`; this was needed in the past for Chart.js.
* Remove `https://api.github.com` since we don't make any requests to this domain client-side
* Specify more directives which are not inherited by `default-src`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-06-04 17:40:39 +03:00
DL6ER
c6abbac3e1 Unlike the standard PHP engine, others might actually be case-sensitive. (#1428)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-04 15:13:15 +03:00
DL6ER
a4a678b584 Revert "Add per-browser boxed layout setting"
This reverts commit c2683fb87bc50369753b279e179e7b5d0d1e60a9.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:51 +01:00
DL6ER
51dc473278 Remove saving backend for settings moved into local storage.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:51 +01:00
DL6ER
2e0a261c47 No not use per-browser settings for the theme to avoid flashing pages on navigation.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:51 +01:00
DL6ER
3c793581b7 Add per-browser temp unit selection
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:19:00 +01:00
DL6ER
6e52ee4307 Add per-browser theme selection
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:18:36 +01:00
DL6ER
7ff5764f95 Add per-browser boxed layout setting
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:17:28 +01:00
DL6ER
0e4d1e4e7f Implement per-browser checkbox and radio button styling using icheck-material.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:17:28 +01:00
Chris Coffin
4cca206810 Change "Permanently" toggle to "Indefinitely" (#1416)
* Changing "Permanently" toggle to "Indefinitely"

Signed-off-by: Chris Coffin <me@chriscoffin.org>

* Updating ID name in footer.js

Signed-off-by: Chris Coffin <me@chriscoffin.org>

Co-authored-by: Adam Warner <me@adamwarner.co.uk>
2020-06-01 21:47:33 +03:00
XhmikosR
e9fc5a20ca Revert "header: Move license header at the top"
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-31 15:56:10 +03:00
Adam Warner
89ce5d139b Merge pull request #1405 from pi-hole/fix-sidebar
Fix sidebar docs link
2020-05-30 15:36:18 +01:00
Adam Warner
be54d1563d Merge pull request #1402 from pi-hole/XhmikosR-patch-3
Move animate.min.css style in the pages that use it
2020-05-30 15:35:09 +01:00
XhmikosR
ee40ea3d36 Fix sidebar docs link
Also work around us using Font Awesome 5.x with AdminLTE 2.x.

We should fix the FA classes later.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:16:09 +03:00
XhmikosR
4e5cc31134 Move animate.min.css style in the pages that use it
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 08:28:45 +03:00
XhmikosR
876e7d8bd9 Use minified daterangepicker builds.
The official distribution doesn't include minified files, so just minify the files ourselves.

It's in maintenance mode anyway.

Commands for future reference:

* cleancss --compatibility ie9 -O1 specialComments:0 -o daterangepicker.min.css daterangepicker.css
* terser daterangepicker.js --compress typeofs=false --mangle --source-map url=daterangepicker.min.js.map -o daterangepicker.min.js

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 08:26:44 +03:00
Adam Warner
a284f71bd7 Merge pull request #1389 from pi-hole/js-move
Move JS files where they are used.
2020-05-29 23:39:51 +01:00
DL6ER
7abeb2b434 Merge pull request #1404 from pi-hole/been-a-while-since-we-touched-this
remove outdated local help page, link to docs instead
2020-05-29 23:15:58 +02:00
Adam Warner
0d7040921e Merge pull request #1361 from pi-hole:rm-jquery-ui
Remove the unused jQuery UI.
2020-05-29 21:42:16 +01:00
Adam Warner
1390a6dd5a remove outdated local help page, link to docs instead
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-29 21:41:11 +01:00
DL6ER
e213dce308 Merge pull request #1394 from pi-hole/ren-fa-folder
Remove version number from the Font Awesome folder.
2020-05-29 22:10:25 +02:00
XhmikosR
2b93d569dd Move the gethostname() call to a variable.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 09:49:51 +03:00
XhmikosR
f1eb744ff5 Guard gethostname() calls
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 09:24:07 +03:00
XhmikosR
95219703a1 Remove the unused jQuery UI.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 08:31:06 +03:00
XhmikosR
469d491260 Move JS files where they are used.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-29 07:43:13 +03:00
XhmikosR
f5d68ffd88 Remove version number from the Font Awesome folder.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-27 09:22:37 +03:00
XhmikosR
30776108ee Use fa5 class on the sidebar toggle
This was added in AdminLTE v2.4.13.

Also, remove unneeded related custom CSS while at it.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 21:12:15 +03:00
XhmikosR
b20b6797c1 HTML hidden attribute does not need a value.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 19:03:02 +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
Adam Warner
71547422ec Merge pull request #1347 from pi-hole/improve-user-info-markup
Improve user info markup
2020-05-23 08:49:36 +01:00
Adam Warner
8c3ad9a1b9 Merge pull request #1335 from pi-hole/datatables
Load the built DataTables bundle
2020-05-23 08:08:17 +01:00
XhmikosR
442201d613 Improve user info markup
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-22 11:21:43 +03:00
XhmikosR
9d9cd8b7e6 Load the built DataTables bundle file.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-19 21:58:09 +03:00
XhmikosR
7ad275e1fd Move non-Bootstrap files outside of the bootstrap folder
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-19 16:31:25 +03:00
Adam Warner
dd599ad08d Merge pull request #1323 from pi-hole/XhmikosR-patch-7
header.php: minor cleanup
2020-05-18 19:12:50 +01:00
Adam Warner
89baa0b532 Merge pull request #1320 from pi-hole/XhmikosR-patch-2
header.php: group stylesheets and scripts
2020-05-18 19:10:18 +01:00
Adam Warner
84dd58e03e Merge pull request #1319 from pi-hole/XhmikosR-patch-4
Use `text-uppercase` in sidebar
2020-05-18 19:08:26 +01:00
Adam Warner
dd6b47e835 Merge pull request #1309 from pi-hole/XhmikosR-patch-3
Improve navbar's hostname markup
2020-05-18 19:07:38 +01:00
XhmikosR
b7fd000cef header.php: minor cleanup
* remove unneeded inline styles
* use `strong` instead of `b`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-18 10:27:45 +03:00
XhmikosR
0029b3fccb header.php: group stylesheets and scripts
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-18 09:23:39 +03:00
XhmikosR
c66599c1b8 Use text-uppercase in sidebar
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-17 22:14:57 +03:00
XhmikosR
30b8c5f383 Improve navbar's hostname markup
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-17 17:20:48 +03: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
b0f54f5451 Add new Pi-hole diagnostics page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:21 +03:00
Adam Warner
ee0f9fdf68 Merge pull request #1310 from pi-hole/XhmikosR-patch-2
Improve user-menu markup
2020-05-17 13:23:32 +01:00
Adam Warner
61715ffcc2 Merge pull request #1304 from pi-hole/XhmikosR-patch-8
header: fix `aria-expanded` for user-menu dropdown
2020-05-17 13:16:36 +01:00
Adam Warner
457ffb2a5d Merge pull request #1302 from pi-hole/xmr-update-fa
Update Font Awesome to v5.13.0
2020-05-17 13:12:49 +01:00