Commit Graph

3823 Commits

Author SHA1 Message Date
XhmikosR
d29ac3aa63 Add GitHub Actions CI support.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:19 +02:00
XhmikosR
b74f0f3969 Fix the remaining lint issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:19 +02:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +02:00
XhmikosR
3321fa8067 Add xo.
Use prettier for formatting.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:16 +02:00
Adam Warner
4fbec2a557 Merge pull request #1112 from pi-hole/scrollY
`window.scrollY` isn't supported on IE
2020-01-02 17:34:02 +00:00
Adam Warner
c376962da5 Merge pull request #1114 from pi-hole/padStart
Replace padStart with a solution that works in older browsers
2020-01-02 17:30:52 +00:00
Adam Warner
aff834448a Merge pull request #1113 from pi-hole/length
length cannot be negative
2020-01-02 17:30:25 +00:00
Adam Warner
fe45538fc2 Merge pull request #1111 from pi-hole/license-headers
Add license headers.
2020-01-02 17:28:31 +00:00
Adam Warner
701de94be8 Merge pull request #1110 from pi-hole/var
Switch back to var
2020-01-02 17:28:08 +00:00
Adam Warner
73236e8ada Merge pull request #1094 from pi-hole/buttons
Fix buttons appearance
2020-01-02 17:26:28 +00:00
Ghalid
112a5abf80 Merge branch 'devel' into patch-1
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-29 14:22:12 -05:00
Adam Warner
ab629c52a1 Replace padStart with a solution that works in older browsers
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2019-12-29 10:17:55 +02:00
XhmikosR
25af37509e length cannot be negative
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-29 10:13:50 +02:00
XhmikosR
6e55b4f827 window.scrollY isn't supported on IE
Replace it with `window.pageYOffset`

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-29 10:12:09 +02:00
XhmikosR
2c315cec4a Add license headers.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-29 10:08:31 +02:00
XhmikosR
e91d0b0cfa Switch back to var
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-29 10:07:01 +02:00
Ante Lucic
b9dcf3d4aa Fix AdminLTE link
https://almsaeedstudio.com redirects to https://adminlte.io/ and has expired SSL cert
Signed-off-by: Ante Lucic <ante.lucic450@gmail.com>
2019-12-29 00:40:04 -05:00
DL6ER
03b3a1d604 Merge pull request #1088 from pi-hole/location
Be explicit about `window.location`
2019-12-28 16:58:27 +01:00
DL6ER
132c69b79e Merge pull request #1099 from pi-hole/tweak/customDNS_page
Tweak Custom DNS page
2019-12-28 16:55:43 +01:00
DL6ER
250457abc3 Merge branch 'devel' into tweak/customDNS_page 2019-12-28 16:47:42 +01:00
DL6ER
306b0b94a9 Merge pull request #1098 from pi-hole/tweak/graphs
Change over-time graphs from line to stacked bar representation
2019-12-28 16:46:41 +01:00
DL6ER
f96bbcb37f Merge pull request #1102 from pi-hole/fix/domains_lower_case
Ensure added domains are lower-case.
2019-12-28 16:46:09 +01:00
DL6ER
de8ead6a91 Merge pull request #1106 from pi-hole/tweak/teleporter-etc-hosts
Add /etc/hosts to teleporter export.
2019-12-28 16:45:25 +01:00
DL6ER
b07d290a91 Merge pull request #1076 from pi-hole/new/group-management
Add group management
2019-12-28 16:45:18 +01:00
DL6ER
c81d690be4 Add /etc/hosts to teleporter export.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-28 13:30:57 +00:00
DL6ER
9b7daa324a Do not go back to page 1 when deleting an item.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-28 13:21:53 +00:00
XhmikosR
cee3d536bc Move fonts to the header.php
`@import` is discouraged because it's blocking.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-26 18:00:21 +02:00
DL6ER
b840d2103b Do not reload table on successfull edits and deletions.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:38:59 +00:00
DL6ER
a80355cf2f Improve error messages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:19:52 +00:00
DL6ER
cce7c928d5 We have to get the group's ID from the hidden field now that we removed/hide the IP column by default.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 15:13:51 +00:00
DL6ER
da1276363d Ensure added domains are lower-case.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 09:33:30 +00:00
DL6ER
563aaa14df Convert domains to lower-case and validate them before adding them.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-23 09:07:13 +00:00
Ghalid
1df9c4049b There should only be one search input on each page so there doesn't need to be an array anyway, remove arrow functions as per https://github.com/pi-hole/AdminLTE/pull/1100\#pullrequestreview-335618314
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>

Remove const

Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 14:51:34 -05:00
Ghalid
40d7e1498e Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-21 12:06:48 -05:00
DL6ER
34d92ad921 Merge pull request #1101 from Ghalid/ltd-patch
Change "Click to select..." in Long term data pages to buttons
2019-12-20 23:05:33 +01:00
Ghalid
357cb17acf Remove left text align for date range buttons
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 16:59:41 -05:00
Ghalid
c720cce675 Disable autocorrect on top list exclusion textareas
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 16:14:42 -05:00
Ghalid
2a71df5bb8 Change "Click to select..." in Long term data pages to buttons instead of text inputs
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 15:49:29 -05:00
Ghalid
c7f56df0a6 Disable spellcheck for some text fields, changed some input field types
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
2019-12-20 12:18:52 -05:00
DL6ER
0308856e87 Add description of what is possible on this page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 16:20:05 +00:00
DL6ER
deb50a8e4a Ensure Actions column is not sortable.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 16:14:17 +00:00
DL6ER
6ad0960a77 Add a nicer domain/IP adding block.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 16:12:10 +00:00
DL6ER
ee91b3bc87 Update nav icons.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 12:12:14 +00:00
DL6ER
772d52c09a Reset visibility of ID column on table loading
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:52:21 +00:00
DL6ER
7dc5c5cb94 Fix navigation submenu.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:40:45 +00:00
DL6ER
ede9d41341 Add "Reset Sorting" button to remaining pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:35:29 +00:00
DL6ER
4f54796286 Add auto-saving to all group management pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:30:47 +00:00
DL6ER
26c9a55ad5 Add tooltip to group name input fields.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:20:44 +00:00
DL6ER
1c3d635d2b Include but hide ID column on the group management page. Add "Reset sorting" button enabling the user to go back to ID sorting (initial behavior, makes sure group 0 is at the top).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 08:16:28 +00:00
DL6ER
4aa3551734 Remove ID displaying for groups from all pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-20 00:42:17 +00:00