Skip to content

Commit 34ed1ca

Browse files
authored
Update Components naming (#97)
1 parent 735cf0c commit 34ed1ca

File tree

75 files changed

+159
-199
lines changed

Some content is hidden

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

75 files changed

+159
-199
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ jobs:
4646
run: yarn build
4747

4848
- name: Upload coverage to Codecov
49-
uses: codecov/codecov-action@v1
49+
uses: codecov/codecov-action@v2
5050
with:
5151
directory: ./coverage/
5252
env_vars: OS,PYTHON
5353
fail_ci_if_error: true
54-
path_to_write_report: ./coverage/codecov_report.txt

src/components/config/config.test.tsx renamed to src/components/Config/Config.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { shallow } from 'enzyme';
22
import React from 'react';
33
import { setLocationSrv } from '@grafana/runtime';
44
import { ApplicationRoot } from '../../constants';
5-
import { Config } from './config';
5+
import { Config } from './Config';
66

77
/*
88
Plugin
File renamed without changes.

src/components/Config/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './Config';

src/components/data-source-list/data-source-list.test.tsx renamed to src/components/DataSourceList/DataSourceList.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import React from 'react';
1515
import { Alert } from '@grafana/ui';
1616
import { DataSourceType, RedisCommand } from '../../constants';
17-
import { DataSourceList } from './data-source-list';
17+
import { DataSourceList } from './DataSourceList';
1818

1919
type ShallowComponent = ShallowWrapper<typeof DataSourceList>;
2020

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './DataSourceList';

src/components/root-page/root-page.test.tsx renamed to src/components/RootPage/RootPage.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Observable } from 'rxjs';
44
import { AppPluginMeta, PluginType } from '@grafana/data';
55
import { Alert } from '@grafana/ui';
66
import { ApplicationName, ApplicationSubTitle, DataSourceType, RedisCommand } from '../../constants';
7-
import { DataSourceList } from '../data-source-list';
8-
import { RootPage } from './root-page';
7+
import { DataSourceList } from '../DataSourceList';
8+
import { RootPage } from './RootPage';
99

1010
/**
1111
* Meta

src/components/root-page/root-page.tsx renamed to src/components/RootPage/RootPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import {
1111
import { config, getBackendSrv, getDataSourceSrv } from '@grafana/runtime';
1212
import { Alert } from '@grafana/ui';
1313
import { ApplicationName, ApplicationSubTitle, DataSourceType, RedisCommand } from '../../constants';
14-
import { RedisQuery } from '../../redis-cli-panel/types';
15-
import { GlobalSettings, RedisDataSourceInstanceSettings } from '../../types';
16-
import { DataSourceList } from '../data-source-list';
14+
import { GlobalSettings, RedisDataSourceInstanceSettings, RedisQuery } from '../../types';
15+
import { DataSourceList } from '../DataSourceList';
1716

1817
/**
1918
* Properties

src/components/RootPage/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './RootPage';

0 commit comments

Comments
 (0)