Improve scroll handling and cache fetch results

This commit is contained in:
2020-02-17 00:19:44 +00:00
parent 2aff4e97b6
commit 8555fbfa0f
6 changed files with 76 additions and 19 deletions
+11 -13
View File
@@ -38,19 +38,17 @@ export function Admin(props) {
</a>
</p>
<p>
Automate with wget (keep secret, that's <b>your</b> login token):
{reveal ?
<pre>
wget \
<br /> --content-disposition \
<br /> --header="Authorization: Token {token}" \
<br /> {apiUrl}/backup/
</pre>
:
<div><Button onClick={() => setReveal(true)}>Show Secret</Button></div>
}
</p>
Automate with wget (keep secret, that's <b>your</b> login token): <br />
{reveal ?
<pre>
wget \
<br /> --content-disposition \
<br /> --header="Authorization: Token {token}" \
<br /> {apiUrl}/backup/
</pre>
:
<Button onClick={() => setReveal(true)}>Show Secret</Button>
}
</div>
:
<p>Loading...</p>