This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebaseProvider from "@/lib/auth-providers/firebase"; | |
import testProvider from "@/lib/auth-providers/test"; | |
import { proxy, useSnapshot } from "valtio"; | |
import { gql } from "graphql-request"; | |
import request from "@/lib/request"; | |
let isServer = typeof window === "undefined"; | |
let isTest = !isServer && window.Cypress; | |
let mocksEnabled = process.env.NEXT_PUBLIC_ENABLE_MOCKS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cypress/integration/signup.spec.js b/cypress/integration/signup.spec.js | |
index 3654bdd..4d7aefe 100644 | |
--- a/cypress/integration/signup.spec.js | |
+++ b/cypress/integration/signup.spec.js | |
@@ -1,5 +1,14 @@ | |
describe("signup", () => { | |
- it.skip("lets a user signup"); | |
+ it("lets a user signup", () => { | |
+ cy.visit("/"); | |
+ cy.contains("Sign up").click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Spinner from "@/components/Spinner"; | |
import useCurrentUser from "@/hooks/use-current-user"; | |
import useMutation from "@/hooks/use-mutation"; | |
import { Dialog, Switch } from "@headlessui/react"; | |
import * as Icons from "@heroicons/react/solid"; | |
import { format, startOfWeek } from "date-fns"; | |
import { Formik } from "formik"; | |
import { AnimatePresence, motion } from "framer-motion"; | |
import { gql } from "graphql-request"; | |
import { useState, useRef } from "react"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Spinner from "@/components/Spinner"; | |
import useCurrentUser from "@/hooks/use-current-user"; | |
import useMutation from "@/hooks/use-mutation"; | |
import { Dialog, Switch } from "@headlessui/react"; | |
import { CheckIcon } from "@heroicons/react/solid"; | |
import { format, startOfWeek } from "date-fns"; | |
import { Field, Formik } from "formik"; | |
import { motion } from "framer-motion"; | |
import { gql } from "graphql-request"; | |
import { useRef } from "react"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* TODO: Describe tw-reset */ | |
/*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */ | |
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | |
/* | |
Document | |
======== | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from "next/head"; | |
import "tailwindcss/tailwind.css"; | |
import "../styles.css"; | |
import Link from "next/link"; | |
import { useRouter } from "next/router"; | |
function MyApp({ Component, pageProps }) { | |
let router = useRouter(); | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "firebase/app"; | |
import "firebase/auth"; | |
import { gql, GraphQLClient } from "graphql-request"; | |
import { SWRConfig } from "swr"; | |
import create from "zustand"; | |
import { computed } from "zustand-middleware-computed-state"; | |
const firebaseConfig = { | |
// | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { withProse } = require("./src/remark/withProse"); | |
let { withSyntaxHighlighting } = require("./src/remark/withSyntaxHighlighting"); | |
let { withTableOfContents } = require("./src/remark/withTableOfContents"); | |
let { withExamples } = require("./src/remark/withExamples"); | |
let { withLayout } = require("./src/remark/withLayout"); | |
let { withNextLinks } = require("./src/remark/withNextLinks"); | |
let { VueLoaderPlugin } = require("vue-loader"); | |
let path = require("path"); | |
const withMDX = require("@next/mdx")({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { animate, motion, useMotionValue } from "framer-motion"; | |
import { useEffect, useLayoutEffect, useRef, useState } from "react"; | |
import { usePrevious } from "react-use"; | |
import { useGesture } from "react-use-gesture"; | |
export function ImageCropper({ | |
dataURL, | |
aspectRatio, | |
crop, | |
onCropChange, |