refactor: move /payments into vue component (#3414)

This commit is contained in:
dni ⚡
2025-10-31 08:15:01 +01:00
committed by GitHub
parent 2856803ca7
commit dd27b190f3
10 changed files with 464 additions and 448 deletions
File diff suppressed because one or more lines are too long
+10 -9
View File
@@ -166,15 +166,6 @@ const routes = [
scripts: ['/static/js/audit.js']
}
},
{
path: '/payments',
name: 'Payments',
component: DynamicComponent,
props: {
fetchUrl: '/payments',
scripts: ['/static/js/payments.js']
}
},
{
path: '/extensions',
name: 'Extensions',
@@ -219,6 +210,16 @@ const routes = [
fetchUrl: '/node',
scripts: ['/static/js/node.js']
}
},
{
path: '/node',
name: 'Node',
component: DynamicComponent
},
{
path: '/payments',
name: 'Payments',
component: PagePayments
}
]
@@ -1,4 +1,5 @@
window.PaymentsPageLogic = {
window.PagePayments = {
template: '#page-payments',
mixins: [window.windowMixin],
data() {
return {
+1
View File
@@ -38,6 +38,7 @@
"js/bolt11-decoder.js"
],
"components": [
"js/pages/payments.js",
"js/components/lnbits-qrcode.js",
"js/components/lnbits-qrcode-lnurl.js",
"js/components/lnbits-funding-sources.js",