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
02235b72
Commit
02235b72
authored
Jul 25, 2019
by
Hannah Stepanek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tabs to util directory
parent
fd4592b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
sidebar-content.js
src/sidebar/components/sidebar-content.js
+1
-1
root-thread.js
src/sidebar/services/root-thread.js
+1
-1
tabs.js
src/sidebar/util/tabs.js
+3
-4
tabs-test.js
src/sidebar/util/test/tabs-test.js
+3
-3
No files found.
src/sidebar/components/sidebar-content.js
View file @
02235b72
...
...
@@ -2,7 +2,7 @@
const
events
=
require
(
'../events'
);
const
isThirdPartyService
=
require
(
'../util/is-third-party-service'
);
const
tabs
=
require
(
'../tabs'
);
const
tabs
=
require
(
'../
util/
tabs'
);
// @ngInject
function
SidebarContentController
(
...
...
src/sidebar/services/root-thread.js
View file @
02235b72
...
...
@@ -4,7 +4,7 @@ const buildThread = require('../build-thread');
const
events
=
require
(
'../events'
);
const
memoize
=
require
(
'../util/memoize'
);
const
metadata
=
require
(
'../util/annotation-metadata'
);
const
tabs
=
require
(
'../tabs'
);
const
tabs
=
require
(
'../
util/
tabs'
);
const
uiConstants
=
require
(
'../ui-constants'
);
function
truthyKeys
(
map
)
{
...
...
src/sidebar/tabs.js
→
src/sidebar/
util/
tabs.js
View file @
02235b72
'use strict'
;
// Selectors that calculate the annotation counts displayed in tab headings
// and determine which tab an annotation should be displayed in.
// Functions that determine which tab an annotation should be displayed in.
const
metadata
=
require
(
'./
util/
annotation-metadata'
);
const
uiConstants
=
require
(
'./ui-constants'
);
const
metadata
=
require
(
'./annotation-metadata'
);
const
uiConstants
=
require
(
'.
.
/ui-constants'
);
/**
* Return the tab in which an annotation should be displayed.
...
...
src/sidebar/test/tabs-test.js
→
src/sidebar/
util/
test/tabs-test.js
View file @
02235b72
'use strict'
;
const
fixtures
=
require
(
'./annotation-fixtures'
);
const
uiConstants
=
require
(
'../ui-constants'
);
const
fixtures
=
require
(
'.
./../test
/annotation-fixtures'
);
const
uiConstants
=
require
(
'../
../
ui-constants'
);
const
tabs
=
require
(
'../tabs'
);
const
unroll
=
require
(
'../../shared/test/util'
).
unroll
;
const
unroll
=
require
(
'../../
../
shared/test/util'
).
unroll
;
describe
(
'tabs'
,
function
()
{
describe
(
'tabForAnnotation'
,
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