diff --git a/.env.example b/.env.example index f170dc77ec..346a8f74da 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ DATABASE_URL=postgresql://user:pass@localhost/webstudio AUTH_SECRET="# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32" GH_CLIENT_SECRET= -GH_CLIENT_ID= \ No newline at end of file +GH_CLIENT_ID= +DEV_LOGIN=true \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1141d374da..4920f3563a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,6 @@ on: [push] jobs: checks: env: - DATABASE_URL: mongo:// NODE_ENV: test runs-on: ${{ matrix.os }} strategy: @@ -13,16 +12,7 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v2 - - # - name: Install deps and build (with cache) - # uses: bahmutov/npm-install@v1 - run: yarn install - - name: Next.js cache - uses: actions/cache@v2 - with: - path: ${{ github.workspace }}/.next/cache - key: ${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/yarn.lock') }}-nextjs - - run: yarn checks - run: yarn build diff --git a/app/auth/login.tsx b/app/auth/login.tsx index 1427155342..f03e922a89 100644 --- a/app/auth/login.tsx +++ b/app/auth/login.tsx @@ -1,7 +1,14 @@ import { LinksFunction, MetaFunction } from "@remix-run/node"; import { Form, useLoaderData } from "@remix-run/react"; import { useState } from "react"; -import { Button, Card, Flex, Heading, TextField } from "~/shared/design-system"; +import { + Button, + Card, + Flex, + Heading, + Text, + TextField, +} from "~/shared/design-system"; import interStyles from "~/shared/font-faces/inter.css"; import { GoogleIcon, GithubIcon, CommitIcon } from "~/shared/icons"; @@ -24,7 +31,7 @@ export const meta: MetaFunction = () => { return { title: "Webstudio Login" }; }; -export const Login = () => { +export const Login = ({ errorMessage }: { errorMessage: string }) => { const [isDevLogin, setIsDevLogin] = useState(false); const loaderData = useLoaderData(); @@ -35,10 +42,14 @@ export const Login = () => { align="center" justify="center" > - + Login - + {errorMessage.length ? ( + + {errorMessage} + + ) : null}