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
83ca0305
Commit
83ca0305
authored
Jan 12, 2024
by
Alejandro Celaya
Committed by
Alejandro Celaya
Jan 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use table for annotations export in HTML format
parent
8882a070
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
24 deletions
+48
-24
annotations-exporter.tsx
src/sidebar/services/annotations-exporter.tsx
+24
-12
annotations-exporter-test.js
src/sidebar/services/test/annotations-exporter-test.js
+24
-12
No files found.
src/sidebar/services/annotations-exporter.tsx
View file @
83ca0305
...
...
@@ -189,18 +189,30 @@ export class AnnotationsExporter {
</
a
>
</
p
>
<
dl
>
<
dt
>
Group
</
dt
>
<
dd
>
{
groupName
}
</
dd
>
<
dt
>
Total users
</
dt
>
<
dd
>
{
uniqueUsers
.
length
}
</
dd
>
<
dt
>
Users
</
dt
>
<
dd
>
{
uniqueUsers
.
join
(
', '
)
}
</
dd
>
<
dt
>
Total annotations
</
dt
>
<
dd
>
{
annotations
.
length
}
</
dd
>
<
dt
>
Total replies
</
dt
>
<
dd
>
{
replies
.
length
}
</
dd
>
</
dl
>
<
table
>
<
tbody
>
<
tr
>
<
td
>
Group:
</
td
>
<
td
>
{
groupName
}
</
td
>
</
tr
>
<
tr
>
<
td
>
Total users:
</
td
>
<
td
>
{
uniqueUsers
.
length
}
</
td
>
</
tr
>
<
tr
>
<
td
>
Users:
</
td
>
<
td
>
{
uniqueUsers
.
join
(
', '
)
}
</
td
>
</
tr
>
<
tr
>
<
td
>
Total annotations:
</
td
>
<
td
>
{
annotations
.
length
}
</
td
>
</
tr
>
<
tr
>
<
td
>
Total replies:
</
td
>
<
td
>
{
replies
.
length
}
</
td
>
</
tr
>
</
tbody
>
</
table
>
</
section
>
<
hr
/>
<
section
>
...
...
src/sidebar/services/test/annotations-exporter-test.js
View file @
83ca0305
...
...
@@ -323,18 +323,30 @@ ${formattedNow},http://example.com,My group,Annotation,,John Doe,Annotation text
http://example.com
</a>
</p>
<dl>
<dt>Group</dt>
<dd>My group</dd>
<dt>Total users</dt>
<dd>2</dd>
<dt>Users</dt>
<dd>jane, bill</dd>
<dt>Total annotations</dt>
<dd>3</dd>
<dt>Total replies</dt>
<dd>1</dd>
</dl>
<table>
<tbody>
<tr>
<td>Group:</td>
<td>My group</td>
</tr>
<tr>
<td>Total users:</td>
<td>2</td>
</tr>
<tr>
<td>Users:</td>
<td>jane, bill</td>
</tr>
<tr>
<td>Total annotations:</td>
<td>3</td>
</tr>
<tr>
<td>Total replies:</td>
<td>1</td>
</tr>
</tbody>
</table>
</section>
<hr />
<section>
...
...
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