fix: remove restricted fields from public listing query, fix service worker offline fallback, style description as card and remove redundant heading
This commit is contained in:
@@ -212,7 +212,6 @@ class PageListing extends HTMLElement {
|
||||
|
||||
<!-- Description -->
|
||||
<section class="listing-description">
|
||||
<h2>${t('listing.description')}</h2>
|
||||
<div class="description-text">${this.formatDescription(this.listing.description)}</div>
|
||||
</section>
|
||||
|
||||
@@ -746,7 +745,14 @@ style.textContent = /* css */`
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
||||
page-listing .listing-description,
|
||||
page-listing .listing-description {
|
||||
background: var(--color-bg-secondary);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--space-lg);
|
||||
margin-bottom: var(--space-xl);
|
||||
}
|
||||
|
||||
page-listing .listing-location-section {
|
||||
margin-bottom: var(--space-xl);
|
||||
}
|
||||
|
||||
@@ -379,9 +379,7 @@ class DirectusService {
|
||||
'shipping',
|
||||
'shipping_cost',
|
||||
'views',
|
||||
'payment_status',
|
||||
'expires_at',
|
||||
'monero_address',
|
||||
'date_created',
|
||||
'user_created',
|
||||
'images.directus_files_id.id',
|
||||
|
||||
@@ -167,7 +167,7 @@ async function staleWhileRevalidate(request) {
|
||||
cache.put(request, response.clone());
|
||||
}
|
||||
return response;
|
||||
}).catch(() => cached);
|
||||
}).catch(() => cached || new Response('Offline', { status: 503 }));
|
||||
|
||||
return cached || fetchPromise;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user