mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
* created react component and moved markdown * extracting components * Broke out parts into components * tests * Flattened file structure * Tests * made instances typed in test * typing * function instead of variable * updated user model with missing properties * added full set of properties to user mock * redone from variable to function * refactor: minor refactorings of #13091 * removed logging
23 lines
1.2 KiB
TypeScript
23 lines
1.2 KiB
TypeScript
import { react2AngularDirective } from 'app/core/utils/react2angular';
|
|
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 DashboardPermissions from './components/Permissions/DashboardPermissions';
|
|
|
|
export function registerAngularDirectives() {
|
|
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
|
|
react2AngularDirective('sidemenu', SideMenu, []);
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
|
|
react2AngularDirective('searchResult', SearchResult, []);
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
'tags',
|
|
['onSelect', { watchDepth: 'reference' }],
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
]);
|
|
react2AngularDirective('dashboardPermissions', DashboardPermissions, ['backendSrv', 'dashboardId', 'folder']);
|
|
}
|