Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
57e12ba0
Commit
57e12ba0
authored
Mar 14, 2017
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert `<search-status-bar>` to a component
parent
93c6e52e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
25 deletions
+20
-25
app.js
src/sidebar/app.js
+1
-1
search-status-bar.js
src/sidebar/directive/search-status-bar.js
+18
-23
search-status-bar-test.js
src/sidebar/directive/test/search-status-bar-test.js
+1
-1
No files found.
src/sidebar/app.js
View file @
57e12ba0
...
@@ -146,6 +146,7 @@ module.exports = angular.module('h', [
...
@@ -146,6 +146,7 @@ module.exports = angular.module('h', [
.
component
(
'loginControl'
,
require
(
'./directive/login-control'
))
.
component
(
'loginControl'
,
require
(
'./directive/login-control'
))
.
component
(
'loginForm'
,
require
(
'./directive/login-form'
).
component
)
.
component
(
'loginForm'
,
require
(
'./directive/login-form'
).
component
)
.
component
(
'publishAnnotationBtn'
,
require
(
'./directive/publish-annotation-btn'
))
.
component
(
'publishAnnotationBtn'
,
require
(
'./directive/publish-annotation-btn'
))
.
component
(
'searchStatusBar'
,
require
(
'./directive/search-status-bar'
))
.
component
(
'timestamp'
,
require
(
'./directive/timestamp'
))
.
component
(
'timestamp'
,
require
(
'./directive/timestamp'
))
.
directive
(
'excerpt'
,
require
(
'./directive/excerpt'
).
directive
)
.
directive
(
'excerpt'
,
require
(
'./directive/excerpt'
).
directive
)
...
@@ -156,7 +157,6 @@ module.exports = angular.module('h', [
...
@@ -156,7 +157,6 @@ module.exports = angular.module('h', [
.
directive
(
'hOnTouch'
,
require
(
'./directive/h-on-touch'
))
.
directive
(
'hOnTouch'
,
require
(
'./directive/h-on-touch'
))
.
directive
(
'hTooltip'
,
require
(
'./directive/h-tooltip'
))
.
directive
(
'hTooltip'
,
require
(
'./directive/h-tooltip'
))
.
directive
(
'markdown'
,
require
(
'./directive/markdown'
))
.
directive
(
'markdown'
,
require
(
'./directive/markdown'
))
.
directive
(
'searchStatusBar'
,
require
(
'./directive/search-status-bar'
))
.
directive
(
'shareDialog'
,
require
(
'./directive/share-dialog'
))
.
directive
(
'shareDialog'
,
require
(
'./directive/share-dialog'
))
.
directive
(
'sidebarTutorial'
,
require
(
'./directive/sidebar-tutorial'
).
directive
)
.
directive
(
'sidebarTutorial'
,
require
(
'./directive/sidebar-tutorial'
).
directive
)
.
directive
(
'searchInput'
,
require
(
'./directive/search-input'
))
.
directive
(
'searchInput'
,
require
(
'./directive/search-input'
))
...
...
src/sidebar/directive/search-status-bar.js
View file @
57e12ba0
...
@@ -2,18 +2,14 @@
...
@@ -2,18 +2,14 @@
var
uiConstants
=
require
(
'../ui-constants'
);
var
uiConstants
=
require
(
'../ui-constants'
);
// @ngInject
module
.
exports
=
{
module
.
exports
=
function
()
{
return
{
bindToController
:
true
,
controllerAs
:
'vm'
,
controllerAs
:
'vm'
,
controller
:
function
()
{
controller
:
function
()
{
this
.
TAB_ANNOTATIONS
=
uiConstants
.
TAB_ANNOTATIONS
;
this
.
TAB_ANNOTATIONS
=
uiConstants
.
TAB_ANNOTATIONS
;
this
.
TAB_NOTES
=
uiConstants
.
TAB_NOTES
;
this
.
TAB_NOTES
=
uiConstants
.
TAB_NOTES
;
this
.
TAB_ORPHANS
=
uiConstants
.
TAB_ORPHANS
;
this
.
TAB_ORPHANS
=
uiConstants
.
TAB_ORPHANS
;
},
},
restrict
:
'E'
,
bindings
:
{
scope
:
{
filterActive
:
'<'
,
filterActive
:
'<'
,
filterMatchCount
:
'<'
,
filterMatchCount
:
'<'
,
onClearSelection
:
'&'
,
onClearSelection
:
'&'
,
...
@@ -24,5 +20,4 @@ module.exports = function () {
...
@@ -24,5 +20,4 @@ module.exports = function () {
totalNotes
:
'<'
,
totalNotes
:
'<'
,
},
},
template
:
require
(
'../templates/search_status_bar.html'
),
template
:
require
(
'../templates/search_status_bar.html'
),
};
};
};
src/sidebar/directive/test/search-status-bar-test.js
View file @
57e12ba0
...
@@ -7,7 +7,7 @@ var util = require('./util');
...
@@ -7,7 +7,7 @@ var util = require('./util');
describe
(
'searchStatusBar'
,
function
()
{
describe
(
'searchStatusBar'
,
function
()
{
before
(
function
()
{
before
(
function
()
{
angular
.
module
(
'app'
,
[])
angular
.
module
(
'app'
,
[])
.
directive
(
'searchStatusBar'
,
require
(
'../search-status-bar'
));
.
component
(
'searchStatusBar'
,
require
(
'../search-status-bar'
));
});
});
beforeEach
(
function
()
{
beforeEach
(
function
()
{
...
...
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