Commit Graph

1376 Commits

Author SHA1 Message Date
DL6ER
c5b51e8969 Disable all inputs on login submission, re-enable them on error
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-13 09:39:41 +01:00
DL6ER
e360e3edbd Fix query logs "all time" option
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-12 21:18:52 +01:00
DL6ER
9422016bb0 Fix error displaying when editing groups/clients/domains/lists (#2808) 2023-11-12 14:04:03 +01:00
DL6ER
ca67f3a11e Add a few more comments, fix applyBtn variable declaration, make selection only work on the first <td>-element and ensure we include both type and kind in the data-id attribute to make it really a unique selector
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-12 08:25:46 +01:00
DL6ER
9049674eb4 A domain is a domain and not a list
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-10 20:53:05 +01:00
RD WebDesign
24970487f5 Improve TOTP field (#2795) 2023-11-09 23:38:25 -03:00
RD WebDesign
b44a07446d Small desing adjustment and simplify selector
- use class to style buttons and info icons (move style to pi-hole.css)
- add negative margin to avoid small jump when the button is shown
- use the new classes to simplify jquery selectors
2023-11-08 16:52:21 -03:00
DL6ER
e71557a60f Show Reset Zoom button when zoomed in
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-08 10:26:49 +01:00
DL6ER
6eb7440a21 Add tooltip explaining you can zoom and pan the graphs
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-07 21:48:49 +01:00
DL6ER
27f4a94b48 Add zooming on the dashboard's two main graphs (#2807) 2023-11-07 20:56:31 +01:00
DL6ER
752e37ffac Update scripts/pi-hole/js/index.js
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-11-07 19:14:46 +01:00
DL6ER
9c1f310af0 Exit early in the htmlLegendPlugin if the legend has the same items as last time
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-07 13:26:28 +01:00
yubiuser
3495c8f53b Defer chartjs animation until they are in viewport (#2810) 2023-11-07 09:27:36 +01:00
DL6ER
59809d9959 Remeber original axis limit instead of trying to calculate it
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-07 06:43:54 +01:00
Christian König
bb32db9ae8 Suppress no-undef warning
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 21:11:55 +01:00
Christian König
a06bbdf589 Fix styling
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 21:04:31 +01:00
Christian König
80fbb15280 Apply deferred chart loading also to cache pie at settings system
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 19:42:34 +01:00
yubiuser
917750a716 Fix notification icon and add details for Local DNS/CNAME records (#2809) 2023-11-06 19:16:10 +01:00
DL6ER
dddd3ab0b5 Tweak teleporter success message (#2796) 2023-11-06 15:54:40 +01:00
Christian König
a55167973d Fix chartjs v4 migration: scales[id].grid.drawBorder > scales[id].border.display
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 13:34:17 +01:00
Christian König
097a404bf0 Don't show rotation animation for pie chart updates
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 13:03:14 +01:00
DL6ER
832bf94b33 Show FTL hint if available
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-06 11:34:47 +01:00
DL6ER
a77e299176 Show error message from FTL if applicable
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-06 11:10:48 +01:00
DL6ER
80971905c4 Fix zooming to the zero axis, panning is still allowed if you want to leave y=0 behind
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-06 09:24:35 +01:00
Christian König
5300028f14 Defer chart loading
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-06 00:18:41 +01:00
Christian König
5a3730f36d Don't trigger double login on paste event to totp field
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-05 23:16:23 +01:00
Christian König
6f6f0f98fd Fix notification icon and add details for Local DNS/CNAME records
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-05 22:15:49 +01:00
DL6ER
4d3c0cded9 Fix errors happening when editing groups/clients/domains/lists not being shown. Also fix logic of the strings "enabling/disabling" as the variable "enabled" already has the new (not the current state). This was correct in groups.js, but not the others
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-05 21:54:40 +01:00
DL6ER
aa84cb4b9b Add zooming on the dashboard's two main graphs. You can zoom either with [Ctrl] + your mouse wheel (desktop) or the multi-touch "pinch" gesture (mobile). You can then drag with a single click (or finger) to move the graph up or down in case zooming wasn't that accurate
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-05 07:42:11 +02:00
yubiuser
1586a94021 Tweak processing/render time (#2803) 2023-11-04 08:01:58 +01:00
DL6ER
c27bf73b32 Finalize renaming adlists -> lists (#2756) 2023-11-04 07:35:42 +01:00
DL6ER
7c3dd92cf8 Show dedicated error mesage on wrong 2FA token
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-04 07:15:23 +01:00
RD WebDesign
74c10d3a5f Set the focus to password field after clicking on the button
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-11-03 18:43:47 -03:00
RD WebDesign
b2325c870e Function to toggle password visibility (using jQuery) and icon
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-11-03 18:08:58 -03:00
Christian König
5bcc535970 Tweak processing/render time
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-03 21:38:50 +01:00
DL6ER
db3fcb4fb9 Show extra info alert on successful import to remind users they should run gravity's update
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-03 18:52:08 +01:00
Christian König
b256f5a627 Update bootstrap-notify to 3.1.5 (taken from master branch of their repo, last tagged version is 3.1.3)
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-02 23:14:38 +01:00
Christian König
dd89021cfb Fix notification animation
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-02 23:03:24 +01:00
RD WebDesign
f164e4597f Retrieve the config keys from the new data-configkeys attribute. 2023-11-01 18:35:04 -03:00
DL6ER
04ffa500cf Merge branch 'development-v6' into fix/adlist_list 2023-10-31 13:25:31 +01:00
DL6ER
ca0346a801 Add hint that users should run pihole -g after successful teleporter import
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-30 09:10:54 +01:00
DL6ER
cd28d487d3 Follow best-practice rules for login pages from https://web.dev/articles/sign-in-form-best-practices
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-30 08:53:18 +01:00
DL6ER
2218257f1c Only submit form after entering TOTP token when there is something in the password field as well
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-30 08:29:15 +01:00
DL6ER
e669b99d50 Fix TOTP input field not being shown when enabled (#2783) 2023-10-30 08:09:15 +01:00
DL6ER
b73a1da4fb Nicely format error toasts (#2791) 2023-10-29 19:44:06 +01:00
DL6ER
0d827b00f2 Add app password support (#2793) 2023-10-29 19:43:55 +01:00
Adam Warner
188f8ee412 Apply the same treatment to the local DNS records page.
Refactor of the javascript to reduce code deduplication
Fix datatable refresh after adding/removing an entry
2023-10-29 15:30:34 +00:00
Adam Warner
b2572c07e5 The CI does not like nested IF statements with a single action inside
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-29 15:21:18 +00:00
Adam Warner
66401ee222 In addition to adding the readonly icon, we can also add the other icons with teh same method.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-10-29 15:21:18 +00:00
Adam Warner
fef945c49f Disable settings inputs if they are already set by environment variable. Add a padlock icon to the setting section title if any of the settings contained therin are set by environment variable 2023-10-29 15:21:18 +00:00