mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
cleanup
This commit is contained in:
parent
c98ed8f098
commit
6654669e21
4 changed files with 43 additions and 13 deletions
|
@ -5,7 +5,7 @@
|
|||
:content-inset-level="0.5"
|
||||
>
|
||||
<q-btn flat label="Swagger API" type="a" href="../docs#/cashu"></q-btn>
|
||||
<q-expansion-item group="api" dense expand-separator label="List TPoS">
|
||||
<!-- <q-expansion-item group="api" dense expand-separator label="List TPoS">
|
||||
<q-card>
|
||||
<q-card-section>
|
||||
<code><span class="text-blue">GET</span> /cashu/api/v1/mints</code>
|
||||
|
@ -76,5 +76,5 @@
|
|||
</code>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</q-expansion-item>
|
||||
</q-expansion-item> -->
|
||||
</q-expansion-item>
|
||||
|
|
|
@ -10,12 +10,41 @@
|
|||
style="font-size: 10rem"
|
||||
></q-icon>
|
||||
<h3 class="q-my-none">{{ mint_name }}</h3>
|
||||
<br />
|
||||
<p style="font-size: 1rem" class="q-my-sm">Cashu mint</p>
|
||||
<a
|
||||
style="font-size: 1.5rem"
|
||||
href="../wallet?mint_id={{ mint_id }}"
|
||||
target="”_blank”"
|
||||
>Open wallet</a
|
||||
>
|
||||
</center>
|
||||
<h5 class="q-my-none">
|
||||
Some data about mint here: <br />* whether its online <br />* Who to
|
||||
contact for support <br />* etc...
|
||||
</h5>
|
||||
<br />
|
||||
<br />
|
||||
<h6 class="q-my-none">
|
||||
<p><strong>Read the following text carefully!</strong></p>
|
||||
<p>
|
||||
This is a
|
||||
<a href="https://github.com/cashubtc/cashu/" target="”_blank”"
|
||||
>Cashu</a
|
||||
>
|
||||
mint. Cashu is a Ecash system on Bitcoin.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Add to home screen.</strong><br />
|
||||
You can add Cashu to your home screen as a progressive web app
|
||||
(PWA). When you open the wallet in your browser, on Android Chrome,
|
||||
click the menu at the upper right. On iOS Safari, click the share
|
||||
button. Now press the Add to Home screen button.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Backup your wallet!</strong><br />
|
||||
Ecash is a bearer asset, meaning losing access to your wallet will
|
||||
mean you will lose the funds. The wallet stores ecash tokens on your
|
||||
device's database. If you lose the link or delete your your data
|
||||
without backing up, you will lose your tokens. Press the Backup
|
||||
button in the wallet to download a copy of your tokens.
|
||||
</p>
|
||||
</h6>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
</div>
|
||||
|
|
|
@ -538,7 +538,7 @@
|
|||
<strong>Add to home screen.</strong>
|
||||
You can add Cashu to your home screen as a progressive web app (PWA).
|
||||
On Android Chrome, click the hamburger menu at the upper right.
|
||||
On iOS Safari, click the share button.
|
||||
On iOS Safari, click the share button. Now press the Add to Home screen button.
|
||||
</p>
|
||||
<p>
|
||||
<strong>This service is in BETA!</strong> We hold no responsibility for people losing
|
||||
|
|
|
@ -43,7 +43,8 @@ async def wallet(request: Request, mint_id: str):
|
|||
async def cashu(request: Request, mintID):
|
||||
cashu = await get_cashu(mintID)
|
||||
return cashu_renderer().TemplateResponse(
|
||||
"cashu/mint.html", {"request": request, "mint_name": cashu.name}
|
||||
"cashu/mint.html",
|
||||
{"request": request, "mint_name": cashu.name, "mint_id": mintID},
|
||||
)
|
||||
|
||||
|
||||
|
@ -57,7 +58,7 @@ async def manifest(cashu_id: str):
|
|||
|
||||
return {
|
||||
"short_name": "Cashu",
|
||||
"name": cashu.name + " - " + "Cashu",
|
||||
"name": "Cashu" + " - " + cashu.name,
|
||||
"icons": [
|
||||
{
|
||||
"src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png",
|
||||
|
@ -78,9 +79,9 @@ async def manifest(cashu_id: str):
|
|||
"theme_color": "#1F2234",
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": cashu.name + " - " + "Cashu",
|
||||
"short_name": cashu.name,
|
||||
"description": cashu.name + " - " + "Cashu",
|
||||
"name": "Cashu" + " - " + cashu.name,
|
||||
"short_name": "Cashu",
|
||||
"description": "Cashu" + " - " + cashu.name,
|
||||
"url": "/cashu/wallet?mint_id=" + cashu_id,
|
||||
"icons": [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue