17 Commits

Author SHA1 Message Date
XhmikosR
2ef549cf5a Fix xo issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-26 12:30:44 +03:00
XhmikosR
995509c346 Update prettier to v2.0.2 (#621)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-03-26 18:39:24 +02:00
DL6ER
90ec438b55 Merge pull request #442 from pi-hole/new/cacheinfo
Add Settings -> Networking -> Cache tab.
2019-12-17 21:35:33 +01:00
XhmikosR
6c43a90d92 Run prettier for all js and tsx files
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-11 18:06:40 +02:00
DL6ER
8ef87831eb Add fake API data for new settings tab
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-06 11:18:34 +00:00
DL6ER
a5a60ce82b Adjust tests and fake-data
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-06 08:35:44 +00:00
Dan Schaper
7c06ef6575 Fixes https://github.com/pi-hole/web/pull/418#issuecomment-554695826
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
2019-11-16 18:37:07 -08:00
Richard Denton
db6f70f4fd Include both language code and name in languages.json
Signed-off-by: Richard Denton <isdampe@gmail.com>
2019-08-15 16:43:33 +08:00
Mcat12
eb70e87be1 Restrict the CIDR values to what dnsmasq and the API accepts
The check is not 100% accurate, as it allows > 32 sized CIDRs
for IPv4 addresses, but it is good enough for the frontend checks.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-07-06 18:07:33 -07:00
Mcat12
e513f94610 Update fake data with new conditional forwarding API
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-06-17 17:41:40 -07:00
Mcat12
113eddd2e3 Add top blocked client fake data
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-05-26 18:16:36 -07:00
Mcat12
49ef4d902a Add DHCP rapid commit checkbox
Requires pi-hole/api#139

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-05-04 15:20:40 -07:00
Mcat12
dc39724aaf Add fake data for long term stats
The fake data suite has been expanded to cover the long term stats
endpoints.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-03-18 20:02:22 -07:00
Mark Drobnak
d717f6d93a Merge branch 'development' into feature/crowdin-languages-json-support 2019-02-28 12:27:28 -05:00
Mcat12
8e23ae5396 Use orange for unknown DNSSEC status, and improve history fake data
pi-hole/AdminLTE#909 changes DNSSEC Unknown to use orange instead of
red.

The fake data would only show certain values if `Math.random` returned
exactly 1. This was changed so the values would have a better chance of
getting shown.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-02-17 10:31:11 -08:00
Mcat12
e5c820ced0 Update the build system to automatically update languages.json
The `languages.json` file is regenerated whenever the web interface is
started or built. This PR also updates the language list with the
languages added by #145.

See #148

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-02-15 19:12:45 -08:00
Mcat12
37c9e6a487 Move language list generation out of update-translations.js
Also moved the scripts into a new scripts folder.

The language list generation is independent of the parsing we do for
POEditor. This also makes it easier to move to a different translation
service while keeping the languages.json generation.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-01-21 16:21:14 -08:00