mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
| import { react2AngularDirective } from 'app/core/utils/react2angular';
 | |
| import { QueryEditor } from 'app/plugins/datasource/stackdriver/components/QueryEditor';
 | |
| import { PasswordStrength } from './components/PasswordStrength';
 | |
| import PageHeader from './components/PageHeader/PageHeader';
 | |
| import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
 | |
| import { SearchResult } from './components/search/SearchResult';
 | |
| import { TagFilter } from './components/TagFilter/TagFilter';
 | |
| import { SideMenu } from './components/sidemenu/SideMenu';
 | |
| import { MetricSelect } from './components/Select/MetricSelect';
 | |
| import AppNotificationList from './components/AppNotifications/AppNotificationList';
 | |
| 
 | |
| export function registerAngularDirectives() {
 | |
|   react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
 | |
|   react2AngularDirective('sidemenu', SideMenu, []);
 | |
|   react2AngularDirective('appNotificationsList', AppNotificationList, []);
 | |
|   react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
 | |
|   react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
 | |
|   react2AngularDirective('searchResult', SearchResult, []);
 | |
|   react2AngularDirective('tagFilter', TagFilter, [
 | |
|     'tags',
 | |
|     ['onChange', { watchDepth: 'reference' }],
 | |
|     ['tagOptions', { watchDepth: 'reference' }],
 | |
|   ]);
 | |
|   react2AngularDirective('metricSelect', MetricSelect, [
 | |
|     'options',
 | |
|     'onChange',
 | |
|     'value',
 | |
|     'isSearchable',
 | |
|     'className',
 | |
|     'placeholder',
 | |
|     ['variables', { watchDepth: 'reference' }],
 | |
|   ]);
 | |
|   react2AngularDirective('queryEditor', QueryEditor, [
 | |
|     'target',
 | |
|     'onQueryChange',
 | |
|     'onExecuteQuery',
 | |
|     ['events', { watchDepth: 'reference' }],
 | |
|     ['datasource', { watchDepth: 'reference' }],
 | |
|   ]);
 | |
| }
 |