Skip to content

Commit

Permalink
Merge pull request #2 from bitkarrot/update-to-v1
Browse files Browse the repository at this point in the history
* update needed for v1
linting & formatting

---------

Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
  • Loading branch information
dni and talvasconcelos authored Dec 11, 2024
2 parents 6b91cc6 + 0b3a99e commit f927cd7
Show file tree
Hide file tree
Showing 6 changed files with 1,169 additions and 1,050 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"short_description": "Decode BOLT11, LNURL, and Lightning Address",
"tile": "/decoder/static/unlock.png",
"contributors": ["bitkarrot"],
"min_lnbits_version": "0.11.0"
"min_lnbits_version": "1.0.0"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,205 changes: 1,164 additions & 1,041 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Bitkarrot <info@bitkarrot.co>"]

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

[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
Expand Down
6 changes: 1 addition & 5 deletions templates/decoder/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h6 class="text-subtitle1 q-my-none">
{% endblock %} {% block scripts %} {{ window_vars(user) }}

<script>
new Vue({
window.app = Vue.createApp({
el: '#vue',
mixins: [windowMixin],
computed: {
Expand Down Expand Up @@ -218,10 +218,6 @@ <h6 class="text-subtitle1 q-my-none">
isObject(val) {
return val !== null && typeof val === 'object' && !Array.isArray(val)
}
},
///// To run on startup /////
created: function () {
self = this
}
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ async def index(
user: User = Depends(check_user_exists),
):
return decoder_renderer().TemplateResponse(
"decoder/index.html", {"request": request, "user": user.dict()}
"decoder/index.html", {"request": request, "user": user.json()}
)

0 comments on commit f927cd7

Please sign in to comment.