feat: add extension-settings instead of environs (#28)

* feat: add extension-settings instead of environs
This commit is contained in:
dni ⚡ 2023-11-22 11:40:22 +01:00 committed by GitHub
commit f2e419e18d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 230 additions and 130 deletions

View file

@ -2,14 +2,14 @@
Vue.component(VueQrcode.name, VueQrcode)
var locationPath = [
const locationPath = [
window.location.protocol,
'//',
window.location.host,
window.location.pathname
].join('')
var mapPayLink = obj => {
const mapPayLink = obj => {
obj._data = _.clone(obj)
obj.date = Quasar.utils.date.formatDate(
new Date(obj.time * 1000),
@ -24,8 +24,20 @@ var mapPayLink = obj => {
new Vue({
el: '#vue',
mixins: [windowMixin],
computed: {
endpoint: function() {
return `/lnurlp/api/v1/settings?usr=${this.g.user.id}`
}
},
data() {
return {
settings: [
{
"type": "str",
"description": "Nostr private key used to zap",
"name": "nostr_private_key",
}
],
domain: window.location.host,
currencies: [],
fiatRates: {},