65 lines
2.2 KiB
HTML
65 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>PsiTransfer Account</title>
|
|
<link rel="stylesheet" href="account.css" />
|
|
</head>
|
|
<body>
|
|
<main class="page">
|
|
<header class="hero">
|
|
<p class="eyebrow">Thunderbird Filelink</p>
|
|
<h1>PsiTransfer Account</h1>
|
|
<p class="intro">
|
|
Local account settings for the PsiTransfer Filelink provider. The minimal v1 path uploads one Thunderbird attachment into one PsiTransfer bucket and returns the bucket share URL.
|
|
</p>
|
|
</header>
|
|
|
|
<section class="card">
|
|
<div class="meta">
|
|
<span>Account ID</span>
|
|
<code id="account-id">unknown</code>
|
|
</div>
|
|
|
|
<form id="account-form">
|
|
<label>
|
|
<span>Base PsiTransfer URL</span>
|
|
<input id="base-url" name="baseUrl" type="url" placeholder="https://files.example.com/" required />
|
|
</label>
|
|
|
|
<label>
|
|
<span>Upload app path</span>
|
|
<input id="upload-app-path" name="uploadAppPath" type="text" placeholder="/ or upload/" />
|
|
</label>
|
|
|
|
<label>
|
|
<span>Optional upload password</span>
|
|
<input id="upload-password" name="uploadPassword" type="password" placeholder="x-passwd header value" />
|
|
</label>
|
|
|
|
<label>
|
|
<span>Default retention / expiry</span>
|
|
<input id="default-retention" name="defaultRetention" type="text" placeholder="604800 or one-time" />
|
|
</label>
|
|
|
|
<label>
|
|
<span>Custom SID behavior</span>
|
|
<input id="custom-sid" name="customSid" type="text" placeholder="Leave blank for generated SID" />
|
|
</label>
|
|
|
|
<div class="actions">
|
|
<button type="submit">Save</button>
|
|
</div>
|
|
</form>
|
|
|
|
<p id="status" class="status" role="status"></p>
|
|
<p class="hint">
|
|
`uploadAppPath` defaults to `/`. Set it only if the PsiTransfer server mounts uploads under a subpath relative to the base URL.
|
|
</p>
|
|
</section>
|
|
</main>
|
|
|
|
<script type="module" src="account.js"></script>
|
|
</body>
|
|
</html>
|