feat: return releases
to UI
This commit is contained in:
parent
496346b3ba
commit
76fbb5ccbb
|
@ -112,6 +112,17 @@ async def extensions_install(
|
||||||
"dependencies": ext.dependencies,
|
"dependencies": ext.dependencies,
|
||||||
"isInstalled": ext.id in installed_extensions,
|
"isInstalled": ext.id in installed_extensions,
|
||||||
"isActive": not ext.id in inactive_extensions,
|
"isActive": not ext.id in inactive_extensions,
|
||||||
|
"releases": [
|
||||||
|
{
|
||||||
|
"name": r.name,
|
||||||
|
"version": r.version,
|
||||||
|
"archive": r.archive,
|
||||||
|
# "description": base64.b64encode(r.description.encode()),
|
||||||
|
}
|
||||||
|
for r in ext.releases
|
||||||
|
]
|
||||||
|
if ext.releases
|
||||||
|
else None,
|
||||||
},
|
},
|
||||||
extension_list,
|
extension_list,
|
||||||
)
|
)
|
||||||
|
|
|
@ -230,6 +230,7 @@ class InstallableExtension(BaseModel):
|
||||||
short_description=config.get("short_description"),
|
short_description=config.get("short_description"),
|
||||||
archive="xx",
|
archive="xx",
|
||||||
hash="123",
|
hash="123",
|
||||||
|
version="0",
|
||||||
stars=repo["stargazers_count"],
|
stars=repo["stargazers_count"],
|
||||||
icon_url=icon_to_github_url(org, config.get("tile")),
|
icon_url=icon_to_github_url(org, config.get("tile")),
|
||||||
releases=ExtensionRelease.from_github_releases(releases),
|
releases=ExtensionRelease.from_github_releases(releases),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user