Fix production build and refresh dist output.
Restore catalog cover assets, resolve TypeScript issues in TimeInput and catalogGallery, and rebuild the production bundle.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 144 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 218 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
@@ -93,7 +93,7 @@ function stepMinute(delta: number) {
|
||||
const index = minuteSteps.indexOf(draftMinute.value)
|
||||
const base = index < 0 ? 0 : index
|
||||
const next = (base + delta + minuteSteps.length) % minuteSteps.length
|
||||
draftMinute.value = minuteSteps[next]
|
||||
draftMinute.value = minuteSteps[next] ?? 0
|
||||
}
|
||||
|
||||
function confirmSelection() {
|
||||
|
||||
@@ -80,7 +80,10 @@ export function groupCatalogPatterns(products: CatalogProductCard[]): CatalogPat
|
||||
groups.set(key, list)
|
||||
}
|
||||
|
||||
return [...groups.entries()].map(([, items]) => {
|
||||
return [...groups.entries()].flatMap(([, items]) => {
|
||||
const first = items[0]
|
||||
if (!first) return []
|
||||
|
||||
const colors = [
|
||||
...new Set(
|
||||
items.flatMap((item) =>
|
||||
@@ -96,13 +99,13 @@ export function groupCatalogPatterns(products: CatalogProductCard[]): CatalogPat
|
||||
return undefined
|
||||
})
|
||||
return {
|
||||
id: items[0].id,
|
||||
name: items[0].name,
|
||||
id: first.id,
|
||||
name: first.name,
|
||||
imageUrl: colorImages.find(Boolean) || items.find((item) => item.imageUrl)?.imageUrl,
|
||||
colorCount: Math.max(colors.length, items.length),
|
||||
colors: colors.slice(0, 5),
|
||||
colorImages: colorImages.slice(0, 5),
|
||||
kind: patternKindOf(items[0]),
|
||||
kind: patternKindOf(first),
|
||||
items,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user