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
* feat(replace-file): add support for replacing an image file * feat(replace-file): reload UI to show new image * chore: remove console logs * feat(replace-file): add support for replacing an archive file * feat(replace-file): add support for replacing an audio file * feat(replace-file): add support for replacing a document file * style(replace-file): add css to style warning message * feat(replace-file): generate warning messages dynamically * chore(mkdocs): bump version to 1.3.0 and add generated docs to gitignore * test(replace-file): fix tests * chore(replace-file): cleanup
- Loading branch information
Showing
21 changed files
with
589 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ docs/bin | |
.DS_Store | ||
Thumbs.db | ||
*.code-workspace | ||
|
||
# Generated docs | ||
/site |
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
17 changes: 13 additions & 4 deletions
17
src/app/workspace/resource/representation/audio/audio.component.html
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,4 +1,13 @@ | ||
<audio controls preload="auto"> | ||
<source [src]="audio" type="audio/mpeg"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
<div class="controls"> | ||
<div class="audio-player"> | ||
<audio id="audio" controls preload="auto"> | ||
<source [src]="audio" type="audio/mpeg"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
</div> | ||
<div class="upload-button"> | ||
<button mat-button matTooltip="Replace audio file" (click)="openReplaceFileDialog()"> | ||
<mat-icon>cloud_upload</mat-icon> | ||
</button> | ||
</div> | ||
</div> |
17 changes: 16 additions & 1 deletion
17
src/app/workspace/resource/representation/audio/audio.component.scss
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,3 +1,18 @@ | ||
audio { | ||
.controls { | ||
width: 100%; | ||
|
||
.audio-player, | ||
.upload-button { | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
|
||
.audio-player { | ||
width: 80%; | ||
|
||
audio { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
|
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
Oops, something went wrong.