galley-cms 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -2
- package/bin/galley.js +29 -0
- package/dist/LICENSE +202 -0
- package/dist/NOTICE +19 -0
- package/dist/galley.mjs +168872 -0
- package/dist/overlay.js +60 -0
- package/dist/starters/README.md +257 -0
- package/dist/starters/astro-editorial/CONTENT-GUIDE.md +218 -0
- package/dist/starters/astro-editorial/LICENSE +21 -0
- package/dist/starters/astro-editorial/README.md +375 -0
- package/dist/starters/astro-editorial/astro.config.ts +50 -0
- package/dist/starters/astro-editorial/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-editorial/galley/photography/LOG.md +77 -0
- package/dist/starters/astro-editorial/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-editorial/galley/photography/shots.json +721 -0
- package/dist/starters/astro-editorial/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/night.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/film.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/form.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/look.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/story.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/about.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/about.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/contact.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/story.md +49 -0
- package/dist/starters/astro-editorial/galley/templates/story.webp +0 -0
- package/dist/starters/astro-editorial/galley.config.json +334 -0
- package/dist/starters/astro-editorial/gitignore +26 -0
- package/dist/starters/astro-editorial/netlify.toml +6 -0
- package/dist/starters/astro-editorial/package.json +46 -0
- package/dist/starters/astro-editorial/public/favicon.svg +5 -0
- package/dist/starters/astro-editorial/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-editorial/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-editorial/public/images/share.jpg +0 -0
- package/dist/starters/astro-editorial/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-editorial/scripts/gallery/gallery.astro +77 -0
- package/dist/starters/astro-editorial/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-editorial/scripts/gallery/sections.md +171 -0
- package/dist/starters/astro-editorial/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-editorial/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-editorial/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-editorial/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-editorial/scripts/starter-notice.json +9 -0
- package/dist/starters/astro-editorial/src/components/Actions.astro +31 -0
- package/dist/starters/astro-editorial/src/components/Footer.astro +195 -0
- package/dist/starters/astro-editorial/src/components/Header.astro +340 -0
- package/dist/starters/astro-editorial/src/components/Icon.astro +39 -0
- package/dist/starters/astro-editorial/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-editorial/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-editorial/src/components/Media.astro +37 -0
- package/dist/starters/astro-editorial/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-editorial/src/components/PieceList.astro +70 -0
- package/dist/starters/astro-editorial/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-editorial/src/components/PostList.astro +103 -0
- package/dist/starters/astro-editorial/src/components/Section.astro +47 -0
- package/dist/starters/astro-editorial/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-editorial/src/components/Sections.astro +81 -0
- package/dist/starters/astro-editorial/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-editorial/src/components/Tags.astro +68 -0
- package/dist/starters/astro-editorial/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-editorial/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-editorial/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-editorial/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-editorial/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-editorial/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-editorial/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-editorial/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-editorial/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-editorial/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-editorial/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-editorial/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-editorial/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-editorial/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-editorial/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-editorial/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-editorial/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-editorial/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-editorial/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-editorial/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-editorial/src/content/pages/404.md +14 -0
- package/dist/starters/astro-editorial/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-editorial/src/content/pages/collections.md +15 -0
- package/dist/starters/astro-editorial/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-editorial/src/content/pages/index.md +144 -0
- package/dist/starters/astro-editorial/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-editorial/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-editorial/src/content/pages/stockists.md +32 -0
- package/dist/starters/astro-editorial/src/content.config.ts +464 -0
- package/dist/starters/astro-editorial/src/data/navigation.json +60 -0
- package/dist/starters/astro-editorial/src/data/scripts.json +29 -0
- package/dist/starters/astro-editorial/src/data/site.json +86 -0
- package/dist/starters/astro-editorial/src/data/stockists.json +81 -0
- package/dist/starters/astro-editorial/src/data/visibility.json +30 -0
- package/dist/starters/astro-editorial/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-editorial/src/galley/catalog.js +42 -0
- package/dist/starters/astro-editorial/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-editorial/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-editorial/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-editorial/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-editorial/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-editorial/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-editorial/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-editorial/src/galley/components/index.js +5 -0
- package/dist/starters/astro-editorial/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-editorial/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-editorial/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-editorial/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-editorial/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-editorial/src/galley/integration.js +21 -0
- package/dist/starters/astro-editorial/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-editorial/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-editorial/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-editorial/src/galley/schema.js +338 -0
- package/dist/starters/astro-editorial/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-editorial/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-editorial/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-editorial/src/galley/settings.json +18 -0
- package/dist/starters/astro-editorial/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-editorial/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-editorial/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-editorial/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-editorial/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-editorial/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-editorial/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-editorial/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-editorial/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-editorial/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-editorial/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-editorial/src/layouts/Base.astro +98 -0
- package/dist/starters/astro-editorial/src/lib/journal.ts +45 -0
- package/dist/starters/astro-editorial/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-editorial/src/lib/site.ts +181 -0
- package/dist/starters/astro-editorial/src/pages/404.astro +13 -0
- package/dist/starters/astro-editorial/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-editorial/src/pages/collections/[slug].astro +23 -0
- package/dist/starters/astro-editorial/src/pages/collections/index.astro +66 -0
- package/dist/starters/astro-editorial/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-editorial/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-editorial/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-editorial/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-editorial/src/styles/global.css +661 -0
- package/dist/starters/astro-editorial/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-editorial/src/styles/tokens.css +181 -0
- package/dist/starters/astro-editorial/starter.json +52 -0
- package/dist/starters/astro-editorial/tsconfig.json +8 -0
- package/dist/starters/astro-saas/CONTENT-GUIDE.md +273 -0
- package/dist/starters/astro-saas/LICENSE +21 -0
- package/dist/starters/astro-saas/README.md +365 -0
- package/dist/starters/astro-saas/astro.config.ts +77 -0
- package/dist/starters/astro-saas/galley/previews/home.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/meridian.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/night-shift.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/signal.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/awards.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/case-studies.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/changelog.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/comparison.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-tabs.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/features.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/integrations.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/metrics.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing-table.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/screenshot.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/security.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/team.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/use-cases.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/about.md +50 -0
- package/dist/starters/astro-saas/galley/templates/about.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/contact.md +30 -0
- package/dist/starters/astro-saas/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.md +47 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/landing.md +76 -0
- package/dist/starters/astro-saas/galley/templates/landing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/pricing.md +77 -0
- package/dist/starters/astro-saas/galley/templates/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/product.md +69 -0
- package/dist/starters/astro-saas/galley/templates/product.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/solution.md +71 -0
- package/dist/starters/astro-saas/galley/templates/solution.webp +0 -0
- package/dist/starters/astro-saas/galley.config.json +286 -0
- package/dist/starters/astro-saas/gitignore +22 -0
- package/dist/starters/astro-saas/netlify.toml +6 -0
- package/dist/starters/astro-saas/package.json +45 -0
- package/dist/starters/astro-saas/public/favicon.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/easiest-setup.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/facilities-review.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/support-index.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/audit-schedule.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/certificate-register.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/four-numbers.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/fourteen-depots.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/offline-first.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/work-order-fields.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/corrin-foods.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/halbeck-retail.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/linmore-schools.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/ostrell-logistics.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/pellow-hotels.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/tamsett-facilities.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/vantry-health.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/wendmoor-senior-living.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/anika-thorvald.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/calum-ashby.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/dana-whitcombe.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/ellie-strand.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/grace-achterberg.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/hana-lindqvist.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/joel-marchetti.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/marcus-oyelaran.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/rosa-ferrante.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/sunmi-hollis.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/teodor-rask.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/tobi-merriden.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/dashboard.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/evidence.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/inspection.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/planner.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/reports.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/work-orders.svg +1 -0
- package/dist/starters/astro-saas/public/images/share.png +0 -0
- package/dist/starters/astro-saas/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-saas/scripts/gallery/gallery.astro +114 -0
- package/dist/starters/astro-saas/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-saas/scripts/gallery/sections.md +362 -0
- package/dist/starters/astro-saas/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-saas/src/components/Actions.astro +30 -0
- package/dist/starters/astro-saas/src/components/Announcement.astro +51 -0
- package/dist/starters/astro-saas/src/components/Checklist.astro +55 -0
- package/dist/starters/astro-saas/src/components/CustomerCard.astro +147 -0
- package/dist/starters/astro-saas/src/components/CustomerStory.astro +343 -0
- package/dist/starters/astro-saas/src/components/Footer.astro +204 -0
- package/dist/starters/astro-saas/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-saas/src/components/Frame.astro +88 -0
- package/dist/starters/astro-saas/src/components/Header.astro +489 -0
- package/dist/starters/astro-saas/src/components/Icon.astro +83 -0
- package/dist/starters/astro-saas/src/components/Logo.astro +40 -0
- package/dist/starters/astro-saas/src/components/Mark.astro +54 -0
- package/dist/starters/astro-saas/src/components/Media.astro +54 -0
- package/dist/starters/astro-saas/src/components/PageEntry.astro +65 -0
- package/dist/starters/astro-saas/src/components/PostCard.astro +99 -0
- package/dist/starters/astro-saas/src/components/PostList.astro +108 -0
- package/dist/starters/astro-saas/src/components/Section.astro +52 -0
- package/dist/starters/astro-saas/src/components/SectionHeader.astro +80 -0
- package/dist/starters/astro-saas/src/components/Sections.astro +100 -0
- package/dist/starters/astro-saas/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-saas/src/components/Tags.astro +67 -0
- package/dist/starters/astro-saas/src/components/UpdateEntry.astro +145 -0
- package/dist/starters/astro-saas/src/components/sections/Awards.astro +144 -0
- package/dist/starters/astro-saas/src/components/sections/CaseStudies.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/Changelog.astro +108 -0
- package/dist/starters/astro-saas/src/components/sections/Comparison.astro +132 -0
- package/dist/starters/astro-saas/src/components/sections/Contact.astro +105 -0
- package/dist/starters/astro-saas/src/components/sections/Cta.astro +121 -0
- package/dist/starters/astro-saas/src/components/sections/Faq.astro +142 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureSplit.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureTabs.astro +246 -0
- package/dist/starters/astro-saas/src/components/sections/Features.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/FormSection.astro +89 -0
- package/dist/starters/astro-saas/src/components/sections/Hero.astro +102 -0
- package/dist/starters/astro-saas/src/components/sections/HeroForm.astro +129 -0
- package/dist/starters/astro-saas/src/components/sections/HeroSplit.astro +140 -0
- package/dist/starters/astro-saas/src/components/sections/Integrations.astro +172 -0
- package/dist/starters/astro-saas/src/components/sections/Logos.astro +122 -0
- package/dist/starters/astro-saas/src/components/sections/Metrics.astro +97 -0
- package/dist/starters/astro-saas/src/components/sections/Newsletter.astro +94 -0
- package/dist/starters/astro-saas/src/components/sections/Posts.astro +93 -0
- package/dist/starters/astro-saas/src/components/sections/Pricing.astro +196 -0
- package/dist/starters/astro-saas/src/components/sections/PricingTable.astro +151 -0
- package/dist/starters/astro-saas/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-saas/src/components/sections/Screenshot.astro +112 -0
- package/dist/starters/astro-saas/src/components/sections/Security.astro +167 -0
- package/dist/starters/astro-saas/src/components/sections/Steps.astro +177 -0
- package/dist/starters/astro-saas/src/components/sections/Team.astro +135 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonial.astro +118 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonials.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-saas/src/components/sections/UseCases.astro +166 -0
- package/dist/starters/astro-saas/src/content/blog/audit-ready-maintenance-schedule.md +41 -0
- package/dist/starters/astro-saas/src/content/blog/certificate-register.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/four-maintenance-numbers.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/fourteen-depots-off-spreadsheets.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/offline-first-inspections.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/work-order-fields.md +43 -0
- package/dist/starters/astro-saas/src/content/changelog/asset-qr-labels.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/certificate-forecasts.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/contractor-bulk-upload.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/faster-planner.md +11 -0
- package/dist/starters/astro-saas/src/content/changelog/offline-inspections.md +16 -0
- package/dist/starters/astro-saas/src/content/changelog/scim-provisioning.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/weekly-reminders-fix.md +11 -0
- package/dist/starters/astro-saas/src/content/customers/linmore-schools.md +53 -0
- package/dist/starters/astro-saas/src/content/customers/ostrell-logistics.md +59 -0
- package/dist/starters/astro-saas/src/content/customers/pellow-hotels.md +47 -0
- package/dist/starters/astro-saas/src/content/customers/wendmoor-senior-living.md +47 -0
- package/dist/starters/astro-saas/src/content/forms/contact.json +31 -0
- package/dist/starters/astro-saas/src/content/forms/demo.json +133 -0
- package/dist/starters/astro-saas/src/content/forms/newsletter.json +13 -0
- package/dist/starters/astro-saas/src/content/pages/404.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/about.md +83 -0
- package/dist/starters/astro-saas/src/content/pages/blog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/changelog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/contact.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/customers.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/index.md +161 -0
- package/dist/starters/astro-saas/src/content/pages/pricing.md +131 -0
- package/dist/starters/astro-saas/src/content/pages/privacy.md +38 -0
- package/dist/starters/astro-saas/src/content/pages/product.md +152 -0
- package/dist/starters/astro-saas/src/content/pages/security.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/facilities-teams.md +114 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/service-contractors.md +88 -0
- package/dist/starters/astro-saas/src/content/pages/terms.md +31 -0
- package/dist/starters/astro-saas/src/content/team/anika-thorvald.md +7 -0
- package/dist/starters/astro-saas/src/content/team/calum-ashby.md +7 -0
- package/dist/starters/astro-saas/src/content/team/hana-lindqvist.md +10 -0
- package/dist/starters/astro-saas/src/content/team/joel-marchetti.md +7 -0
- package/dist/starters/astro-saas/src/content/team/rosa-ferrante.md +7 -0
- package/dist/starters/astro-saas/src/content/team/tobi-merriden.md +10 -0
- package/dist/starters/astro-saas/src/content.config.ts +746 -0
- package/dist/starters/astro-saas/src/data/navigation.json +146 -0
- package/dist/starters/astro-saas/src/data/scripts.json +10 -0
- package/dist/starters/astro-saas/src/data/site.json +105 -0
- package/dist/starters/astro-saas/src/data/visibility.json +32 -0
- package/dist/starters/astro-saas/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-saas/src/galley/catalog.js +42 -0
- package/dist/starters/astro-saas/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-saas/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-saas/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-saas/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-saas/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-saas/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-saas/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-saas/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-saas/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-saas/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-saas/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-saas/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-saas/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-saas/src/galley/components/index.js +5 -0
- package/dist/starters/astro-saas/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-saas/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-saas/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-saas/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-saas/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-saas/src/galley/integration.js +21 -0
- package/dist/starters/astro-saas/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-saas/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-saas/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-saas/src/galley/schema.js +338 -0
- package/dist/starters/astro-saas/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-saas/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-saas/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-saas/src/galley/settings.json +18 -0
- package/dist/starters/astro-saas/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-saas/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-saas/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-saas/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-saas/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-saas/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-saas/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-saas/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-saas/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-saas/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-saas/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-saas/src/layouts/Base.astro +106 -0
- package/dist/starters/astro-saas/src/lib/customers.ts +18 -0
- package/dist/starters/astro-saas/src/lib/posts.ts +47 -0
- package/dist/starters/astro-saas/src/lib/site.ts +222 -0
- package/dist/starters/astro-saas/src/pages/404.astro +13 -0
- package/dist/starters/astro-saas/src/pages/[...slug].astro +27 -0
- package/dist/starters/astro-saas/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-saas/src/pages/blog/[slug].astro +298 -0
- package/dist/starters/astro-saas/src/pages/blog/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-saas/src/pages/changelog.astro +41 -0
- package/dist/starters/astro-saas/src/pages/customers/[slug].astro +32 -0
- package/dist/starters/astro-saas/src/styles/global.css +651 -0
- package/dist/starters/astro-saas/src/styles/kit.css +70 -0
- package/dist/starters/astro-saas/src/styles/themes/meridian.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/night-shift.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/signal.css +173 -0
- package/dist/starters/astro-saas/src/styles/tokens.css +173 -0
- package/dist/starters/astro-saas/starter-notice.json +9 -0
- package/dist/starters/astro-saas/starter.json +52 -0
- package/dist/starters/astro-saas/tsconfig.json +8 -0
- package/dist/starters/astro-saas/wrangler.jsonc +12 -0
- package/dist/starters/astro-starter/CONTENT-GUIDE.md +195 -0
- package/dist/starters/astro-starter/LICENSE +21 -0
- package/dist/starters/astro-starter/README.md +381 -0
- package/dist/starters/astro-starter/astro.config.ts +77 -0
- package/dist/starters/astro-starter/galley/previews/evening.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/home.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/lowfield.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sage.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/features.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/form.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/split.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/stats.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/team.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/about.md +33 -0
- package/dist/starters/astro-starter/galley/templates/about.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/contact.md +25 -0
- package/dist/starters/astro-starter/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.md +27 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/project.md +44 -0
- package/dist/starters/astro-starter/galley/templates/project.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/service.md +50 -0
- package/dist/starters/astro-starter/galley/templates/service.webp +0 -0
- package/dist/starters/astro-starter/galley.config.json +187 -0
- package/dist/starters/astro-starter/gitignore +22 -0
- package/dist/starters/astro-starter/netlify.toml +6 -0
- package/dist/starters/astro-starter/package.json +44 -0
- package/dist/starters/astro-starter/public/favicon.svg +1 -0
- package/dist/starters/astro-starter/public/images/blog/kitchen-questions.svg +6 -0
- package/dist/starters/astro-starter/public/images/blog/measured-survey.svg +5 -0
- package/dist/starters/astro-starter/public/images/blog/planning.svg +7 -0
- package/dist/starters/astro-starter/public/images/blog/renovation-guide.svg +8 -0
- package/dist/starters/astro-starter/public/images/gallery/arched-doorway.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/garden-room.svg +4 -0
- package/dist/starters/astro-starter/public/images/gallery/kitchen.svg +7 -0
- package/dist/starters/astro-starter/public/images/gallery/plan.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/stair.svg +3 -0
- package/dist/starters/astro-starter/public/images/gallery/window-seat.svg +6 -0
- package/dist/starters/astro-starter/public/images/logos/brackenridge.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/hartwell-glass.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/millbrook-timber.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/ostler-lime.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/wrenhallow-civic.svg +1 -0
- package/dist/starters/astro-starter/public/images/people/client-mistry.svg +3 -0
- package/dist/starters/astro-starter/public/images/projects/garden-room.svg +11 -0
- package/dist/starters/astro-starter/public/images/projects/hero-house.svg +18 -0
- package/dist/starters/astro-starter/public/images/projects/kitchen-extension.svg +16 -0
- package/dist/starters/astro-starter/public/images/projects/workshop.svg +9 -0
- package/dist/starters/astro-starter/public/images/share.png +0 -0
- package/dist/starters/astro-starter/public/images/share.svg +10 -0
- package/dist/starters/astro-starter/public/images/team/joe-whitlock.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/nell-okafor.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/priya-anand.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/tomas-reyes.svg +1 -0
- package/dist/starters/astro-starter/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-starter/scripts/gallery/gallery.astro +136 -0
- package/dist/starters/astro-starter/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-starter/scripts/gallery/sections.md +201 -0
- package/dist/starters/astro-starter/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-starter/src/components/Actions.astro +30 -0
- package/dist/starters/astro-starter/src/components/Footer.astro +166 -0
- package/dist/starters/astro-starter/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-starter/src/components/Header.astro +284 -0
- package/dist/starters/astro-starter/src/components/Icon.astro +57 -0
- package/dist/starters/astro-starter/src/components/Media.astro +32 -0
- package/dist/starters/astro-starter/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-starter/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-starter/src/components/PostList.astro +108 -0
- package/dist/starters/astro-starter/src/components/Section.astro +43 -0
- package/dist/starters/astro-starter/src/components/SectionHeader.astro +93 -0
- package/dist/starters/astro-starter/src/components/Sections.astro +76 -0
- package/dist/starters/astro-starter/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-starter/src/components/Tags.astro +65 -0
- package/dist/starters/astro-starter/src/components/sections/Contact.astro +106 -0
- package/dist/starters/astro-starter/src/components/sections/Cta.astro +96 -0
- package/dist/starters/astro-starter/src/components/sections/Faq.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Features.astro +105 -0
- package/dist/starters/astro-starter/src/components/sections/FormSection.astro +91 -0
- package/dist/starters/astro-starter/src/components/sections/Gallery.astro +69 -0
- package/dist/starters/astro-starter/src/components/sections/Hero.astro +128 -0
- package/dist/starters/astro-starter/src/components/sections/Logos.astro +99 -0
- package/dist/starters/astro-starter/src/components/sections/Posts.astro +73 -0
- package/dist/starters/astro-starter/src/components/sections/Pricing.astro +186 -0
- package/dist/starters/astro-starter/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-starter/src/components/sections/Split.astro +117 -0
- package/dist/starters/astro-starter/src/components/sections/Stats.astro +83 -0
- package/dist/starters/astro-starter/src/components/sections/Steps.astro +113 -0
- package/dist/starters/astro-starter/src/components/sections/Team.astro +112 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonial.astro +82 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonials.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-starter/src/content/authors/ines-ferreira.md +5 -0
- package/dist/starters/astro-starter/src/content/authors/nell-okafor.md +6 -0
- package/dist/starters/astro-starter/src/content/authors/tomas-reyes.md +6 -0
- package/dist/starters/astro-starter/src/content/blog/kitchen-extension-questions.md +46 -0
- package/dist/starters/astro-starter/src/content/blog/living-through-a-renovation.md +47 -0
- package/dist/starters/astro-starter/src/content/blog/measured-survey.md +42 -0
- package/dist/starters/astro-starter/src/content/blog/permitted-development.md +45 -0
- package/dist/starters/astro-starter/src/content/forms/contact.json +39 -0
- package/dist/starters/astro-starter/src/content/pages/404.md +17 -0
- package/dist/starters/astro-starter/src/content/pages/about.md +66 -0
- package/dist/starters/astro-starter/src/content/pages/blog.md +9 -0
- package/dist/starters/astro-starter/src/content/pages/contact.md +30 -0
- package/dist/starters/astro-starter/src/content/pages/index.md +125 -0
- package/dist/starters/astro-starter/src/content/pages/pricing.md +77 -0
- package/dist/starters/astro-starter/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-starter/src/content/pages/services.md +84 -0
- package/dist/starters/astro-starter/src/content/team/joe-whitlock.md +10 -0
- package/dist/starters/astro-starter/src/content/team/nell-okafor.md +12 -0
- package/dist/starters/astro-starter/src/content/team/priya-anand.md +7 -0
- package/dist/starters/astro-starter/src/content/team/tomas-reyes.md +10 -0
- package/dist/starters/astro-starter/src/content.config.ts +410 -0
- package/dist/starters/astro-starter/src/data/navigation.json +64 -0
- package/dist/starters/astro-starter/src/data/scripts.json +10 -0
- package/dist/starters/astro-starter/src/data/site.json +66 -0
- package/dist/starters/astro-starter/src/data/visibility.json +30 -0
- package/dist/starters/astro-starter/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-starter/src/galley/catalog.js +42 -0
- package/dist/starters/astro-starter/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-starter/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-starter/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-starter/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-starter/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-starter/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-starter/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-starter/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-starter/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-starter/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-starter/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-starter/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-starter/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-starter/src/galley/components/index.js +5 -0
- package/dist/starters/astro-starter/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-starter/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-starter/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-starter/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-starter/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-starter/src/galley/integration.js +21 -0
- package/dist/starters/astro-starter/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-starter/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-starter/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-starter/src/galley/schema.js +338 -0
- package/dist/starters/astro-starter/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-starter/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-starter/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-starter/src/galley/settings.json +18 -0
- package/dist/starters/astro-starter/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-starter/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-starter/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-starter/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-starter/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-starter/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-starter/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-starter/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-starter/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-starter/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-starter/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-starter/src/layouts/Base.astro +104 -0
- package/dist/starters/astro-starter/src/lib/posts.ts +43 -0
- package/dist/starters/astro-starter/src/lib/site.ts +201 -0
- package/dist/starters/astro-starter/src/pages/404.astro +13 -0
- package/dist/starters/astro-starter/src/pages/[...slug].astro +32 -0
- package/dist/starters/astro-starter/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-starter/src/pages/blog/[slug].astro +289 -0
- package/dist/starters/astro-starter/src/pages/blog/tags/[tag]/[...page].astro +82 -0
- package/dist/starters/astro-starter/src/styles/global.css +478 -0
- package/dist/starters/astro-starter/src/styles/kit.css +74 -0
- package/dist/starters/astro-starter/src/styles/themes/evening.css +135 -0
- package/dist/starters/astro-starter/src/styles/themes/lowfield.css +133 -0
- package/dist/starters/astro-starter/src/styles/themes/sage.css +134 -0
- package/dist/starters/astro-starter/src/styles/tokens.css +133 -0
- package/dist/starters/astro-starter/starter-notice.json +9 -0
- package/dist/starters/astro-starter/starter.json +52 -0
- package/dist/starters/astro-starter/tsconfig.json +8 -0
- package/dist/starters/astro-starter/wrangler.jsonc +12 -0
- package/dist/starters/astro-storefront/CONTENT-GUIDE.md +280 -0
- package/dist/starters/astro-storefront/LICENSE +21 -0
- package/dist/starters/astro-storefront/README.md +203 -0
- package/dist/starters/astro-storefront/astro.config.ts +50 -0
- package/dist/starters/astro-storefront/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-storefront/galley/photography/LOG.md +91 -0
- package/dist/starters/astro-storefront/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-storefront/galley/photography/shots.json +743 -0
- package/dist/starters/astro-storefront/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/night.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/collection-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/featured-product.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/film.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/form.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/product-rail.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/shop-the-look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/about.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/about.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/contact.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.md +21 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.md +40 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/story.md +49 -0
- package/dist/starters/astro-storefront/galley/templates/story.webp +0 -0
- package/dist/starters/astro-storefront/galley.config.json +752 -0
- package/dist/starters/astro-storefront/gitignore +26 -0
- package/dist/starters/astro-storefront/netlify.toml +6 -0
- package/dist/starters/astro-storefront/package.json +49 -0
- package/dist/starters/astro-storefront/public/favicon.svg +5 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/aw26-harbour-wall-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/ss26-plaster-steps-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-04-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-05-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-06-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-07-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-08-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/blanket-scarf-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/field-coat-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/gansey-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rib-polo-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rollneck-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-storefront/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rollneck.webp +0 -0
- package/dist/starters/astro-storefront/public/images/share.jpg +0 -0
- package/dist/starters/astro-storefront/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-storefront/scripts/gallery/gallery.astro +86 -0
- package/dist/starters/astro-storefront/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-storefront/scripts/gallery/sections.md +196 -0
- package/dist/starters/astro-storefront/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-storefront/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-storefront/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-storefront/scripts/make-sizes.mjs +31 -0
- package/dist/starters/astro-storefront/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-storefront/scripts/seed-shopify.mjs +208 -0
- package/dist/starters/astro-storefront/src/components/Actions.astro +31 -0
- package/dist/starters/astro-storefront/src/components/Footer.astro +206 -0
- package/dist/starters/astro-storefront/src/components/Header.astro +423 -0
- package/dist/starters/astro-storefront/src/components/Icon.astro +43 -0
- package/dist/starters/astro-storefront/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-storefront/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-storefront/src/components/Media.astro +37 -0
- package/dist/starters/astro-storefront/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-storefront/src/components/PieceList.astro +112 -0
- package/dist/starters/astro-storefront/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-storefront/src/components/PostList.astro +103 -0
- package/dist/starters/astro-storefront/src/components/Section.astro +47 -0
- package/dist/starters/astro-storefront/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-storefront/src/components/Sections.astro +89 -0
- package/dist/starters/astro-storefront/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-storefront/src/components/Tags.astro +68 -0
- package/dist/starters/astro-storefront/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-storefront/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-storefront/src/components/sections/CollectionGrid.astro +116 -0
- package/dist/starters/astro-storefront/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-storefront/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-storefront/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-storefront/src/components/sections/FeaturedProduct.astro +109 -0
- package/dist/starters/astro-storefront/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-storefront/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-storefront/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-storefront/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-storefront/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-storefront/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-storefront/src/components/sections/ProductRail.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-storefront/src/components/sections/ShopTheLook.astro +150 -0
- package/dist/starters/astro-storefront/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-storefront/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-storefront/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-storefront/src/components/shop/BagDrawer.astro +114 -0
- package/dist/starters/astro-storefront/src/components/shop/BagView.astro +241 -0
- package/dist/starters/astro-storefront/src/components/shop/Breadcrumbs.astro +63 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductCard.astro +142 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductGrid.astro +297 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductImage.astro +53 -0
- package/dist/starters/astro-storefront/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-storefront/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-storefront/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-storefront/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-storefront/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-storefront/src/content/pages/404.md +14 -0
- package/dist/starters/astro-storefront/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-storefront/src/content/pages/bag.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-storefront/src/content/pages/index.md +107 -0
- package/dist/starters/astro-storefront/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-storefront/src/content/pages/lookbook.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/privacy.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/search.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/shop.md +4 -0
- package/dist/starters/astro-storefront/src/content/pages/stockists.md +66 -0
- package/dist/starters/astro-storefront/src/content/products/car-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/products/field-coat.md +35 -0
- package/dist/starters/astro-storefront/src/content/products/gansey.md +20 -0
- package/dist/starters/astro-storefront/src/content/products/wrap-coat.md +16 -0
- package/dist/starters/astro-storefront/src/content.config.ts +563 -0
- package/dist/starters/astro-storefront/src/data/navigation.json +77 -0
- package/dist/starters/astro-storefront/src/data/scripts.json +29 -0
- package/dist/starters/astro-storefront/src/data/shop/catalogue.json +2431 -0
- package/dist/starters/astro-storefront/src/data/shop/store.json +7 -0
- package/dist/starters/astro-storefront/src/data/site.json +161 -0
- package/dist/starters/astro-storefront/src/data/stockists.json +81 -0
- package/dist/starters/astro-storefront/src/data/visibility.json +33 -0
- package/dist/starters/astro-storefront/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-storefront/src/galley/catalog.js +42 -0
- package/dist/starters/astro-storefront/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-storefront/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-storefront/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-storefront/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-storefront/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-storefront/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-storefront/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-storefront/src/galley/components/index.js +5 -0
- package/dist/starters/astro-storefront/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-storefront/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-storefront/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-storefront/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-storefront/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-storefront/src/galley/integration.js +21 -0
- package/dist/starters/astro-storefront/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-storefront/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-storefront/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-storefront/src/galley/schema.js +338 -0
- package/dist/starters/astro-storefront/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-storefront/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-storefront/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-storefront/src/galley/settings.json +18 -0
- package/dist/starters/astro-storefront/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-storefront/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-storefront/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-storefront/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-storefront/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-storefront/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-storefront/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-storefront/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-storefront/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-storefront/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-storefront/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-storefront/src/layouts/Base.astro +112 -0
- package/dist/starters/astro-storefront/src/lib/journal.ts +45 -0
- package/dist/starters/astro-storefront/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-storefront/src/lib/shop/data.ts +161 -0
- package/dist/starters/astro-storefront/src/lib/shop/loader.ts +30 -0
- package/dist/starters/astro-storefront/src/lib/shop/store.ts +332 -0
- package/dist/starters/astro-storefront/src/lib/shop/structured.ts +40 -0
- package/dist/starters/astro-storefront/src/lib/shop/types.ts +80 -0
- package/dist/starters/astro-storefront/src/lib/site.ts +181 -0
- package/dist/starters/astro-storefront/src/pages/404.astro +13 -0
- package/dist/starters/astro-storefront/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-storefront/src/pages/bag.astro +37 -0
- package/dist/starters/astro-storefront/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-storefront/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-storefront/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/[slug].astro +23 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/index.astro +66 -0
- package/dist/starters/astro-storefront/src/pages/products/[handle].astro +455 -0
- package/dist/starters/astro-storefront/src/pages/search.astro +137 -0
- package/dist/starters/astro-storefront/src/pages/search.json.ts +36 -0
- package/dist/starters/astro-storefront/src/pages/shop/[collection].astro +65 -0
- package/dist/starters/astro-storefront/src/pages/shop/index.astro +33 -0
- package/dist/starters/astro-storefront/src/scripts/shop.ts +742 -0
- package/dist/starters/astro-storefront/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-storefront/src/styles/global.css +662 -0
- package/dist/starters/astro-storefront/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-storefront/src/styles/tokens.css +181 -0
- package/dist/starters/astro-storefront/starter-notice.json +9 -0
- package/dist/starters/astro-storefront/starter.json +53 -0
- package/dist/starters/astro-storefront/tsconfig.json +8 -0
- package/dist/starters/astro-storefront/wrangler.jsonc +12 -0
- package/dist/web/assets/AppSettingsScreen-D9ZHXus9.js +1 -0
- package/dist/web/assets/BodyEditor-DAJ8MM41.js +1 -0
- package/dist/web/assets/BrandScreen-BuYHSbp6.js +1 -0
- package/dist/web/assets/CollectionScreen-DVXLw7MF.js +1 -0
- package/dist/web/assets/EditorScreen-8vhIBZu1.js +6 -0
- package/dist/web/assets/FormsScreen-BbngAAzO.js +4 -0
- package/dist/web/assets/HistoryScreen-CubZj8QG.js +4 -0
- package/dist/web/assets/ImportScreen-DA8mZ3-S.css +1 -0
- package/dist/web/assets/ImportScreen-eVAPjnE2.js +1 -0
- package/dist/web/assets/InboxScreen-Azqy6w4_.js +2 -0
- package/dist/web/assets/MediaLibraryPane-Dpcxede9.css +1 -0
- package/dist/web/assets/MediaLibraryPane-jMuqbnLa.js +1 -0
- package/dist/web/assets/MediaScreen-BQYVSf8P.css +1 -0
- package/dist/web/assets/MediaScreen-mg2CATkP.js +1 -0
- package/dist/web/assets/NewSiteScreen-D9zWX6oE.js +1 -0
- package/dist/web/assets/NewSiteScreen-RQ3ccqTf.css +1 -0
- package/dist/web/assets/Online-bYUu0ETZ.js +1 -0
- package/dist/web/assets/OpenScreen-DR1GhNWX.js +1 -0
- package/dist/web/assets/PluginsScreen-1qEv-u35.js +3 -0
- package/dist/web/assets/PreviewControls-Du87hOEG.js +1 -0
- package/dist/web/assets/PreviewPane-SH9rzgVw.css +1 -0
- package/dist/web/assets/PreviewPane-a06mELw4.js +3 -0
- package/dist/web/assets/ProofScreen-CZfFbHFS.js +7 -0
- package/dist/web/assets/ProofScreen-fG_mV-V4.css +1 -0
- package/dist/web/assets/ProviderSettings-BOiCGeSI.js +1 -0
- package/dist/web/assets/ProviderSettings-COu_e6Mx.css +1 -0
- package/dist/web/assets/PublishDialog-CSKU1lfx.js +3 -0
- package/dist/web/assets/ReachNote-CZYr1oL0.js +1 -0
- package/dist/web/assets/ReachNote-DhT9Cta-.css +1 -0
- package/dist/web/assets/RedirectsScreen-DeR_yuj5.js +3 -0
- package/dist/web/assets/RedirectsScreen-QTaAXMh-.css +1 -0
- package/dist/web/assets/ScriptsScreen-BXY-kqbq.js +2 -0
- package/dist/web/assets/ScriptsScreen-DMdmwkY4.css +1 -0
- package/dist/web/assets/SiteHomeScreen-DOrqAteL.js +1 -0
- package/dist/web/assets/SiteSettingsScreen-B8xQnhjd.js +4 -0
- package/dist/web/assets/SourceView-B5SoYjUF.js +1 -0
- package/dist/web/assets/VisibilityScreen-B4iOATC4.js +2 -0
- package/dist/web/assets/brand-BYux4UiC.css +1 -0
- package/dist/web/assets/changes-BtRtvJ12.js +1 -0
- package/dist/web/assets/changes-DLBkrfUR.js +1 -0
- package/dist/web/assets/chrome-Brnq5kGb.js +1 -0
- package/dist/web/assets/clickToEdit-CV1WT3k1.js +1 -0
- package/dist/web/assets/coalesce-BG8d12M7.js +1 -0
- package/dist/web/assets/codemirror-CWul2x0p.js +11 -0
- package/dist/web/assets/codemirror-g0T4-Tsm.js +1 -0
- package/dist/web/assets/codemirror-languages-RlWkzgfM.js +28 -0
- package/dist/web/assets/common-BA1skXL0.css +1 -0
- package/dist/web/assets/common-BdVEb5Zs.js +2 -0
- package/dist/web/assets/cost-BhkzE86J.js +1 -0
- package/dist/web/assets/events-CTTFdOf-.js +1 -0
- package/dist/web/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/web/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/web/assets/hashScroll-CSp59QpH.js +1 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/web/assets/index-Djh-DSIT.js +10 -0
- package/dist/web/assets/index-Pd8oyXqS.css +1 -0
- package/dist/web/assets/jobs-BHawhnH2.js +1 -0
- package/dist/web/assets/listPlan-BXud7Oxv.js +1 -0
- package/dist/web/assets/marked.esm-CYtFtVHW.js +75 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-italic-CSPGnFdO.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-italic-kJKFiXvB.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-italic-DTr-ymY4.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2 +0 -0
- package/dist/web/assets/outside-CZs19WbV.css +1 -0
- package/dist/web/assets/outside-DaBM5h5B.js +2 -0
- package/dist/web/assets/paths-C8ESZJVU.js +1 -0
- package/dist/web/assets/prefs-BcNyBxxO.js +1 -0
- package/dist/web/assets/proof-BnPD-0Jr.css +1 -0
- package/dist/web/assets/proof-zOrlMTSg.js +2 -0
- package/dist/web/assets/purify.es-BQJV6A36.js +3 -0
- package/dist/web/assets/renderMarkdown-R9_GwOSq.js +1 -0
- package/dist/web/assets/scaffold-BHkqc62J.js +1 -0
- package/dist/web/assets/site-DJUEXLHW.js +1 -0
- package/dist/web/assets/sites-CGDZymBT.js +1 -0
- package/dist/web/assets/store-C95UZPFo.js +1 -0
- package/dist/web/assets/ui-C6O2tW4c.js +3 -0
- package/dist/web/assets/useBrand-DSAfWS_y.js +1 -0
- package/dist/web/assets/usePlugins-acEOSN5a.js +1 -0
- package/dist/web/assets/usePlugins-hom8Btua.css +1 -0
- package/dist/web/assets/useVisibility-B8cm5WkO.css +1 -0
- package/dist/web/assets/useVisibility-kpZhLMTT.js +3 -0
- package/dist/web/index.html +23 -0
- package/dist/web/theme.js +8 -0
- package/package.json +49 -3
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Checks that the production build and `astro dev` set the same type: every
|
|
3
|
+
// font file loads in both, and every piece of text on every page has the same
|
|
4
|
+
// font properties and the same rendered width. A difference means a page in
|
|
5
|
+
// Galley's Proof (live site beside the proposed page, which the dev server
|
|
6
|
+
// draws) would look like two different fonts.
|
|
7
|
+
//
|
|
8
|
+
// PLAYWRIGHT_MODULES=/path/to/node_modules/ node scripts/check-type.mjs
|
|
9
|
+
//
|
|
10
|
+
// It builds the site into a temporary folder, serves it, starts `astro dev`
|
|
11
|
+
// beside it and compares the two in headless Chromium, at 1440 and 390 wide:
|
|
12
|
+
// each text element's font properties and width, and the first screen's
|
|
13
|
+
// pixels with the photographs hidden.
|
|
14
|
+
// Options:
|
|
15
|
+
// --looks every look in starter.json, not only the current tokens
|
|
16
|
+
// --linked run from a temporary copy whose node_modules is a link to
|
|
17
|
+
// this one (how pnpm, shared installs and preview copies
|
|
18
|
+
// lay a site out: the case that once broke the dev fonts)
|
|
19
|
+
// --pages 6 how many pages to compare (default: all)
|
|
20
|
+
// --port 4736 first of the three ports it uses
|
|
21
|
+
// Like scripts/make-thumbnails.mjs it installs nothing: PLAYWRIGHT_MODULES names
|
|
22
|
+
// a node_modules folder that has playwright-core, and Chromium is the one
|
|
23
|
+
// Playwright has cached (or PLAYWRIGHT_CHROMIUM). Stop your own `astro dev`
|
|
24
|
+
// first: Astro runs one dev server per project.
|
|
25
|
+
|
|
26
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
27
|
+
import { cpSync, createReadStream, existsSync, mkdtempSync, readdirSync, readFileSync, rmSync, statSync, symlinkSync } from "node:fs";
|
|
28
|
+
import { createServer } from "node:http";
|
|
29
|
+
import { createRequire } from "node:module";
|
|
30
|
+
import { tmpdir } from "node:os";
|
|
31
|
+
import { dirname, extname, join, relative, resolve, sep } from "node:path";
|
|
32
|
+
import { fileURLToPath } from "node:url";
|
|
33
|
+
import { parseArgs } from "node:util";
|
|
34
|
+
import sharp from "sharp";
|
|
35
|
+
|
|
36
|
+
const HERE = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
37
|
+
const { values } = parseArgs({ options: { looks: { type: "boolean" }, linked: { type: "boolean" }, pages: { type: "string" }, port: { type: "string" } } });
|
|
38
|
+
const PORT = Number(values.port ?? 4736);
|
|
39
|
+
const fail = (message) => {
|
|
40
|
+
console.error(`check-type: ${message}`);
|
|
41
|
+
process.exit(2);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const modules = process.env.PLAYWRIGHT_MODULES;
|
|
45
|
+
if (!modules) fail("set PLAYWRIGHT_MODULES to a node_modules folder that contains playwright-core (this script installs nothing).");
|
|
46
|
+
let chromium;
|
|
47
|
+
try {
|
|
48
|
+
({ chromium } = createRequire(modules.endsWith("/") ? modules : `${modules}/`)("playwright-core"));
|
|
49
|
+
} catch (error) {
|
|
50
|
+
fail(`could not load playwright-core from ${modules} (${error.message.split("\n")[0]}).`);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const work = mkdtempSync(join(tmpdir(), "galley-check-type-"));
|
|
54
|
+
let ROOT = HERE;
|
|
55
|
+
if (values.linked) {
|
|
56
|
+
ROOT = join(work, "site");
|
|
57
|
+
const skip = new Set(["node_modules", "dist", ".astro"].map((name) => join(HERE, name)));
|
|
58
|
+
cpSync(HERE, ROOT, { recursive: true, filter: (src) => !skip.has(src) });
|
|
59
|
+
symlinkSync(join(HERE, "node_modules"), join(ROOT, "node_modules"));
|
|
60
|
+
}
|
|
61
|
+
const starter = JSON.parse(readFileSync(join(HERE, "starter.json"), "utf8"));
|
|
62
|
+
const looks = values.looks ? starter.looks.map((look) => look.id) : [null];
|
|
63
|
+
const astro = join(ROOT, "node_modules/astro/bin/astro.mjs");
|
|
64
|
+
const envFor = (look) => ({ PATH: process.env.PATH, HOME: process.env.HOME, ASTRO_TELEMETRY_DISABLED: "1", ...(look ? { SECTION_GALLERY: "1", SECTION_GALLERY_LOOK: look } : {}) });
|
|
65
|
+
|
|
66
|
+
const TYPES = { ".html": "text/html; charset=utf-8", ".css": "text/css", ".js": "text/javascript", ".svg": "image/svg+xml", ".webp": "image/webp", ".jpg": "image/jpeg", ".png": "image/png", ".woff2": "font/woff2", ".json": "application/json", ".xml": "application/xml", ".txt": "text/plain" };
|
|
67
|
+
function serve(dir, port) {
|
|
68
|
+
const server = createServer((req, res) => {
|
|
69
|
+
let file = join(dir, decodeURIComponent(new URL(req.url, "http://x").pathname));
|
|
70
|
+
if (!file.startsWith(dir)) return res.writeHead(403).end();
|
|
71
|
+
if (existsSync(file) && statSync(file).isDirectory()) file = join(file, "index.html");
|
|
72
|
+
if (!existsSync(file)) return res.writeHead(404).end();
|
|
73
|
+
res.writeHead(200, { "Content-Type": TYPES[extname(file)] ?? "application/octet-stream" });
|
|
74
|
+
createReadStream(file).pipe(res);
|
|
75
|
+
});
|
|
76
|
+
return new Promise((ok) => server.listen(port, "127.0.0.1", () => ok(server)));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async function startDev(look, port) {
|
|
80
|
+
const child = spawn(process.execPath, [astro, "dev", "--port", String(port), "--host", "127.0.0.1"], { cwd: ROOT, env: envFor(look), stdio: ["ignore", "pipe", "pipe"] });
|
|
81
|
+
let log = "";
|
|
82
|
+
child.stdout.on("data", (d) => (log += d));
|
|
83
|
+
child.stderr.on("data", (d) => (log += d));
|
|
84
|
+
const t0 = Date.now();
|
|
85
|
+
for (;;) {
|
|
86
|
+
if (child.exitCode !== null) fail(`astro dev stopped:\n${log.slice(-800)}`);
|
|
87
|
+
if (await fetch(`http://127.0.0.1:${port}/`).then((r) => r.ok, () => false)) return child;
|
|
88
|
+
if (Date.now() - t0 > 90000) fail(`astro dev did not start:\n${log.slice(-800)}`);
|
|
89
|
+
await new Promise((ok) => setTimeout(ok, 400));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Every text element's font properties and width, the fonts in use, and font requests that failed. */
|
|
94
|
+
async function read(browser, url, width) {
|
|
95
|
+
const page = await browser.newPage({ viewport: { width, height: 900 }, reducedMotion: "reduce" });
|
|
96
|
+
const refused = [];
|
|
97
|
+
page.on("response", (r) => { if (/\.(woff2?|ttf|otf)(\?|$)/.test(r.url()) && r.status() >= 400) refused.push(`${r.status()} ${r.url().split("/").pop()}`); });
|
|
98
|
+
await page.goto(url, { waitUntil: "networkidle" });
|
|
99
|
+
await page.evaluate(() => document.fonts.ready);
|
|
100
|
+
await page.waitForTimeout(200);
|
|
101
|
+
const data = await page.evaluate(() => {
|
|
102
|
+
const rows = {};
|
|
103
|
+
const seen = new Set();
|
|
104
|
+
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
|
|
105
|
+
let n = 0;
|
|
106
|
+
while (walker.nextNode()) {
|
|
107
|
+
const text = walker.currentNode;
|
|
108
|
+
const el = text.parentElement;
|
|
109
|
+
if (!text.data.trim() || seen.has(el) || el.closest("script, style, template, noscript, astro-dev-toolbar, vite-error-overlay")) continue;
|
|
110
|
+
seen.add(el);
|
|
111
|
+
const cs = getComputedStyle(el);
|
|
112
|
+
const range = document.createRange();
|
|
113
|
+
range.selectNodeContents(el);
|
|
114
|
+
const key = `${el.tagName.toLowerCase()}${[...el.classList].filter((c) => !c.startsWith("astro-")).map((c) => "." + c).join("")} “${text.data.trim().slice(0, 28)}” #${n++}`;
|
|
115
|
+
rows[key] = { family: cs.fontFamily.split(",")[0], weight: cs.fontWeight, style: cs.fontStyle, size: cs.fontSize, opticalSizing: cs.fontOpticalSizing, variations: cs.fontVariationSettings, synthesis: cs.fontSynthesis, tracking: cs.letterSpacing, leading: cs.lineHeight, width: Math.round(range.getBoundingClientRect().width * 100) / 100 };
|
|
116
|
+
}
|
|
117
|
+
const faces = [...document.fonts].filter((f) => f.status === "loaded").map((f) => `${f.family.replace(/"/g, "")} ${f.style} ${f.weight}`);
|
|
118
|
+
return { rows, faces: [...new Set(faces)].sort() };
|
|
119
|
+
});
|
|
120
|
+
// The first screen as pixels, for an exact comparison of the type: the dev
|
|
121
|
+
// toolbar and the photographs hidden (which srcset copy of a photograph the
|
|
122
|
+
// browser takes can depend on what it happened to load first).
|
|
123
|
+
await page.addStyleTag({ content: "astro-dev-toolbar { display: none !important; } img, video { visibility: hidden !important; }" });
|
|
124
|
+
await page.evaluate(() => scrollTo(0, 0));
|
|
125
|
+
const shot = await page.screenshot();
|
|
126
|
+
await page.close();
|
|
127
|
+
return { ...data, refused, shot };
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const results = [];
|
|
131
|
+
let browser;
|
|
132
|
+
const children = [];
|
|
133
|
+
const servers = [];
|
|
134
|
+
try {
|
|
135
|
+
browser = await chromium.launch(process.env.PLAYWRIGHT_CHROMIUM ? { executablePath: process.env.PLAYWRIGHT_CHROMIUM } : {});
|
|
136
|
+
for (const look of looks) {
|
|
137
|
+
const name = look ?? "current tokens";
|
|
138
|
+
const outDir = join(work, `dist-${look ?? "tokens"}`);
|
|
139
|
+
const built = spawnSync(process.execPath, [astro, "build", "--outDir", outDir], { cwd: ROOT, env: envFor(look), encoding: "utf8" });
|
|
140
|
+
if (built.status !== 0) fail(`the build failed:\n${built.stdout}\n${built.stderr}`);
|
|
141
|
+
const server = await serve(outDir, PORT);
|
|
142
|
+
servers.push(server);
|
|
143
|
+
const dev = await startDev(look, PORT + 1);
|
|
144
|
+
children.push(dev);
|
|
145
|
+
const pages = [];
|
|
146
|
+
const walk = (dir) => {
|
|
147
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
148
|
+
if (entry.isDirectory()) walk(join(dir, entry.name));
|
|
149
|
+
else if (entry.name === "index.html") pages.push("/" + relative(outDir, dir).split(sep).filter(Boolean).map((p) => p + "/").join(""));
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
walk(outDir);
|
|
153
|
+
const list = pages.filter((p) => !p.startsWith("/__gallery")).sort().slice(0, values.pages ? Number(values.pages) : undefined);
|
|
154
|
+
let compared = 0, differ = 0, refused = 0, screens = 0;
|
|
155
|
+
const notes = [];
|
|
156
|
+
for (const path of list) {
|
|
157
|
+
for (const width of [1440, 390]) {
|
|
158
|
+
const a = await read(browser, `http://127.0.0.1:${PORT}${path}`, width);
|
|
159
|
+
const b = await read(browser, `http://127.0.0.1:${PORT + 1}${path}`, width);
|
|
160
|
+
refused += a.refused.length + b.refused.length;
|
|
161
|
+
for (const r of a.refused) notes.push(`build refused a font on ${path}: ${r}`);
|
|
162
|
+
for (const r of b.refused) notes.push(`dev refused a font on ${path}: ${r}`);
|
|
163
|
+
const [pa, pb] = await Promise.all([a.shot, b.shot].map((png) => sharp(png).raw().toBuffer()));
|
|
164
|
+
let pixels = 0;
|
|
165
|
+
for (let i = 0; i < Math.min(pa.length, pb.length); i++) if (pa[i] !== pb[i]) pixels++;
|
|
166
|
+
if (pixels || pa.length !== pb.length) { screens++; notes.push(`${path} @${width}: the first screen differs in ${pixels} channel values`); }
|
|
167
|
+
if (a.faces.join() !== b.faces.join()) notes.push(`${path} @${width}: fonts in use differ — build [${a.faces.join("; ")}] dev [${b.faces.join("; ")}]`);
|
|
168
|
+
for (const [key, va] of Object.entries(a.rows)) {
|
|
169
|
+
const vb = b.rows[key];
|
|
170
|
+
if (!vb) continue;
|
|
171
|
+
compared++;
|
|
172
|
+
const props = Object.keys(va).filter((p) => va[p] !== vb[p]);
|
|
173
|
+
if (props.length) {
|
|
174
|
+
differ++;
|
|
175
|
+
if (notes.length < 40) notes.push(`${path} @${width} ${key.replace(/ #\d+$/, "")}: ${props.map((p) => `${p} build ${va[p]} · dev ${vb[p]}`).join("; ")}`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
dev.kill();
|
|
181
|
+
await new Promise((ok) => server.close(ok));
|
|
182
|
+
results.push({ name, pages: list.length, compared, differ, refused, screens, notes });
|
|
183
|
+
}
|
|
184
|
+
} finally {
|
|
185
|
+
for (const child of children) if (child.exitCode === null) child.kill();
|
|
186
|
+
for (const server of servers) server.close();
|
|
187
|
+
await browser?.close();
|
|
188
|
+
rmSync(work, { recursive: true, force: true });
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
let ok = true;
|
|
192
|
+
for (const r of results) {
|
|
193
|
+
const clean = r.differ === 0 && r.refused === 0 && r.screens === 0 && !r.notes.length;
|
|
194
|
+
ok &&= clean;
|
|
195
|
+
console.log(`${clean ? "ok " : "FAIL"} ${r.name}${values.linked ? " (linked node_modules)" : ""}: ${r.pages} pages × 2 widths, ${r.compared} text elements compared, ${r.differ} differ, ${r.screens} first screens differ by a pixel, ${r.refused} font requests refused`);
|
|
196
|
+
for (const note of r.notes) console.log(` ${note}`);
|
|
197
|
+
}
|
|
198
|
+
process.exit(ok ? 0 : 1);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The section gallery (see integration.mjs). Three kinds of page:
|
|
3
|
+
// /__gallery/ every section type, one after another
|
|
4
|
+
// /__gallery/sections/<type>/ one section type alone, for its thumbnail
|
|
5
|
+
// /__gallery/templates/<id>/ one template, rendered as its page would be
|
|
6
|
+
// Sections come from ./sections.md; templates from galley.config.json
|
|
7
|
+
// `templates`. Both are validated against src/content.config.ts, so a
|
|
8
|
+
// template that would not build as a page fails here too.
|
|
9
|
+
import Base from "../../src/layouts/Base.astro";
|
|
10
|
+
import Sections from "../../src/components/Sections.astro";
|
|
11
|
+
import LookbookEntry from "../../src/components/LookbookEntry.astro";
|
|
12
|
+
import { lookbookSchema, pageSchema } from "../../src/content.config";
|
|
13
|
+
import config from "../../galley.config.json";
|
|
14
|
+
|
|
15
|
+
export async function getStaticPaths() {
|
|
16
|
+
const fixtures = import.meta.glob("./sections.md", { eager: true }) as Record<string, { frontmatter: Record<string, unknown> }>;
|
|
17
|
+
const fixture = Object.values(fixtures)[0]!.frontmatter;
|
|
18
|
+
const files = import.meta.glob("../../galley/templates/*.md", { eager: true }) as Record<string, { frontmatter: Record<string, unknown>; Content: unknown }>;
|
|
19
|
+
const sections = (fixture.sections as Array<{ type: string }>) ?? [];
|
|
20
|
+
const templates = config.templates.map((template) => {
|
|
21
|
+
const file = Object.entries(files).find(([path]) => path.endsWith(`/${template.file.split("/").pop()}`));
|
|
22
|
+
if (!file) throw new Error(`section-gallery: ${template.file} is missing.`);
|
|
23
|
+
return { template, module: file[1] };
|
|
24
|
+
});
|
|
25
|
+
return [
|
|
26
|
+
{ params: { path: undefined }, props: { kind: "index", sections } },
|
|
27
|
+
...sections.map((section) => ({ params: { path: `sections/${section.type}` }, props: { kind: "section", sections: [section] } })),
|
|
28
|
+
...templates.map(({ template, module }) => ({
|
|
29
|
+
params: { path: `templates/${template.id}` },
|
|
30
|
+
props: { kind: "template", collection: template.collection, frontmatter: module.frontmatter, Content: module.Content },
|
|
31
|
+
})),
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface Props {
|
|
36
|
+
kind: "index" | "section" | "template";
|
|
37
|
+
sections?: Array<{ type: string }>;
|
|
38
|
+
collection?: string;
|
|
39
|
+
frontmatter?: Record<string, unknown>;
|
|
40
|
+
Content?: any;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const { kind, sections = [], collection, frontmatter = {}, Content } = Astro.props;
|
|
44
|
+
const page = kind === "template" && collection === "pages" ? pageSchema.parse(frontmatter) : undefined;
|
|
45
|
+
const lookbook = kind === "template" && collection === "lookbooks" ? lookbookSchema.parse(frontmatter) : undefined;
|
|
46
|
+
const shown = kind === "template" ? [] : (pageSchema.parse({ title: "gallery", description: "gallery", sections }).sections as Array<{ type: string }>);
|
|
47
|
+
const first = shown[0]?.type ?? page?.sections[0]?.type;
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
{
|
|
51
|
+
page && (
|
|
52
|
+
<Base title={page.title} description={page.description} noindex overlayHeader={first === "campaign-hero"}>
|
|
53
|
+
<Sections sections={page.sections as Array<{ type: string }>} title={page.title} />
|
|
54
|
+
{Content && (
|
|
55
|
+
<div class="section tone-default">
|
|
56
|
+
<div class="container prose">
|
|
57
|
+
<Content />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
61
|
+
</Base>
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
{
|
|
65
|
+
lookbook && (
|
|
66
|
+
<Base title={lookbook.title} description={lookbook.summary} noindex>
|
|
67
|
+
<LookbookEntry {...lookbook} sections={lookbook.sections as Array<{ type: string }>} />
|
|
68
|
+
</Base>
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
{
|
|
72
|
+
kind !== "template" && (
|
|
73
|
+
<Base title={kind === "index" ? "gallery" : (shown[0]?.type ?? "gallery")} noindex overlayHeader={kind === "section" && first === "campaign-hero"}>
|
|
74
|
+
<Sections sections={shown} title={kind} />
|
|
75
|
+
</Base>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// The section gallery: an Astro integration that adds /__gallery/ routes —
|
|
2
|
+
// every section type rendered alone (from ./sections.md) and every page
|
|
3
|
+
// template in galley/templates/ rendered as a page. scripts/make-thumbnails.mjs
|
|
4
|
+
// builds the site with it and photographs the result. astro.config.ts adds it
|
|
5
|
+
// only when SECTION_GALLERY is set, so a normal build never contains these
|
|
6
|
+
// pages, and they are never in the sitemap or the navigation.
|
|
7
|
+
//
|
|
8
|
+
// SECTION_GALLERY_LOOK=<id> serves src/styles/themes/<id>.css in place of
|
|
9
|
+
// src/styles/tokens.css for that build — the same as copying the file over,
|
|
10
|
+
// without touching the working tree.
|
|
11
|
+
|
|
12
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
13
|
+
import { fileURLToPath } from "node:url";
|
|
14
|
+
|
|
15
|
+
export default function sectionGallery() {
|
|
16
|
+
return {
|
|
17
|
+
name: "section-gallery",
|
|
18
|
+
hooks: {
|
|
19
|
+
"astro:config:setup": ({ config, injectRoute, updateConfig }) => {
|
|
20
|
+
injectRoute({ pattern: "/__gallery/[...path]", entrypoint: new URL("./gallery.astro", import.meta.url), prerender: true });
|
|
21
|
+
|
|
22
|
+
const look = process.env.SECTION_GALLERY_LOOK;
|
|
23
|
+
if (!look) return;
|
|
24
|
+
const tokens = fileURLToPath(new URL("src/styles/tokens.css", config.root));
|
|
25
|
+
const theme = fileURLToPath(new URL(`src/styles/themes/${look}.css`, config.root));
|
|
26
|
+
if (!existsSync(theme)) throw new Error(`section-gallery: there is no look called “${look}” (expected ${theme}).`);
|
|
27
|
+
updateConfig({
|
|
28
|
+
vite: {
|
|
29
|
+
plugins: [
|
|
30
|
+
{
|
|
31
|
+
name: "section-gallery-look",
|
|
32
|
+
enforce: "pre",
|
|
33
|
+
load(id) {
|
|
34
|
+
if (id.split("?")[0] === tokens) return readFileSync(theme, "utf8");
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
# The section gallery's fixture: one example of every section type, in the
|
|
3
|
+
# order of galley.config.json. scripts/make-thumbnails.mjs photographs each
|
|
4
|
+
# one alone (galley/sections/<type>.webp). Keep the examples short enough to
|
|
5
|
+
# read in a 640-pixel picture, and keep one entry per type.
|
|
6
|
+
title: Section gallery
|
|
7
|
+
description: Every section type, rendered alone.
|
|
8
|
+
sections:
|
|
9
|
+
- type: campaign-hero
|
|
10
|
+
eyebrow: Autumn–Winter 2026
|
|
11
|
+
heading: The *long* afternoon.
|
|
12
|
+
text: Eight coats, shot on a harbour wall in the last two hours of light.
|
|
13
|
+
cta:
|
|
14
|
+
label: See the lookbook
|
|
15
|
+
href: /collections/aw26-the-long-afternoon/
|
|
16
|
+
image: /images/campaign/aw26-harbour-wall.webp
|
|
17
|
+
imageAlt: A woman in a long rust-coloured coat stands against a lime-washed harbour wall, her shadow thrown long across it by a low sun.
|
|
18
|
+
size: tall
|
|
19
|
+
imageFocus: right
|
|
20
|
+
- type: split-editorial
|
|
21
|
+
tone: muted
|
|
22
|
+
eyebrow: The workroom
|
|
23
|
+
heading: Every coat is cut on a table you can see *from the street*.
|
|
24
|
+
text: Four of us, one long table, and the windows of a rope-maker's loft.
|
|
25
|
+
image: /images/atelier/workroom.webp
|
|
26
|
+
imageAlt: "The Caddow workroom: a long cutting table under tall windows, rolls of undyed cloth and a rail of coats, low sun across the floor."
|
|
27
|
+
ratio: landscape
|
|
28
|
+
cta:
|
|
29
|
+
label: Visit the atelier
|
|
30
|
+
href: /atelier/
|
|
31
|
+
- type: lookbook-grid
|
|
32
|
+
heading: The *hour before dark*
|
|
33
|
+
lookbook: aw26-the-long-afternoon
|
|
34
|
+
limit: 3
|
|
35
|
+
columns: 3
|
|
36
|
+
captions: false
|
|
37
|
+
- type: look
|
|
38
|
+
eyebrow: Look 01
|
|
39
|
+
heading: The field coat
|
|
40
|
+
image: /images/lookbooks/aw26/look-01.webp
|
|
41
|
+
imageAlt: A woman in an open, undyed wool field coat and wide dark trousers walks along the foot of a sunlit wall.
|
|
42
|
+
pieces:
|
|
43
|
+
- name: Field coat
|
|
44
|
+
detail: Undyed Shetland wool
|
|
45
|
+
price: £640
|
|
46
|
+
- name: Rib polo
|
|
47
|
+
detail: Lambswool, oat
|
|
48
|
+
price: £210
|
|
49
|
+
- type: gallery
|
|
50
|
+
heading: A week at the table
|
|
51
|
+
layout: mosaic
|
|
52
|
+
items:
|
|
53
|
+
- image: /images/atelier/workroom.webp
|
|
54
|
+
imageAlt: "The Caddow workroom: a long cutting table under tall windows, rolls of undyed cloth and a rail of coats, low sun across the floor."
|
|
55
|
+
- image: /images/atelier/weave.webp
|
|
56
|
+
imageAlt: Close up, the twill of undyed Shetland wool and its loose selvedge, in raking light.
|
|
57
|
+
- image: /images/atelier/hands.webp
|
|
58
|
+
imageAlt: Hands marking undyed wool with tailor's chalk along a wooden rule.
|
|
59
|
+
- image: /images/lookbooks/aw26/look-03.webp
|
|
60
|
+
imageAlt: An older woman in a long belted bone-coloured wrap coat stands side-on to a wall, her shadow crisp beside her.
|
|
61
|
+
- image: /images/lookbooks/ss26/look-02.webp
|
|
62
|
+
imageAlt: An older woman in a light putty trench walks down pale steps with the arch's shadow across her.
|
|
63
|
+
- type: image-band
|
|
64
|
+
image: /images/campaign/wall-shadow.webp
|
|
65
|
+
imageAlt: A coat hangs from an iron hook on a long sunlit wall, its shadow stretched out beside it.
|
|
66
|
+
- type: quote
|
|
67
|
+
quote: I wanted a coat you could sleep in on a train and still wear to a funeral the next morning.
|
|
68
|
+
name: Hesper Lowe
|
|
69
|
+
role: Founder and designer
|
|
70
|
+
image: /images/people/hesper-lowe.webp
|
|
71
|
+
imageAlt: Hesper Lowe, Caddow's founder, by the workroom window with a tape measure round her neck.
|
|
72
|
+
size: medium
|
|
73
|
+
- type: statement
|
|
74
|
+
eyebrow: The label
|
|
75
|
+
heading: We make *coats*, and the knits that go under them. Forty of each.
|
|
76
|
+
- type: pieces
|
|
77
|
+
heading: Four to begin with
|
|
78
|
+
columns: 4
|
|
79
|
+
items:
|
|
80
|
+
- image: /images/pieces/field-coat.webp
|
|
81
|
+
imageAlt: The undyed wool field coat on a wooden hanger against a sunlit white wall.
|
|
82
|
+
name: Field coat
|
|
83
|
+
price: £640
|
|
84
|
+
- image: /images/pieces/rib-polo.webp
|
|
85
|
+
imageAlt: An oat rib-knit polo folded on a stone ledge in low sun.
|
|
86
|
+
name: Rib polo
|
|
87
|
+
price: £210
|
|
88
|
+
- image: /images/pieces/gansey.webp
|
|
89
|
+
imageAlt: A navy fisherman's gansey laid flat on unbleached linen, its stitch pattern caught by low light.
|
|
90
|
+
name: Gansey
|
|
91
|
+
price: £260
|
|
92
|
+
- image: /images/pieces/blanket-scarf.webp
|
|
93
|
+
imageAlt: A folded oat lambswool scarf with a single blue stripe, draped over the back of a wooden chair.
|
|
94
|
+
name: Blanket scarf
|
|
95
|
+
price: £120
|
|
96
|
+
- type: story
|
|
97
|
+
layout: two-column
|
|
98
|
+
dropCap: true
|
|
99
|
+
heading: Forty is not a marketing number
|
|
100
|
+
text: |-
|
|
101
|
+
Caddow began with a single coat, cut forty times on a borrowed table. Forty is what one cutter can make in a month without hurrying, and what one roll of good Shetland will give if you lay the pattern carefully.
|
|
102
|
+
- type: journal-list
|
|
103
|
+
heading: Notes from the workroom
|
|
104
|
+
limit: 3
|
|
105
|
+
- type: stockists
|
|
106
|
+
heading: Stockists
|
|
107
|
+
groups:
|
|
108
|
+
- marrowby
|
|
109
|
+
- vellamy
|
|
110
|
+
- kestrelmouth
|
|
111
|
+
- type: marquee
|
|
112
|
+
size: large
|
|
113
|
+
items:
|
|
114
|
+
- Undyed Shetland
|
|
115
|
+
- Waxed cotton
|
|
116
|
+
- Forty of each
|
|
117
|
+
- Cut in Marrowby
|
|
118
|
+
- type: newsletter
|
|
119
|
+
heading: Four letters a year, *and no more*.
|
|
120
|
+
text: When a lookbook is ready, when a coat comes back. Nothing else.
|
|
121
|
+
- type: cta
|
|
122
|
+
tone: inverse
|
|
123
|
+
heading: Come and try one on.
|
|
124
|
+
text: The workroom is open Thursday to Saturday, ten till five.
|
|
125
|
+
cta:
|
|
126
|
+
label: Plan a visit
|
|
127
|
+
href: /contact/
|
|
128
|
+
image: /images/campaign/wall-shadow.webp
|
|
129
|
+
imageAlt: A coat hangs from an iron hook on a long sunlit wall, its shadow stretched out beside it.
|
|
130
|
+
- type: contact
|
|
131
|
+
heading: Write to the *workroom*.
|
|
132
|
+
items:
|
|
133
|
+
- label: Email
|
|
134
|
+
value: studio@example.com
|
|
135
|
+
href: mailto:studio@example.com
|
|
136
|
+
- label: The workroom
|
|
137
|
+
value: The Ropewalk, Marrowby
|
|
138
|
+
- type: film
|
|
139
|
+
eyebrow: Film
|
|
140
|
+
heading: The Long Afternoon, *in two minutes and forty-eight seconds*.
|
|
141
|
+
image: /images/film/the-long-afternoon.webp
|
|
142
|
+
imageAlt: "A still from the film: a woman in a rust coat walks the length of the harbour wall at sunset."
|
|
143
|
+
href: https://www.example.com/films/the-long-afternoon
|
|
144
|
+
duration: "2:48"
|
|
145
|
+
- type: form
|
|
146
|
+
eyebrow: For shops
|
|
147
|
+
heading: Carry Caddow in your *town*.
|
|
148
|
+
form: stockist
|
|
149
|
+
- type: chapters
|
|
150
|
+
eyebrow: In the workroom
|
|
151
|
+
heading: How a coat is made, *in 3 days*
|
|
152
|
+
items:
|
|
153
|
+
- heading: Day one, the cloth
|
|
154
|
+
text: The Shetland comes off the roll and rests for a day before anyone cuts it.
|
|
155
|
+
image: /images/atelier/weave.webp
|
|
156
|
+
imageAlt: Close up, the twill of undyed Shetland wool and its loose selvedge, in raking light.
|
|
157
|
+
- heading: Day two, the cut
|
|
158
|
+
text: Marked out in chalk along a wooden rule and cut by hand, forty at a time.
|
|
159
|
+
image: /images/atelier/hands.webp
|
|
160
|
+
imageAlt: Hands marking undyed wool with tailor's chalk along a wooden rule.
|
|
161
|
+
- type: credits
|
|
162
|
+
eyebrow: Credits
|
|
163
|
+
columns: 3
|
|
164
|
+
items:
|
|
165
|
+
- role: Photography
|
|
166
|
+
name: Rafe Dunmore
|
|
167
|
+
- role: Styling
|
|
168
|
+
name: Lou Castellane
|
|
169
|
+
- role: Casting
|
|
170
|
+
name: Mina Sorell
|
|
171
|
+
---
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Puts generated photographs into their slots.
|
|
3
|
+
//
|
|
4
|
+
// node scripts/ingest-photos.mjs <folder> [--dry-run] [--no-thumbnails]
|
|
5
|
+
//
|
|
6
|
+
// The folder holds images named by shot id from galley/photography/shots.json
|
|
7
|
+
// — campaign-aw26.png, aw26-look-01.jpg, … — in any common format (JPEG, PNG,
|
|
8
|
+
// WebP, AVIF, TIFF) and any size. For each shot that has a file, this:
|
|
9
|
+
//
|
|
10
|
+
// 1. turns it upright (EXIF orientation) and converts it to sRGB;
|
|
11
|
+
// 2. scales it to cover the slot and crops it there, keeping the shot's
|
|
12
|
+
// `focus` point (x, y from 0 to 1) as near the centre of the crop as the
|
|
13
|
+
// picture allows;
|
|
14
|
+
// 3. encodes it at the slot's exact size and file name — WebP, quality
|
|
15
|
+
// stepped down until it fits the budget (≤ 220 kB for 2400-pixel
|
|
16
|
+
// campaign images, ≤ 120 kB for the rest), or JPEG for the share image;
|
|
17
|
+
// 4. writes it only if the result differs from what is there.
|
|
18
|
+
//
|
|
19
|
+
// Then it reports every slot still holding a placeholder (or nothing), and
|
|
20
|
+
// refreshes Galley's section and template pictures and the look previews by
|
|
21
|
+
// running scripts/make-thumbnails.mjs — when PLAYWRIGHT_MODULES is set; if it
|
|
22
|
+
// isn't, it prints the command instead. Running it twice changes nothing.
|
|
23
|
+
//
|
|
24
|
+
// The share image (`share`) is cropped from `campaign-aw26` when the folder
|
|
25
|
+
// has no share file of its own (its `derivedFrom`).
|
|
26
|
+
|
|
27
|
+
import { spawnSync } from "node:child_process";
|
|
28
|
+
import { createHash } from "node:crypto";
|
|
29
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
30
|
+
import { dirname, extname, join, resolve } from "node:path";
|
|
31
|
+
import { fileURLToPath } from "node:url";
|
|
32
|
+
import { parseArgs } from "node:util";
|
|
33
|
+
import sharp from "sharp";
|
|
34
|
+
|
|
35
|
+
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
36
|
+
const SHOTS = join(ROOT, "galley/photography/shots.json");
|
|
37
|
+
const MANIFEST = join(ROOT, "galley/photography/placeholders.json");
|
|
38
|
+
const FORMATS = new Set([".jpg", ".jpeg", ".png", ".webp", ".avif", ".tif", ".tiff"]);
|
|
39
|
+
|
|
40
|
+
const { values, positionals } = parseArgs({
|
|
41
|
+
allowPositionals: true,
|
|
42
|
+
options: { "dry-run": { type: "boolean" }, "no-thumbnails": { type: "boolean" }, help: { type: "boolean", short: "h" } },
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (values.help || positionals.length !== 1) {
|
|
46
|
+
console.log("Usage: node scripts/ingest-photos.mjs <folder> [--dry-run] [--no-thumbnails]");
|
|
47
|
+
console.log("Files in <folder> are matched to shots by name: <shot id>.<jpg|png|webp|avif|tif>.");
|
|
48
|
+
process.exit(values.help ? 0 : 1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const folder = resolve(positionals[0]);
|
|
52
|
+
if (!existsSync(folder)) {
|
|
53
|
+
console.error(`ingest-photos: there is no folder at ${folder}.`);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const { shots } = JSON.parse(readFileSync(SHOTS, "utf8"));
|
|
58
|
+
const byId = new Map(shots.map((shot) => [shot.id, shot]));
|
|
59
|
+
const manifest = existsSync(MANIFEST) ? JSON.parse(readFileSync(MANIFEST, "utf8")) : {};
|
|
60
|
+
const hash = (buffer) => createHash("sha256").update(buffer).digest("hex");
|
|
61
|
+
|
|
62
|
+
// ── Match files to shots ───────────────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
const inputs = new Map();
|
|
65
|
+
const strays = [];
|
|
66
|
+
for (const name of readdirSync(folder).sort()) {
|
|
67
|
+
const ext = extname(name).toLowerCase();
|
|
68
|
+
if (!FORMATS.has(ext)) continue;
|
|
69
|
+
const id = name.slice(0, -ext.length);
|
|
70
|
+
if (!byId.has(id)) strays.push(name);
|
|
71
|
+
else if (inputs.has(id)) console.warn(` ! ${name}: another file for ${id} was found first (${inputs.get(id)}); using that one.`);
|
|
72
|
+
else inputs.set(id, join(folder, name));
|
|
73
|
+
}
|
|
74
|
+
for (const shot of shots) {
|
|
75
|
+
if (!inputs.has(shot.id) && shot.derivedFrom && inputs.has(shot.derivedFrom)) inputs.set(shot.id, inputs.get(shot.derivedFrom));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// ── Crop and encode ────────────────────────────────────────────────────────
|
|
79
|
+
|
|
80
|
+
/** The crop window of a `width` × `height` slot in a source of `w` × `h`, centred on focus as far as it can be. */
|
|
81
|
+
function cropFor(w, h, shot) {
|
|
82
|
+
const scale = Math.max(shot.width / w, shot.height / h);
|
|
83
|
+
const scaledW = Math.round(w * scale);
|
|
84
|
+
const scaledH = Math.round(h * scale);
|
|
85
|
+
const fx = shot.focus?.x ?? 0.5;
|
|
86
|
+
const fy = shot.focus?.y ?? 0.5;
|
|
87
|
+
const left = Math.min(Math.max(0, Math.round(fx * scaledW - shot.width / 2)), scaledW - shot.width);
|
|
88
|
+
const top = Math.min(Math.max(0, Math.round(fy * scaledH - shot.height / 2)), scaledH - shot.height);
|
|
89
|
+
return { scaledW, scaledH, left, top, upscaled: scale > 1.05 };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function budget(shot) {
|
|
93
|
+
if (shot.file.endsWith(".jpg")) return 160 * 1024;
|
|
94
|
+
return shot.width >= 2400 ? 220 * 1024 : 120 * 1024;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async function encode(input, shot) {
|
|
98
|
+
const meta = await sharp(input).rotate().metadata();
|
|
99
|
+
const width = meta.autoOrient?.width ?? meta.width;
|
|
100
|
+
const height = meta.autoOrient?.height ?? meta.height;
|
|
101
|
+
const crop = cropFor(width, height, shot);
|
|
102
|
+
const base = await sharp(input)
|
|
103
|
+
.rotate()
|
|
104
|
+
.toColourspace("srgb")
|
|
105
|
+
.resize(crop.scaledW, crop.scaledH, { kernel: "lanczos3" })
|
|
106
|
+
.extract({ left: crop.left, top: crop.top, width: shot.width, height: shot.height })
|
|
107
|
+
.png()
|
|
108
|
+
.toBuffer();
|
|
109
|
+
|
|
110
|
+
const jpeg = shot.file.endsWith(".jpg");
|
|
111
|
+
let quality = jpeg ? 84 : 82;
|
|
112
|
+
let out;
|
|
113
|
+
for (;;) {
|
|
114
|
+
out = jpeg ? await sharp(base).jpeg({ quality, mozjpeg: true }).toBuffer() : await sharp(base).webp({ quality, effort: 6, smartSubsample: true }).toBuffer();
|
|
115
|
+
if (out.length <= budget(shot) || quality <= 50) break;
|
|
116
|
+
quality -= 4;
|
|
117
|
+
}
|
|
118
|
+
return { out, quality, crop, source: { width, height } };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const written = [];
|
|
122
|
+
const unchanged = [];
|
|
123
|
+
for (const [id, input] of inputs) {
|
|
124
|
+
const shot = byId.get(id);
|
|
125
|
+
const target = join(ROOT, shot.file);
|
|
126
|
+
const { out, quality, crop, source } = await encode(input, shot);
|
|
127
|
+
const note = `${source.width}×${source.height} → ${shot.width}×${shot.height}, q${quality}, ${(out.length / 1024).toFixed(0)} kB${crop.upscaled ? ", upscaled — generate larger if you can" : ""}${out.length > budget(shot) ? ", over budget" : ""}`;
|
|
128
|
+
|
|
129
|
+
if (existsSync(target) && hash(readFileSync(target)) === hash(out)) {
|
|
130
|
+
unchanged.push(id);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (!values["dry-run"]) {
|
|
134
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
135
|
+
writeFileSync(target, out);
|
|
136
|
+
delete manifest[shot.file]; // a photograph now, not a placeholder
|
|
137
|
+
}
|
|
138
|
+
written.push(id);
|
|
139
|
+
console.log(` ${values["dry-run"] ? "would write" : "wrote"} ${shot.file} (${note})`);
|
|
140
|
+
}
|
|
141
|
+
if (!values["dry-run"]) writeFileSync(MANIFEST, `${JSON.stringify(Object.fromEntries(Object.entries(manifest).sort()), null, 2)}\n`);
|
|
142
|
+
|
|
143
|
+
// ── Report ─────────────────────────────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
const placeholder = (shot) => {
|
|
146
|
+
const path = join(ROOT, shot.file);
|
|
147
|
+
return !existsSync(path) || manifest[shot.file] === hash(readFileSync(path));
|
|
148
|
+
};
|
|
149
|
+
const missing = shots.filter((shot) => !inputs.has(shot.id) && placeholder(shot));
|
|
150
|
+
|
|
151
|
+
console.log(`\n${written.length} photograph(s) ${values["dry-run"] ? "to write" : "written"}, ${unchanged.length} already in place.`);
|
|
152
|
+
if (strays.length) console.log(`Not in the shot list (ignored): ${strays.join(", ")}`);
|
|
153
|
+
if (missing.length) {
|
|
154
|
+
console.log(`\nStill showing a placeholder — ${missing.length} of ${shots.length}:`);
|
|
155
|
+
for (const shot of missing.sort((a, b) => a.priority - b.priority)) console.log(` [${shot.priority}] ${shot.id.padEnd(22)} ${shot.ratio.padEnd(7)} ${shot.file}`);
|
|
156
|
+
} else {
|
|
157
|
+
console.log("Every slot has its photograph.");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ── Pictures for Galley ────────────────────────────────────────────────────
|
|
161
|
+
|
|
162
|
+
if (values["dry-run"] || values["no-thumbnails"] || written.length === 0) process.exit(0);
|
|
163
|
+
if (!process.env.PLAYWRIGHT_MODULES) {
|
|
164
|
+
console.log("\nRefresh Galley's section, template and look pictures with:\n PLAYWRIGHT_MODULES=/path/to/node_modules/ node scripts/make-thumbnails.mjs");
|
|
165
|
+
process.exit(0);
|
|
166
|
+
}
|
|
167
|
+
console.log("\nRefreshing Galley's section, template and look pictures…");
|
|
168
|
+
const result = spawnSync(process.execPath, [join(ROOT, "scripts/make-thumbnails.mjs")], { cwd: ROOT, stdio: "inherit", env: process.env });
|
|
169
|
+
process.exit(result.status ?? 1);
|