mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-05 08:17:11 +03:00
Merge branch 'develop' into dp/automated-build-workflow
This commit is contained in:
commit
5b29149ad7
@ -100,6 +100,7 @@ fn make_widget() -> String {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
const container = document.getElementById('latest-apps');
|
const container = document.getElementById('latest-apps');
|
||||||
data.forEach(app => {
|
data.forEach(app => {
|
||||||
|
if (app.metadata) {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.className = 'app p-2 grow flex items-stretch rounded-lg shadow bg-white/10 hover:bg-white/20 font-sans cursor-pointer';
|
a.className = 'app p-2 grow flex items-stretch rounded-lg shadow bg-white/10 hover:bg-white/20 font-sans cursor-pointer';
|
||||||
a.href = `/main:app_store:sys/app-details/${app.package}:${app.publisher}`
|
a.href = `/main:app_store:sys/app-details/${app.package}:${app.publisher}`
|
||||||
@ -120,6 +121,7 @@ fn make_widget() -> String {
|
|||||||
<p>${app.metadata.description}</p>
|
<p>${app.metadata.description}</p>
|
||||||
</div>`;
|
</div>`;
|
||||||
container.appendChild(a);
|
container.appendChild(a);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(error => console.error('Error fetching apps:', error));
|
.catch(error => console.error('Error fetching apps:', error));
|
||||||
|
Loading…
Reference in New Issue
Block a user