feat: add basic UI
This commit is contained in:
parent
5a747361af
commit
298021d25a
6 changed files with 438 additions and 80 deletions
31
static/components/relay-details/relay-details.js
Normal file
31
static/components/relay-details/relay-details.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
async function relayDetails(path) {
|
||||
const template = await loadTemplateAsync(path)
|
||||
Vue.component('relay-details', {
|
||||
name: 'relay-details',
|
||||
template,
|
||||
|
||||
props: [],
|
||||
data: function () {
|
||||
return {
|
||||
items: [],
|
||||
formDialogItem: {
|
||||
show: false,
|
||||
data: {
|
||||
name: '',
|
||||
description: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
satBtc(val, showUnit = true) {
|
||||
return satOrBtc(val, showUnit, this.satsDenominated)
|
||||
},
|
||||
},
|
||||
|
||||
created: async function () {
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue