-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix: painterro import * test(snapshotAnnotation): add minimal e2e test * chore: add e2e test annotation * fix: notebook snapshot test * refactor: put `v-else` on template * small changes to the test and a visual one * additional a11y * fix: html structure * test(e2e): fix notebook snapshot tests * Update documentation for file download and JSON testing * Update stubs and add jpg/png export * refactor(TimelistComponent): tidy up --------- Co-authored-by: John Hill <john.c.hill@nasa.gov>
- Loading branch information
1 parent
18e976a
commit faed27c
Showing
9 changed files
with
206 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
<div class="c-notebook-snapshot"> | ||
<!-- parent container sets up this for flex column layout --> | ||
<div class="c-notebook-snapshot__header l-browse-bar"> | ||
<div class="l-browse-bar__start"> | ||
<div class="l-browse-bar__object-name--w"> | ||
<span class="c-object-label l-browse-bar__object-name"> | ||
<span class="c-object-label__type-icon" v-bind:class="cssClass"></span> | ||
<span class="c-object-label__type-icon" :class="cssClass"></span> | ||
<span class="c-object-label__name">{{ name }}</span> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div id="snapshotDescriptor" class="l-browse-bar__snapshot-datetime"> | ||
SNAPSHOT {{ createdOn }} | ||
</div> | ||
<div class="c-button-set c-button-set--strip-h" role="toolbar"> | ||
<button class="c-button icon-download" aria-label="Export as PNG" @click="exportImage('png')"> | ||
<span class="c-button__label">PNG</span> | ||
</button> | ||
<button class="c-button icon-download" aria-label="Export as JPG" @click="exportImage('jpg')"> | ||
<span class="c-button__label">JPG</span> | ||
</button> | ||
</div> | ||
<div class="l-browse-bar__end"> | ||
<div class="l-browse-bar__snapshot-datetime">SNAPSHOT {{ createdOn }}</div> | ||
<span class="c-button-set c-button-set--strip-h"> | ||
<button | ||
class="c-button icon-download" | ||
title="Export This View's Data as PNG" | ||
@click="exportImage('png')" | ||
> | ||
<span class="c-button__label">PNG</span> | ||
</button> | ||
<button class="c-button" title="Export This View's Data as JPG" @click="exportImage('jpg')"> | ||
<span class="c-button__label">JPG</span> | ||
</button> | ||
</span> | ||
<a | ||
<button | ||
class="l-browse-bar__annotate-button c-button icon-pencil" | ||
title="Annotate" | ||
aria-label="Annotate this snapshot" | ||
@click="annotateSnapshot" | ||
> | ||
<span class="title-label">Annotate</span> | ||
</a> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div | ||
ref="snapshot-image" | ||
class="c-notebook-snapshot__image" | ||
:style="{ backgroundImage: 'url(' + src + ')' }" | ||
role="img" | ||
alt="Annotatable Snapshot" | ||
></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.