Commit Graph
3629 Commits
Author SHA1 Message Date
XhmikosR d48a57a2cd Update pi-hole.css
* format code
* use `background-color` instead of the `background` shorthand
* use the `animation` shorthand
* remove unneeded CSS prefixes

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-26 13:14:45 +03:00
XhmikosR cfad66abca Update npm scripts
* add browserslist settings in package.json
* add prettier scripts for CSS and JS (JS is mainly for devel since xo handles this for us)
* add autoprefixer to handle CSS prefixes for us (`npm run prefix`)

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-26 13:13:03 +03:00
Paul Mannarino 256aff73a6 Replace custom httpGet() with $.ajax()" (#1371)
Signed-off-by: Paul Mannarino <paul.mannarino@gmail.com>
2020-05-25 21:59:18 +03:00
DL6ER c86515e028 Merge pull request #1372 from pi-hole/indexOf
Always use `!== -1` to check for a string's existence
2020-05-25 20:42:02 +02:00
DL6ER 8cc24a9158 Merge pull request #1379 from pi-hole/XhmikosR-patch-3
pi-hole.css: fix glow to use the current color
2020-05-25 20:41:17 +02:00
DL6ER ba510cc8d1 Merge pull request #1369 from pi-hole/clean-markup
Minor HTML markup fixes.
2020-05-25 20:37:00 +02:00
DL6ER a4f9068b32 Merge pull request #1368 from pi-hole/sidebar-toggle
Use `fa5` class on the sidebar toggle
2020-05-25 20:36:19 +02:00
DL6ER 621e65b9bb Merge pull request #1367 from pi-hole/clean-table-classes
Clean table classes
2020-05-25 20:33:48 +02:00
DL6ER 68cd72a3c0 Merge pull request #1381 from pi-hole/XhmikosR-patch-2
Update settings.js
2020-05-25 20:31:06 +02:00
DL6ER 18dba14389 Merge pull request #1344 from pi-hole/tweak-footer
Tweak footer.php
2020-05-25 20:27:58 +02:00
XhmikosR 792abf8624 Update settings.js
* cache variable
* camelcase variable name

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-25 21:27:36 +03:00
XhmikosR 36eb877a31 Tweak footer.php
* add a new row for the version info
* add links to the current tags
* make the updates URLs go to the latest GitHub release
* color the heart icon red
* remove "Version" from links; the tags are prefixed with "v"

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-25 21:22:18 +03:00
DL6ER b6d1392948 Merge pull request #1351 from pi-hole/redundant-var
Remove redundant variable
2020-05-25 20:17:49 +02:00
DL6ER fc78d470a8 Merge pull request #1358 from pi-hole/XhmikosR-patch-2
db_graph.js: move variable where it's used
2020-05-25 20:14:08 +02:00
DL6ER b6ad648842 Merge pull request #1329 from pi-hole/new/somepeoplelikecurves
Add checkbox (save state in localstorage) to toggle between bar and smooth
2020-05-25 20:08:42 +02:00
DL6ER 184c8e47e1 Merge pull request #1332 from pi-hole/tweak/dhcp_save_state
Remember last used sort column/direction on DHCP lease tables
2020-05-25 20:05:45 +02:00
DL6ER 3bfef7b8a8 Merge pull request #1326 from pi-hole/tweak/notAnError
Remove an error log output that was presumably leftover from debugging
2020-05-25 20:00:40 +02:00
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 7b084b87d4 pi-hole.css: fix glow to use the current color
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-25 16:12:29 +03:00
Adam Warner 2d28f16240 Merge pull request #1373 from pi-hole/rm-dupe-func
footer.js: remove duplicate function.
2020-05-25 13:14:16 +01: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 8f8fb36d25 Regenerate package-lock.json (#1365)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 21:46:56 +03:00
XhmikosR bf63da9873 Minor HTML markup fixes.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 21:16:57 +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 b7540de7d0 Revert "Remove the invalid width="100% attribute"
This reverts commit 59ea121e07.

Apparently, we are doing something weird in the settings tables and this doesn't work. We should revisit this later.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 17:14:04 +03:00
XhmikosR 59ea121e07 Remove the invalid width="100% attribute
Also, add the missing `table` class in a network table.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 16:13:43 +03:00
XhmikosR d3cd52b992 Remove the obsolete cellspacing="0" attribute.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 16:07:46 +03:00
XhmikosR de71dd0fb5 Clean up table classes.
These are DataTables classes which we don't use since we use Bootstrap.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-24 16:05:24 +03:00
Adam Warner d5d2e56c45 Merge pull request #1359 from pi-hole/markdown
Assorted Markdown tweaks
2020-05-24 13:53:22 +01:00
Adam Warner 3bc1ea9231 Merge pull request #1301 from pi-hole/xmr-hidden
HTML `hidden` attribute does not need a value.
2020-05-23 17:16:19 +01: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
Adam Warner b2aaf2bbd1 Merge pull request #1299 from pi-hole/XhmikosR-patch-6
Fix queries Clear Filters button
2020-05-23 16:58:49 +01:00
XhmikosR d8bfd1ad36 Assorted Markdown tweaks
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 15:00:35 +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
XhmikosR 821b283cf2 Fix queries Clear Filters button
Now it should look like the rest of the buttons

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 11:23:11 +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
Adam Warner 34f6c753c7 Merge pull request #1350 from pi-hole/cookies-delete
Properly delete the `persistentlogin` cookie
2020-05-23 08:51:31 +01: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 700e9afc12 Merge pull request #1346 from pi-hole/xo-rules
Enable a couple xo (ESLint) rules and rename utils
2020-05-23 08:45:56 +01: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 4d63870aad Enable xo's new-cap rule.
Set properties to false for now.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:47 +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 0cd6f2113c Merge pull request #1343 from pi-hole/index-smaller-query-charts
index.php: make query charts smaller on md
2020-05-23 08:17:59 +01: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