├── .dockerignore ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierignore ├── Dockerfile ├── LICENSE ├── README.md ├── babel.config.js ├── docs ├── HN-Clone-Architecture-overview.png ├── HN-Demo.gif ├── HN-Demo.jpg ├── HN-Demo.psd ├── README.md └── seal.jpg ├── healthcheck.js ├── jest-setup.js ├── jest.config.js ├── next-env.d.ts ├── next.config.js ├── nodemon.json ├── package.json ├── pages ├── active.tsx ├── ask.tsx ├── best.tsx ├── bestcomments.tsx ├── bookmarklet.tsx ├── changepw.tsx ├── dmca.tsx ├── favorites.tsx ├── forgot.tsx ├── formatdoc.tsx ├── front.tsx ├── hidden.tsx ├── index.tsx ├── item.tsx ├── jobs.tsx ├── leaders.tsx ├── lists.tsx ├── login.tsx ├── newcomments.tsx ├── newest.tsx ├── newpoll.tsx ├── newsfaq.tsx ├── newsguidelines.tsx ├── newswelcome.tsx ├── noobcomments.tsx ├── noobstories.tsx ├── reply.tsx ├── security.tsx ├── show.tsx ├── showhn.tsx ├── shownew.tsx ├── submit.tsx ├── submitted.tsx ├── threads.tsx ├── upvoted.tsx ├── user.tsx └── x.tsx ├── prettier.config.js ├── public ├── robots.txt └── static │ ├── README.md │ ├── dmca.css │ ├── favicon.ico │ ├── grayarrow.gif │ ├── grayarrow2x.gif │ ├── news.css │ ├── s.gif │ ├── y18.gif │ ├── yc.css │ └── yc500.gif ├── server ├── database │ ├── cache-warmer.ts │ ├── cache.ts │ └── database.ts ├── graphql-resolvers.spec.ts ├── graphql-resolvers.ts ├── graphql-schema.ts ├── server.ts └── services │ ├── comment-service.spec.ts │ ├── comment-service.ts │ ├── feed-service.ts │ ├── news-item-service.spec.ts │ ├── news-item-service.ts │ └── user-service.ts ├── src ├── @types │ └── global.ts ├── README.md ├── __tests__ │ ├── active.spec.tsx │ ├── ask.spec.tsx │ ├── best.spec.tsx │ ├── bestcomments.spec.tsx │ ├── bookmarklet.spec.tsx │ ├── changepw.spec.tsx │ ├── dmca.spec.tsx │ ├── formatdoc.spec.tsx │ ├── front.spec.tsx │ ├── hidden.spec.tsx │ ├── index.spec.tsx │ ├── item.spec.tsx │ ├── jobs.spec.tsx │ ├── leaders.spec.tsx │ ├── lists.spec.tsx │ ├── login.spec.tsx │ ├── newcomments.spec.tsx │ ├── newest.spec.tsx │ ├── newpoll.spec.tsx │ ├── newsfaq.spec.tsx │ ├── newsguidelines.spec.tsx │ ├── newswelcome.spec.tsx │ ├── noobcomments.spec.tsx │ ├── noobstories.spec.tsx │ ├── reply.spec.tsx │ ├── security.spec.tsx │ ├── show.spec.tsx │ ├── showhn.spec.tsx │ ├── shownew.spec.tsx │ ├── submit.spec.tsx │ ├── submitted.spec.tsx │ ├── threads.spec.tsx │ └── user.spec.tsx ├── components │ ├── __snapshots__ │ │ ├── comment-box.spec.tsx.snap │ │ ├── comment.spec.tsx.snap │ │ ├── news-detail.spec.tsx.snap │ │ ├── news-feed.spec.tsx.snap │ │ └── news-title.spec.tsx.snap │ ├── comment-box.spec.tsx │ ├── comment-box.tsx │ ├── comment.spec.tsx │ ├── comment.tsx │ ├── comments.tsx │ ├── footer.tsx │ ├── header-nav.tsx │ ├── header.tsx │ ├── loading-spinner.tsx │ ├── news-detail.spec.tsx │ ├── news-detail.tsx │ ├── news-feed.spec.tsx │ ├── news-feed.tsx │ ├── news-item-with-comments.tsx │ ├── news-title.spec.tsx │ └── news-title.tsx ├── config.ts ├── data │ ├── models │ │ ├── comment-model.ts │ │ ├── feed.ts │ │ ├── index.ts │ │ ├── news-item-model.ts │ │ └── user-model.ts │ ├── mutations │ │ ├── hide-news-item-mutation.ts │ │ ├── submit-news-item-mutation.ts │ │ └── upvote-news-item-mutation.ts │ ├── queries │ │ └── me-query.ts │ ├── sample-data.ts │ └── validation │ │ ├── user.ts │ │ └── validation-error.ts ├── helpers │ ├── convert-number-to-time-ago.spec.ts │ ├── convert-number-to-time-ago.ts │ ├── hash-password.ts │ ├── init-apollo.tsx │ ├── is-valid-url.ts │ ├── user-login-error-code.ts │ └── with-data.tsx └── layouts │ ├── blank-layout.tsx │ ├── main-layout.tsx │ └── notice-layout.tsx ├── tsconfig-server.json └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | .next 3 | build 4 | dist 5 | docs 6 | node_modules 7 | npm-debug.log 8 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .next 2 | build 3 | docs 4 | public 5 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/babel.config.js -------------------------------------------------------------------------------- /docs/HN-Clone-Architecture-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/HN-Clone-Architecture-overview.png -------------------------------------------------------------------------------- /docs/HN-Demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/HN-Demo.gif -------------------------------------------------------------------------------- /docs/HN-Demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/HN-Demo.jpg -------------------------------------------------------------------------------- /docs/HN-Demo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/HN-Demo.psd -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/seal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/docs/seal.jpg -------------------------------------------------------------------------------- /healthcheck.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/healthcheck.js -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/jest-setup.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/jest.config.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/next.config.js -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/package.json -------------------------------------------------------------------------------- /pages/active.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/active.tsx -------------------------------------------------------------------------------- /pages/ask.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/ask.tsx -------------------------------------------------------------------------------- /pages/best.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/best.tsx -------------------------------------------------------------------------------- /pages/bestcomments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/bestcomments.tsx -------------------------------------------------------------------------------- /pages/bookmarklet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/bookmarklet.tsx -------------------------------------------------------------------------------- /pages/changepw.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/changepw.tsx -------------------------------------------------------------------------------- /pages/dmca.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/dmca.tsx -------------------------------------------------------------------------------- /pages/favorites.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/favorites.tsx -------------------------------------------------------------------------------- /pages/forgot.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/forgot.tsx -------------------------------------------------------------------------------- /pages/formatdoc.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/formatdoc.tsx -------------------------------------------------------------------------------- /pages/front.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/front.tsx -------------------------------------------------------------------------------- /pages/hidden.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/hidden.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/item.tsx -------------------------------------------------------------------------------- /pages/jobs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/jobs.tsx -------------------------------------------------------------------------------- /pages/leaders.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/leaders.tsx -------------------------------------------------------------------------------- /pages/lists.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/lists.tsx -------------------------------------------------------------------------------- /pages/login.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/login.tsx -------------------------------------------------------------------------------- /pages/newcomments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newcomments.tsx -------------------------------------------------------------------------------- /pages/newest.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newest.tsx -------------------------------------------------------------------------------- /pages/newpoll.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newpoll.tsx -------------------------------------------------------------------------------- /pages/newsfaq.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newsfaq.tsx -------------------------------------------------------------------------------- /pages/newsguidelines.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newsguidelines.tsx -------------------------------------------------------------------------------- /pages/newswelcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/newswelcome.tsx -------------------------------------------------------------------------------- /pages/noobcomments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/noobcomments.tsx -------------------------------------------------------------------------------- /pages/noobstories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/noobstories.tsx -------------------------------------------------------------------------------- /pages/reply.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/reply.tsx -------------------------------------------------------------------------------- /pages/security.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/security.tsx -------------------------------------------------------------------------------- /pages/show.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/show.tsx -------------------------------------------------------------------------------- /pages/showhn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/showhn.tsx -------------------------------------------------------------------------------- /pages/shownew.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/shownew.tsx -------------------------------------------------------------------------------- /pages/submit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/submit.tsx -------------------------------------------------------------------------------- /pages/submitted.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/submitted.tsx -------------------------------------------------------------------------------- /pages/threads.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/threads.tsx -------------------------------------------------------------------------------- /pages/upvoted.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/upvoted.tsx -------------------------------------------------------------------------------- /pages/user.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/user.tsx -------------------------------------------------------------------------------- /pages/x.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/pages/x.tsx -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | singleQuote: true, 3 | printWidth: 100, 4 | }; 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/robots.txt -------------------------------------------------------------------------------- /public/static/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/README.md -------------------------------------------------------------------------------- /public/static/dmca.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/dmca.css -------------------------------------------------------------------------------- /public/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/favicon.ico -------------------------------------------------------------------------------- /public/static/grayarrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/grayarrow.gif -------------------------------------------------------------------------------- /public/static/grayarrow2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/grayarrow2x.gif -------------------------------------------------------------------------------- /public/static/news.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/news.css -------------------------------------------------------------------------------- /public/static/s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/s.gif -------------------------------------------------------------------------------- /public/static/y18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/y18.gif -------------------------------------------------------------------------------- /public/static/yc.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/yc.css -------------------------------------------------------------------------------- /public/static/yc500.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/public/static/yc500.gif -------------------------------------------------------------------------------- /server/database/cache-warmer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/database/cache-warmer.ts -------------------------------------------------------------------------------- /server/database/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/database/cache.ts -------------------------------------------------------------------------------- /server/database/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/database/database.ts -------------------------------------------------------------------------------- /server/graphql-resolvers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/graphql-resolvers.spec.ts -------------------------------------------------------------------------------- /server/graphql-resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/graphql-resolvers.ts -------------------------------------------------------------------------------- /server/graphql-schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/graphql-schema.ts -------------------------------------------------------------------------------- /server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/server.ts -------------------------------------------------------------------------------- /server/services/comment-service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/comment-service.spec.ts -------------------------------------------------------------------------------- /server/services/comment-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/comment-service.ts -------------------------------------------------------------------------------- /server/services/feed-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/feed-service.ts -------------------------------------------------------------------------------- /server/services/news-item-service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/news-item-service.spec.ts -------------------------------------------------------------------------------- /server/services/news-item-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/news-item-service.ts -------------------------------------------------------------------------------- /server/services/user-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/server/services/user-service.ts -------------------------------------------------------------------------------- /src/@types/global.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/README.md -------------------------------------------------------------------------------- /src/__tests__/active.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/active.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/ask.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/ask.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/best.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/best.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/bestcomments.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/bestcomments.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/bookmarklet.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/bookmarklet.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/changepw.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/changepw.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/dmca.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/dmca.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/formatdoc.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/formatdoc.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/front.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/front.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/hidden.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/hidden.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/item.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/item.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/jobs.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/jobs.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/leaders.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/leaders.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/lists.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/lists.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/login.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/login.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newcomments.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newcomments.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newest.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newest.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newpoll.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newpoll.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newsfaq.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newsfaq.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newsguidelines.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newsguidelines.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/newswelcome.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/newswelcome.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/noobcomments.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/noobcomments.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/noobstories.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/noobstories.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/reply.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/reply.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/security.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/security.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/show.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/show.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/showhn.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/showhn.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/shownew.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/shownew.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/submit.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/submit.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/submitted.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/submitted.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/threads.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/threads.spec.tsx -------------------------------------------------------------------------------- /src/__tests__/user.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/__tests__/user.spec.tsx -------------------------------------------------------------------------------- /src/components/__snapshots__/comment-box.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/__snapshots__/comment-box.spec.tsx.snap -------------------------------------------------------------------------------- /src/components/__snapshots__/comment.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/__snapshots__/comment.spec.tsx.snap -------------------------------------------------------------------------------- /src/components/__snapshots__/news-detail.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/__snapshots__/news-detail.spec.tsx.snap -------------------------------------------------------------------------------- /src/components/__snapshots__/news-feed.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/__snapshots__/news-feed.spec.tsx.snap -------------------------------------------------------------------------------- /src/components/__snapshots__/news-title.spec.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/__snapshots__/news-title.spec.tsx.snap -------------------------------------------------------------------------------- /src/components/comment-box.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/comment-box.spec.tsx -------------------------------------------------------------------------------- /src/components/comment-box.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/comment-box.tsx -------------------------------------------------------------------------------- /src/components/comment.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/comment.spec.tsx -------------------------------------------------------------------------------- /src/components/comment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/comment.tsx -------------------------------------------------------------------------------- /src/components/comments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/comments.tsx -------------------------------------------------------------------------------- /src/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/footer.tsx -------------------------------------------------------------------------------- /src/components/header-nav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/header-nav.tsx -------------------------------------------------------------------------------- /src/components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/header.tsx -------------------------------------------------------------------------------- /src/components/loading-spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/loading-spinner.tsx -------------------------------------------------------------------------------- /src/components/news-detail.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-detail.spec.tsx -------------------------------------------------------------------------------- /src/components/news-detail.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-detail.tsx -------------------------------------------------------------------------------- /src/components/news-feed.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-feed.spec.tsx -------------------------------------------------------------------------------- /src/components/news-feed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-feed.tsx -------------------------------------------------------------------------------- /src/components/news-item-with-comments.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-item-with-comments.tsx -------------------------------------------------------------------------------- /src/components/news-title.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-title.spec.tsx -------------------------------------------------------------------------------- /src/components/news-title.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/components/news-title.tsx -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/data/models/comment-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/models/comment-model.ts -------------------------------------------------------------------------------- /src/data/models/feed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/models/feed.ts -------------------------------------------------------------------------------- /src/data/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/models/index.ts -------------------------------------------------------------------------------- /src/data/models/news-item-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/models/news-item-model.ts -------------------------------------------------------------------------------- /src/data/models/user-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/models/user-model.ts -------------------------------------------------------------------------------- /src/data/mutations/hide-news-item-mutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/mutations/hide-news-item-mutation.ts -------------------------------------------------------------------------------- /src/data/mutations/submit-news-item-mutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/mutations/submit-news-item-mutation.ts -------------------------------------------------------------------------------- /src/data/mutations/upvote-news-item-mutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/mutations/upvote-news-item-mutation.ts -------------------------------------------------------------------------------- /src/data/queries/me-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/queries/me-query.ts -------------------------------------------------------------------------------- /src/data/sample-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/sample-data.ts -------------------------------------------------------------------------------- /src/data/validation/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/validation/user.ts -------------------------------------------------------------------------------- /src/data/validation/validation-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/data/validation/validation-error.ts -------------------------------------------------------------------------------- /src/helpers/convert-number-to-time-ago.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/convert-number-to-time-ago.spec.ts -------------------------------------------------------------------------------- /src/helpers/convert-number-to-time-ago.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/convert-number-to-time-ago.ts -------------------------------------------------------------------------------- /src/helpers/hash-password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/hash-password.ts -------------------------------------------------------------------------------- /src/helpers/init-apollo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/init-apollo.tsx -------------------------------------------------------------------------------- /src/helpers/is-valid-url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/is-valid-url.ts -------------------------------------------------------------------------------- /src/helpers/user-login-error-code.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/user-login-error-code.ts -------------------------------------------------------------------------------- /src/helpers/with-data.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/helpers/with-data.tsx -------------------------------------------------------------------------------- /src/layouts/blank-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/layouts/blank-layout.tsx -------------------------------------------------------------------------------- /src/layouts/main-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/layouts/main-layout.tsx -------------------------------------------------------------------------------- /src/layouts/notice-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/src/layouts/notice-layout.tsx -------------------------------------------------------------------------------- /tsconfig-server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/tsconfig-server.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clintonwoo/hackernews-react-graphql/HEAD/tsconfig.json --------------------------------------------------------------------------------