diff --git a/public/app/app.ts b/public/app/app.ts index 27039c01350..059c7a6b3f0 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -9,6 +9,8 @@ import 'angular-sanitize'; import 'angular-dragdrop'; import 'angular-bindonce'; import 'angular-ui'; +import 'react'; +import 'react-dom'; import 'ngreact'; import $ from 'jquery'; diff --git a/public/app/core/components/PasswordStrength.tsx b/public/app/core/components/PasswordStrength.tsx index 52e8a44165d..e5e30f5d721 100644 --- a/public/app/core/components/PasswordStrength.tsx +++ b/public/app/core/components/PasswordStrength.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import 'react-dom'; import coreModule from '../core_module'; export interface IProps { diff --git a/public/app/core/core.ts b/public/app/core/core.ts index d8be6c2a88d..526504380ad 100644 --- a/public/app/core/core.ts +++ b/public/app/core/core.ts @@ -8,7 +8,6 @@ import "./directives/dropdown_typeahead"; import "./directives/metric_segment"; import "./directives/misc"; import "./directives/ng_model_on_blur"; -import "./directives/password_strength"; import "./directives/spectrum_picker"; import "./directives/tags"; import "./directives/value_select_dropdown"; diff --git a/public/app/core/directives/password_strength.js b/public/app/core/directives/password_strength.js deleted file mode 100644 index 089ff08c13b..00000000000 --- a/public/app/core/directives/password_strength.js +++ /dev/null @@ -1,45 +0,0 @@ -define([ - '../core_module', -], -function (coreModule) { - 'use strict'; - - coreModule.default.directive('passwordStrength2', function() { - var template = '