Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6aad2a5b
Commit
6aad2a5b
authored
Sep 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech: cleanup and fixed build issue
parent
f0e0e618
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
48 deletions
+3
-48
public/app/app.ts
+2
-0
public/app/core/components/PasswordStrength.tsx
+0
-1
public/app/core/core.ts
+0
-1
public/app/core/directives/password_strength.js
+0
-45
public/test/test-main.js
+1
-1
No files found.
public/app/app.ts
View file @
6aad2a5b
...
@@ -9,6 +9,8 @@ import 'angular-sanitize';
...
@@ -9,6 +9,8 @@ import 'angular-sanitize';
import
'angular-dragdrop'
;
import
'angular-dragdrop'
;
import
'angular-bindonce'
;
import
'angular-bindonce'
;
import
'angular-ui'
;
import
'angular-ui'
;
import
'react'
;
import
'react-dom'
;
import
'ngreact'
;
import
'ngreact'
;
import
$
from
'jquery'
;
import
$
from
'jquery'
;
...
...
public/app/core/components/PasswordStrength.tsx
View file @
6aad2a5b
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
import
'react-dom'
;
import
coreModule
from
'../core_module'
;
import
coreModule
from
'../core_module'
;
export
interface
IProps
{
export
interface
IProps
{
...
...
public/app/core/core.ts
View file @
6aad2a5b
...
@@ -8,7 +8,6 @@ import "./directives/dropdown_typeahead";
...
@@ -8,7 +8,6 @@ import "./directives/dropdown_typeahead";
import
"./directives/metric_segment"
;
import
"./directives/metric_segment"
;
import
"./directives/misc"
;
import
"./directives/misc"
;
import
"./directives/ng_model_on_blur"
;
import
"./directives/ng_model_on_blur"
;
import
"./directives/password_strength"
;
import
"./directives/spectrum_picker"
;
import
"./directives/spectrum_picker"
;
import
"./directives/tags"
;
import
"./directives/tags"
;
import
"./directives/value_select_dropdown"
;
import
"./directives/value_select_dropdown"
;
...
...
public/app/core/directives/password_strength.js
deleted
100644 → 0
View file @
f0e0e618
define
([
'../core_module'
,
],
function
(
coreModule
)
{
'use strict'
;
coreModule
.
default
.
directive
(
'passwordStrength2'
,
function
()
{
var
template
=
'<div class="password-strength small" ng-if="!loginMode" ng-class="strengthClass">'
+
'<em>{{strengthText}}</em>'
+
'</div>'
;
return
{
template
:
template
,
scope
:
{
password
:
"="
,
},
link
:
function
(
$scope
)
{
$scope
.
strengthClass
=
''
;
function
passwordChanged
(
newValue
)
{
if
(
!
newValue
)
{
$scope
.
strengthText
=
""
;
$scope
.
strengthClass
=
"hidden"
;
return
;
}
if
(
newValue
.
length
<
4
)
{
$scope
.
strengthText
=
"strength: weak sauce."
;
$scope
.
strengthClass
=
"password-strength-bad"
;
return
;
}
if
(
newValue
.
length
<=
8
)
{
$scope
.
strengthText
=
"strength: you can do better."
;
$scope
.
strengthClass
=
"password-strength-ok"
;
return
;
}
$scope
.
strengthText
=
"strength: strong like a bull."
;
$scope
.
strengthClass
=
"password-strength-good"
;
}
$scope
.
$watch
(
"password"
,
passwordChanged
);
}
};
});
});
public/test/test-main.js
View file @
6aad2a5b
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
deps
:
[
'jquery'
],
deps
:
[
'jquery'
],
exports
:
'angular'
,
exports
:
'angular'
,
},
},
'vendor/angular-mocks/angular-mocks.js'
:
{
'vendor/
npm/
angular-mocks/angular-mocks.js'
:
{
format
:
'global'
,
format
:
'global'
,
deps
:
[
'angular'
],
deps
:
[
'angular'
],
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment