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
0420da27
Commit
0420da27
authored
Sep 20, 2021
by
Eduardo Sanz García
Committed by
Eduardo
Sep 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual fixes of type errors
parent
e1bc90f1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
MarkdownEditor.js
src/sidebar/components/MarkdownEditor.js
+1
-1
theme.js
src/sidebar/helpers/theme.js
+2
-2
version-data.js
src/sidebar/helpers/version-data.js
+2
-2
toast-messenger.js
src/sidebar/services/toast-messenger.js
+1
-1
filters.js
src/sidebar/store/modules/filters.js
+1
-1
No files found.
src/sidebar/components/MarkdownEditor.js
View file @
0420da27
...
...
@@ -377,7 +377,7 @@ function Toolbar({ isPreviewing, onCommand, onTogglePreview }) {
* @prop {Record<string,string>} [textStyle] -
* Additional CSS properties to apply to the input field and rendered preview
* @prop {string} [text] - The markdown text to edit.
* @prop {(
a?: Record<'text', string>
) => void} [onEditText]
* @prop {(
{text: string}
) => void} [onEditText]
* - Callback invoked with `{ text }` object when user edits text.
* TODO: Simplify this callback to take just a string rather than an object once the
* parent component is converted to Preact.
...
...
src/sidebar/helpers/theme.js
View file @
0420da27
...
...
@@ -59,10 +59,10 @@ export function applyTheme(themeProperties, settings) {
if
(
!
settings
.
branding
)
{
return
style
;
}
const
{
branding
}
=
settings
;
themeProperties
.
forEach
(
themeProp
=>
{
const
propertyName
=
supportedThemeProperties
[
themeProp
];
const
propertyValue
=
settings
.
branding
[
themeProp
];
const
propertyValue
=
branding
[
themeProp
];
if
(
propertyName
&&
propertyValue
)
{
style
[
propertyName
]
=
propertyValue
;
}
...
...
src/sidebar/helpers/version-data.js
View file @
0420da27
...
...
@@ -7,14 +7,14 @@
/**
* An object representing document metadata.
*
* @typedef
{object}
DocMetadata
* @typedef DocMetadata
* @prop {string=} documentFingerprint - Optional PDF fingerprint for current document
*/
/**
* An object representing document info.
*
* @typedef
{object}
DocumentInfo
* @typedef DocumentInfo
* @prop {string=} [uri] - Current document URL
* @prop {DocMetadata} [metadata] - Document metadata
*/
...
...
src/sidebar/services/toast-messenger.js
View file @
0420da27
...
...
@@ -8,7 +8,7 @@ const MESSAGE_DISMISS_DELAY = 500;
/**
* Additional control over the display of a particular message.
*
* @typedef
{object}
MessageOptions
* @typedef MessageOptions
* @prop {boolean} [autoDismiss=true] - Whether the toast message automatically disappears.
* @prop {string} [moreInfoURL=''] - Optional URL for users to visit for "more info"
*/
...
...
src/sidebar/store/modules/filters.js
View file @
0420da27
...
...
@@ -46,7 +46,7 @@ import { createStoreModule } from '../create-store';
*/
/**
* @typedef {Record<FilterKey, FilterOption>} Filters
* @typedef {Record<FilterKey, FilterOption>
|{}
} Filters
*/
/**
...
...
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