├── .env.example ├── .eslintrc.json ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── package.json ├── prisma └── schema.prisma ├── public └── favicon.ico ├── src ├── components │ ├── AuthGuard.tsx │ ├── Comments │ │ ├── Form.tsx │ │ ├── List.tsx │ │ └── index.tsx │ ├── Navbar.tsx │ └── Post.tsx ├── entry-client.tsx ├── entry-server.tsx ├── env │ ├── client.ts │ ├── schema.ts │ └── server.ts ├── root.css ├── root.tsx ├── routes │ ├── account.tsx │ ├── api │ │ ├── auth │ │ │ └── [...solidauth].ts │ │ └── trpc │ │ │ └── [trpc].ts │ ├── index.tsx │ ├── p │ │ └── [id].tsx │ └── submit.tsx ├── server │ ├── auth.ts │ ├── db │ │ └── client.ts │ └── trpc │ │ ├── context.ts │ │ ├── router │ │ ├── _app.ts │ │ ├── comments.ts │ │ └── posts.ts │ │ └── utils.ts └── utils │ ├── auth.ts │ ├── format-comments.ts │ └── trpc.ts ├── tsconfig.json ├── uno.config.ts └── vite.config.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | enable-pre-post-scripts=true -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/package.json -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/components/AuthGuard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/AuthGuard.tsx -------------------------------------------------------------------------------- /src/components/Comments/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/Comments/Form.tsx -------------------------------------------------------------------------------- /src/components/Comments/List.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/Comments/List.tsx -------------------------------------------------------------------------------- /src/components/Comments/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/Comments/index.tsx -------------------------------------------------------------------------------- /src/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/Navbar.tsx -------------------------------------------------------------------------------- /src/components/Post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/components/Post.tsx -------------------------------------------------------------------------------- /src/entry-client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/entry-client.tsx -------------------------------------------------------------------------------- /src/entry-server.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/entry-server.tsx -------------------------------------------------------------------------------- /src/env/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/env/client.ts -------------------------------------------------------------------------------- /src/env/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/env/schema.ts -------------------------------------------------------------------------------- /src/env/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/env/server.ts -------------------------------------------------------------------------------- /src/root.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/root.css -------------------------------------------------------------------------------- /src/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/root.tsx -------------------------------------------------------------------------------- /src/routes/account.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/account.tsx -------------------------------------------------------------------------------- /src/routes/api/auth/[...solidauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/api/auth/[...solidauth].ts -------------------------------------------------------------------------------- /src/routes/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/index.tsx -------------------------------------------------------------------------------- /src/routes/p/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/p/[id].tsx -------------------------------------------------------------------------------- /src/routes/submit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/routes/submit.tsx -------------------------------------------------------------------------------- /src/server/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/auth.ts -------------------------------------------------------------------------------- /src/server/db/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/db/client.ts -------------------------------------------------------------------------------- /src/server/trpc/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/trpc/context.ts -------------------------------------------------------------------------------- /src/server/trpc/router/_app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/trpc/router/_app.ts -------------------------------------------------------------------------------- /src/server/trpc/router/comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/trpc/router/comments.ts -------------------------------------------------------------------------------- /src/server/trpc/router/posts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/trpc/router/posts.ts -------------------------------------------------------------------------------- /src/server/trpc/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/server/trpc/utils.ts -------------------------------------------------------------------------------- /src/utils/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/utils/auth.ts -------------------------------------------------------------------------------- /src/utils/format-comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/utils/format-comments.ts -------------------------------------------------------------------------------- /src/utils/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/src/utils/trpc.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/tsconfig.json -------------------------------------------------------------------------------- /uno.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/uno.config.ts -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nexxeln/hackernews/HEAD/vite.config.ts --------------------------------------------------------------------------------