Commit Graph

85 Commits

Author SHA1 Message Date
Austin Chen
1a1dc97ec8 Generate a sitemap with next-sitemap 2022-03-24 09:28:36 -07:00
Austin Chen
da4ce99755
Merge Manifold for Teams infra into main codebase (#61)
* Add dev target for TheoremOne

* Restrict signups to theoremone.co emails

* Add new indices

* Forbid reads from unauthenticated users

* Client-side render pages that need auth

These pages are now client-side rendered:
- /home
- /leaderboards
- /market/...
- /fold/...

* Hide 404 for private Manifolds

* Brand instance for TheoremOne

* Hide "Add Funds" and "Personalize your feed"

* "M$" =>  "T$"

* Hide Discord & About Page too

* Update placeholders for teams

* Update firestore.indexes.json

* Switch /analytics to propz

* Migrate per-env code into common/

* More migrations to PROJECT_ID

* Conditionally use SSG depending on public vs private instance

* Fix props to be empty object

* Move more logic into access

* Spin out config files for each environment

* Generify most of the customizable brand stuff

* Move IS_PRIVATE_MANIFOLD to access.ts

* Rename access.ts to envs/constants.ts

* Add "dev:dev" alias

* Rever firestore rules to existing settings

* Fixes according to James's review
2022-03-08 18:43:30 -08:00
Austin Chen
7338bdd47a
Automatically sort Tailwind classes with Prettier (#45)
* Add Prettier Tailwind plugin

* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00
Austin Chen
516656f194 Clean up About page 2022-02-06 00:35:58 -08:00
mantikoros
375ce69b7d yarn devdev 2022-02-01 21:23:06 -06:00
James Grugett
0eac8d9c5c
Yarn workspaces (#42)
* Try yarn workspaces

* Add versions to sub package.json files
2022-02-01 15:25:51 -06:00
Austin Chen
279437ba08
List users on admin page (#28)
* Admin page using gridjs

* Move hook into separate file

* Link to each user's Manifold and Firestore /user entry

* Gate admin access to Austin/James/Stephen

* Don't leak the existence of /admin

* Add a custom 404 page that directs to Discord.

* Fix broken window.location.href on NextJS server
2022-01-15 22:09:15 -05:00
jahooma
10e6255a53 Optimize css by inlining it in html 2022-01-14 17:05:12 -06:00
Austin Chen
f218a74a0c Add probability slider to Create Market 2022-01-06 00:45:30 -08:00
jahooma
ccff8c9bec Run a ts type checker in parallel with nextjs dev process 2021-12-19 15:26:59 -06:00
Austin Chen
2ecc4730d7 Run tsc over staged files before Git commit 2021-12-18 12:59:40 -08:00
jahooma
393a4962c9 Fix headers on mobile with cool dropdown menu. 2021-12-18 00:37:09 -06:00
jahooma
cda5810589 Add features section to landing page. About header scrolls to features section. 2021-12-17 01:21:40 -06:00
jahooma
7fd3cc185f Remove headlessui and heroicons from package.json 2021-12-16 22:12:33 -06:00
mantikoros
24dabe09fa upgrade nextjs version 2021-12-15 23:49:38 -06:00
jahooma
fda5013bf8 Simple bets list 2021-12-15 01:41:56 -06:00
Austin Chen
6995802272 Configure Husky to automatically run Prettier before git commits
https://prettier.io/docs/en/precommit.html#option-2-pretty-quickhttpsgithubcomazzpretty-quick
2021-12-13 23:24:22 -08:00
jahooma
8850e418eb Remove static export of site 2021-12-13 15:44:04 -06:00
jahooma
1303da7441 Graph time of bets 2021-12-13 00:55:35 -06:00
jahooma
54571b29de Update simulator to nivo chart. Remove chart.js 2021-12-12 19:50:17 -06:00
jahooma
d32d929735 Add a better charting library! 2021-12-12 19:10:35 -06:00
jahooma
07d8680217 Upgrade to Tailwind CSS 3.0!! 2021-12-12 14:09:41 -06:00
jahooma
0c4243d908 Add vscode format settings 2021-12-10 12:06:51 -06:00
jahooma
77ce27f45f Submit bets to firestore 2021-12-10 11:14:05 -06:00
Austin Chen
7ec3da5504
Allow logging in with Firebase (#2)
* Pin package.json to exact version

* Fix according to reviewer feedback
2021-12-09 15:33:01 -08:00
Austin Chen
2a3d9e6272 Add Firestore package and config 2021-12-09 15:31:20 -06:00
Austin Chen
acd523b61b Add chart.js to React simulator 2021-12-05 10:19:10 -08:00
Austin Chen
6d1f8b9a45 Port simulator to React
Mostly to re-familiarize myself with the React ecosystem
2021-12-05 00:39:42 -08:00
jahooma
a61f70d887 Use exact versions of npm packages 2021-12-02 18:53:21 -06:00
Austin Chen
20a425df6e Prettier: no semi, spaces 2, single quote, trailing comma 2021-12-02 17:49:46 -06:00
Austin Chen
a18baa7a50 Install prettier in web/ 2021-12-02 17:35:37 -06:00
jahooma
13e4ac00cd Add convertkit form to collect emails. 2021-12-02 12:38:54 -06:00
jahooma
5e1dee56a0 Build as a static site 2021-12-01 18:35:08 -06:00
jahooma
844a908118 Add tailwind. Add stripped down hero component. 2021-12-01 13:58:35 -06:00
jahooma
a1163bfcfb Create Nextjs template app under web directory. 2021-11-30 22:20:13 -06:00