move example client out of src to break import cycles
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
import { createDevApp } from '@backstage/dev-utils';
|
||||
import { createPlugin, createApiFactory } from '@backstage/core';
|
||||
import { ExampleCostInsightsClient } from '../src/api';
|
||||
import { costInsightsApiRef } from '../src';
|
||||
import { costInsightsApiRef } from '../src/api';
|
||||
import { ExampleCostInsightsClient } from '../src/client';
|
||||
import { pluginConfig } from '../src/plugin';
|
||||
|
||||
const devPlugin = createPlugin({
|
||||
|
||||
@@ -15,4 +15,3 @@
|
||||
*/
|
||||
|
||||
export * from './CostInsightsApi';
|
||||
export * from './ExampleCostInsightsClient';
|
||||
|
||||
+4
-4
@@ -17,7 +17,7 @@
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
import regression, { DataPoint } from 'regression';
|
||||
import { CostInsightsApi } from './CostInsightsApi';
|
||||
import { CostInsightsApi } from './api';
|
||||
import {
|
||||
Alert,
|
||||
ChangeStatistic,
|
||||
@@ -32,13 +32,13 @@ import {
|
||||
ProjectGrowthData,
|
||||
Trendline,
|
||||
UnlabeledDataflowData,
|
||||
} from '../types';
|
||||
import { ProjectGrowthAlert, UnlabeledDataflowAlert } from '../utils/alerts';
|
||||
} from './types';
|
||||
import { ProjectGrowthAlert, UnlabeledDataflowAlert } from './utils/alerts';
|
||||
import {
|
||||
DEFAULT_DATE_FORMAT,
|
||||
exclusiveEndDateOf,
|
||||
inclusiveStartDateOf,
|
||||
} from '../utils/duration';
|
||||
} from './utils/duration';
|
||||
|
||||
type IntervalFields = {
|
||||
duration: Duration;
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
export { plugin } from './plugin';
|
||||
export * from './ExampleCostInsightsClient';
|
||||
export * from './api';
|
||||
export * from './components';
|
||||
export { useCurrency } from './hooks';
|
||||
|
||||
Reference in New Issue
Block a user