Skip to content

Commit

Permalink
Added licenses and fixes from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
lorem--ipsum committed Oct 9, 2023
1 parent 73aaab1 commit 37b1367
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 83 deletions.
38 changes: 38 additions & 0 deletions licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5298,6 +5298,15 @@ license_file_path: licenses/bin/change-case.MIT

---

name: "chronoshift"
license_category: binary
module: web-console
license_name: Apache License version 2.0
copyright: Vadim Ogievetsky
version: 0.10.0

---

name: "classnames"
license_category: binary
module: web-console
Expand Down Expand Up @@ -5826,6 +5835,15 @@ license_file_path: licenses/bin/iconv-lite.MIT

---

name: "immutable-class"
license_category: binary
module: web-console
license_name: Apache License version 2.0
copyright: Vadim Ogievetsky
version: 0.11.2

---

name: "import-fresh"
license_category: binary
module: web-console
Expand Down Expand Up @@ -6026,6 +6044,26 @@ license_file_path: licenses/bin/memoize-one.MIT

---

name: "moment-timezone"
license_category: binary
module: web-console
license_name: MIT License
copyright: Tim Wood
version: 0.5.43
license_file_path: licenses/bin/moment-timezone.MIT

---

name: "moment"
license_category: binary
module: web-console
license_name: MIT License
copyright: Iskren Ivov Chernev
version: 2.29.4
license_file_path: licenses/bin/moment.MIT

---

name: "no-case"
license_category: binary
module: web-console
Expand Down
1 change: 1 addition & 0 deletions web-console/src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ export * from './use-last-defined';
export * from './use-local-storage-state';
export * from './use-permanent-callback';
export * from './use-query-manager';
export * from './use-resize-observer';
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import React, { useCallback, useEffect, useMemo } from 'react';
import { createPortal } from 'react-dom';
import { useStore } from 'zustand';

import { useResizeObserver } from '../../../hooks';
import { highlightStore } from '../highlight-store/highlight-store';
import { useResizeObserver } from '../utils';

import './highlight-bubble.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getCentroid(chart: echarts.ECharts, dataIndex: number) {
// see these underscores everywhere? that's because those are private properties
// I have no real choice but to use them, because there is no public API for this (on pie charts)
// #no_ragrets
const layout = (chart as any)._chartsViews[0]._data._itemLayouts[dataIndex];
const layout = (chart as any)._chartsViews?.[0]?._data?._itemLayouts?.[dataIndex];

if (!layout) return;

Expand Down
1 change: 0 additions & 1 deletion web-console/src/views/explore-view/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ export * from './date-format';
export * from './get-auto-granularity';
export * from './misc';
export * from './snap-to-granularity';
export * from './use-resize-observer';
80 changes: 0 additions & 80 deletions web-console/src/views/explore-view/utils/use-resize-observer.ts

This file was deleted.

0 comments on commit 37b1367

Please sign in to comment.