prometheus/web/ui/react-app/src/pages/graph
Julius Volz 5498ca5214 Update React 16->17, TypeScript, and some other node deps
This updates React, TypeScript, and some other node packages (but not
everything).

A couple of notes:

- `enzyme-adapter-react-16` does not have a React 17 equivalent yet, so I
  switched to the fork `@wojtekmaj/enzyme-adapter-react-17`
- A bunch of tests are still failing because I think in the enzyme testing
  environment, a browser API (`ResizeObserver`) is missing, and maybe for other
  reasons. This needs to be explored + fixed.
- The TypeScript update introduced more stringent rules, which required fixing
  up a bunch of pieces of code a bit.
- The `use-media` package doesn't work with React 17 yet, so I just built our
  own minimal `useMedia` hook instead (just a couple of lines).
- I commented out part of the code in `withStartingIndicator.tsx` because it
  fails the now-stricter lint checks. It needs to be fixed (and not commented
  out).

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-09-14 15:46:59 +02:00
..
CMExpressionInput.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
CMExpressionInput.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
CMTheme.tsx Add a dark theme (#8604) 2021-04-15 18:14:07 +02:00
DataTable.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
DataTable.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
ExpressionInput.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
ExpressionInput.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
Graph.test.tsx Update React 16->17, TypeScript, and some other node deps 2021-09-14 15:46:59 +02:00
Graph.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
GraphControls.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
GraphControls.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
GraphHelpers.test.ts upgrade react-script to v4 2021-09-04 15:56:36 +02:00
GraphHelpers.ts upgrade react-script to v4 2021-09-04 15:56:36 +02:00
GraphTabContent.test.tsx ReactUI: folder re-organization (#6601) 2020-01-14 19:34:48 +01:00
GraphTabContent.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
Legend.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
MetricsExplorer.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
Panel.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
Panel.tsx Update React 16->17, TypeScript, and some other node deps 2021-09-14 15:46:59 +02:00
PanelList.test.tsx React UI: Make the new PromQL editor the default (#8925) 2021-06-11 17:40:09 +02:00
PanelList.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
QueryStatsView.test.tsx ReactUI: folder re-organization (#6601) 2020-01-14 19:34:48 +01:00
QueryStatsView.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
SeriesName.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
SeriesName.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
TimeInput.test.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00
TimeInput.tsx upgrade react-script to v4 2021-09-04 15:56:36 +02:00