improve formatting
This commit is contained in:
parent
90e8da3246
commit
db3977940f
@ -180,6 +180,7 @@ export function buildApp() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// @todo we are going to need to use redis or similar https://github.com/fastify/fastify-caching
|
||||||
app.register(fastifyCaching, {
|
app.register(fastifyCaching, {
|
||||||
expiresIn: 300,
|
expiresIn: 300,
|
||||||
privacy: 'private',
|
privacy: 'private',
|
||||||
|
@ -123,66 +123,70 @@
|
|||||||
|
|
||||||
|
|
||||||
<h3>VOD</h3>
|
<h3>VOD</h3>
|
||||||
{{#if vod.sourceVideo}}
|
|
||||||
|
|
||||||
{{#if (hasRole "supporterTier1" user)}}
|
|
||||||
<p><a data-source-video="{{getCdnUrl vod.sourceVideo}}" data-file-name="{{basename vod.sourceVideo}}"
|
|
||||||
x-on:click.prevent="download($el.dataset.sourceVideo, $el.dataset.fileName)"
|
|
||||||
href="{{getCdnUrl vod.sourceVideo}}" download="{{basename vod.sourceVideo}}"
|
|
||||||
target="_blank">{{icon "download" 24}} Download</a>
|
|
||||||
</p>
|
|
||||||
{{else}}
|
|
||||||
<p>
|
|
||||||
<a href="/perks">{{icon "patreon" 24}}</a>
|
|
||||||
<del>
|
|
||||||
CDN Download
|
|
||||||
</del>
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<p>{{#if vod.sha256sum}}<span><b>sha256sum</b> {{vod.sha256sum}}</span>{{/if}}</p>
|
|
||||||
{{#if vod.cidv1}}
|
|
||||||
<p><b>IPFS cidv1</b> {{vod.cidv1}}</p>
|
|
||||||
{{else}}
|
|
||||||
<article>
|
<article>
|
||||||
IPFS CID is processing.
|
{{#if vod.sourceVideo}}
|
||||||
|
|
||||||
|
{{#if (hasRole "supporterTier1" user)}}
|
||||||
|
<p><a data-source-video="{{getCdnUrl vod.sourceVideo}}" data-file-name="{{basename vod.sourceVideo}}"
|
||||||
|
x-on:click.prevent="download($el.dataset.sourceVideo, $el.dataset.fileName)"
|
||||||
|
href="{{getCdnUrl vod.sourceVideo}}" download="{{basename vod.sourceVideo}}"
|
||||||
|
target="_blank">{{icon "download" 24}} Download</a>
|
||||||
|
</p>
|
||||||
|
{{else}}
|
||||||
|
<p>
|
||||||
|
<a href="/perks">{{icon "patreon" 24}}</a>
|
||||||
|
<del>
|
||||||
|
CDN Download
|
||||||
|
</del>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<p>{{#if vod.sha256sum}}<span><b>sha256sum</b> {{vod.sha256sum}}</span>{{/if}}</p>
|
||||||
|
{{#if vod.cidv1}}
|
||||||
|
<p><b>IPFS cidv1</b> {{vod.cidv1}}</p>
|
||||||
|
{{else}}
|
||||||
|
<article>
|
||||||
|
IPFS CID is processing.
|
||||||
|
</article>
|
||||||
|
{{/if}}
|
||||||
|
{{#if vod.magnetLink}}
|
||||||
|
<p><a href="{{vod.magnetLink}}">{{icon "magnet" 24}} Magnet Link</a></p>
|
||||||
|
{{else}}
|
||||||
|
<article>
|
||||||
|
Magnet Link is processing.
|
||||||
|
</article>
|
||||||
|
{{/if}}
|
||||||
</article>
|
</article>
|
||||||
{{/if}}
|
|
||||||
{{#if vod.magnetLink}}
|
|
||||||
<p><a href="{{vod.magnetLink}}">{{icon "magnet" 24}} Magnet Link</a></p>
|
|
||||||
{{else}}
|
|
||||||
<article>
|
|
||||||
Magnet Link is processing.
|
|
||||||
</article>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
|
|
||||||
<h4>Raw Segments</h4>
|
<h4>Raw Segments</h4>
|
||||||
{{#if vod.segmentKeys}}
|
|
||||||
{{#if (hasRole "supporterTier1" user)}}
|
|
||||||
<ul>
|
|
||||||
{{#each vod.segmentKeys}}
|
|
||||||
<li><a data-source-video="{{getCdnUrl this.key}}" data-file-name="{{this.name}}" target="_blank"
|
|
||||||
download="{{this.name}}" x-on:click.prevent="download($el.dataset.sourceVideo, $el.dataset.fileName)"
|
|
||||||
href="{{getCdnUrl this.key}}">{{icon "download" 24}} {{this.name}}</a>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
{{else}}
|
|
||||||
<p>
|
|
||||||
<a href="/perks">{{icon "patreon" 24}}</a>
|
|
||||||
<del>
|
|
||||||
Raw Segments CDN Download
|
|
||||||
</del>
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
This VOD has no file segments.
|
{{#if vod.segmentKeys}}
|
||||||
</article>
|
{{#if (hasRole "supporterTier1" user)}}
|
||||||
{{/if}} {{!-- end of raw segments --}}
|
<ul>
|
||||||
|
{{#each vod.segmentKeys}}
|
||||||
|
<li><a data-source-video="{{getCdnUrl this.key}}" data-file-name="{{this.name}}" target="_blank"
|
||||||
|
download="{{this.name}}" x-on:click.prevent="download($el.dataset.sourceVideo, $el.dataset.fileName)"
|
||||||
|
href="{{getCdnUrl this.key}}">{{icon "download" 24}} {{this.name}}</a>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
{{else}}
|
||||||
|
<p>
|
||||||
|
<a href="/perks">{{icon "patreon" 24}}</a>
|
||||||
|
<del>
|
||||||
|
Raw Segments CDN Download
|
||||||
|
</del>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
|
||||||
|
<article>
|
||||||
|
This VOD has no file segments.
|
||||||
|
</article>
|
||||||
|
|
||||||
|
{{/if}} {{!-- end of raw segments --}}
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -198,22 +202,24 @@
|
|||||||
|
|
||||||
|
|
||||||
<h4>HLS Playlist</h4>
|
<h4>HLS Playlist</h4>
|
||||||
{{#if vod.hlsPlaylist}}
|
|
||||||
{{#if (hasRole "supporterTier1" user)}}
|
|
||||||
<a href="{{signedHlsUrl vod.hlsPlaylist}}">{{signedHlsUrl vod.hlsPlaylist}}</a>
|
|
||||||
{{else}}
|
|
||||||
<p>
|
|
||||||
<a href="/perks">{{icon "patreon" 24}}</a>
|
|
||||||
<del>
|
|
||||||
HLS Playlist CDN Download
|
|
||||||
</del>
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
|
||||||
<article>
|
<article>
|
||||||
HLS Playlist is processing.
|
{{#if vod.hlsPlaylist}}
|
||||||
|
{{#if (hasRole "supporterTier1" user)}}
|
||||||
|
<a href="{{signedHlsUrl vod.hlsPlaylist}}">{{signedHlsUrl vod.hlsPlaylist}}</a>
|
||||||
|
{{else}}
|
||||||
|
<p>
|
||||||
|
<a href="/perks">{{icon "patreon" 24}}</a>
|
||||||
|
<del>
|
||||||
|
HLS Playlist CDN Download
|
||||||
|
</del>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
<article>
|
||||||
|
HLS Playlist is processing.
|
||||||
|
</article>
|
||||||
|
{{/if}}
|
||||||
</article>
|
</article>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<h4>Thumbnail Image</h4>
|
<h4>Thumbnail Image</h4>
|
||||||
{{#if vod.thumbnail}}
|
{{#if vod.thumbnail}}
|
||||||
@ -228,53 +234,54 @@
|
|||||||
|
|
||||||
|
|
||||||
<h4>Funscripts (sex toy sync)</h4>
|
<h4>Funscripts (sex toy sync)</h4>
|
||||||
{{#if vod.funscript}}
|
|
||||||
|
|
||||||
{{#if (hasRole "supporterTier1" user)}}
|
|
||||||
<p>
|
|
||||||
{{!-- @todo change this id to funscript-vibrate --}}
|
|
||||||
<a id="funscript" data-url="{{getCdnUrl vod.funscript}}" data-file-name="{{basename vod.funscript}}"
|
|
||||||
x-on:click.prevent="download($el.dataset.url, $el.dataset.fileName)" href="{{getCdnUrl vod.funscript}}"
|
|
||||||
alt="{{this.vtuber.displayName}} funscript file">{{icon "download" 24}}
|
|
||||||
{{this.vtuber.displayName}}
|
|
||||||
vibrate.funscript</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<s><a id="funscript-thrust">{{icon "download" 24}} thrust.funscript</a></s> (coming soon)
|
|
||||||
</p>
|
|
||||||
{{else}}
|
|
||||||
<p>
|
|
||||||
<a href="/perks">{{icon "patreon" 24}}</a>
|
|
||||||
<del>
|
|
||||||
Funscripts
|
|
||||||
</del>
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
<div class="mx-5"></div>
|
|
||||||
{{else}}
|
|
||||||
<article>
|
<article>
|
||||||
Funscript file is processing.
|
{{#if vod.funscript}}
|
||||||
</article>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
|
{{#if (hasRole "supporterTier1" user)}}
|
||||||
|
<p>
|
||||||
|
{{!-- @todo change this id to funscript-vibrate --}}
|
||||||
|
<a id="funscript" data-url="{{getCdnUrl vod.funscript}}" data-file-name="{{basename vod.funscript}}"
|
||||||
|
x-on:click.prevent="download($el.dataset.url, $el.dataset.fileName)" href="{{getCdnUrl vod.funscript}}"
|
||||||
|
alt="{{this.vtuber.displayName}} funscript file">{{icon "download" 24}}
|
||||||
|
{{this.vtuber.displayName}}
|
||||||
|
vibrate.funscript</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<s><a id="funscript-thrust">{{icon "download" 24}} thrust.funscript</a></s> (coming soon)
|
||||||
|
</p>
|
||||||
|
{{else}}
|
||||||
|
<p>
|
||||||
|
<a href="/perks">{{icon "patreon" 24}}</a>
|
||||||
|
<del>
|
||||||
|
Funscripts
|
||||||
|
</del>
|
||||||
|
</p>
|
||||||
|
{{/if}}
|
||||||
|
<div class="mx-5"></div>
|
||||||
|
{{else}}
|
||||||
|
<article>
|
||||||
|
Funscript file is processing.
|
||||||
|
</article>
|
||||||
|
{{/if}}
|
||||||
|
</article>
|
||||||
|
|
||||||
<h4>Closed Captions / Subtitles</h4>
|
<h4>Closed Captions / Subtitles</h4>
|
||||||
|
<article>
|
||||||
|
|
||||||
|
{{#if vod.asrVttKey}}
|
||||||
{{#if vod.asrVttKey}}
|
{{#if (hasRole "supporterTier1" user)}}
|
||||||
{{#if (hasRole "supporterTier1" user)}}
|
<a id="asr-vtt" data-url="{{getCdnUrl vod.asrVttKey}}" data-file-name="{{basename vod.asrVttKey}}"
|
||||||
<a id="asr-vtt" data-url="{{getCdnUrl vod.asrVttKey}}" data-file-name="{{basename vod.asrVttKey}}"
|
x-on:click.prevent="download($el.dataset.url, $el.dataset.fileName)" href="{{getCdnUrl vod.asrVttKey}}"
|
||||||
x-on:click.prevent="download($el.dataset.url, $el.dataset.fileName)" href="{{getCdnUrl vod.asrVttKey}}"
|
alt="Closed Captions VTT file">{{icon "download" 24}} Closed Captions</a>
|
||||||
alt="Closed Captions VTT file">{{icon "download" 24}} Closed Captions</a>
|
{{else}}
|
||||||
{{else}}
|
<p>
|
||||||
<p>
|
<a href="/perks">{{icon "patreon" 24}}</a>
|
||||||
<a href="/perks">{{icon "patreon" 24}}</a>
|
<del>
|
||||||
<del>
|
Closed Captions / Subtitles
|
||||||
Closed Captions / Subtitles
|
</del>
|
||||||
</del>
|
</p>
|
||||||
</p>
|
{{/if}}
|
||||||
{{/if}}
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user