Skip to content

Commit ae827a6

Browse files
talvasconcelosdni
andauthored
fix: QR copy button (#38)
* fix QR copy button * fixup poetry * rc6 and chore update --------- Co-authored-by: dni ⚡ <[email protected]>
1 parent 7aeba1e commit ae827a6

File tree

4 files changed

+146
-148
lines changed

4 files changed

+146
-148
lines changed

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "Events",
33
"short_description": "Sell and register event tickets",
44
"tile": "/events/static/image/events.png",
5-
"min_lnbits_version": "1.0.0",
5+
"lnbits": "1.1.0",
6+
"min_lnbits_version": "1.3.0",
67
"contributors": [
78
{
89
"name": "talvasconcelos",

pyproject.toml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ requires-python = ">=3.10,<3.13"
55
description = "LNbits, free and open-source Lightning wallet and accounts system."
66
authors = [{ name = "Alan Bits", email = "[email protected]" }]
77
urls = { Homepage = "https://lnbits.com", Repository = "https://github.com/lnbits/events" }
8-
98
dependencies = [ "lnbits>1" ]
109

10+
[tool.poetry]
11+
package-mode = false
12+
1113
[tool.uv]
1214
dev-dependencies = [
1315
"black",
@@ -28,19 +30,6 @@ init_typed = true
2830
warn_required_dynamic_aliases = true
2931
warn_untyped_fields = true
3032

31-
[[tool.mypy.overrides]]
32-
module = [
33-
"lnbits.*",
34-
"lnurl.*",
35-
"loguru.*",
36-
"fastapi.*",
37-
"pydantic.*",
38-
"pyqrcode.*",
39-
"shortuuid.*",
40-
"httpx.*",
41-
]
42-
ignore_missing_imports = "True"
43-
4433
[tool.pytest.ini_options]
4534
log_cli = false
4635
testpaths = [

templates/events/display.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ <h5 class="q-mt-none">Buy Ticket</h5>
7272
</q-card>
7373
<q-card v-else class="q-pa-lg q-pt-xl lnbits__dialog-card">
7474
<div class="text-center q-mb-lg">
75-
<a class="text-secondary" :href="'lightning:' + receive.paymentReq">
76-
<lnbits-qrcode
77-
:value="'lightning:' + receive.paymentReq.toUpperCase()"
78-
></lnbits-qrcode>
79-
</a>
75+
<lnbits-qrcode
76+
:href="'lightning:' + receive.paymentReq"
77+
:value="'lightning:' + receive.paymentReq.toUpperCase()"
78+
></lnbits-qrcode>
8079
</div>
8180
<div class="row q-mt-lg">
8281
<q-btn outline color="grey" @click="copyText(receive.paymentReq)"

0 commit comments

Comments
 (0)