Skip to content

Commit f927cd7

Browse files
dnitalvasconcelos
andauthored
Merge pull request #2 from bitkarrot/update-to-v1
* update needed for v1 linting & formatting --------- Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
2 parents 6b91cc6 + 0b3a99e commit f927cd7

File tree

6 files changed

+1169
-1050
lines changed

6 files changed

+1169
-1050
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"short_description": "Decode BOLT11, LNURL, and Lightning Address",
44
"tile": "/decoder/static/unlock.png",
55
"contributors": ["bitkarrot"],
6-
"min_lnbits_version": "0.11.0"
6+
"min_lnbits_version": "1.0.0"
77
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry.lock

Lines changed: 1164 additions & 1041 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Bitkarrot <info@bitkarrot.co>"]
66

77
[tool.poetry.dependencies]
88
python = "^3.10 | ^3.9"
9-
lnbits = "*"
9+
lnbits = {version = "*", allow-prereleases = true}
1010

1111
[tool.poetry.group.dev.dependencies]
1212
black = "^24.3.0"

templates/decoder/index.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h6 class="text-subtitle1 q-my-none">
7373
{% endblock %} {% block scripts %} {{ window_vars(user) }}
7474

7575
<script>
76-
new Vue({
76+
window.app = Vue.createApp({
7777
el: '#vue',
7878
mixins: [windowMixin],
7979
computed: {
@@ -218,10 +218,6 @@ <h6 class="text-subtitle1 q-my-none">
218218
isObject(val) {
219219
return val !== null && typeof val === 'object' && !Array.isArray(val)
220220
}
221-
},
222-
///// To run on startup /////
223-
created: function () {
224-
self = this
225221
}
226222
})
227223
</script>

views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ async def index(
2121
user: User = Depends(check_user_exists),
2222
):
2323
return decoder_renderer().TemplateResponse(
24-
"decoder/index.html", {"request": request, "user": user.dict()}
24+
"decoder/index.html", {"request": request, "user": user.json()}
2525
)

0 commit comments

Comments
 (0)