Commit Graph
574 Commits
Author SHA1 Message Date
Mark Drobnak fc6bc99780 Merge pull request #122 from pi-hole/fix/clear-new-dns-custom-input
Correctly clear the new DNS input when added
2018-12-24 10:24:50 -05:00
Mcat12 2263599445 Correctly clear the new DNS input when added
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-24 10:23:02 -05:00
Mark Drobnak 3ce7c63c9b Merge pull request #121 from pi-hole/feature/history-pagination
Query Log Server-Side Pagination
2018-12-24 10:05:34 -05:00
Mark Drobnak 7774cb0c02 Merge branch 'development' into feature/history-pagination 2018-12-24 10:04:05 -05:00
Mcat12 f655ae72b4 Pad empty rows to have the same height as filled rows
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-23 13:13:47 -05:00
Mark Drobnak 41b874726e Merge pull request #119 from pi-hole/tweak/cloudflare-ecs
Remove ECS designation from Cloudflare
2018-12-20 11:43:37 -05:00
Mark Drobnak e7f1350988 Remove ECS designation from Cloudflare
See pi-hole/AdminLTE#878

Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com>
2018-12-20 11:40:03 -05:00
Mcat12 b2aa0dbaab Add more documentation and declutter render method of Query Log
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-17 20:32:10 -05:00
Mcat12 6fafd647f6 Use server-side cursor pagination in the Query Log
Also, the Query Log has been updated to use the new log format which
comes with the addition of pagination.

A new column, Reply, has been added. It holds the reply type and
response time.

Filtering and sorting are disabled until they can be reimplemented.

The translations have been updated, as a few strings were added.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-17 20:20:40 -05:00
Mark Drobnak 466dcbd862 Merge pull request #115 from pi-hole/feature/save-dns-settings
DNS Settings Page
2018-12-16 12:38:58 -05:00
Mcat12 ff9c50440a Merge branch 'development' into feature/save-dns-settings
# Conflicts:
#	make-fake-data.js
2018-12-16 11:56:02 -05:00
Mcat12 2e7c37b7fd Fill in a default conditional forwarding domain if it is empty
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-16 11:55:01 -05:00
Mark Drobnak 0eb501fdd7 Merge pull request #118 from pi-hole/fix/doughnut-chart-bugs
Fix doughnut charts acting weird when resized
2018-12-16 11:48:23 -05:00
Mark Drobnak fc8ceb2d25 Merge branch 'development' into fix/doughnut-chart-bugs 2018-12-16 11:46:35 -05:00
Mark Drobnak 88c44dfabd Merge pull request #117 from pi-hole/feature/shm-API-update
Update dashboard components to use new shared memory API data
2018-12-16 11:45:59 -05:00
Mcat12 b2f9fbe085 Fix doughnut charts acting weird when resized
The charts would start displaying data from other charts, and would have
graphical glitches. The glitches are fixed by giving the chart its own
copy of the dataset.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-16 00:08:21 -05:00
Mcat12 7bc9704587 Update dashboard components to use new shared memory API data
make-fake-data.js was put through the formatter.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-15 23:46:33 -05:00
Mcat12 f2fbccc759 Validate DNS settings, and save them when Apply is clicked
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 17:52:35 -05:00
Mcat12 1e672029cb Update translations
This adds some more strings to settings.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 17:23:22 -05:00
Mcat12 61b65a5a42 Change the "recommended" servers to "preconfigured" servers
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 17:11:44 -05:00
Mcat12 9be5214bed Override the no matches found message for custom upstreams
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 17:11:01 -05:00
Mcat12 1847a8d561 Merge new upstream inputs, reorder recommended upstreams
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 16:59:52 -05:00
Mcat12 dc3c9f0640 Add recommended servers to the upstream DNS input
This uses a new package: react-bootstrap-typeahead.

You can switch between the custom and recommended input types via a
toggle button.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 16:34:13 -05:00
Mcat12 23aefb8207 Merge remote-tracking branch 'origin/development' into feature/save-dns-settings 2018-12-13 14:07:53 -05:00
Mcat12 6d191a1b1a Refactor DNS settings to split out sections into new components
Also decoupled the state a bit from the API output.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-13 14:07:06 -05:00
Mark Drobnak 76e3910075 Merge pull request #114 from pi-hole/tweak/remove-proxy
Remove the proxy option from package.json
2018-12-12 15:19:09 -05:00
Mark Drobnak d6a7c2b12d Merge branch 'development' into tweak/remove-proxy 2018-12-12 15:17:05 -05:00
Mcat12 77548d1181 Remove the proxy option from package.json
It should only be added when testing against a real API instance. Most
of the time, development is done against the fake API, or there is no
real API running to test with.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-12 15:14:43 -05:00
Mcat12 ef860c5763 Prevent the page from reloading when submitting the DNS form
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-12 15:10:48 -05:00
Mcat12 c451232c9e Fix checkbox input margin
Now the checkboxes line up with the labels.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-12-11 20:52:19 -05:00
Mark Drobnak 9f08cb0725 Merge pull request #112 from pi-hole/tweak/simplify-domainlist
Simplify DomainList
2018-12-10 16:51:18 -05:00
Mcat12 8b520914b0 Fix listening type fake data
"lan" should be "local"

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-30 17:38:38 -05:00
Mcat12 cc9220509f Make the DNS settings editable
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-30 17:37:45 -05:00
Mcat12 b0a377f80c Implement DnsList components
These components will display an editable list of upstream DNS servers.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-30 17:36:45 -05:00
Mcat12 29394ceff9 Fix custom style not applying
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-29 23:24:45 -05:00
Mcat12 237bce2cb2 Simplify DomainList from a class to a function
It should be easier to read now.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-29 18:36:24 -05:00
Mcat12 8f84a66dbc Add isValidIpv4OptionalPort validation function
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-29 17:13:53 -05:00
Mark Drobnak 872eb67ad1 Merge pull request #110 from pi-hole/fix/dhcp-save-unmount
Cancel DHCP update if component unmounts
2018-11-11 14:54:52 -05:00
Mark Drobnak f82effc1e0 Merge branch 'development' into fix/dhcp-save-unmount 2018-11-11 14:53:23 -05:00
Mark Drobnak f1c6bb9a26 Merge pull request #109 from pi-hole/tweak/simplify-list-page
Simplify ListPage and DomainList
2018-11-11 10:09:54 -05:00
Mcat12 2a265d7342 Merge branch 'development' into tweak/simplify-list-page
# Conflicts:
#	src/components/list/DomainList.js
2018-11-11 10:03:26 -05:00
Mark Drobnak 293e537c40 Merge pull request #108 from pi-hole/feature/with-api-component
Abstract Retrieving Data From API
2018-11-11 10:02:18 -05:00
Mcat12 8e77dfb05f Cancel DHCP update if component unmounts
This was done for loading settings, but was forgotten for saving them.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:48:19 -05:00
Mcat12 7eeb6cc386 Fix invalid use of error props in summary stats tests
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:30:56 -05:00
Mcat12 cfc3b57c98 Move the API tests closer to the API file
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:30:16 -05:00
Mcat12 5dfb837b2c Convert VersionInfo to use WithAPIData
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:25:52 -05:00
Mcat12 b8ff1adfd1 Convert FTLInfo to use WithAPIData
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:16:44 -05:00
Mcat12 d639cfe3d4 Change initialData from a function to object
It was just returning a static object.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:16:12 -05:00
Mcat12 3586546580 Convert NetworkInfo to use WithAPIData
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:04:17 -05:00
Mcat12 e32e10fccc Fix wrong name in default props for WithAPIData
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 21:03:52 -05:00