mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-22 15:57:28 +02:00
cleanup
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
:content-inset-level="0.5"
|
:content-inset-level="0.5"
|
||||||
>
|
>
|
||||||
<q-btn flat label="Swagger API" type="a" href="../docs#/cashu"></q-btn>
|
<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>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<code><span class="text-blue">GET</span> /cashu/api/v1/mints</code>
|
<code><span class="text-blue">GET</span> /cashu/api/v1/mints</code>
|
||||||
@@ -76,5 +76,5 @@
|
|||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-expansion-item>
|
</q-expansion-item> -->
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
|
@@ -10,12 +10,41 @@
|
|||||||
style="font-size: 10rem"
|
style="font-size: 10rem"
|
||||||
></q-icon>
|
></q-icon>
|
||||||
<h3 class="q-my-none">{{ mint_name }}</h3>
|
<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>
|
</center>
|
||||||
<h5 class="q-my-none">
|
<br />
|
||||||
Some data about mint here: <br />* whether its online <br />* Who to
|
<br />
|
||||||
contact for support <br />* etc...
|
<h6 class="q-my-none">
|
||||||
</h5>
|
<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-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -538,7 +538,7 @@
|
|||||||
<strong>Add to home screen.</strong>
|
<strong>Add to home screen.</strong>
|
||||||
You can add Cashu to your home screen as a progressive web app (PWA).
|
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 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>
|
||||||
<p>
|
<p>
|
||||||
<strong>This service is in BETA!</strong> We hold no responsibility for people losing
|
<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):
|
async def cashu(request: Request, mintID):
|
||||||
cashu = await get_cashu(mintID)
|
cashu = await get_cashu(mintID)
|
||||||
return cashu_renderer().TemplateResponse(
|
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 {
|
return {
|
||||||
"short_name": "Cashu",
|
"short_name": "Cashu",
|
||||||
"name": cashu.name + " - " + "Cashu",
|
"name": "Cashu" + " - " + cashu.name,
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png",
|
"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",
|
"theme_color": "#1F2234",
|
||||||
"shortcuts": [
|
"shortcuts": [
|
||||||
{
|
{
|
||||||
"name": cashu.name + " - " + "Cashu",
|
"name": "Cashu" + " - " + cashu.name,
|
||||||
"short_name": cashu.name,
|
"short_name": "Cashu",
|
||||||
"description": cashu.name + " - " + "Cashu",
|
"description": "Cashu" + " - " + cashu.name,
|
||||||
"url": "/cashu/wallet?mint_id=" + cashu_id,
|
"url": "/cashu/wallet?mint_id=" + cashu_id,
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user