Skip to content

Commit

Permalink
Update Components naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl committed Dec 20, 2021
1 parent 1d34651 commit 2eb6a8b
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Bug fixes

- Grafana template variables not working for the Default datasource (#242)
- Fix JSON.GET: interface conversion: interface {} is string (#246)

## 2.0.0 (2021-11-10)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DataSourceSettings } from '@grafana/data';
import { RadioButtonGroup } from '@grafana/ui';
import { ClientTypeValue } from '../../constants';
import { RedisDataSourceOptions } from '../../types';
import { ConfigEditor } from './config-editor';
import { ConfigEditor } from './ConfigEditor';

/**
* Override Options
Expand Down
1 change: 1 addition & 0 deletions src/components/ConfigEditor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ConfigEditor';
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
RedisTimeSeries,
} from '../../redis';
import { getQuery } from '../../tests/utils';
import { QueryEditor } from './query-editor';
import { QueryEditor } from './QueryEditor';

type ShallowComponent = ShallowWrapper<QueryEditor['props'], QueryEditor['state'], QueryEditor>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { QueryEditorProps, SelectableValue } from '@grafana/data';
import { getDataSourceSrv } from '@grafana/runtime';
import { Button, InlineFormLabel, LegacyForms, RadioButtonGroup, Select, TextArea } from '@grafana/ui';
import { StreamingDataType, StreamingDataTypes } from '../../constants';
import { DataSource } from '../../data-source';
import { DataSource } from '../../datasource';
import {
Aggregations,
AggregationValue,
Expand Down
1 change: 1 addition & 0 deletions src/components/QueryEditor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './QueryEditor';
1 change: 0 additions & 1 deletion src/components/config-editor/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './config-editor';
export * from './query-editor';
export * from './ConfigEditor';
export * from './QueryEditor';
1 change: 0 additions & 1 deletion src/components/query-editor/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/data-source/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ClientTypeValue, StreamingDataType } from '../constants';
import { QueryTypeValue, RedisQuery } from '../redis';
import { getQuery } from '../tests/utils';
import { RedisDataSourceOptions } from '../types';
import { DataSource } from './data-source';
import { DataSource } from './datasource';

/**
* Instance Settings
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/datasource/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './datasource';
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConfigEditor, QueryEditor } from 'components';
import { DataSourcePlugin } from '@grafana/data';
import { DataSource } from './data-source';
import { ConfigEditor, QueryEditor } from './components';
import { DataSource } from './datasource';
import { RedisQuery } from './redis';
import { RedisDataSourceOptions } from './types';

Expand Down

0 comments on commit 2eb6a8b

Please sign in to comment.