├── .eslintignore ├── .eslintrc.cjs ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── LICENSE.md ├── README.md ├── appwrite.json ├── convertIcons.js ├── functions └── vote-handler │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── pnpm-lock.yaml │ └── src │ └── index.js ├── package.json ├── playwright.config.ts ├── pnpm-lock.yaml ├── postcss.config.cjs ├── scripts └── migrate.js ├── src ├── UI │ └── Icon.svelte ├── app.d.ts ├── app.html ├── components │ ├── Comment.svelte │ ├── PostThumb.svelte │ └── Votes.svelte ├── entities │ ├── appwrite.ts │ ├── comment.server.ts │ ├── comment.test.ts │ ├── comment.ts │ ├── filter.ts │ ├── post.server.ts │ ├── post.ts │ ├── user.server.ts │ ├── user.ts │ ├── vote.server.ts │ └── vote.ts ├── helpers │ ├── array.test.ts │ ├── array.ts │ ├── debounce.ts │ ├── form.ts │ ├── localStorageWritable.ts │ ├── object.test.ts │ ├── object.ts │ └── zod.ts ├── hooks.server.ts ├── lib │ └── appwrite.server.ts ├── params │ └── filter.ts ├── routes │ ├── +layout.server.ts │ ├── +layout.svelte │ ├── [[filter=filter]] │ │ ├── +page.server.ts │ │ └── +page.svelte │ ├── create │ │ ├── +page.server.ts │ │ └── +page.svelte │ ├── posts.svelte │ ├── r │ │ └── [subreddit] │ │ │ ├── [[filter=filter]] │ │ │ ├── +page.server.ts │ │ │ └── +page.svelte │ │ │ └── [post] │ │ │ ├── +page.server.ts │ │ │ └── +page.svelte │ ├── stores.ts │ └── vote │ │ └── +page.server.ts └── styles │ └── index.css ├── static ├── 404.png ├── favicon.png ├── icons │ ├── arrow-big-down.svg │ ├── arrow-big-up.svg │ ├── arrow-down.svg │ ├── arrow-up.svg │ ├── messages.svg │ ├── original │ │ ├── arrow-big-down.svg │ │ ├── arrow-big-up.svg │ │ ├── arrow-down.svg │ │ ├── arrow-up.svg │ │ ├── messages.svg │ │ └── text.svg │ └── text.svg └── logo.webp ├── svelte.config.js ├── tailwind.config.cjs ├── tests └── test.ts ├── tsconfig.json ├── vercel.json └── vite.config.ts /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/README.md -------------------------------------------------------------------------------- /appwrite.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/appwrite.json -------------------------------------------------------------------------------- /convertIcons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/convertIcons.js -------------------------------------------------------------------------------- /functions/vote-handler/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/functions/vote-handler/.gitignore -------------------------------------------------------------------------------- /functions/vote-handler/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/functions/vote-handler/README.md -------------------------------------------------------------------------------- /functions/vote-handler/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/functions/vote-handler/package.json -------------------------------------------------------------------------------- /functions/vote-handler/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/functions/vote-handler/pnpm-lock.yaml -------------------------------------------------------------------------------- /functions/vote-handler/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/functions/vote-handler/src/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/playwright.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/postcss.config.cjs -------------------------------------------------------------------------------- /scripts/migrate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/scripts/migrate.js -------------------------------------------------------------------------------- /src/UI/Icon.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/UI/Icon.svelte -------------------------------------------------------------------------------- /src/app.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/app.d.ts -------------------------------------------------------------------------------- /src/app.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/app.html -------------------------------------------------------------------------------- /src/components/Comment.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/components/Comment.svelte -------------------------------------------------------------------------------- /src/components/PostThumb.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/components/PostThumb.svelte -------------------------------------------------------------------------------- /src/components/Votes.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/components/Votes.svelte -------------------------------------------------------------------------------- /src/entities/appwrite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/appwrite.ts -------------------------------------------------------------------------------- /src/entities/comment.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/comment.server.ts -------------------------------------------------------------------------------- /src/entities/comment.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/comment.test.ts -------------------------------------------------------------------------------- /src/entities/comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/comment.ts -------------------------------------------------------------------------------- /src/entities/filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/filter.ts -------------------------------------------------------------------------------- /src/entities/post.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/post.server.ts -------------------------------------------------------------------------------- /src/entities/post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/post.ts -------------------------------------------------------------------------------- /src/entities/user.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/user.server.ts -------------------------------------------------------------------------------- /src/entities/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/user.ts -------------------------------------------------------------------------------- /src/entities/vote.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/vote.server.ts -------------------------------------------------------------------------------- /src/entities/vote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/entities/vote.ts -------------------------------------------------------------------------------- /src/helpers/array.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/array.test.ts -------------------------------------------------------------------------------- /src/helpers/array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/array.ts -------------------------------------------------------------------------------- /src/helpers/debounce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/debounce.ts -------------------------------------------------------------------------------- /src/helpers/form.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/form.ts -------------------------------------------------------------------------------- /src/helpers/localStorageWritable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/localStorageWritable.ts -------------------------------------------------------------------------------- /src/helpers/object.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/object.test.ts -------------------------------------------------------------------------------- /src/helpers/object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/object.ts -------------------------------------------------------------------------------- /src/helpers/zod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/helpers/zod.ts -------------------------------------------------------------------------------- /src/hooks.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/hooks.server.ts -------------------------------------------------------------------------------- /src/lib/appwrite.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/lib/appwrite.server.ts -------------------------------------------------------------------------------- /src/params/filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/params/filter.ts -------------------------------------------------------------------------------- /src/routes/+layout.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/+layout.server.ts -------------------------------------------------------------------------------- /src/routes/+layout.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/+layout.svelte -------------------------------------------------------------------------------- /src/routes/[[filter=filter]]/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/[[filter=filter]]/+page.server.ts -------------------------------------------------------------------------------- /src/routes/[[filter=filter]]/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/[[filter=filter]]/+page.svelte -------------------------------------------------------------------------------- /src/routes/create/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/create/+page.server.ts -------------------------------------------------------------------------------- /src/routes/create/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/create/+page.svelte -------------------------------------------------------------------------------- /src/routes/posts.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/posts.svelte -------------------------------------------------------------------------------- /src/routes/r/[subreddit]/[[filter=filter]]/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/r/[subreddit]/[[filter=filter]]/+page.server.ts -------------------------------------------------------------------------------- /src/routes/r/[subreddit]/[[filter=filter]]/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/r/[subreddit]/[[filter=filter]]/+page.svelte -------------------------------------------------------------------------------- /src/routes/r/[subreddit]/[post]/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/r/[subreddit]/[post]/+page.server.ts -------------------------------------------------------------------------------- /src/routes/r/[subreddit]/[post]/+page.svelte: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/r/[subreddit]/[post]/+page.svelte -------------------------------------------------------------------------------- /src/routes/stores.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/stores.ts -------------------------------------------------------------------------------- /src/routes/vote/+page.server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/routes/vote/+page.server.ts -------------------------------------------------------------------------------- /src/styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/src/styles/index.css -------------------------------------------------------------------------------- /static/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/404.png -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/favicon.png -------------------------------------------------------------------------------- /static/icons/arrow-big-down.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/arrow-big-down.svg -------------------------------------------------------------------------------- /static/icons/arrow-big-up.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/arrow-big-up.svg -------------------------------------------------------------------------------- /static/icons/arrow-down.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/arrow-down.svg -------------------------------------------------------------------------------- /static/icons/arrow-up.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/arrow-up.svg -------------------------------------------------------------------------------- /static/icons/messages.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/messages.svg -------------------------------------------------------------------------------- /static/icons/original/arrow-big-down.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/arrow-big-down.svg -------------------------------------------------------------------------------- /static/icons/original/arrow-big-up.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/arrow-big-up.svg -------------------------------------------------------------------------------- /static/icons/original/arrow-down.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/arrow-down.svg -------------------------------------------------------------------------------- /static/icons/original/arrow-up.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/arrow-up.svg -------------------------------------------------------------------------------- /static/icons/original/messages.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/messages.svg -------------------------------------------------------------------------------- /static/icons/original/text.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/original/text.svg -------------------------------------------------------------------------------- /static/icons/text.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/icons/text.svg -------------------------------------------------------------------------------- /static/logo.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/static/logo.webp -------------------------------------------------------------------------------- /svelte.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/svelte.config.js -------------------------------------------------------------------------------- /tailwind.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/tailwind.config.cjs -------------------------------------------------------------------------------- /tests/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/tests/test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "github": { 3 | "silent": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TGlide/zats-reddit/HEAD/vite.config.ts --------------------------------------------------------------------------------