38c3df8187
Build-time image optimization plus auth-gated private content. - <Image> (src/lib/components/Image.svelte): wraps @sveltejs/enhanced-img for public images under src/lib/assets/images/ (AVIF/WebP, multiple widths, lazy by default), plus a `private` mode for auth-gated images. - Private images: scripts/build-private-images.ts encodes sources from src/lib/assets/private-images/ into private-assets/ (outside the bundle) and a manifest; served only via the auth-checked /private-images/ endpoint (X-Accel-Redirect in prod, disk read in dev). - HikeImage gains a `src` prose mode: build-hikes encodes non-waypoint images referenced in .svx and exposes them by filename (imagesByName); a `private` attr routes them through the gated /hikes/<slug>/private/ path. - <Private> (src/lib/components/Private.svelte): renders prose only to logged-in viewers (cosmetic gating — text still ships in the bundle). - deploy.sh rsyncs private-assets/; prod needs an nginx internal /protected-images/ location.
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
.DS_Store
|
|
*/.jukit
|
|
*/.jukit/*
|
|
node_modules
|
|
/build
|
|
/.svelte-kit
|
|
/package
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
vite.config.js.timestamp-*
|
|
vite.config.ts.timestamp-*
|
|
# USDA bulk data downloads (regenerated by scripts/import-usda-nutrition.ts)
|
|
data/usda/
|
|
# Loyalty-card barcodes (regenerated by scripts/generate-loyalty-cards.ts from env)
|
|
static/shopping/supercard.svg
|
|
static/shopping/cumulus.svg
|
|
# Hikes build outputs (regenerated by scripts/build-hikes.ts at prebuild)
|
|
static/hikes/
|
|
hikes-assets/
|
|
src/lib/data/hikes.generated.ts
|
|
# Private image build outputs (regenerated by scripts/build-private-images.ts).
|
|
# Sources are private + large, so they're ignored too — only the README is kept.
|
|
private-assets/
|
|
src/lib/data/privateImages.generated.ts
|
|
src/lib/assets/private-images/*
|
|
!src/lib/assets/private-images/README.md
|
|
# Build-script disk caches (Swisstopo identify, BRouter responses, ...)
|
|
scripts/.cache/
|
|
# Loose working-tree scratch files (notes, photos, prototypes) that aren't
|
|
# part of the committed source.
|
|
/HIKES_PLAN.md
|
|
/additional_apologetics.md
|
|
/header_jellyfin.html
|
|
/person-hiking.svg
|
|
/PXL_*.jpg
|
|
/PXL_*.MP.jpg
|
|
src-tauri/icons/_safezone_template_*.png
|
|
src-tauri/target/
|
|
src-tauri/*.keystore
|
|
# Android: ignore build output and caches, track source files
|
|
src-tauri/gen/android/.gradle/
|
|
src-tauri/gen/android/app/build/
|
|
src-tauri/gen/android/buildSrc/.gradle/
|
|
src-tauri/gen/android/buildSrc/build/
|
|
|
|
# Hike content: track the writing (index.svx), route (track.gpx) and icons,
|
|
# but not the source photos (huge; re-encoded into static assets at build time).
|
|
src/content/hikes/*/images/
|
|
src/content/hikes/*/private/
|
|
src/content/hikes/*/cover.*
|