Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preview": "astro preview",
"astro": "astro",
"build:icon-data": "node scripts/build-icon-data.mjs",
"check": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-catalog.mjs && node --disable-warning=ExperimentalWarning scripts/check-business-hours.mjs && node scripts/check-news-ticker.mjs && node --disable-warning=ExperimentalWarning scripts/check-flip-box.mjs && node scripts/check-social-grid.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-four.mjs && node --disable-warning=ExperimentalWarning scripts/check-video-player.mjs && node scripts/check-cookie-consent.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-icon.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-animated-background.mjs && node --disable-warning=ExperimentalWarning scripts/check-modal-and-bar.mjs && node --disable-warning=ExperimentalWarning scripts/check-reveal-cards.mjs && node --disable-warning=ExperimentalWarning scripts/check-time-and-toggles.mjs && node --disable-warning=ExperimentalWarning scripts/check-media-and-links.mjs && node --disable-warning=ExperimentalWarning scripts/check-structure.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-feedback.mjs && node --disable-warning=ExperimentalWarning scripts/check-controls.mjs && node scripts/check-small-pieces.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-categories.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-mega-menu.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-styles.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-type.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-palettes.mjs"
"check": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-catalog.mjs && node --disable-warning=ExperimentalWarning scripts/check-business-hours.mjs && node scripts/check-news-ticker.mjs && node --disable-warning=ExperimentalWarning scripts/check-flip-box.mjs && node scripts/check-social-grid.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-four.mjs && node --disable-warning=ExperimentalWarning scripts/check-video-player.mjs && node scripts/check-cookie-consent.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-icon.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-animated-background.mjs && node --disable-warning=ExperimentalWarning scripts/check-modal-and-bar.mjs && node --disable-warning=ExperimentalWarning scripts/check-reveal-cards.mjs && node --disable-warning=ExperimentalWarning scripts/check-time-and-toggles.mjs && node --disable-warning=ExperimentalWarning scripts/check-media-and-links.mjs && node --disable-warning=ExperimentalWarning scripts/check-structure.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-feedback.mjs && node --disable-warning=ExperimentalWarning scripts/check-controls.mjs && node scripts/check-small-pieces.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-categories.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-mega-menu.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-styles.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-type.mjs && node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-palettes.mjs && node --disable-warning=ExperimentalWarning scripts/check-shop.mjs"
},
"dependencies": {
"astro": "^7.2.1"
Expand Down
1 change: 1 addition & 0 deletions public/demo/shop-candle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions public/demo/shop-catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"site": "demo-shop",
"open": true,
"currency": "USD",
"products": [
{
"id": "ITEMMUG",
"slug": "enamel-mug",
"name": "Enamel mug",
"description": "A camp mug in steel with a glass enamel coat. Holds 12 oz (< 350 ml).\n\nHand wash only. The rim is rolled, so it stays cool to the lip.",
"images": ["shop-mug.svg", "shop-mug-side.svg"],
"variations": [
{ "id": "VARMUGCREAM", "name": "Cream", "price_cents": 1800, "tracked": true },
{ "id": "VARMUGSLATE", "name": "Slate", "price_cents": 2000, "tracked": true }
]
},
{
"id": "ITEMNOTEBOOK",
"slug": "field-notebook",
"name": "Field notebook",
"description": "Forty-eight pages of dot grid, stitched, in a card cover that fits a back pocket.",
"images": ["shop-notebook.svg"],
"variations": [
{ "id": "VARNOTEBOOK", "name": "Regular", "price_cents": 900, "tracked": false }
]
},
{
"id": "ITEMCANDLE",
"slug": "beeswax-candle",
"name": "Beeswax candle",
"description": "Poured by hand from local beeswax, with a cotton wick.\nSmall burns for about 20 hours, large for about 45.",
"images": ["shop-candle.svg"],
"variations": [
{ "id": "VARCANDLESM", "name": "Small", "price_cents": 1400, "tracked": true },
{ "id": "VARCANDLELG", "name": "Large", "price_cents": 2600, "tracked": true }
]
},
{
"id": "ITEMTOTE",
"slug": "canvas-tote",
"name": "Canvas tote",
"description": "Heavy cotton canvas with long handles and an inside pocket.",
"images": ["shop-tote.svg"],
"variations": [
{ "id": "VARTOTENAT", "name": "Natural", "price_cents": 2400, "tracked": true },
{ "id": "VARTOTEBLK", "name": "Black", "price_cents": 2400, "tracked": true }
]
}
]
}
1 change: 1 addition & 0 deletions public/demo/shop-mug-side.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/demo/shop-mug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/demo/shop-notebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/demo/shop-stock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"VARMUGCREAM": 6,
"VARMUGSLATE": 2,
"VARNOTEBOOK": null,
"VARCANDLESM": 12,
"VARCANDLELG": 1,
"VARTOTENAT": 0,
"VARTOTEBLK": 0
}
1 change: 1 addition & 0 deletions public/demo/shop-tote.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/check-catalog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const NEEDS_INPUT = [
'accordion', 'announcement-bar', 'before-after', 'business-hours', 'content-toggle', 'countdown',
'flip-box', 'hotspot', 'info-circle', 'info-list', 'map', 'modal', 'news-ticker',
'responsive-table', 'slide-box', 'social-grid', 'tabcordion', 'tabs', 'testimonial-carousel',
'video-background', 'video-gallery', 'video-player',
'video-background', 'video-gallery', 'video-player', 'cart', 'product-list', 'product-page',
];
const plainText = (v) => typeof v === 'string' && v.trim() === v && v.length > 0;
for (const e of catalog) {
Expand Down
3 changes: 3 additions & 0 deletions scripts/check-categories.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ const GOLDEN = {
'content-toggle': 'conversion',
'news-ticker': 'conversion',
sticker: 'conversion',
cart: 'conversion',
'product-list': 'conversion',
'product-page': 'conversion',

notice: 'feedback',
toast: 'feedback',
Expand Down
Loading
Loading