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
ab6be482
Commit
ab6be482
authored
Mar 31, 2023
by
Alejandro Celaya
Committed by
Alejandro Celaya
Apr 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate app annotator config to TypeScript
parent
b71396be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app.ts
src/annotator/config/app.ts
+7
-7
No files found.
src/annotator/config/app.
j
s
→
src/annotator/config/app.
t
s
View file @
ab6be482
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
* Create the JSON-serializable subset of annotator configuration that should
* Create the JSON-serializable subset of annotator configuration that should
* be passed to the sidebar or notebook applications.
* be passed to the sidebar or notebook applications.
*
*
* @param {string} appURL - URL from which the application will be served
* @param appURL - URL from which the application will be served
* @param {Record<string, unknown>} config
* @return {Record<string, unknown>}
*/
*/
export
function
createAppConfig
(
appURL
,
config
)
{
export
function
createAppConfig
(
/** @type {Record<string, unknown>} */
appURL
:
string
,
const
appConfig
=
{};
config
:
Record
<
string
,
unknown
>
):
Record
<
string
,
unknown
>
{
const
appConfig
:
Record
<
string
,
unknown
>
=
{};
for
(
le
t
[
key
,
value
]
of
Object
.
entries
(
config
))
{
for
(
cons
t
[
key
,
value
]
of
Object
.
entries
(
config
))
{
// Remove several annotator-only properties.
// Remove several annotator-only properties.
//
//
// nb. We don't currently strip all the annotator-only properties here.
// nb. We don't currently strip all the annotator-only properties here.
...
...
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