Merge branch 'develop' into dp/automated-build-workflow

This commit is contained in:
~dolled-possum 2024-06-07 20:37:05 -04:00
commit 5b29149ad7

View File

@ -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));