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
37d784ce
Commit
37d784ce
authored
Jan 31, 2022
by
Eduardo Sanz García
Committed by
Eduardo
Feb 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sidebar: convert to named export
parent
900e759a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
index.js
src/annotator/index.js
+2
-2
sidebar.js
src/annotator/sidebar.js
+1
-1
sidebar-test.js
src/annotator/test/sidebar-test.js
+1
-1
No files found.
src/annotator/index.js
View file @
37d784ce
...
...
@@ -12,8 +12,8 @@ registerIcons(iconSet);
import
{
PortProvider
}
from
'../shared/messaging'
;
import
{
getConfig
}
from
'./config/index'
;
import
{
Guest
}
from
'./guest'
;
import
Notebook
from
'./notebook'
;
import
Sidebar
from
'./sidebar'
;
import
{
Notebook
}
from
'./notebook'
;
import
{
Sidebar
}
from
'./sidebar'
;
import
{
EventBus
}
from
'./util/emitter'
;
// Look up the URL of the sidebar. This element is added to the page by the
...
...
src/annotator/sidebar.js
View file @
37d784ce
...
...
@@ -56,7 +56,7 @@ function createSidebarIframe(config) {
*
* @implements {Destroyable}
*/
export
default
class
Sidebar
{
export
class
Sidebar
{
/**
* @param {HTMLElement} element
* @param {import('./util/emitter').EventBus} eventBus -
...
...
src/annotator/test/sidebar-test.js
View file @
37d784ce
import
{
addConfigFragment
}
from
'../../shared/config-fragment'
;
import
Sidebar
,
{
MIN_RESIZE
,
$imports
}
from
'../sidebar'
;
import
{
Sidebar
,
MIN_RESIZE
,
$imports
}
from
'../sidebar'
;
import
{
EventBus
}
from
'../util/emitter'
;
const
DEFAULT_WIDTH
=
350
;
...
...
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