Mcat12
fd266435c9
Use real API for whitelist add/remove
2017-08-11 21:07:57 -04:00
Mcat12
e4677f8290
Abstract domain list into its own component
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-08-07 21:53:40 -04:00
Mcat12
da27e276a5
Don't throw an error to the console when changing pages
...
If a request has not finished before changing the page, we should
suppress the error and not try to change any state because the component
is unmounted.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-08-07 21:22:38 -04:00
Mcat12
5d5cd1162c
Forgot to cancel refresh if unmounting component
2017-08-07 21:18:19 -04:00
Mcat12
66d2bfa647
Add refresh to Whitelist
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 22:57:47 -04:00
Mcat12
bf2487816b
Use API in Whitelist to remove domains
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 22:52:49 -04:00
Mcat12
1eab6de3e3
Use API in Whitelist to add domains
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 22:36:38 -04:00
Mcat12
ff45014ca6
Add Whitelist API actions
...
Dummy action ones, but real GET /dns/whitelist
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 22:34:38 -04:00
Mcat12
0514a7473c
Add title to Whitelist page
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 21:35:17 -04:00
Mcat12
045eef73ee
Add remove functionality to whitelist
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 21:28:38 -04:00
Mcat12
35d3b4b159
Formatting
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 21:18:57 -04:00
Mcat12
16b8cbf66d
Make Alert use props instead of parameters
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 21:15:21 -04:00
Mcat12
a9a5d75518
Implement adding unique domains to the whitelist
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 20:50:01 -04:00
Mcat12
4c6004bf91
Add Alert component
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 20:40:12 -04:00
Mcat12
fb119fff9a
Add DomainInput component
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 20:39:50 -04:00
Mcat12
d45254df7b
Add package-lock.json and prop-types package
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-31 20:38:40 -04:00
Mcat12
fb525c47a2
Simplify code by not using classes when they aren't needed
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 15:37:54 -04:00
Mcat12
a69976ad4a
Replace let with const when able
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 14:56:20 -04:00
Mcat12
d8fa185e69
Move export default into class headers
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 14:45:07 -04:00
Mcat12
c2edbae9cc
Add empty Whitelist page
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 14:37:12 -04:00
Mcat12
a2aee0b8aa
Move Query Log to components
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 14:20:56 -04:00
Mcat12
235c52db32
Don't filter Action column
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-30 14:17:10 -04:00
Mcat12
bed63b5739
Add filtering and default sort to Query Log
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-29 14:20:36 -04:00
Mcat12
317896d320
Add GitLab CI config
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-27 22:32:57 -04:00
Mcat12
4f0abc0e8b
Style Query Log better
...
Also change top level from Home to Admin
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-26 23:06:03 -04:00
Mcat12
48840aadfd
Properly format query times
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-26 22:46:51 -04:00
Mcat12
adf7e20bb5
Add first version of the Query Log
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-24 23:05:12 -04:00
Mcat12
ff62cb8eea
Wrap API promises to provide a way to cancel them
...
This can be useful when moving from one page to the next so that
the old page's promises and timeouts don't try to run `setState`
on an unmounted component.
2017-07-23 13:40:39 -04:00
Mcat12
a5d63d1ed9
Forgot to include the package.json for utils
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-22 22:37:32 -04:00
Mcat12
db7aeffd91
Fix name and homepage in package.json
2017-07-22 22:29:01 -04:00
Mcat12
89e23e4bab
Combine util files
2017-07-22 20:12:57 -04:00
Mcat12
a1b156caf7
Use HashRouter instead of BrowserRouter
...
Effective change is moving from `/dashboard` to `/#/dashboard`.
This means that instead of relying on a server-side rule to redirect `/*` to `/index.html`, the JavaScript handles it for us by making the server think we want `/` and having JavaScript open the `/dashboard` page for us.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-04 13:28:32 -04:00
Mcat12
e306a1564f
Add unique clients display in summary
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-04 12:16:50 -04:00
Mcat12
ca8ad9f92c
Switch total queries and blocked queries
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-04 12:08:53 -04:00
Mcat12
91f79d5bd8
Limit blocked percent to 2 decimal points
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-04 12:06:23 -04:00
Mcat12
3eee16f7d1
Add sidebar header
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-04 12:03:51 -04:00
Mcat12
73e327f895
Silly git converting binary files to text internally...
...
Fixes some browser console errors such as:
```
Failed to convert WOFF 2.0 font to SFNT
```
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-02 17:25:55 -04:00
Mcat12
e6b8117853
Implement fakeAPI functionality
...
I need it temporarily, but it is a good feature to have for testing anyways. Simply place the API output you want to expose in the correct file (`public/fakeAPI/stats/summary`) and make sure that the config file you are using has `fakeAPI` set to `true` (`.env.development`).
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-07-01 20:32:04 -04:00
Mcat12
79a3d6464d
Format the stat when output in the table
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 16:21:26 -04:00
Mcat12
74fd253c81
Simplify some of parseObjectForGraph
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 15:43:40 -04:00
Mcat12
b4d83d7651
Update query graph API endpoint
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 14:57:13 -04:00
Mcat12
5d5bc92701
Fix incorrect total in progress bar tooltip
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 14:33:17 -04:00
Mcat12
765ffdafe1
Add Top Clients
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 14:29:48 -04:00
Mcat12
6d56ceabe5
Remove escapeHtml function
...
Not needed, as React automatically escapes the input to avoid XSS.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 14:15:18 -04:00
Mcat12
4f35d907aa
Make header pretty
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-30 14:14:04 -04:00
Mcat12
e492bfb67a
Clean up index.html
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-26 21:58:19 -04:00
Mcat12
78514a2b72
Add Top Blocked Domains
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-26 21:55:40 -04:00
Mcat12
d70e2da8ce
Remove top_ads from TopDomains state
...
It's not needed.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-26 21:07:43 -04:00
Mcat12
64a3720015
Add Top Domains chart
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-26 20:53:33 -04:00
Mcat12
cbdcf72235
Only show data points when we have the full 10 min
...
Makes the newer graphs act like the queries over time graph.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2017-06-25 21:10:47 -04:00