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
1cc8f991
Unverified
Commit
1cc8f991
authored
Jan 22, 2020
by
Robert Knight
Committed by
GitHub
Jan 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1704 from hypothesis/export-at-declaration
Move `export` keyword to declaration site
parents
6c209ff3
96f4467c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
adder.js
src/annotator/adder.js
+2
-4
markdown-commands.js
src/sidebar/markdown-commands.js
+1
-3
service-context.js
src/sidebar/util/service-context.js
+1
-3
No files found.
src/annotator/adder.js
View file @
1cc8f991
...
...
@@ -16,13 +16,13 @@ const HIGHLIGHT_BTN_SELECTOR = '.js-highlight-btn';
* Show the adder above the selection with an arrow pointing down at the
* selected text.
*/
const
ARROW_POINTING_DOWN
=
1
;
export
const
ARROW_POINTING_DOWN
=
1
;
/**
* Show the adder above the selection with an arrow pointing up at the
* selected text.
*/
const
ARROW_POINTING_UP
=
2
;
export
const
ARROW_POINTING_UP
=
2
;
function
toPx
(
pixels
)
{
return
pixels
.
toString
()
+
'px'
;
...
...
@@ -287,5 +287,3 @@ export class Adder {
},
1
);
}
}
export
{
ARROW_POINTING_DOWN
,
ARROW_POINTING_UP
};
src/sidebar/markdown-commands.js
View file @
1cc8f991
...
...
@@ -21,7 +21,7 @@
* Types of Markdown link that can be inserted with
* convertSelectionToLink()
*/
const
LinkType
=
{
export
const
LinkType
=
{
ANCHOR_LINK
:
0
,
IMAGE_LINK
:
1
,
};
...
...
@@ -264,5 +264,3 @@ export function toggleBlockStyle(state, prefix) {
});
}
}
export
{
LinkType
};
src/sidebar/util/service-context.js
View file @
1cc8f991
...
...
@@ -32,7 +32,7 @@ const fallbackInjector = {
* Consumers will either use this directly via `useContext` or use the
* `withServices` wrapper.
*/
const
ServiceContext
=
createContext
(
fallbackInjector
);
export
const
ServiceContext
=
createContext
(
fallbackInjector
);
/**
* Wrap a React component to inject any services it depends upon as props.
...
...
@@ -112,5 +112,3 @@ export function useService(service) {
const
injector
=
useContext
(
ServiceContext
);
return
injector
.
get
(
service
);
}
export
{
ServiceContext
};
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