Commit Graph

3134 Commits

Author SHA1 Message Date
DL6ER
549776011d Merge pull request #1093 from pi-hole/rm-unused-vars
Remove more unused variables
2019-12-17 17:19:21 +01:00
DL6ER
8898a742d2 Use one variable less.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-17 18:14:49 +02:00
XhmikosR
f96d6cc0f0 Remove more unused variables
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 17:15:59 +02:00
DL6ER
5828f0f866 Merge pull request #1069 from pi-hole/XhmikosR-patch-1
Delete the unused .pullapprove.yml
2019-12-17 15:56:50 +01:00
DL6ER
59b04047d6 Merge pull request #1086 from pi-hole/js-license-header
Add missing license header
2019-12-17 15:56:31 +01:00
DL6ER
aad00db5b6 Merge pull request #1085 from pi-hole/reuse-dateformat
Reuse the `dateformat` variable
2019-12-17 15:55:41 +01:00
DL6ER
f9496c5c6e Merge pull request #1087 from pi-hole/let
Use var instead of let.
2019-12-17 15:54:01 +01:00
DL6ER
49df077a66 Merge pull request #1089 from pi-hole/XhmikosR-patch-2
Reuse variable and make code clearer
2019-12-17 15:53:32 +01:00
DL6ER
f084fa1991 Merge pull request #1091 from pi-hole/text
Use `text()` for the token
2019-12-17 15:49:05 +01:00
XhmikosR
f486935eb8 Use text() for the token
We don't need any HTML.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 15:57:50 +02:00
XhmikosR
18cfd8dab1 Reuse variable and make code clearer
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 12:19:43 +02:00
XhmikosR
ef396ede5b Use var instead of let.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 10:47:01 +02:00
XhmikosR
689aa6afd6 Add missing license headers
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 10:46:36 +02:00
XhmikosR
7d9e32bac6 Reuse the dateformat variable
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 09:59:01 +02:00
Adam Warner
d966c7f534 Merge pull request #1073 from XhmikosR/js-2
Assorted JS tweaks
2019-12-16 19:21:42 +00:00
Adam Warner
6864aacca3 Merge pull request #1082 from pi-hole/header
header: hide `hostname` on small devices
2019-12-16 19:21:34 +00:00
XhmikosR
4b06680ba8 header: hide hostname on small devices
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 21:15:49 +02:00
XhmikosR
9c1846885a Clean up JS
* remove unused variables/functions
* use the dot notation
* use explicit coercion
* remove unneeded else
* use `textContent` instead of `innerHTML`
* cache a few `getElementById` calls
* fix a couple of undefined variables
* various assorted lint tweaks

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 20:36:40 +02:00
Adam Warner
b198467bfc Merge pull request #1081 from pi-hole/ie11
db_graph.js: Fix IE 11
2019-12-16 18:12:15 +00:00
XhmikosR
97bc779299 db_graph.js: Fix IE 11
IE doesn't support `Array.includes()`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 19:29:24 +02:00
XhmikosR
865469c9cb Delete .pullapprove.yml
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-16 14:03:27 +02:00
DL6ER
8c20ac58b9 Merge pull request #1072 from pi-hole/js
settings.js: fix object shorthand
2019-12-16 12:57:45 +01:00
DL6ER
3391580416 Merge pull request #1065 from pkolmann/devel
I have a different service running on FTL default port and so FTL ser…
2019-12-16 12:57:14 +01:00
DL6ER
52f5be0c8f Merge pull request #992 from trimalcione/devel
Add DHCP leases export/import from teleporter
2019-12-16 11:22:28 +01:00
DL6ER
5388927f52 Merge pull request #1078 from pi-hole/tweak/domainlist_table
Change web interface to use domainlist table
2019-12-16 01:19:41 +01:00
trimalcione
03326ebe09 fix DHCP tab syncing after telereporter import
Signed-off-by: trimalcione <okchtioui@gmail.com>
2019-12-16 00:37:23 +01:00
trimalcione
f35a2bc066 Merge branch 'devel' of https://github.com/trimalcione/AdminLTE into devel
Signed-off-by: trimalcione <okchtioui@gmail.com>
2019-12-16 00:35:38 +01:00
XhmikosR
d91b605563 settings.js: fix object shorthand
This broke IE

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-11 00:30:08 +02:00
Philipp Kolmann
87ba9740f1 remove debug output
Signed-off-by: Philipp Kolmann <philipp@kolmann.at>
2019-12-10 21:14:09 +01:00
DL6ER
23ac374ff0 Merge pull request #1070 from XhmikosR/css-prefixes
pi-hole.css: add missing CSS prefixes
2019-12-10 17:38:21 +01:00
DL6ER
98c890f572 Merge pull request #1068 from XhmikosR/devel
help.php: replace `samp` with `code`
2019-12-10 17:37:01 +01:00
XhmikosR
7a2510ae28 pi-hole.css: add missing CSS prefixes
Since the original theme supports older browsers, better be consistent here

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-10 09:08:44 +02:00
XhmikosR
8c304c0f20 help.php: replace samp with code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 22:32:19 +02:00
Adam Warner
5bce83f21f Merge pull request #1067 from XhmikosR/devel
Tweaks and CSS cleanup
2019-12-09 19:59:16 +00:00
XhmikosR
7031d19d25 Remove unneeded escape characters
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:50:42 +02:00
XhmikosR
81357eb5b0 Change the no JavaScript text as per the suggestions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:36:58 +02:00
XhmikosR
0cac6dc0b4 Update scripts/pi-hole/php/header.php
Co-Authored-By: Adam Warner <me@adamwarner.co.uk>
2019-12-09 21:36:58 +02:00
XhmikosR
0dc918e2ef loginpage.php: use kbd since it makes more sense
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:36:58 +02:00
XhmikosR
0dc67fd516 loginpage.php: fix a few validation errors.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:36:58 +02:00
XhmikosR
d65b5be5e2 A few CSS tweaks.
Add utilities classes and fix a few CSS issues.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:36:58 +02:00
XhmikosR
5275faacb1 Lowercase hex colors.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:53:21 +02:00
XhmikosR
3c6ad4cb76 Fix a couple of HTML validation errors.
Also add width and height attributes in a few cases.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:53:13 +02:00
XhmikosR
f0469d1954 Move common tags together
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:53:05 +02:00
XhmikosR
b4a7d92d8c Remove type="text/css` from stylesheet
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:55 +02:00
XhmikosR
d94ea9e8fe Get rid of js/header.js.
Wrap the code in `noscript instead. Also move its CSS in `head`.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:49 +02:00
XhmikosR
cc9acd4018 Add lang="en"
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:41 +02:00
XhmikosR
0eeb71aa86 Fix meta viewport.
It's bad practice not allowing the user to zoom

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:34 +02:00
XhmikosR
32342cb567 Lowercase doctype and utf-8.
Same functionality, better compression.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:23 +02:00
XhmikosR
bc8fe9ba5b Use code instead of samp.
Now it's styled.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:15 +02:00
XhmikosR
d0fa5c0da4 Remove unneeded end tags.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:52:06 +02:00