mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
feat: UI improvements
This commit is contained in:
parent
2da466f0c8
commit
e8bed9cd90
@ -171,36 +171,20 @@
|
|||||||
group="extras"
|
group="extras"
|
||||||
icon="download"
|
icon="download"
|
||||||
:label="release.description"
|
:label="release.description"
|
||||||
:caption="'Version: ' + release.version"
|
:caption="release.version"
|
||||||
:content-inset-level="0.5"
|
:content-inset-level="0.5"
|
||||||
>
|
>
|
||||||
<q-expansion-item
|
<q-card>
|
||||||
group="api"
|
<q-card-section>
|
||||||
dense
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
||||||
expand-separator
|
</q-card-section>
|
||||||
label="List pay links"
|
</q-card>
|
||||||
>
|
|
||||||
<q-card>
|
|
||||||
<q-card-section>
|
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
|
||||||
</q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</q-expansion-item>
|
|
||||||
<q-expansion-item
|
|
||||||
group="api"
|
|
||||||
dense
|
|
||||||
expand-separator
|
|
||||||
label="Get a pay link"
|
|
||||||
>
|
|
||||||
<q-card>
|
|
||||||
<q-card-section> </q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</q-expansion-item>
|
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
<q-spinner v-else color="primary" size="2.55em"></q-spinner>
|
||||||
<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>
|
||||||
@ -325,7 +309,7 @@
|
|||||||
console.log('### showUpgrade')
|
console.log('### showUpgrade')
|
||||||
this.selectedExtension = extension
|
this.selectedExtension = extension
|
||||||
this.showUpgradeDialog = true
|
this.showUpgradeDialog = true
|
||||||
this.selectedExtensionRepos = []
|
this.selectedExtensionRepos = null
|
||||||
const {data} = await LNbits.api.request(
|
const {data} = await LNbits.api.request(
|
||||||
'GET',
|
'GET',
|
||||||
`/api/v1/extension/${extension.id}/releases?usr=${this.g.user.id}`,
|
`/api/v1/extension/${extension.id}/releases?usr=${this.g.user.id}`,
|
||||||
|
@ -109,19 +109,20 @@ class ExtensionRelease(BaseModel):
|
|||||||
source_repo: str
|
source_repo: str
|
||||||
hash: Optional[str]
|
hash: Optional[str]
|
||||||
published_at: Optional[str]
|
published_at: Optional[str]
|
||||||
url: Optional[str]
|
html_url: Optional[str]
|
||||||
description: Optional[str]
|
description: Optional[str]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_github_release(cls, source_repo: str, r: dict) -> "ExtensionRelease":
|
def from_github_release(cls, source_repo: str, r: dict) -> "ExtensionRelease":
|
||||||
return ExtensionRelease(
|
return ExtensionRelease(
|
||||||
name=r["name"],
|
name=r["name"],
|
||||||
|
description=r["name"],
|
||||||
version=r["tag_name"],
|
version=r["tag_name"],
|
||||||
archive=r["zipball_url"],
|
archive=r["zipball_url"],
|
||||||
source_repo=source_repo,
|
source_repo=source_repo,
|
||||||
# description=r["body"], # bad for JSON
|
# description=r["body"], # bad for JSON
|
||||||
published_at=r["published_at"],
|
published_at=r["published_at"],
|
||||||
url=r["html_url"],
|
html_url=r["html_url"],
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user