-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade to v13 * updating to app directory pattern * updating to next 13 pages * trying to fix the version * upgrades to rollup v3 * new seed script * fast store * moving everything in app dir and updates to browser-extension * adding svelte-demo * upgrade to 13.0.2 * save the svelte experiment for later and fix the tests * adding apollo in favor of fastify * upgrading next.js * formmating * upgrading integration tests * adding more tests and apollo client * removing instantiating apollo client * updating tests to use tag * updating deps * updating workspace package numbers * adding turbo 1.6.3 * updating parcel * changing input to another blog * adding more tests * adding playwright * fulfilling all the test cases for integration test * small fixes * fixes to CI and deps * [ci skip]: remove unnecessary lockfile * fix to authorization headers * updates to sign up flow Co-authored-by: Charlie ⚡ <[email protected]>
- Loading branch information
1 parent
d491e93
commit 42b085e
Showing
20 changed files
with
134 additions
and
52 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import Link from "next/link"; | ||
import { LoginForm } from "../../../components/login-form"; | ||
import { Card } from "../../../components/ui/card"; | ||
|
||
export default function LoginPage() { | ||
return ( | ||
<div> | ||
<header className=""> | ||
<h2 className="mb-6 text-2xl font-bold dark:text-gray-100">Sign in to your account</h2> | ||
<header className="text-center"> | ||
<h2 className="mb-4 text-2xl font-bold dark:text-gray-100">Sign in to your account</h2> | ||
<p> | ||
<span className="opacity-75">Or sign up for an account</span>{" "} | ||
<Link href="/register" className="text-sky-600"> | ||
here | ||
</Link> | ||
</p> | ||
</header> | ||
|
||
<LoginForm /> | ||
<Card className="px-8 py-6"> | ||
<LoginForm /> | ||
</Card> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import Link from "next/link"; | ||
import { RegisterForm } from "../../../components/register-form"; | ||
import { Card } from "../../../components/ui/card"; | ||
|
||
export default function RegistrationPage() { | ||
return ( | ||
<div> | ||
<header className=""> | ||
<h2 className="mb-6 text-2xl font-bold dark:text-gray-100">Sign up for an account</h2> | ||
<header className="mb-8 text-center"> | ||
<h2 className="mb-4 text-2xl font-bold dark:text-gray-100">Sign up for an account</h2> | ||
<p> | ||
<span className="opacity-75">Or sign in to your account</span>{" "} | ||
<Link href="/login" className="text-sky-600"> | ||
here | ||
</Link> | ||
</p> | ||
</header> | ||
<RegisterForm /> | ||
<Card className="px-8 py-6"> | ||
<RegisterForm /> | ||
</Card> | ||
</div> | ||
); | ||
} |
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { classNames } from "./class-names"; | ||
|
||
interface CardProps | ||
extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {} | ||
|
||
export function Card({ className, ...props }: CardProps) { | ||
const _className = classNames(className, "bg-white dark:bg-zinc-800 shadow rounded-lg p-4"); | ||
return <div className={_className} {...props} />; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { ReadonlyRequestCookies } from "next/dist/server/app-render"; | ||
import type { RequestCookies } from "next/dist/server/web/spec-extension/cookies"; | ||
import { TOKEN_NAME } from "./auth-token"; | ||
import { setHeaders } from "./graphql"; | ||
|
||
export async function authorizeRequest<TReturnValue>( | ||
cookies: RequestCookies | ReadonlyRequestCookies, | ||
request: Promise<TReturnValue> | ||
) { | ||
const token = cookies.get(TOKEN_NAME)?.value; | ||
if (token) { | ||
setHeaders(token); | ||
} | ||
return request; | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test("Register for an account", async ({ page }) => { | ||
await page.goto("http:https://localhost:3000/"); | ||
await page.getByRole("link", { name: "Register" }).click(); | ||
await page.getByTestId("register-email-input").click(); | ||
await page.getByTestId("register-email-input").fill("[email protected]"); | ||
await page.getByTestId("register-email-input").press("Tab"); | ||
await page.getByTestId("register-password-input").fill("P@ssw0rd"); | ||
await page.getByRole("button", { name: "Register" }).click(); | ||
await page.getByRole("button", { name: "Add Feed" }).click(); | ||
await expect(page).toHaveURL("http:https://localhost:3000/feeds"); | ||
await expect(page.getByTestId("add-feed-modal")).toHaveText("Add Feed"); | ||
await page.getByTestId("add-feed-url").fill("https://charliewil.co/rss"); | ||
}); |
42b085e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
reubin – ./
reubin-git-main-hephaestus.vercel.app
reubin-hephaestus.vercel.app
reubin-site.vercel.app
alpha.reubin.app
pre-alpha.reubin.app
reubin.app