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
7f6b9cb8
Commit
7f6b9cb8
authored
Feb 05, 2020
by
Lyza Danger Gardner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `annotations` -> `annotationsService`
parent
ec63961a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
sidebar-content.js
src/sidebar/components/sidebar-content.js
+2
-2
sidebar-content-test.js
src/sidebar/components/test/sidebar-content-test.js
+1
-1
index.js
src/sidebar/index.js
+1
-1
annotations.js
src/sidebar/services/annotations.js
+1
-1
annotations-test.js
src/sidebar/services/test/annotations-test.js
+3
-3
No files found.
src/sidebar/components/sidebar-content.js
View file @
7f6b9cb8
...
@@ -6,7 +6,7 @@ import * as tabs from '../util/tabs';
...
@@ -6,7 +6,7 @@ import * as tabs from '../util/tabs';
function
SidebarContentController
(
function
SidebarContentController
(
$scope
,
$scope
,
analytics
,
analytics
,
annotations
,
annotations
Service
,
store
,
store
,
frameSync
,
frameSync
,
rootThread
,
rootThread
,
...
@@ -120,7 +120,7 @@ function SidebarContentController(
...
@@ -120,7 +120,7 @@ function SidebarContentController(
}
}
const
searchUris
=
store
.
searchUris
();
const
searchUris
=
store
.
searchUris
();
annotations
.
load
(
searchUris
,
currentGroupId
);
annotations
Service
.
load
(
searchUris
,
currentGroupId
);
},
},
true
true
);
);
...
...
src/sidebar/components/test/sidebar-content-test.js
View file @
7f6b9cb8
...
@@ -68,7 +68,7 @@ describe('sidebar.components.sidebar-content', function() {
...
@@ -68,7 +68,7 @@ describe('sidebar.components.sidebar-content', function() {
$provide
.
value
(
'frameSync'
,
fakeFrameSync
);
$provide
.
value
(
'frameSync'
,
fakeFrameSync
);
$provide
.
value
(
'rootThread'
,
fakeRootThread
);
$provide
.
value
(
'rootThread'
,
fakeRootThread
);
$provide
.
value
(
'streamer'
,
fakeStreamer
);
$provide
.
value
(
'streamer'
,
fakeStreamer
);
$provide
.
value
(
'annotations'
,
fakeAnnotations
);
$provide
.
value
(
'annotations
Service
'
,
fakeAnnotations
);
$provide
.
value
(
'settings'
,
fakeSettings
);
$provide
.
value
(
'settings'
,
fakeSettings
);
});
});
});
});
...
...
src/sidebar/index.js
View file @
7f6b9cb8
...
@@ -252,7 +252,7 @@ function startAngularApp(config) {
...
@@ -252,7 +252,7 @@ function startAngularApp(config) {
.
service
(
'analytics'
,
analyticsService
)
.
service
(
'analytics'
,
analyticsService
)
.
service
(
'annotationMapper'
,
annotationMapperService
)
.
service
(
'annotationMapper'
,
annotationMapperService
)
.
service
(
'annotations'
,
annotationsService
)
.
service
(
'annotations
Service
'
,
annotationsService
)
.
service
(
'api'
,
apiService
)
.
service
(
'api'
,
apiService
)
.
service
(
'apiRoutes'
,
apiRoutesService
)
.
service
(
'apiRoutes'
,
apiRoutesService
)
.
service
(
'auth'
,
authService
)
.
service
(
'auth'
,
authService
)
...
...
src/sidebar/services/annotations.js
View file @
7f6b9cb8
import
SearchClient
from
'../search-client'
;
import
SearchClient
from
'../search-client'
;
// @ngInject
// @ngInject
export
default
function
annotations
(
export
default
function
annotations
Service
(
annotationMapper
,
annotationMapper
,
api
,
api
,
store
,
store
,
...
...
src/sidebar/services/test/annotations-test.js
View file @
7f6b9cb8
import
EventEmitter
from
'tiny-emitter'
;
import
EventEmitter
from
'tiny-emitter'
;
import
annotations
from
'../annotations'
;
import
annotations
Service
from
'../annotations'
;
import
{
$imports
}
from
'../annotations'
;
import
{
$imports
}
from
'../annotations'
;
let
searchClients
;
let
searchClients
;
...
@@ -29,7 +29,7 @@ class FakeSearchClient extends EventEmitter {
...
@@ -29,7 +29,7 @@ class FakeSearchClient extends EventEmitter {
}
}
}
}
describe
(
'annotation
s
'
,
()
=>
{
describe
(
'annotation
Service
'
,
()
=>
{
let
fakeStore
;
let
fakeStore
;
let
fakeApi
;
let
fakeApi
;
let
fakeAnnotationMapper
;
let
fakeAnnotationMapper
;
...
@@ -90,7 +90,7 @@ describe('annotations', () => {
...
@@ -90,7 +90,7 @@ describe('annotations', () => {
return
{
uri
:
uri
};
return
{
uri
:
uri
};
})
})
);
);
return
annotations
(
return
annotations
Service
(
fakeAnnotationMapper
,
fakeAnnotationMapper
,
fakeApi
,
fakeApi
,
fakeStore
,
fakeStore
,
...
...
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