Commit Graph

4318 Commits

Author SHA1 Message Date
Adam Warner
b43eea7050 Add prettier:check back into npm test, and also run prettier:fix against the devel branch.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2021-11-09 19:48:56 +00:00
yubiuser
14d44f25d5 Merge pull request #1910 from lionralfs/fix/1849-checkboxes
fix: exclude status checkboxes from being treated as iCheck elements
2021-11-09 20:46:55 +01:00
yubiuser
702217030b Merge pull request #1957 from rdwebdesign/fix1750
Allowing data loading after selecting/deselecting options - Long-term data > Query Log
2021-11-07 16:53:22 +01:00
rdwebdesign
1a88de961f "7 days fix" on db_lists.js and db_graph.js
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-07 03:26:03 -03:00
RD WebDesign
59cb739e73 Update db_queries.php
Co-authored-by: yubiuser <ckoenig@posteo.de>
2021-11-07 02:58:45 -03:00
rdwebdesign
8746dc76ba Using the same date interval (7 days) for the default value.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-06 23:34:37 -03:00
rdwebdesign
319b394c3a Allow this functionality only after a daterange has been selected by the user
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-06 19:12:25 -03:00
rdwebdesign
ac5767118a fixing prettier complaint
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-05 20:14:18 -03:00
rdwebdesign
8bce551012 Allows reloading the queries after modifying the options.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-05 19:54:02 -03:00
yubiuser
c0cd21f0b5 Merge pull request #1955 from rdwebdesign/sidebar_focus
Sidebar and nav-tab-custom: additional CSS for focus state
2021-11-03 21:24:57 +01:00
rdwebdesign
c36e08dbcc Sidebar: same effect for hover and focus (all themes).
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-11-03 00:50:52 -03:00
yubiuser
3cadf6c8a5 Merge pull request #1956 from DylanSealy/devel
Add missing rel="noopener" attributes
2021-11-01 22:48:02 +01:00
Dylan Sealy
4371caa227 Added missing rel='noopener'
Signed-off-by: Dylan Sealy <66305635+DylanSealy@users.noreply.github.com>
2021-11-01 22:22:31 +01:00
yubiuser
0ad7cfca3f Merge pull request #1952 from rdwebdesign/queryads_singlediv
Queryads single DIV and responsive CSS (fixed)
2021-11-01 20:54:28 +01:00
yubiuser
ca97e13b11 Merge pull request #1936 from rdwebdesign/theme_lcars
Add Star Trek LCARS theme
2021-11-01 13:15:24 +01:00
yubiuser
24b1449161 Merge pull request #1950 from DylanSealy/devel
Add missing blocked boolean in queries.js
2021-10-31 19:17:37 +01:00
rdwebdesign
675a1a6206 Sidebar and NavTabs: additional CSS for focus state.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-30 17:29:16 -03:00
DL6ER
54d3bd7ff9 Merge pull request #1954 from pi-hole/dependabot/npm_and_yarn/devel/xo-0.46.3
Bump xo from 0.45.0 to 0.46.3
2021-10-30 20:16:04 +02:00
dependabot[bot]
ca4a693212 Bump xo from 0.45.0 to 0.46.3
Bumps [xo](https://github.com/xojs/xo) from 0.45.0 to 0.46.3.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](https://github.com/xojs/xo/compare/v0.45.0...v0.46.3)

---
updated-dependencies:
- dependency-name: xo
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-30 10:04:28 +00:00
Dylan Sealy
dcdad3e606 Readded blank line
Signed-off-by: Dylan Sealy <66305635+DylanSealy@users.noreply.github.com>
2021-10-29 15:00:47 +02:00
rdwebdesign
065d5873f0 queryads: Replace double DIV solution with single DIV and responsive CSS
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-29 02:02:23 -03:00
Dylan Sealy
5e9ba7d1fc Added missing blocked boolean in queries.js
Signed-off-by: Dylan Sealy <66305635+DylanSealy@users.noreply.github.com>
2021-10-28 23:04:25 +02:00
yubiuser
5aeb52ee50 Merge pull request #1948 from pi-hole/tweak/datatables
Tweak to datatables column rendering
2021-10-28 20:21:01 +02:00
yubiuser
98ec9ee2fc Set stateDuration to 0 for all saved datatables to store the state indefinitely (#1944)
* Set stateDuration to 0 for all saved datatables to store the state indefinite

Signed-off-by: Christian König <ckoenig@posteo.de>

* Move stateDuration to utils.js

Signed-off-by: Christian König <ckoenig@posteo.de>

* Remove duplicated code as it is already part of utils.stateLoadCallback

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix function

Signed-off-by: Christian König <ckoenig@posteo.de>

* Revert "Fix function"

This reverts commit 2f54f5f988.

Signed-off-by: Christian König <ckoenig@posteo.de>

* Revert "Move stateDuration to utils.js"

This reverts commit 6a3e7786bc.

Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-27 20:06:02 +01:00
Adam Warner
0e483a8eea Force all columns in any declared datatable to render using datatables render.text function to prevent possible (very low risk, requiring authenticated dashboard anyway) XSS.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2021-10-27 19:49:46 +01:00
yubiuser
ae17a48bf7 Merge pull request #1939 from Iksas/safari-animation-fix
fix dashboard icon animations in Safari
2021-10-25 22:15:52 +02:00
Iksas
8f6ae80614 don't use percentage in scale() to support Safari 15.0 and earlier
Signed-off-by: Iksas <Iksas@users.noreply.github.com>
2021-10-25 22:08:30 +02:00
yubiuser
b4780e4a7f Fix date ranges in datarangepicker (#1940)
Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-25 17:49:49 +01:00
rdwebdesign
fa588072c1 Signed-off-by: rdwebdesign <github@rdwebdesign.com.br> 2021-10-24 17:44:01 -03:00
rdwebdesign
754a5f0a41 Signed-off-by: rdwebdesign <github@rdwebdesign.com.br> 2021-10-24 16:33:01 -03:00
rdwebdesign
f6daed573b Corrections:
- toggle button (disabled): knob removed;
- gradiend changed;

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-24 16:22:52 -03:00
rdwebdesign
507e825ae1 Fixing errors identified by CodeFactor
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-24 02:28:08 -03:00
rdwebdesign
75251c173c Added new theme LCARS.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-24 01:46:44 -03:00
Adam Warner
ee50954be7 Merge pull request #1935 from pi-hole/devel
Pi-hole Web 5.8
v5.8
2021-10-23 20:01:35 +01:00
Adam Warner
01191c7a1b Merge pull request from GHSA-mhr8-7rvg-8r43
* Prevent possible XSS attack vector on add_client
Update JS code to prevent possible XSS vector

Co-authored-by: Harold Kim <root@stypr.com>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>

* Fix both addClient and deleteClient to prevent XSS

Signed-off-by: Harold Kim <root@stypr.com>

Co-authored-by: Harold Kim <root@stypr.com>
2021-10-23 19:26:07 +01:00
Adam Warner
e53f7e674e Also set the color of the iframe's font (#1934)
(remove prettier:check from npm test, as the output is not helpful at all - whereas xo's output will tell the user what prettier is complaining about)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2021-10-23 19:21:19 +01:00
Adam Warner
bce2476d78 Display Docker Tag in footer if the PIHOLE_DOCKER_TAG environment variable is detected (#1933)
* If `PIHOLE_DOCKER_TAG` is set in the environment  then display it as Docker Tag in the versions footer. Else, don't.

Signed-off-by: Adam Warner <me@adamwarner.co.uk>

* Update scripts/pi-hole/php/footer.php

Signed-off-by: Adam Warner <me@adamwarner.co.uk>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2021-10-23 17:55:07 +02:00
DL6ER
5d981c165b Merge pull request #1924 from yubiuser/delete_network
Add delete button to the network table to allow deleting individual entries
2021-10-23 16:41:22 +02:00
DL6ER
9ab9850c9c Merge pull request #1925 from pi-hole/tweak/local_dns_cname
Do not restart for every item during Teleporter import of Local DNS record or CNAME
2021-10-23 16:39:12 +02:00
DL6ER
3f1a0a409f Merge pull request #1929 from pi-hole/remove/verify_list
Remove obsolet list_verify function
2021-10-23 16:36:34 +02:00
DL6ER
e5c86db89e Merge pull request #1931 from pi-hole/no_hostname
Do not try to resolve hostname of clients in long-term data
2021-10-23 14:14:58 +02:00
Christian König
0387377bc8 Do not try to resolve hostname of clients in long-term data
Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-22 13:20:17 +02:00
yubiuser
f2322157c8 Remove obsolet list_verify function
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-19 00:12:26 +02:00
yubiuser
e00d706b49 Fix tabs->spaces
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-15 07:42:00 +02:00
yubiuser
ab9454a582 Also use variable to disable reload in delteALL functions
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-13 20:47:02 +02:00
yubiuser
b80c97f6d3 Do only reload pihole once after Local DNS Records or CNAME have been modified
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-12 21:37:06 +02:00
yubiuser
9f0e5fa67e Use getCustomDNSEntries in deleteAllCustomDNSEntries
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-12 20:50:37 +02:00
yubiuser
98ee67efed Add delete function
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-11 14:46:10 +02:00
yubiuser
84d53985ee Add delete button to network table
Signed-off-by: yubiuser <ckoenig@posteo.de>

Fix styling

Signed-off-by: yubiuser <ckoenig@posteo.de>

Fix xo

Signed-off-by: yubiuser <ckoenig@posteo.de>

Use data.id

Signed-off-by: yubiuser <ckoenig@posteo.de>

Sort by last seen

Signed-off-by: yubiuser <ckoenig@posteo.de>

Use data.id instead of data.ip

Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-11 13:47:09 +02:00
yubiuser
49c84e58dd Suppress empty lines output during teleporter import (#1921)
Signed-off-by: Yubiuser <ckoenig@posteo.de>
2021-10-11 09:05:08 +01:00