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
f8ffebb6
Commit
f8ffebb6
authored
Jan 30, 2024
by
Alejandro Celaya
Committed by
Alejandro Celaya
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put plain text and rich text formats next to each other
parent
5b655303
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
ExportAnnotations.tsx
src/sidebar/components/ShareDialog/ExportAnnotations.tsx
+6
-6
ExportAnnotations-test.js
...bar/components/ShareDialog/test/ExportAnnotations-test.js
+4
-4
No files found.
src/sidebar/components/ShareDialog/ExportAnnotations.tsx
View file @
f8ffebb6
...
@@ -55,18 +55,18 @@ const exportFormats: ExportFormat[] = [
...
@@ -55,18 +55,18 @@ const exportFormats: ExportFormat[] = [
shortTitle
:
'Text'
,
shortTitle
:
'Text'
,
description
:
'For import into word processors as plain text'
,
description
:
'For import into word processors as plain text'
,
},
},
{
value
:
'csv'
,
title
:
'Table (CSV)'
,
shortTitle
:
'CSV'
,
description
:
'For import into a spreadsheet'
,
},
{
{
value
:
'html'
,
value
:
'html'
,
title
:
'Rich text (HTML)'
,
title
:
'Rich text (HTML)'
,
shortTitle
:
'HTML'
,
shortTitle
:
'HTML'
,
description
:
'For import into word processors as rich text'
,
description
:
'For import into word processors as rich text'
,
},
},
{
value
:
'csv'
,
title
:
'Table (CSV)'
,
shortTitle
:
'CSV'
,
description
:
'For import into a spreadsheet'
,
},
];
];
function
formatToMimeType
(
format
:
ExportFormat
[
'value'
]):
string
{
function
formatToMimeType
(
format
:
ExportFormat
[
'value'
]):
string
{
...
...
src/sidebar/components/ShareDialog/test/ExportAnnotations-test.js
View file @
f8ffebb6
...
@@ -269,13 +269,13 @@ describe('ExportAnnotations', () => {
...
@@ -269,13 +269,13 @@ describe('ExportAnnotations', () => {
optionText
(
1
,
'description'
),
optionText
(
1
,
'description'
),
'For import into word processors as plain text'
,
'For import into word processors as plain text'
,
);
);
assert
.
equal
(
optionText
(
2
,
'name'
),
'Table (CSV)'
);
assert
.
equal
(
optionText
(
2
,
'name'
),
'Rich text (HTML)'
);
assert
.
equal
(
optionText
(
2
,
'description'
),
'For import into a spreadsheet'
);
assert
.
equal
(
optionText
(
3
,
'name'
),
'Rich text (HTML)'
);
assert
.
equal
(
assert
.
equal
(
optionText
(
3
,
'description'
),
optionText
(
2
,
'description'
),
'For import into word processors as rich text'
,
'For import into word processors as rich text'
,
);
);
assert
.
equal
(
optionText
(
3
,
'name'
),
'Table (CSV)'
);
assert
.
equal
(
optionText
(
3
,
'description'
),
'For import into a spreadsheet'
);
});
});
[
[
...
...
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