Commit Graph

454 Commits

Author SHA1 Message Date
Vyacheslav Matyukhin
164f996f41
feat: convert all js to ts
allowJs is set to false in tsconfig.json now; please write all future
code with typescript.

cleanups:
- removed platforms/deprecated
- removed flow/history/old
    - see https://github.com/QURIresearch/metaforecast/issues/22
- commented some invalid axios options
- minor fixes with mismatching function arguments
- commented invalid mongo call in databaseReadWithReadCredentials
- {encoding: 'utf-8'} in readFileSync calls
2022-03-28 00:32:47 +03:00
Vyacheslav Matyukhin
41b314b84a
cleanup: more ts, delete unused api endpoints 2022-03-28 00:32:27 +03:00
698a11c28f feat: add plausible.io script 2022-03-27 17:19:06 -04:00
1ac56a3ee6 tweak: Change about page 2022-03-27 11:34:25 -04:00
5796d4dde8 feat: Bump version number
Feels warranted after the major refactor.
2022-03-27 11:33:13 -04:00
ace6e7fd54 chore: Update README. 2022-03-27 10:22:23 -04:00
Vyacheslav Matyukhin
cf1162faed
fix: correct npm registry 2022-03-27 12:15:45 +03:00
Vyacheslav Matyukhin
8cfdaddd7a
feat: cli exits properly; disable excessive db logging 2022-03-27 02:03:48 +03:00
Vyacheslav Matyukhin
2398394227
fix: paths in npm scripts 2022-03-27 01:55:18 +03:00
Vyacheslav Matyukhin
8c6844e42d
feat: install ts-node in prod 2022-03-27 01:54:02 +03:00
Vyacheslav Matyukhin
e26f5aa9c6
Merge pull request #8 from berekuk/monorepo
Monorepo
2022-03-27 01:50:01 +03:00
Vyacheslav Matyukhin
118495c30c
cleanup: remove unused netlify-plugin-cache-nextjs plugin 2022-03-27 01:06:57 +03:00
Vyacheslav Matyukhin
9d1a577a5e
feat: gitignore .env.production file to avoid accidental commit 2022-03-27 00:33:31 +03:00
Vyacheslav Matyukhin
7565540f8a
feat: repo renamed 2022-03-27 00:33:13 +03:00
Vyacheslav Matyukhin
d662572bcd
feat: don't update progress bar on searches 2022-03-26 14:42:13 +03:00
Vyacheslav Matyukhin
bb846068f3
feat: shallow: true on router.replace 2022-03-26 14:33:22 +03:00
Vyacheslav Matyukhin
d921885f1b
feat: nprogress bar 2022-03-26 14:23:38 +03:00
Vyacheslav Matyukhin
f2745d713c
feat: useNoInitialEffect in CommonDisplay (fix #14) 2022-03-26 14:21:36 +03:00
Vyacheslav Matyukhin
1b1c0f4228
refactor: move layout.tsx to web/display
https://metaforecast.org/layout is not a real page, so it shouldn't be
in src/pages.
2022-03-26 04:15:07 +03:00
Vyacheslav Matyukhin
9c586c6ec1
refactor: commonDisplay -> CommonDisplay 2022-03-26 03:57:18 +03:00
Vyacheslav Matyukhin
b481212721
feat: more ts, fix tailwind
- rename more files to .ts/.tsx
- update tailwind config to use .tsx files from all dirs
- merge css files into a single main.css to avoid import order
  dependencies
- minor cleanups due to ts complaints
2022-03-26 03:36:50 +03:00
Vyacheslav Matyukhin
42c0f0967b
feat: back to frontpage-in-db approach 2022-03-26 02:51:55 +03:00
Vyacheslav Matyukhin
80ee4c4055
fix: content jumps due to vertical scrollbar 2022-03-26 01:57:40 +03:00
Vyacheslav Matyukhin
4f8a4f4f31
docs: correct .env filename 2022-03-25 02:54:46 +03:00
Vyacheslav Matyukhin
f056d257b2
feat: /capture and / are static 2022-03-25 02:45:21 +03:00
Vyacheslav Matyukhin
98c7c31a0f
feat: always search on client side 2022-03-25 01:51:20 +03:00
Vyacheslav Matyukhin
c92d131ae3
feat: reactive search with useEffect 2022-03-25 01:23:07 +03:00
Vyacheslav Matyukhin
23a4003f31
feat: refactor commonDisplay and related code
- more typescript
- fix https://github.com/QURIresearch/metaforecast-frontend/issues/15
- simplify hasDisplayBeenCaptured code
- various cleanups
2022-03-25 01:22:26 +03:00
Vyacheslav Matyukhin
9714e4cd0a
fix: frontpage json serialization 2022-03-24 21:41:23 +03:00
Vyacheslav Matyukhin
796d227537
feat: rewrite frontpage code with direct db queries 2022-03-24 21:08:48 +03:00
Vyacheslav Matyukhin
6f5f53acf3
feat: npm run dbshell command 2022-03-24 20:24:04 +03:00
Vyacheslav Matyukhin
77a0d9d779
docs: tech stack in readme 2022-03-24 15:49:42 +03:00
Vyacheslav Matyukhin
abf3ba8327
feat: setCookies uses netlify 2022-03-24 15:47:35 +03:00
Vyacheslav Matyukhin
20af4e91fb
cleanup: remove unused data/ and input/ files 2022-03-24 15:47:16 +03:00
Vyacheslav Matyukhin
fe021c458e
docs: improve readme, move roadmap to docs/ 2022-03-24 02:59:29 +03:00
Vyacheslav Matyukhin
ce6d253d64
docs: update README, add configuration docs 2022-03-24 02:53:56 +03:00
Vyacheslav Matyukhin
490f698f26
cleanup old commented fs.writeFileSync calls 2022-03-24 01:48:36 +03:00
Vyacheslav Matyukhin
e0168d8ad3
add netlify-cli 2022-03-24 01:08:04 +03:00
Vyacheslav Matyukhin
f3592cde40
remove getSecret, always use env variables 2022-03-24 01:07:55 +03:00
Vyacheslav Matyukhin
fad762ab3a
netlify config not needed 2022-03-23 20:58:51 +03:00
Vyacheslav Matyukhin
a5563f9d2e
store frontpage code in db 2022-03-22 03:30:25 +03:00
Vyacheslav Matyukhin
6ffa3c0cfc
fix: import 2022-03-22 03:30:25 +03:00
Vyacheslav Matyukhin
244f02b3af
refactor: monorepo 2022-03-22 03:30:25 +03:00
2df73b4933 fix: Deal with Metaculus throttling
Parse the error messages and wait for the indicated amount.
2022-03-20 10:46:58 -04:00
b8e6435fee tweak: Point to conventional commits 2022-03-15 15:47:00 -04:00
1cba1ec35a chore: add some more detail on different servers 2022-03-15 15:42:42 -04:00
285c04f6ca chore: Update readme and roadmap 2022-03-15 15:23:32 -04:00
8c6663d3c3 tweak: rename to roadmap. 2022-03-14 23:47:48 -04:00
941fecc36e feat: Added to-do list 2022-03-14 23:39:55 -04:00
1e2562ba3f fix: smarkets bug-ish 2022-03-08 01:59:30 -05:00