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