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
5ced2dce
Commit
5ced2dce
authored
Aug 28, 2020
by
Lyza Danger Gardner
Committed by
Lyza Gardner
Sep 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configuration option for PDF side-by-side mode
parent
8c89a08e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
client-config.js.mustache
dev-server/templates/client-config.js.mustache
+1
-0
index.js
src/annotator/config/index.js
+7
-0
No files found.
dev-server/templates/client-config.js.mustache
View file @
5ced2dce
...
...
@@ -2,6 +2,7 @@
window
.
hypothesisConfig
=
function
()
{
return
{
// enableExperimentalNewNoteButton: true,
enableExperimentalPDFSideBySide
:
true
,
// showHighlights: 'always',
// theme: 'clean',
...
...
src/annotator/config/index.js
View file @
5ced2dce
...
...
@@ -22,6 +22,13 @@ export default function configFrom(window_) {
enableExperimentalNewNoteButton
:
settings
.
hostPageSetting
(
'enableExperimentalNewNoteButton'
),
enableExperimentalPDFSideBySide
:
settings
.
hostPageSetting
(
'enableExperimentalPDFSideBySide'
,
{
coerce
:
toBoolean
,
defaultValue
:
false
,
}
),
group
:
settings
.
group
,
focus
:
settings
.
hostPageSetting
(
'focus'
),
theme
:
settings
.
hostPageSetting
(
'theme'
),
...
...
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