Skip to content

Commit 1c4e54d

Browse files
authored
[ENHANCEMENT] remove core dependency (#667)
Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>
1 parent 18cab71 commit 1c4e54d

249 files changed

Lines changed: 795 additions & 612 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

barchart/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"@emotion/react": "^11.7.1",
2828
"@emotion/styled": "^11.6.0",
2929
"@hookform/resolvers": "^3.2.0",
30-
"@perses-dev/components": "^0.54.0-beta.1",
31-
"@perses-dev/core": "^0.53.0",
32-
"@perses-dev/plugin-system": "^0.54.0-beta.1",
30+
"@perses-dev/components": "^0.54.0-beta.3",
31+
"@perses-dev/plugin-system": "^0.54.0-beta.3",
32+
"@perses-dev/spec": "^0.2.0-beta.2",
3333
"date-fns": "^4.1.0",
3434
"date-fns-tz": "^3.2.0",
3535
"echarts": "5.5.0",

barchart/src/BarChartBase.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
// limitations under the License.
1313

1414
import { ReactElement, useMemo } from 'react';
15-
import { EChart, ModeOption, getFormattedAxis, useChartsTheme } from '@perses-dev/components';
16-
import { FormatOptions, formatValue } from '@perses-dev/core';
15+
import {
16+
EChart,
17+
FormatOptions,
18+
ModeOption,
19+
formatValue,
20+
getFormattedAxis,
21+
useChartsTheme,
22+
} from '@perses-dev/components';
1723
import { use, EChartsCoreOption } from 'echarts/core';
1824
import { BarChart as EChartsBarChart } from 'echarts/charts';
1925
import { GridComponent, DatasetComponent, TitleComponent, TooltipComponent, LegendComponent } from 'echarts/components';

barchart/src/BarChartOptionsEditorSettings.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import {
2424
import {
2525
FormatControls,
2626
FormatControlsProps,
27+
FormatOptions,
28+
isPercentUnit,
2729
ModeOption,
2830
ModeSelector,
2931
ModeSelectorProps,
@@ -34,8 +36,12 @@ import {
3436
SortSelector,
3537
SortSelectorProps,
3638
} from '@perses-dev/components';
37-
import { CalculationType, DEFAULT_CALCULATION, FormatOptions, isPercentUnit } from '@perses-dev/core';
38-
import { CalculationSelector, CalculationSelectorProps } from '@perses-dev/plugin-system';
39+
import {
40+
CalculationSelector,
41+
CalculationSelectorProps,
42+
CalculationType,
43+
DEFAULT_CALCULATION,
44+
} from '@perses-dev/plugin-system';
3945
import { produce } from 'immer';
4046
import merge from 'lodash/merge';
4147
import { MouseEventHandler, ReactElement } from 'react';

barchart/src/BarChartPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import { useChartsTheme } from '@perses-dev/components';
1515
import { Box } from '@mui/material';
1616
import { ReactElement, useMemo } from 'react';
17-
import { CalculationType, CalculationsMap, TimeSeriesData } from '@perses-dev/core';
18-
import { PanelProps } from '@perses-dev/plugin-system';
17+
import { CalculationsMap, CalculationType, PanelProps } from '@perses-dev/plugin-system';
18+
import { TimeSeriesData } from '@perses-dev/spec';
1919
import { BarChartOptions } from './bar-chart-model';
2020
import { calculatePercentages, sortSeriesData } from './utils';
2121
import { BarChartBase, BarChartData, StackedBarChartData, StackedBarChartSeries } from './BarChartBase';

barchart/src/bar-chart-model.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import { ModeOption, SortOption } from '@perses-dev/components';
15-
import { CalculationType, DEFAULT_CALCULATION, Definition, FormatOptions } from '@perses-dev/core';
16-
import { OptionsEditorProps } from '@perses-dev/plugin-system';
14+
import { FormatOptions, ModeOption, SortOption } from '@perses-dev/components';
15+
import { CalculationType, DEFAULT_CALCULATION, OptionsEditorProps } from '@perses-dev/plugin-system';
16+
import { Definition } from '@perses-dev/spec';
1717

1818
export const DEFAULT_FORMAT: FormatOptions = { unit: 'decimal', shortValues: true };
1919
export const DEFAULT_SORT: SortOption = 'desc';

barchart/src/tresholds.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import { StepOptions, ThresholdColorPalette, ThresholdOptions, FormatOptions } from '@perses-dev/core';
14+
import { FormatOptions, StepOptions, ThresholdColorPalette, ThresholdOptions } from '@perses-dev/components';
1515
import zip from 'lodash/zip';
1616

1717
export type GaugeColorStop = [number, string];

clickhouse/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
"@emotion/react": "^11.7.1",
2020
"@emotion/styled": "^11.6.0",
2121
"@hookform/resolvers": "^3.2.0",
22-
"@perses-dev/components": "^0.54.0-beta.1",
23-
"@perses-dev/core": "^0.53.0",
24-
"@perses-dev/dashboards": "^0.54.0-beta.1",
25-
"@perses-dev/explore": "^0.54.0-beta.1",
26-
"@perses-dev/plugin-system": "^0.54.0-beta.1",
22+
"@perses-dev/components": "^0.54.0-beta.3",
23+
"@perses-dev/dashboards": "^0.54.0-beta.3",
24+
"@perses-dev/spec": "^0.2.0-beta.2",
25+
"@perses-dev/explore": "^0.54.0-beta.3",
26+
"@perses-dev/plugin-system": "^0.54.0-beta.3",
27+
"@perses-dev/client": "^0.54.0-beta.3",
2728
"@tanstack/react-query": "^4.39.1",
2829
"date-fns": "^4.1.0",
2930
"date-fns-tz": "^3.2.0",

clickhouse/src/datasources/click-house-datasource/click-house-datasource-types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import { HTTPProxy, RequestHeaders } from '@perses-dev/core';
14+
import { RequestHeaders } from '@perses-dev/client';
1515
import { DatasourceClient } from '@perses-dev/plugin-system';
16+
import { HTTPProxy } from '@perses-dev/spec';
1617

1718
export interface ClickHouseDatasourceSpec {
1819
directUrl?: string;

clickhouse/src/model/click-house-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import { RequestHeaders } from '@perses-dev/core';
14+
import { RequestHeaders } from '@perses-dev/client';
1515

1616
export interface ClickHouseQueryParams {
1717
query: string;

clickhouse/src/model/click-house-data-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
import { LogData, TimeSeriesData } from '@perses-dev/core';
14+
import { LogData, TimeSeriesData } from '@perses-dev/spec';
1515

1616
export interface ClickHouseTimeSeriesData extends TimeSeriesData {
1717
logs?: LogData;

0 commit comments

Comments
 (0)