Add jdownloader instructions
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 118 KiB |
BIN
res/static/img/jdownloader_account_manager.webp
Normal file
BIN
res/static/img/jdownloader_account_manager.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
res/static/img/jdownloader_add_key.webp
Normal file
BIN
res/static/img/jdownloader_add_key.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { formatDate } from "../util/Formatting.svelte";
|
import { formatDate } from "../util/Formatting.svelte";
|
||||||
import Spinner from "../util/Spinner.svelte";
|
import Spinner from "../util/Spinner.svelte";
|
||||||
|
import ConnectApp from "./ConnectApp.svelte";
|
||||||
|
|
||||||
let loading = false
|
let loading = false
|
||||||
let loaded = false
|
let loaded = false
|
||||||
@@ -88,6 +89,8 @@ const logout = async (key) => {
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<ConnectApp></ConnectApp>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
{#if !loaded}
|
{#if !loaded}
|
||||||
<div class="highlight_yellow">
|
<div class="highlight_yellow">
|
||||||
|
@@ -6,7 +6,6 @@ import { copy_text } from "../util/Util.svelte";
|
|||||||
let loading = false
|
let loading = false
|
||||||
let app_name = ""
|
let app_name = ""
|
||||||
let api_key = ""
|
let api_key = ""
|
||||||
|
|
||||||
const create_key = async () => {
|
const create_key = async () => {
|
||||||
loading = true
|
loading = true
|
||||||
try {
|
try {
|
||||||
@@ -63,12 +62,38 @@ onMount(() => {
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<!-- Show a back button if an app is selected -->
|
||||||
|
{#if app_name}
|
||||||
|
<a href="/user/connect_app" class="button">
|
||||||
|
<i class="icon">arrow_back</i>
|
||||||
|
Back to apps
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if app_name === "jdownloader"}
|
{#if app_name === "jdownloader"}
|
||||||
<h2>
|
<h2>
|
||||||
Connect
|
Connect
|
||||||
<img src="/res/img/jdownloader.png" alt="JDownloader logo" class="app_icon_small"/>
|
<img src="/res/img/jdownloader.png" alt="JDownloader logo" class="app_icon_small"/>
|
||||||
JDownloader to your pixeldrain account
|
JDownloader to your pixeldrain account
|
||||||
</h2>
|
</h2>
|
||||||
|
<p>
|
||||||
|
JDownloader is a software program which makes it easier to download
|
||||||
|
things from the web. You can connect JDownloader to your pixeldrain
|
||||||
|
account to benefit from faster download speed and other pixeldrain
|
||||||
|
Pro features.
|
||||||
|
</p>
|
||||||
|
<h3>Step 1: Install JDownloader</h3>
|
||||||
|
<p>
|
||||||
|
Download JDownloader from its website:
|
||||||
|
<a href="https://jdownloader.org/download/index"
|
||||||
|
target="_blank">jdownloader.org</a>. Open JDownloader from your
|
||||||
|
start menu after the installation is complete.
|
||||||
|
</p>
|
||||||
|
<h3>Step 2: Open the account manager</h3>
|
||||||
|
<div class="center">
|
||||||
|
<img src="/res/img/jdownloader_account_manager.webp" alt="Go to settings, then Account Manager, click Add account"/>
|
||||||
|
</div>
|
||||||
|
<h3>Step 3: Generate an app key</h3>
|
||||||
<p>
|
<p>
|
||||||
To connect JDownloader to pixeldrain you need to generate an API
|
To connect JDownloader to pixeldrain you need to generate an API
|
||||||
key and enter it in JDownloader's Account Manager.
|
key and enter it in JDownloader's Account Manager.
|
||||||
@@ -85,7 +110,7 @@ onMount(() => {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<h3>Key created</h3>
|
<h4>Key created</h4>
|
||||||
|
|
||||||
<div class="copy_container">
|
<div class="copy_container">
|
||||||
<button on:click={copy_key} class="copy_button" class:button_highlight={copied}>
|
<button on:click={copy_key} class="copy_button" class:button_highlight={copied}>
|
||||||
@@ -100,15 +125,25 @@ onMount(() => {
|
|||||||
<i class="icon">visibility</i>
|
<i class="icon">visibility</i>
|
||||||
{#if show_key === ""}
|
{#if show_key === ""}
|
||||||
Show key
|
Show key
|
||||||
|
{:else}
|
||||||
|
Hide key
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
<input bind:value={show_key} class="copy_textarea" type="text" placeholder="Your key will show up here" disabled={show_key === ""}/>
|
<input bind:value={show_key} class="copy_textarea" type="text" placeholder="Your key will show up here" disabled={show_key === ""}/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<h3>Step 4: Add the key to JDownloader</h3>
|
||||||
<p>
|
<p>
|
||||||
Paste the key in JDownloader to authenticate the app.
|
Paste the key in JDownloader to authenticate the app.
|
||||||
</p>
|
</p>
|
||||||
|
<div class="center">
|
||||||
|
<img src="/res/img/jdownloader_add_key.webp" alt="Go to settings, then Account Manager, click Add account"/>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Click Save and you're done! You can now download files from
|
||||||
|
pixeldrain with JDownloader.
|
||||||
|
</p>
|
||||||
{:else if app_name === "sharex"}
|
{:else if app_name === "sharex"}
|
||||||
<h2>
|
<h2>
|
||||||
Connect
|
Connect
|
||||||
@@ -149,16 +184,16 @@ onMount(() => {
|
|||||||
<h2>Connect an app to your pixeldrain account</h2>
|
<h2>Connect an app to your pixeldrain account</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<button on:click={() => {app_name = "jdownloader"}}>
|
<a href="?app=jdownloader" class="button">
|
||||||
<img src="/res/img/jdownloader.png" alt="JDownloader logo" class="app_icon"/>
|
<img src="/res/img/jdownloader.png" alt="JDownloader logo" class="app_icon"/>
|
||||||
Connect JDownloader
|
Connect JDownloader
|
||||||
</button>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button on:click={() => {app_name = "sharex"}}>
|
<a href="?app=sharex" class="button">
|
||||||
<img src="/res/img/sharex.png" alt="ShareX logo" class="app_icon"/>
|
<img src="/res/img/sharex.png" alt="ShareX logo" class="app_icon"/>
|
||||||
Connect ShareX
|
Connect ShareX
|
||||||
</button>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -186,6 +221,9 @@ onMount(() => {
|
|||||||
.center {
|
.center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.center > img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
.copy_container {
|
.copy_container {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
@@ -48,16 +48,23 @@ onMount(() => {
|
|||||||
<a class="button"
|
<a class="button"
|
||||||
href="/user/settings"
|
href="/user/settings"
|
||||||
class:button_highlight={page === "settings"}
|
class:button_highlight={page === "settings"}
|
||||||
on:click|preventDefault={() => {navigate("settings", "Account settings")}}>
|
on:click|preventDefault={() => {navigate("settings", "Settings")}}>
|
||||||
<i class="icon">settings</i>
|
<i class="icon">settings</i>
|
||||||
Account settings
|
Settings
|
||||||
|
</a>
|
||||||
|
<a class="button"
|
||||||
|
href="/user/connect_app"
|
||||||
|
class:button_highlight={page === "connect_app"}
|
||||||
|
on:click|preventDefault={() => {navigate("connect_app", "Apps")}}>
|
||||||
|
<i class="icon">app_registration</i>
|
||||||
|
Apps
|
||||||
</a>
|
</a>
|
||||||
<a class="button"
|
<a class="button"
|
||||||
href="/user/api_keys"
|
href="/user/api_keys"
|
||||||
class:button_highlight={page === "api_keys"}
|
class:button_highlight={page === "api_keys"}
|
||||||
on:click|preventDefault={() => {navigate("api_keys", "API keys")}}>
|
on:click|preventDefault={() => {navigate("api_keys", "API keys")}}>
|
||||||
<i class="icon">vpn_key</i>
|
<i class="icon">vpn_key</i>
|
||||||
API keys
|
Keys
|
||||||
</a>
|
</a>
|
||||||
<a class="button"
|
<a class="button"
|
||||||
href="/user/activity"
|
href="/user/activity"
|
||||||
|
Reference in New Issue
Block a user