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
ebc15d5a
Commit
ebc15d5a
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
Guest: convert to named export
parent
ac12bdbb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
guest.js
src/annotator/guest.js
+1
-1
index.js
src/annotator/index.js
+1
-1
sidebar.js
src/annotator/sidebar.js
+1
-1
guest-test.js
src/annotator/test/guest-test.js
+1
-1
anchoring-test.js
src/annotator/test/integration/anchoring-test.js
+1
-1
No files found.
src/annotator/guest.js
View file @
ebc15d5a
...
...
@@ -116,7 +116,7 @@ function removeTextSelection() {
* @implements {Annotator}
* @implements {Destroyable}
*/
export
default
class
Guest
{
export
class
Guest
{
/**
* @param {HTMLElement} element -
* The root element in which the `Guest` instance should be able to anchor
...
...
src/annotator/index.js
View file @
ebc15d5a
...
...
@@ -11,7 +11,7 @@ registerIcons(iconSet);
import
{
PortProvider
}
from
'../shared/messaging'
;
import
{
getConfig
}
from
'./config/index'
;
import
Guest
from
'./guest'
;
import
{
Guest
}
from
'./guest'
;
import
Notebook
from
'./notebook'
;
import
Sidebar
from
'./sidebar'
;
import
{
EventBus
}
from
'./util/emitter'
;
...
...
src/annotator/sidebar.js
View file @
ebc15d5a
...
...
@@ -14,7 +14,7 @@ import { ToolbarController } from './toolbar';
import
{
createShadowRoot
}
from
'./util/shadow-root'
;
/**
* @typedef {import('./guest').
defaul
t} Guest
* @typedef {import('./guest').
Gues
t} Guest
* @typedef {import('../types/annotator').AnchorPosition} AnchorPosition
* @typedef {import('../types/annotator').SidebarLayout} SidebarLayout
* @typedef {import('../types/annotator').Destroyable} Destroyable
...
...
src/annotator/test/guest-test.js
View file @
ebc15d5a
import
{
delay
}
from
'../../test-util/wait'
;
import
Guest
,
{
$imports
}
from
'../guest'
;
import
{
Guest
,
$imports
}
from
'../guest'
;
class
FakeAdder
{
constructor
(
container
,
options
)
{
...
...
src/annotator/test/integration/anchoring-test.js
View file @
ebc15d5a
// Tests that the expected parts of the page are highlighted when annotations
// with various combinations of selector are anchored.
import
Guest
,
{
$imports
as
guestImports
}
from
'../../guest'
;
import
{
Guest
,
$imports
as
guestImports
}
from
'../../guest'
;
import
testPageHTML
from
'./test-page.html'
;
function
quoteSelector
(
quote
)
{
...
...
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