added notes
This commit is contained in:
parent
37d2082082
commit
2c3d7a78ea
3 changed files with 34 additions and 9 deletions
7
lnurl.py
7
lnurl.py
|
|
@ -1,4 +1,4 @@
|
||||||
# Maybe your extensions needs some LNURL stuff.
|
# Maybe your extension needs some LNURL stuff.
|
||||||
# Here is a very simple example of how to do it.
|
# Here is a very simple example of how to do it.
|
||||||
# Feel free to delete this file if you don't need it.
|
# Feel free to delete this file if you don't need it.
|
||||||
|
|
||||||
|
|
@ -82,11 +82,12 @@ async def api_lnurl_pay_cb(
|
||||||
######## A very simple LNURLwithdraw ############
|
######## A very simple LNURLwithdraw ############
|
||||||
# https://github.com/lnurl/luds/blob/luds/03.md #
|
# https://github.com/lnurl/luds/blob/luds/03.md #
|
||||||
#################################################
|
#################################################
|
||||||
|
## withdraws are unique, removing 'tickerhash' ##
|
||||||
|
## here and crud.py will allow muliple pulls ####
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
|
|
||||||
@myextension_ext.get(
|
@myextension_ext.get(
|
||||||
"/api/v1/lnurl/withdraw/{myextension_id}/{tickerhash}/",
|
"/api/v1/lnurl/withdraw/{myextension_id}/{tickerhash}",
|
||||||
status_code=HTTPStatus.OK,
|
status_code=HTTPStatus.OK,
|
||||||
name="myextension.api_lnurl_withdraw",
|
name="myextension.api_lnurl_withdraw",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
<!--//PAGE FOR THE EXTENSIONS BACKEND IN LNBITS//////-->
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
|
||||||
{% extends "base.html" %} {% from "macros.jinja" import window_vars with context
|
{% extends "base.html" %} {% from "macros.jinja" import window_vars with context
|
||||||
%} {% block page %}
|
%} {% block page %}
|
||||||
<div class="row q-col-gutter-md" id="makeItRain">
|
<div class="row q-col-gutter-md" id="makeItRain">
|
||||||
|
|
@ -80,6 +84,10 @@
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
<!--//////////////FORM DIALOG////////////////////////-->
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
|
||||||
<q-dialog v-model="formDialog.show" position="top" @hide="closeFormDialog">
|
<q-dialog v-model="formDialog.show" position="top" @hide="closeFormDialog">
|
||||||
<q-card class="q-pa-lg q-pt-xl" style="width: 500px">
|
<q-card class="q-pa-lg q-pt-xl" style="width: 500px">
|
||||||
<q-form @submit="sendMyExtensionData" class="q-gutter-md">
|
<q-form @submit="sendMyExtensionData" class="q-gutter-md">
|
||||||
|
|
@ -102,10 +110,12 @@
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
<!--//////////////QR Code DIALOG/////////////////////-->
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
|
||||||
<q-dialog v-model="urlDialog.show" position="top">
|
<q-dialog v-model="urlDialog.show" position="top">
|
||||||
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
|
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
|
||||||
|
|
||||||
|
|
||||||
<q-responsive :ratio="1" class="q-mx-xl q-mb-md">
|
<q-responsive :ratio="1" class="q-mx-xl q-mb-md">
|
||||||
<lnbits-qrcode :value="qrValue"></lnbits-qrcode>
|
<lnbits-qrcode :value="qrValue"></lnbits-qrcode>
|
||||||
</q-responsive>
|
</q-responsive>
|
||||||
|
|
@ -135,19 +145,20 @@
|
||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row q-mt-lg">
|
<div class="row q-mt-lg">
|
||||||
|
|
||||||
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Close</q-btn>
|
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Close</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %} {% block scripts %} {{ window_vars(user) }}
|
{% endblock %} {% block scripts %} {{ window_vars(user) }}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// The object returned here will be merged with the data object of the Vue instance
|
|
||||||
|
///////////////////////////////////////////////////
|
||||||
|
//////////an object we can update with data////////
|
||||||
|
///////////////////////////////////////////////////
|
||||||
const mapMyExtension = obj => {
|
const mapMyExtension = obj => {
|
||||||
obj.date = Quasar.utils.date.formatDate(
|
obj.date = Quasar.utils.date.formatDate(
|
||||||
new Date(obj.time * 1000),
|
new Date(obj.time * 1000),
|
||||||
|
|
@ -199,6 +210,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////
|
||||||
|
////////////////METHODS FUNCTIONS//////////////////
|
||||||
|
///////////////////////////////////////////////////
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
closeFormDialog() {
|
closeFormDialog() {
|
||||||
this.formDialog.show = false
|
this.formDialog.show = false
|
||||||
|
|
@ -439,6 +455,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////
|
||||||
|
//////LIFECYCLE FUNCTIONS RUNNING ON PAGE LOAD/////
|
||||||
|
///////////////////////////////////////////////////
|
||||||
created: function () {
|
created: function () {
|
||||||
if (this.g.user.wallets.length) {
|
if (this.g.user.wallets.length) {
|
||||||
this.getMyExtensions()
|
this.getMyExtensions()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
<!--////////////////USER FACING PAGE/////////////////-->
|
||||||
|
<!--/////////////////////////////////////////////////-->
|
||||||
|
|
||||||
{% extends "public.html" %} {% block page %}
|
{% extends "public.html" %} {% block page %}
|
||||||
<div class="row q-col-gutter-md justify-center">
|
<div class="row q-col-gutter-md justify-center">
|
||||||
<div class="col-12 col-sm-6 col-md-5 col-lg-4">
|
<div class="col-12 col-sm-6 col-md-5 col-lg-4">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue