2018-01-03 22:50:39 +08:00
|
|
|
import { react2AngularDirective } from 'app/core/utils/react2angular';
|
2019-01-08 20:37:08 +08:00
|
|
|
import { QueryEditor } from 'app/plugins/datasource/stackdriver/components/QueryEditor';
|
2018-01-03 22:50:39 +08:00
|
|
|
import { PasswordStrength } from './components/PasswordStrength';
|
|
|
|
|
import PageHeader from './components/PageHeader/PageHeader';
|
|
|
|
|
import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
|
|
|
|
|
import { SearchResult } from './components/search/SearchResult';
|
2018-01-16 19:52:13 +08:00
|
|
|
import { TagFilter } from './components/TagFilter/TagFilter';
|
2018-09-04 23:24:08 +08:00
|
|
|
import { SideMenu } from './components/sidemenu/SideMenu';
|
2018-12-20 04:44:38 +08:00
|
|
|
import { MetricSelect } from './components/Select/MetricSelect';
|
2018-10-23 19:34:27 +08:00
|
|
|
import AppNotificationList from './components/AppNotifications/AppNotificationList';
|
2017-10-22 13:03:26 +08:00
|
|
|
|
|
|
|
|
export function registerAngularDirectives() {
|
2018-01-03 22:50:39 +08:00
|
|
|
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
|
2018-09-04 23:24:08 +08:00
|
|
|
react2AngularDirective('sidemenu', SideMenu, []);
|
2018-10-24 16:23:11 +08:00
|
|
|
react2AngularDirective('appNotificationsList', AppNotificationList, []);
|
2018-01-03 22:50:39 +08:00
|
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
|
|
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
|
|
|
|
|
react2AngularDirective('searchResult', SearchResult, []);
|
2018-01-16 19:52:13 +08:00
|
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
|
|
|
'tags',
|
2018-12-10 20:23:38 +08:00
|
|
|
['onChange', { watchDepth: 'reference' }],
|
2018-01-16 19:52:13 +08:00
|
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2018-12-20 04:44:38 +08:00
|
|
|
react2AngularDirective('metricSelect', MetricSelect, [
|
|
|
|
|
'options',
|
|
|
|
|
'onChange',
|
|
|
|
|
'value',
|
|
|
|
|
'isSearchable',
|
|
|
|
|
'className',
|
|
|
|
|
'placeholder',
|
|
|
|
|
['variables', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-01-08 20:37:08 +08:00
|
|
|
react2AngularDirective('queryEditor', QueryEditor, [
|
|
|
|
|
'target',
|
|
|
|
|
'onQueryChange',
|
|
|
|
|
'onExecuteQuery',
|
|
|
|
|
['events', { watchDepth: 'reference' }],
|
|
|
|
|
['datasource', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2017-10-22 13:03:26 +08:00
|
|
|
}
|