diff --git a/.devcontainer/post-start.sh b/.devcontainer/post-start.sh index 1e73e057..d57d3d74 100644 --- a/.devcontainer/post-start.sh +++ b/.devcontainer/post-start.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Silence warnings about the git repos not being owned by this user (since it's bind mounted from host) # This runs inside the container, so it's okay to do global git config git config --global --add safe.directory "/workspaces/Monorepo" diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 577d5412..40ac3d9f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -17,6 +17,7 @@ "wix.vscode-import-cost", "jock.svg", "herrmannplatz.npm-dependency-links", + "doggy8088.quicktype-refresh", // Backend "KevinRose.vsc-python-indent", diff --git a/Monorepo.wiki b/Monorepo.wiki index 49f9c0c2..47370651 160000 --- a/Monorepo.wiki +++ b/Monorepo.wiki @@ -1 +1 @@ -Subproject commit 49f9c0c26efff6b8ac8e74801e89b590eaae4157 +Subproject commit 47370651c9476dbc02ae8bbdba201eaf3c880e47 diff --git a/apps/backend/backend.Dockerfile b/apps/backend/backend.Dockerfile index c85bc913..075faa8f 100644 --- a/apps/backend/backend.Dockerfile +++ b/apps/backend/backend.Dockerfile @@ -25,6 +25,7 @@ RUN pip install pipenv COPY Pipfile . COPY Pipfile.lock . # Args explanation: https://stackoverflow.com/a/49705601 +# https://pipenv-fork.readthedocs.io/en/latest/basics.html#pipenv-install RUN pipenv install --system --deploy --ignore-pipfile WORKDIR /app diff --git a/apps/frontend/components/auth/AlreadySignedInModal.tsx b/apps/frontend/components/auth/AlreadySignedInModal.tsx new file mode 100644 index 00000000..18c289c7 --- /dev/null +++ b/apps/frontend/components/auth/AlreadySignedInModal.tsx @@ -0,0 +1,68 @@ +import Link from 'next/link'; +import Router from 'next/router'; +import { useAuth } from '../../firebase/fbAuth'; + +export interface AlreadySignedInModalProps { + continueButtonMessage: string, + linkTarget: string +} + +export const AlreadySignedInModal = ({ continueButtonMessage, linkTarget }: AlreadySignedInModalProps) => { + const { authService } = useAuth(); + + return
+ {"You're already signed in as"} +
+ + {authService.userEmail} + ++ Sign in with +
+ + (OAuth login support coming soon™) + ++ Create an Account +
++ By signing up, you agree to our{' '} + + Terms + + ,{' '} + + Data Policy + {' '} + and{' '} + + Cookies Policy + + . +
+- Sign in with -
- -- By signing up, you agree to our{' '} - - Terms - - ,{' '} - - Data Policy - {' '} - and{' '} - - Cookies Policy - - . -
-