Audio and video files are not downloaded, but the element src is fetching the content directly from storage. Unfortunately, one cannot skip forward, when the RS server doesn't support content ranges.
43 lines
1001 B
Handlebars
43 lines
1001 B
Handlebars
{{#if fileLoaded}}
|
|
{{#if isBinary}}
|
|
{{#if isUnkownBinary}}
|
|
<p>No preview available for this content type.</p>
|
|
{{/if}}
|
|
{{#if isImage}}
|
|
<img src={{objectURL}} alt={{metaData.name}}>
|
|
{{/if}}
|
|
{{#if isAudio}}
|
|
<audio src={{objectURL}} controls />
|
|
{{/if}}
|
|
{{#if isVideo}}
|
|
<video src={{objectURL}} controls />
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if isText}}
|
|
{{#if isJSON}}
|
|
{{#if jsonShowTree}}
|
|
<div id="json-tree-view"></div>
|
|
{{else}}
|
|
<code>{{fileContent}}</code>
|
|
{{/if}}
|
|
{{else}}
|
|
<code>{{fileContent}}</code>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#if showEditor}}
|
|
<div class="actions">
|
|
<button {{action "saveChanges"}}
|
|
disabled={{uploadingChanges}}
|
|
class="primary">
|
|
Save changes
|
|
</button>
|
|
<button {{action "cancelEditor"}}
|
|
disabled={{uploadingChanges}}
|
|
class="secondary">
|
|
Cancel editing
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}} |