Julius Volz
a677622184
React UI: Send cookies on fetch() on older browsers ( #6553 )
...
* React UI: Send cookies on fetch() on older browsers
Fixes https://github.com/prometheus/prometheus/issues/6428
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Fix fetch() tests to expect new options
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2020-01-20 16:50:32 +01:00
Boyko
bab47b58f5
ReactUI: folder re-organization ( #6601 )
...
* remove redundant sanitizeHTML abstraction
Signed-off-by: blalov <boiskila@gmail.com>
* organize folders
Signed-off-by: blalov <boiskila@gmail.com>
* move hooks outside common folder
Signed-off-by: blalov <boiskila@gmail.com>
* move PathPrefix interface in types
Signed-off-by: blalov <boiskila@gmail.com>
* remove config folder
Signed-off-by: blalov <boiskila@gmail.com>
* remove redundant snapshots
Signed-off-by: blalov <boiskila@gmail.com>
* rename common folder
Signed-off-by: blalov <boiskila@gmail.com>
* merge utils files
Signed-off-by: Boyko Lalov <boiskila@gmail.com>
* sync with master
Signed-off-by: blalov <boiskila@gmail.com>
2020-01-14 19:34:48 +01:00
Boyko
8a9509b0a8
Replace fetching hooks with class render prop component ( #6267 )
...
* replace fetching hooks with class render prop component
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* rename Fetcher
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* status page markup separated from fetcher component
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* fetch api reusability
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* extract Config and Flags pages as 'dumb' components
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* more components splitting
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* implement fetchWithstatus HOC
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* refactor changed files tests
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* switching back to hooks.
Signed-off-by: blalov <boyko.lalov@tick42.com>
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* fetch response bug fix
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
* make wrapped by withstatusIndicator components names consistent
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
2019-11-12 14:35:47 +01:00
Dustin Hooten
ca60bf298c
React UI: Implement /targets page ( #6276 )
...
* Add LastScrapeDuration to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Add Scrape job name to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Implement the /targets page in react
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Add state query param to targets endpoint
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Use state filter in api call
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* api feedback
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* pr feedback frontend
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* Implement and use localstorage hook
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
* PR feedback
Signed-off-by: Dustin Hooten <dhooten@splunk.com>
2019-11-11 22:42:24 +01:00
Boyko
cb7cbad5f9
WIP: status page - API and UI ( #6243 )
...
* status page initial commit
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* refactor useFetch
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* refactoring
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* adding tests
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* snapshot testing
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* fix wrong go files formatting
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* change the snapshot library
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* update api paths
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* move test folder outside src
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* useFetches tests
Signed-off-by: blalov <boyko.lalov@tick42.com>
* sticky navbar
Signed-off-by: Boyko Lalov <boyskila@gmail.com>
Signed-off-by: blalov <boyko.lalov@tick42.com>
* handle runtimeInfo error on Gather() and add json tags to RuntimeInfo struct
Signed-off-by: blalov <boyko.lalov@tick42.com>
* refactor alert managers section
Signed-off-by: blalov <boyko.lalov@tick42.com>
2019-11-02 16:53:32 +01:00