├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── SELF-HOSTING.md ├── faunadb ├── collections.js ├── export_collections.js ├── export_indexes.js ├── import_collections.js ├── import_indexes.js └── indexes.js ├── next-env.d.ts ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── client.js ├── default-avatar.png ├── empty.png ├── icon.png └── reactions │ ├── angry.svg │ ├── care.svg │ ├── haha.svg │ ├── like-round.svg │ ├── like.svg │ ├── love.svg │ ├── sad.svg │ └── wow.svg ├── src ├── components │ ├── Alert.tsx │ ├── ClickAwayListener.tsx │ ├── Comment.tsx │ ├── Comments.tsx │ ├── Navbar.tsx │ └── ReactionPicker.tsx ├── hooks │ ├── useEffectUpdate.ts │ └── useFetch.ts ├── middleware.ts ├── pages │ ├── _app.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextauth].ts │ │ ├── comments.ts │ │ ├── delete-comment.ts │ │ ├── reactions.ts │ │ ├── sites.ts │ │ └── write-comment.ts │ ├── create.tsx │ ├── demo.tsx │ ├── embed.tsx │ ├── index.tsx │ ├── sign-in-popup.tsx │ ├── sign-in.tsx │ └── site │ │ └── [id].tsx ├── services │ ├── comments.ts │ ├── sites.ts │ └── users.ts ├── shared │ ├── client.ts │ ├── constant.ts │ └── types.ts ├── styles │ └── globals.css └── utils │ ├── fauna.ts │ ├── fetch.ts │ └── index.ts ├── tailwind.config.js └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/README.md -------------------------------------------------------------------------------- /SELF-HOSTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/SELF-HOSTING.md -------------------------------------------------------------------------------- /faunadb/collections.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/collections.js -------------------------------------------------------------------------------- /faunadb/export_collections.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/export_collections.js -------------------------------------------------------------------------------- /faunadb/export_indexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/export_indexes.js -------------------------------------------------------------------------------- /faunadb/import_collections.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/import_collections.js -------------------------------------------------------------------------------- /faunadb/import_indexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/import_indexes.js -------------------------------------------------------------------------------- /faunadb/indexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/faunadb/indexes.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/client.js -------------------------------------------------------------------------------- /public/default-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/default-avatar.png -------------------------------------------------------------------------------- /public/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/empty.png -------------------------------------------------------------------------------- /public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/icon.png -------------------------------------------------------------------------------- /public/reactions/angry.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/angry.svg -------------------------------------------------------------------------------- /public/reactions/care.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/care.svg -------------------------------------------------------------------------------- /public/reactions/haha.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/haha.svg -------------------------------------------------------------------------------- /public/reactions/like-round.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/like-round.svg -------------------------------------------------------------------------------- /public/reactions/like.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/like.svg -------------------------------------------------------------------------------- /public/reactions/love.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/love.svg -------------------------------------------------------------------------------- /public/reactions/sad.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/sad.svg -------------------------------------------------------------------------------- /public/reactions/wow.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/public/reactions/wow.svg -------------------------------------------------------------------------------- /src/components/Alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/Alert.tsx -------------------------------------------------------------------------------- /src/components/ClickAwayListener.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/ClickAwayListener.tsx -------------------------------------------------------------------------------- /src/components/Comment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/Comment.tsx -------------------------------------------------------------------------------- /src/components/Comments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/Comments.tsx -------------------------------------------------------------------------------- /src/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/Navbar.tsx -------------------------------------------------------------------------------- /src/components/ReactionPicker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/components/ReactionPicker.tsx -------------------------------------------------------------------------------- /src/hooks/useEffectUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/hooks/useEffectUpdate.ts -------------------------------------------------------------------------------- /src/hooks/useFetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/hooks/useFetch.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /src/pages/api/comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/comments.ts -------------------------------------------------------------------------------- /src/pages/api/delete-comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/delete-comment.ts -------------------------------------------------------------------------------- /src/pages/api/reactions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/reactions.ts -------------------------------------------------------------------------------- /src/pages/api/sites.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/sites.ts -------------------------------------------------------------------------------- /src/pages/api/write-comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/api/write-comment.ts -------------------------------------------------------------------------------- /src/pages/create.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/create.tsx -------------------------------------------------------------------------------- /src/pages/demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/demo.tsx -------------------------------------------------------------------------------- /src/pages/embed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/embed.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/sign-in-popup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/sign-in-popup.tsx -------------------------------------------------------------------------------- /src/pages/sign-in.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/sign-in.tsx -------------------------------------------------------------------------------- /src/pages/site/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/pages/site/[id].tsx -------------------------------------------------------------------------------- /src/services/comments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/services/comments.ts -------------------------------------------------------------------------------- /src/services/sites.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/services/sites.ts -------------------------------------------------------------------------------- /src/services/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/services/users.ts -------------------------------------------------------------------------------- /src/shared/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/shared/client.ts -------------------------------------------------------------------------------- /src/shared/constant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/shared/constant.ts -------------------------------------------------------------------------------- /src/shared/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/shared/types.ts -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/utils/fauna.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/utils/fauna.ts -------------------------------------------------------------------------------- /src/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/utils/fetch.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/cmtio/HEAD/tsconfig.json --------------------------------------------------------------------------------