├── .env.example ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc ├── README.md ├── artwork ├── SVG │ ├── Comment.svg │ ├── Heart.svg │ ├── HeartOutline.svg │ ├── Logo.svg │ ├── New.svg │ ├── Trash.svg │ ├── Unused.svg │ └── Upload.svg └── icons.ai ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── postgres ├── migrate.js └── migrations │ ├── 000.sql │ └── 001.sql ├── scripts └── update-vercel-config.js ├── src ├── ambient.d.ts ├── app.css ├── app.d.ts ├── app.html ├── hooks.server.ts ├── lib │ ├── actions.ts │ ├── components │ │ ├── Avatar.svelte │ │ ├── AvatarImage.svelte │ │ ├── Image.svelte │ │ ├── Login.svelte │ │ ├── Metadata.svelte │ │ ├── Modal.svelte │ │ ├── PhotoList.svelte │ │ ├── Publisher.svelte │ │ ├── Scroller.svelte │ │ └── Uploader.svelte │ ├── icons │ │ ├── Comment.svelte │ │ ├── Heart.svelte │ │ ├── HeartOutline.svelte │ │ ├── Logo.svelte │ │ ├── Trash.svelte │ │ └── account-circle.svg │ ├── image-size │ │ ├── index.ts │ │ ├── jpg.ts │ │ ├── png.ts │ │ └── types.d.ts │ ├── image.ts │ ├── server │ │ └── database.ts │ ├── state.ts │ ├── types.d.ts │ └── utils.ts └── routes │ ├── +layout.server.ts │ ├── +layout.svelte │ ├── +page.server.ts │ ├── +page.svelte │ ├── [account] │ ├── +page.server.ts │ ├── +page.svelte │ └── [photo] │ │ ├── +page.server.ts │ │ └── +page.svelte │ ├── api │ └── photos │ │ ├── [account_id].json │ │ └── +server.ts │ │ └── feed.json │ │ └── +server.ts │ ├── auth │ ├── +page.server.ts │ ├── +page.svelte │ └── callback │ │ └── +server.ts │ └── publish │ ├── +page.server.ts │ └── +page.svelte ├── static └── favicon.png ├── svelte.config.js ├── tailwind.config.js ├── tsconfig.json ├── vercel.json └── vite.config.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/README.md -------------------------------------------------------------------------------- /artwork/SVG/Comment.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Comment.svg -------------------------------------------------------------------------------- /artwork/SVG/Heart.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Heart.svg -------------------------------------------------------------------------------- /artwork/SVG/HeartOutline.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/HeartOutline.svg -------------------------------------------------------------------------------- /artwork/SVG/Logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Logo.svg -------------------------------------------------------------------------------- /artwork/SVG/New.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/New.svg -------------------------------------------------------------------------------- /artwork/SVG/Trash.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Trash.svg -------------------------------------------------------------------------------- /artwork/SVG/Unused.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Unused.svg -------------------------------------------------------------------------------- /artwork/SVG/Upload.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/SVG/Upload.svg -------------------------------------------------------------------------------- /artwork/icons.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/artwork/icons.ai -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/postcss.config.js -------------------------------------------------------------------------------- /postgres/migrate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/postgres/migrate.js -------------------------------------------------------------------------------- /postgres/migrations/000.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/postgres/migrations/000.sql -------------------------------------------------------------------------------- /postgres/migrations/001.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/postgres/migrations/001.sql -------------------------------------------------------------------------------- /scripts/update-vercel-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/scripts/update-vercel-config.js -------------------------------------------------------------------------------- /src/ambient.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'svelte-autosize'; 2 | -------------------------------------------------------------------------------- /src/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/app.css -------------------------------------------------------------------------------- /src/app.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/app.d.ts -------------------------------------------------------------------------------- /src/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/app.html -------------------------------------------------------------------------------- /src/hooks.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/hooks.server.ts -------------------------------------------------------------------------------- /src/lib/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/actions.ts -------------------------------------------------------------------------------- /src/lib/components/Avatar.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Avatar.svelte -------------------------------------------------------------------------------- /src/lib/components/AvatarImage.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/AvatarImage.svelte -------------------------------------------------------------------------------- /src/lib/components/Image.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Image.svelte -------------------------------------------------------------------------------- /src/lib/components/Login.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Login.svelte -------------------------------------------------------------------------------- /src/lib/components/Metadata.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Metadata.svelte -------------------------------------------------------------------------------- /src/lib/components/Modal.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Modal.svelte -------------------------------------------------------------------------------- /src/lib/components/PhotoList.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/PhotoList.svelte -------------------------------------------------------------------------------- /src/lib/components/Publisher.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Publisher.svelte -------------------------------------------------------------------------------- /src/lib/components/Scroller.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Scroller.svelte -------------------------------------------------------------------------------- /src/lib/components/Uploader.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/components/Uploader.svelte -------------------------------------------------------------------------------- /src/lib/icons/Comment.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/Comment.svelte -------------------------------------------------------------------------------- /src/lib/icons/Heart.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/Heart.svelte -------------------------------------------------------------------------------- /src/lib/icons/HeartOutline.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/HeartOutline.svelte -------------------------------------------------------------------------------- /src/lib/icons/Logo.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/Logo.svelte -------------------------------------------------------------------------------- /src/lib/icons/Trash.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/Trash.svelte -------------------------------------------------------------------------------- /src/lib/icons/account-circle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/icons/account-circle.svg -------------------------------------------------------------------------------- /src/lib/image-size/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/image-size/index.ts -------------------------------------------------------------------------------- /src/lib/image-size/jpg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/image-size/jpg.ts -------------------------------------------------------------------------------- /src/lib/image-size/png.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/image-size/png.ts -------------------------------------------------------------------------------- /src/lib/image-size/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/image-size/types.d.ts -------------------------------------------------------------------------------- /src/lib/image.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/image.ts -------------------------------------------------------------------------------- /src/lib/server/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/server/database.ts -------------------------------------------------------------------------------- /src/lib/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/state.ts -------------------------------------------------------------------------------- /src/lib/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/types.d.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/routes/+layout.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/+layout.server.ts -------------------------------------------------------------------------------- /src/routes/+layout.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/+layout.svelte -------------------------------------------------------------------------------- /src/routes/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/+page.server.ts -------------------------------------------------------------------------------- /src/routes/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/+page.svelte -------------------------------------------------------------------------------- /src/routes/[account]/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/[account]/+page.server.ts -------------------------------------------------------------------------------- /src/routes/[account]/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/[account]/+page.svelte -------------------------------------------------------------------------------- /src/routes/[account]/[photo]/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/[account]/[photo]/+page.server.ts -------------------------------------------------------------------------------- /src/routes/[account]/[photo]/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/[account]/[photo]/+page.svelte -------------------------------------------------------------------------------- /src/routes/api/photos/[account_id].json/+server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/api/photos/[account_id].json/+server.ts -------------------------------------------------------------------------------- /src/routes/api/photos/feed.json/+server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/api/photos/feed.json/+server.ts -------------------------------------------------------------------------------- /src/routes/auth/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/auth/+page.server.ts -------------------------------------------------------------------------------- /src/routes/auth/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/auth/+page.svelte -------------------------------------------------------------------------------- /src/routes/auth/callback/+server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/auth/callback/+server.ts -------------------------------------------------------------------------------- /src/routes/publish/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/publish/+page.server.ts -------------------------------------------------------------------------------- /src/routes/publish/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/src/routes/publish/+page.svelte -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/static/favicon.png -------------------------------------------------------------------------------- /svelte.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/svelte.config.js -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/vercel.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rich-Harris/sveltesnaps/HEAD/vite.config.ts --------------------------------------------------------------------------------