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 -->
|
<!-- Description -->
|
||||||
<section class="listing-description">
|
<section class="listing-description">
|
||||||
<h2>${t('listing.description')}</h2>
|
|
||||||
<div class="description-text">${this.formatDescription(this.listing.description)}</div>
|
<div class="description-text">${this.formatDescription(this.listing.description)}</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -746,7 +745,14 @@ style.textContent = /* css */`
|
|||||||
filter: grayscale(1);
|
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 {
|
page-listing .listing-location-section {
|
||||||
margin-bottom: var(--space-xl);
|
margin-bottom: var(--space-xl);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -379,9 +379,7 @@ class DirectusService {
|
|||||||
'shipping',
|
'shipping',
|
||||||
'shipping_cost',
|
'shipping_cost',
|
||||||
'views',
|
'views',
|
||||||
'payment_status',
|
|
||||||
'expires_at',
|
'expires_at',
|
||||||
'monero_address',
|
|
||||||
'date_created',
|
'date_created',
|
||||||
'user_created',
|
'user_created',
|
||||||
'images.directus_files_id.id',
|
'images.directus_files_id.id',
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ async function staleWhileRevalidate(request) {
|
|||||||
cache.put(request, response.clone());
|
cache.put(request, response.clone());
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}).catch(() => cached);
|
}).catch(() => cached || new Response('Offline', { status: 503 }));
|
||||||
|
|
||||||
return cached || fetchPromise;
|
return cached || fetchPromise;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user