Some fixes
This commit is contained in:
@@ -22,9 +22,9 @@ export const set_file = async file => {
|
||||
} else if (file.abuse_type !== "") {
|
||||
viewer_type = "abuse"
|
||||
} else if (
|
||||
file.availability !== "file_rate_limited_captcha_required" ||
|
||||
file.availability !== "ip_download_limited_captcha_required" ||
|
||||
file.availability !== "ip_transfer_limited_captcha_required"
|
||||
file.availability === "file_rate_limited_captcha_required" ||
|
||||
file.availability === "ip_download_limited_captcha_required" ||
|
||||
file.availability === "ip_transfer_limited_captcha_required"
|
||||
) {
|
||||
viewer_type = "rate_limit"
|
||||
} else {
|
||||
|
@@ -55,11 +55,10 @@ onMount(async () => {
|
||||
Download limit reached
|
||||
</h1>
|
||||
<p>
|
||||
You have reached your download limit for today. People without a
|
||||
pixeldrain account are limited to downloading
|
||||
{limits.download_limit} files or
|
||||
{formatDataVolume(limits.transfer_limit, 3)} per day. This limit is
|
||||
counted per IP address, so if you're on a shared network it's
|
||||
You have reached your download limit for today. Without a pixeldrain
|
||||
account you are limited to downloading {limits.download_limit} files
|
||||
or {formatDataVolume(limits.transfer_limit, 3)} per day. This limit
|
||||
is counted per IP address, so if you're on a shared network it's
|
||||
possible that others have also contributed to this limit.
|
||||
</p>
|
||||
<p>
|
||||
@@ -90,11 +89,11 @@ onMount(async () => {
|
||||
<div class="file_description">
|
||||
Name: {file.name}<br/>
|
||||
Type: {file.mime_type}<br/>
|
||||
<button class="button_highlight" on:click={() => {dispatch("download")}}>
|
||||
<i class="icon">save</i> Download
|
||||
<button on:click={() => {dispatch("download")}}>
|
||||
<i class="icon">download</i> Download
|
||||
</button>
|
||||
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" target="_blank" class="button button_highlight">
|
||||
<i class="icon">upgrade</i> Support Pixeldrain on Patreon
|
||||
<i class="icon">bolt</i> Support Pixeldrain on Patreon
|
||||
</a>
|
||||
</div>
|
||||
</TextBlock>
|
||||
|
@@ -10,7 +10,7 @@ export let center = false
|
||||
<style>
|
||||
.block {
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
text-align: initial;
|
||||
padding-left: 8px;
|
||||
vertical-align: middle;
|
||||
|
||||
|
@@ -79,16 +79,16 @@ let download = () => { dispatch("download", {}) }
|
||||
<img src={file.icon_href} class="video_icon" alt="Video icon">
|
||||
<TextBlock width="600px">
|
||||
The online video player on pixeldrain is only available when the
|
||||
uploader of the video has a Pro account, or if you have a Pro
|
||||
account. You can still download the video and watch it locally on
|
||||
your computer.
|
||||
uploader of the file you is a Patreon supporter, or if you are a
|
||||
Patreon supporter. You can still download the video and watch it
|
||||
locally on your computer.
|
||||
<br/>
|
||||
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" class="button button_highlight">
|
||||
<i class="icon">upgrade</i> Upgrade to Pro
|
||||
</a>
|
||||
<button on:click={download}>
|
||||
<i class="icon">download</i> Download
|
||||
</button>
|
||||
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12" class="button button_highlight">
|
||||
<i class="icon">bolt</i> Support Pixeldrain on Patreon
|
||||
</a>
|
||||
</TextBlock>
|
||||
<br/><br/>
|
||||
<LargeFileMessage file={file}></LargeFileMessage>
|
||||
|
Reference in New Issue
Block a user