Merge branch 'main' into FinalAdminUI
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{% extends "public.html" %} {% block toolbar_title %} {% raw %} {{name}} Cashu
|
||||
{% endraw %} {% endblock %} {% block footer %}{% endblock %} {% block
|
||||
{% extends "public.html" %} {% block toolbar_title %} {% raw %} Cashu {% endraw
|
||||
%} - {{mint_name}} {% endblock %} {% block footer %}{% endblock %} {% block
|
||||
page_container %}
|
||||
<q-page-container>
|
||||
<q-page>
|
||||
@@ -752,7 +752,13 @@ page_container %}
|
||||
</div>
|
||||
|
||||
<div class="row q-mt-lg">
|
||||
<q-btn @click="redeem" color="primary">Receive Tokens</q-btn>
|
||||
<q-btn @click="redeem" color="primary">Receive</q-btn>
|
||||
<q-btn
|
||||
unelevated
|
||||
icon="content_copy"
|
||||
class="q-mx-0"
|
||||
@click="copyText(receiveData.tokensBase64)"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
unelevated
|
||||
icon="photo_camera"
|
||||
|
||||
@@ -27,11 +27,17 @@ async def index(
|
||||
|
||||
@cashu_ext.get("/wallet")
|
||||
async def wallet(request: Request, mint_id: str):
|
||||
cashu = await get_cashu(mint_id)
|
||||
if not cashu:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="Mint does not exist."
|
||||
)
|
||||
return cashu_renderer().TemplateResponse(
|
||||
"cashu/wallet.html",
|
||||
{
|
||||
"request": request,
|
||||
"web_manifest": f"/cashu/manifest/{mint_id}.webmanifest",
|
||||
"mint_name": cashu.name,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -41,7 +47,7 @@ async def cashu(request: Request, mintID):
|
||||
cashu = await get_cashu(mintID)
|
||||
if not cashu:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="TPoS does not exist."
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="Mint does not exist."
|
||||
)
|
||||
return cashu_renderer().TemplateResponse(
|
||||
"cashu/mint.html",
|
||||
@@ -54,7 +60,7 @@ async def manifest(cashu_id: str):
|
||||
cashu = await get_cashu(cashu_id)
|
||||
if not cashu:
|
||||
raise HTTPException(
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="TPoS does not exist."
|
||||
status_code=HTTPStatus.NOT_FOUND, detail="Mint does not exist."
|
||||
)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user