Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

more aot stuff (#1622)

bautistaaa1402ad447fd8
diff --git a/apps/aot/package.json b/apps/aot/package.json
index a43e3519..85ad5eba 100644
--- a/apps/aot/package.json
+++ b/apps/aot/package.json
@@ -36,6 +36,7 @@
"bad-words": "^3.0.4",
"clsx": "^2.0.0",
"date-fns": "^2.30.0",
+ "framer-motion": "^10.12.22",
"lodash": "^4.17.21",
"lz-string": "^1.5.0",
"nanoid": "^5.0.7",
diff --git a/apps/aot/src/app/(legal)/privacy/page.tsx b/apps/aot/src/app/(legal)/privacy/page.tsx
new file mode 100644
index 00000000..804782cf
--- /dev/null
+++ b/apps/aot/src/app/(legal)/privacy/page.tsx
@@ -0,0 +1,252 @@
+import { Footsies } from '~/components/footsies';
+
+export default function Page() {
+ return (
+ <>
+ <div className="prose dark:prose-invert container justify-center py-10">
+ <h1>Privacy Policy for Typehero</h1>
+
+ <p>
+ Typehero ("we”, “us”, or “our") provides this Privacy Policy to inform you of our policies
+ and procedures regarding the collection, use and disclosure of personal information we may
+ receive from users of our website (“Site”), accessible from https://typehero.dev, and any
+ other services offered by us in connection with our site (any and all of the foregoing the
+ "Services").
+ </p>
+
+ <p>
+ If you have additional questions or require more information about our Privacy Policy, do
+ not hesitate to contact us at{' '}
+ <a href="mailto:[email protected]">[email protected]</a>.
+ </p>
+
+ <p>
+ This Privacy Policy applies only to our online activities and is valid for visitors to our
+ website with regards to the information that they shared and/or collect in Typehero. This
+ policy is not applicable to any information collected offline or via channels other than
+ this website.
+ </p>
+
+ <h2>Consent</h2>
+
+ <p>
+ By using our website, you hereby consent to our Privacy Policy and agree to its terms.
+ </p>
+
+ <h2>Information we collect</h2>
+
+ <p>
+ In the course of using the Services, we collect personally identifiable
+ information(information that is already public via GitHub). We collect and store this
+ personal information solely for the purpose of providing support for the internal
+ operations of our Services and our Site.
+ </p>
+
+ <h2>How we use your information</h2>
+
+ <ul>
+ <li>Provide, operate, and maintain our website</li>
+ <li>
+ Communicate with you for customer service, to provide you with updates and other
+ information relating to the website, and for marketing and promotional purposes(opt in).{' '}
+ </li>
+ <li>Find and prevent fraud</li>
+ </ul>
+
+ <h2>Log Files</h2>
+
+ <p>
+ Typehero follows a standard procedure of using log files. These files log visitors when
+ they visit websites. All hosting companies do this and a part of hosting services'
+ analytics. The information collected by log files include internet protocol (IP)
+ addresses, browser type, Internet Service Provider (ISP), date and time stamp,
+ referring/exit pages, and possibly the number of clicks. These are not linked to any
+ information that is personally identifiable. The purpose of the information is for
+ analyzing trends, administering the site, tracking users' movement on the website, and
+ gathering demographic information.
+ </p>
+
+ <h2>Cookies and Web Beacons</h2>
+
+ <p>
+ Like any other website, Typehero uses "cookies". These cookies are used to store
+ information including visitors' preferences, and the pages on the website that the visitor
+ accessed or visited. The information is used to optimize the users' experience by
+ customizing our web page content based on visitors' browser type and/or other information.
+ </p>
+
+ <h2>Advertising Partners Privacy Policies</h2>
+
+ <p>
+ You may consult this list to find the Privacy Policy for each of the advertising partners
+ of Typehero.
+ </p>
+
+ <p>
+ Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web
+ Beacons that are used in their respective advertisements and links that appear on
+ Typehero, which are sent directly to users' browser. They automatically receive your IP
+ address when this occurs. These technologies are used to measure the effectiveness of
+ their advertising campaigns and/or to personalize the advertising content that you see on
+ websites that you visit.
+ </p>
+
+ <p>
+ Note that Typehero has no access to or control over these cookies that are used by
+ third-party advertisers.
+ </p>
+
+ <h2>Third Party Privacy Policies</h2>
+
+ <p>
+ Typehero's Privacy Policy does not apply to other advertisers or websites. Thus, we are
+ advising you to consult the respective Privacy Policies of these third-party ad servers
+ for more detailed information. It may include their practices and instructions about how
+ to opt-out of certain options.
+ </p>
+
+ <p>
+ You can choose to disable cookies through your individual browser options. To know more
+ detailed information about cookie management with specific web browsers, it can be found
+ at the browsers' respective websites.
+ </p>
+
+ <h2>Links to Other Sites</h2>
+
+ <p>
+ Our services may contain links to other websites, applications, and online services. If
+ you choose to visit a third party service or click on another third party link, you will
+ be directed to that third party's website, application, or online service. The fact that
+ we link to a website, content is not an endorsement, authorization or representation of
+ our affiliation with that third party, nor is it an endorsement of their privacy or
+ information security policies or practices. We do not exercise control over third party
+ websites or services.
+ </p>
+
+ <h2>CCPA Privacy Rights (Do Not Sell My Personal Information)</h2>
+
+ <p>Under the CCPA, among other rights, California consumers have the right to:</p>
+ <p>
+ Request that a business that collects a consumer's personal data disclose the categories
+ and specific pieces of personal data that a business has collected about consumers.
+ </p>
+ <p>
+ Request that a business delete any personal data about the consumer that a business has
+ collected.
+ </p>
+ <p>
+ Request that a business that sells a consumer's personal data, not sell the consumer's
+ personal data.
+ </p>
+ <p>
+ If you make a request, we have one month to respond to you. If you would like to exercise
+ any of these rights, please contact us at{' '}
+ <a href="mailto:[email protected]">[email protected]</a>.
+ </p>
+
+ <h2>Information Sharing</h2>
+
+ <p>
+ WE WILL NOT SHARE, SELL, RENT, OR TRADE YOUR PERSONAL INFORMATION WITH OTHER PARTIES
+ EXCEPT AS PROVIDED BELOW:
+ </p>
+
+ <p>
+ Personal Information: We may share personal information including IP Address, for the
+ purpose of providing support for the internal operations of our services and our site.
+ </p>
+ <p>
+ "Support for the internal operations of our Services and our Site" means activities
+ necessary for the services or site to maintain or analyze its functioning; perform network
+ communications; authenticate users or personalize content; ensure legal or regulatory
+ compliance; or perform other usage analytics. Through our services and site, no other
+ personal information is collected and the persistent identifiers are not used or disclosed
+ to contact a specific individual.
+ </p>
+
+ <h2>International Transfer</h2>
+
+ <p>
+ Your information may be transferred to - and maintained on - computers located outside of
+ your state, province, country or other governmental jurisdiction where the privacy laws
+ may not be as protective as those in your jurisdiction. If you are located outside the
+ United States and choose to provide information to us, we may transfer the personal
+ information to the United States and processes it there. Use of our services or site
+ represents your consent to this Privacy Policy and your agreement to that transfer.
+ </p>
+
+ <h2>GDPR Data Protection Rights</h2>
+
+ <p>
+ We would like to make sure you are fully aware of all of your data protection rights.
+ Every user is entitled to the following:
+ </p>
+ <p>
+ The right to access – You have the right to request copies of your personal data. We may
+ charge you a small fee for this service.
+ </p>
+ <p>
+ The right to rectification – You have the right to request that we correct any information
+ you believe is inaccurate. You also have the right to request that we complete the
+ information you believe is incomplete.
+ </p>
+ <p>
+ The right to erasure – You have the right to request that we erase your personal data,
+ under certain conditions.
+ </p>
+ <p>
+ The right to restrict processing – You have the right to request that we restrict the
+ processing of your personal data, under certain conditions.
+ </p>
+ <p>
+ The right to object to processing – You have the right to object to our processing of your
+ personal data, under certain conditions.
+ </p>
+ <p>
+ The right to data portability – You have the right to request that we transfer the data
+ that we have collected to another organization, or directly to you, under certain
+ conditions.
+ </p>
+ <p>
+ If you make a request, we have one month to respond to you. If you would like to exercise
+ any of these rights, please contact us.
+ </p>
+
+ <h2>Children's Information</h2>
+
+ <p>
+ Another part of our priority is adding protection for children while using the internet.
+ We encourage parents and guardians to observe, participate in, and/or monitor and guide
+ their online activity.
+ </p>
+
+ <p>
+ Typehero does not knowingly collect any Personal Identifiable Information from children
+ under the age of 13. If you think that your child provided this kind of information on our
+ website, we strongly encourage you to contact us immediately and we will do our best
+ efforts to promptly remove such information from our records.
+ </p>
+
+ <h2>Changes to This Privacy Policy</h2>
+
+ <p>
+ This Privacy Policy may be revised periodically, and this will be reflected by a 'Last
+ modified' date below. Thus, we advise you to review this page periodically for any
+ changes. We will notify you of any changes by posting the new Privacy Policy on this page.
+ These changes are effective immediately, after they are posted on this page.
+ </p>
+
+ <h2>Contact Information</h2>
+
+ <p>
+ Please contact us with any questions or comments about this Privacy Policy, Our Privacy
+ Policy Toward Children, your personal information, and our third-party disclosure
+ practices, at <a href="mailto:[email protected]">[email protected]</a>
+ </p>
+
+ <p>Last modified: 10/15/2023</p>
+ </div>
+ <Footsies />
+ </>
+ );
+}
diff --git a/apps/aot/src/app/(legal)/tos/page.tsx b/apps/aot/src/app/(legal)/tos/page.tsx
new file mode 100644
index 00000000..be990e4d
--- /dev/null
+++ b/apps/aot/src/app/(legal)/tos/page.tsx
@@ -0,0 +1,108 @@
+import { Footsies } from '~/components/footsies';
+
+export default function Page() {
+ return (
+ <>
+ <div className="prose dark:prose-invert container justify-center py-10">
+ <h1>Terms and Conditions</h1>
+
+ <h2>1. Terms</h2>
+
+ <p>
+ By accessing this Website, accessible from https://typehero.dev, you are agreeing to be
+ bound by these Website Terms and Conditions of Use and agree that you are responsible for
+ the agreement with any applicable local laws. If you disagree with any of these terms, you
+ are prohibited from accessing this site. The materials contained in this Website are
+ protected by copyright and trade mark law.
+ </p>
+
+ <h2>2. Use License</h2>
+
+ <p>
+ Permission is granted to temporarily download one copy of the materials on Typehero's
+ Website for personal, non-commercial transitory viewing only. This is the grant of a
+ license, not a transfer of title, and under this license you may not:
+ </p>
+
+ <ul>
+ <li>modify or copy the materials;</li>
+ <li>use the materials for any commercial purpose or for any public display;</li>
+ <li>attempt to reverse engineer any software contained on Typehero's Website;</li>
+ <li>remove any copyright or other proprietary notations from the materials; or</li>
+ <li>
+ transferring the materials to another person or "mirror" the materials on any other
+ server.
+ </li>
+ </ul>
+
+ <p>
+ This will let Typehero to terminate upon violations of any of these restrictions. Upon
+ termination, your viewing right will also be terminated and you should destroy any
+ downloaded materials in your possession whether it is printed or electronic format. These
+ Terms of Service has been created with the help of the{' '}
+ <a href="https://www.termsofservicegenerator.net">Terms Of Service Generator</a>.
+ </p>
+
+ <h2>3. Disclaimer</h2>
+
+ <p>
+ All the materials on Typehero's Website are provided "as is". Typehero makes no
+ warranties, may it be expressed or implied, therefore negates all other warranties.
+ Furthermore, Typehero does not make any representations concerning the accuracy or
+ reliability of the use of the materials on its Website or otherwise relating to such
+ materials or any sites linked to this Website.
+ </p>
+
+ <h2>4. Limitations</h2>
+
+ <p>
+ Typehero or its suppliers will not be hold accountable for any damages that will arise
+ with the use or inability to use the materials on Typehero's Website, even if Typehero or
+ an authorize representative of this Website has been notified, orally or written, of the
+ possibility of such damage. Some jurisdiction does not allow limitations on implied
+ warranties or limitations of liability for incidental damages, these limitations may not
+ apply to you.
+ </p>
+
+ <h2>5. Revisions and Errata</h2>
+
+ <p>
+ The materials appearing on Typehero's Website may include technical, typographical, or
+ photographic errors. Typehero will not promise that any of the materials in this Website
+ are accurate, complete, or current. Typehero may change the materials contained on its
+ Website at any time without notice. Typehero does not make any commitment to update the
+ materials.
+ </p>
+
+ <h2>6. Links</h2>
+
+ <p>
+ Typehero has not reviewed all of the sites linked to its Website and is not responsible
+ for the contents of any such linked site. The presence of any link does not imply
+ endorsement by Typehero of the site. The use of any linked website is at the user's own
+ risk.
+ </p>
+
+ <h2>7. Site Terms of Use Modifications</h2>
+
+ <p>
+ Typehero may revise these Terms of Use for its Website at any time without prior notice.
+ By using this Website, you are agreeing to be bound by the current version of these Terms
+ and Conditions of Use.
+ </p>
+
+ <h2>8. Your Privacy</h2>
+
+ <p>Please read our Privacy Policy.</p>
+
+ <h2>9. Governing Law</h2>
+
+ <p>
+ Any claim related to Typehero's Website shall be governed by the laws of af without
+ regards to its conflict of law provisions.
+ </p>
+ </div>
+ <Footsies />
+ </>
+ );
+}
diff --git a/apps/aot/src/app/globals.css b/apps/aot/src/app/globals.css
index 24275a76..509af6df 100644
--- a/apps/aot/src/app/globals.css
+++ b/apps/aot/src/app/globals.css
@@ -510,76 +510,6 @@ body.mobile-nav-active {
}
}
-@layer base {
- :root {
- --gradient-angle: 360deg;
-
- --background: 0 0% 100%;
- --foreground: 240 10% 3.9%;
-
- --muted: 240 4.8% 95.9%;
- --muted-foreground: 240 3.8% 46.1%;
-
- --popover: 0 0% 100%;
- --popover-foreground: 240 10% 3.9%;
-
- --card: 0 0% 100%;
- --card-hovered: 0 0% 98%;
- --card-foreground: 240 10% 3.9%;
-
- --border: 240 5.9% 90%;
- --input: 240 5.9% 90%;
-
- --primary: 240 5.9% 10%;
- --primary-foreground: 0 0% 98%;
-
- --secondary: 240 4.8% 95.9%;
- --secondary-foreground: 240 5.9% 10%;
-
- --accent: 240 4.8% 95.9%;
- --accent-foreground: ;
-
- --destructive: 0 84.2% 60.2%;
- --destructive-foreground: 0 0% 98%;
-
- --ring: 240 5% 64.9%;
-
- --radius: 0.5rem;
- }
-
- .dark {
- --background: 240 10% 3.9%;
- --foreground: 0 0% 98%;
-
- --muted: 240 3.7% 15.9%;
- --muted-foreground: 240 5% 64.9%;
-
- --popover: 240 10% 3.9%;
- --popover-foreground: 0 0% 98%;
-
- --card: 240 10% 3.9%;
- --card-hovered: 240 10% 6.9%;
- --card-foreground: 0 0% 98%;
-
- --border: 240 3.7% 15.9%;
- --input: 240 3.7% 15.9%;
-
- --primary: 0 0% 98%;
- --primary-foreground: 240 5.9% 10%;
-
- --secondary: 240 3.7% 15.9%;
- --secondary-foreground: 0 0% 98%;
-
- --accent: 240 3.7% 15.9%;
- --accent-foreground: ;
-
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 0 85.7% 97.3%;
-
- --ring: 240 3.7% 15.9%;
- }
-}
-
/* TODO: upgrade tailwind to latest & remove this */
@layer utilities {
.text-balance {
diff --git a/apps/aot/src/app/layout.tsx b/apps/aot/src/app/layout.tsx
index 52ea94be..54da391b 100644
--- a/apps/aot/src/app/layout.tsx
+++ b/apps/aot/src/app/layout.tsx
@@ -3,8 +3,7 @@ import './globals.css';
import { Toaster } from '@repo/ui/components/toaster';
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
-import { Navigation, SimpleNavigation } from '~/components/navigation';
-import { getAllFlags } from '~/utils/feature-flag';
+import { Navigation } from '~/components/navigation';
import { Providers } from './providers';
const inter = Inter({ subsets: ['latin'] });
@@ -18,8 +17,6 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
- const { enableAotPlatform } = await getAllFlags();
-
return (
<html lang="en">
<head>
@@ -27,7 +24,7 @@ export default async function RootLayout({
</head>
<body className={inter.className}>
<Providers>
- {enableAotPlatform ? <Navigation /> : <SimpleNavigation />}
+ <Navigation />
<main>{children}</main>
</Providers>
<Toaster />
diff --git a/apps/aot/src/app/login/_components/LoginButton.tsx b/apps/aot/src/app/login/_components/LoginButton.tsx
new file mode 100644
index 00000000..c07468d3
--- /dev/null
+++ b/apps/aot/src/app/login/_components/LoginButton.tsx
@@ -0,0 +1,42 @@
+'use client';
+
+import { signIn } from '@repo/auth/react';
+import { Button } from '@repo/ui/components/button';
+import { useState } from 'react';
+
+type State = 'error' | 'idle' | 'pending' | 'success';
+
+export function LoginButton({ redirectTo }: { redirectTo: string }) {
+ const [state, setState] = useState<State>('idle');
+
+ const handleSignIn = async () => {
+ try {
+ setState('pending');
+ await signIn('github', { callbackUrl: redirectTo });
+ } catch (error) {
+ setState('error');
+ }
+ };
+
+ return (
+ <div className="mx-auto rounded-md duration-300 hover:shadow-[0_0_2rem_-0.5rem_#3178c6]">
+ <Button
+ variant="outline"
+ onClick={handleSignIn}
+ disabled={state === 'pending'}
+ className="fancy-border-gradient hover:bg-background relative mx-auto flex gap-4 border-none"
+ >
+ Login with GitHub{' '}
+ <svg
+ role="img"
+ viewBox="0 0 24 24"
+ className="h-4 w-4 fill-current"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <title>GitHub</title>
+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
+ </svg>
+ </Button>
+ </div>
+ );
+}
diff --git a/apps/aot/src/app/login/page.tsx b/apps/aot/src/app/login/page.tsx
new file mode 100644
index 00000000..6ed75d23
--- /dev/null
+++ b/apps/aot/src/app/login/page.tsx
@@ -0,0 +1,36 @@
+import Link from 'next/link';
+import { LoginButton } from './_components/LoginButton';
+
+export default async function Index({
+ searchParams,
+}: {
+ searchParams: {
+ redirectTo: string | null;
+ };
+}) {
+ return (
+ <div className="container -mt-[56px] flex h-screen flex-col items-center justify-center">
+ <div className="lg:p-8">
+ <div className="mx-auto flex w-full flex-col justify-center space-y-6 text-center sm:w-[450px]">
+ <div className="flex flex-col space-y-2 text-center">
+ <h1 className="text-4xl font-bold tracking-tight text-neutral-900 dark:text-white">
+ Welcome to Advent of TS!
+ </h1>
+ </div>
+ <LoginButton redirectTo={searchParams.redirectTo ?? '/'} />
+ <p className="text-muted-foreground mx-auto px-8 text-sm sm:w-[350px]">
+ By clicking Login, you agree to our <br />
+ <Link href="/tos" className="hover:text-primary underline underline-offset-4">
+ Terms of Service
+ </Link>{' '}
+ and{' '}
+ <Link href="/privacy" className="hover:text-primary underline underline-offset-4">
+ Privacy Policy
+ </Link>
+ .
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/aot/src/app/page.tsx b/apps/aot/src/app/page.tsx
index eff1e09d..7791e444 100644
--- a/apps/aot/src/app/page.tsx
+++ b/apps/aot/src/app/page.tsx
@@ -1,7 +1,7 @@
-import Snowfall from '../components/landing/Snowfall';
-import { CountdownTimer } from '~/components/landing/useCountdown';
-import Partners from '~/components/landing/Partners';
import Hero from '~/components/landing/Hero';
+import Partners from '~/components/landing/Partners';
+import { CountdownTimer } from '~/components/landing/useCountdown';
+import Snowfall from '../components/landing/Snowfall';
export default function Home() {
return (
@@ -14,6 +14,8 @@ export default function Home() {
<CountdownTimer />
<Hero />
<Partners />
+ {/* looks bad on desktop and mobile */}
+ {/* <Footsies /> */}
</div>
);
}
diff --git a/apps/aot/src/components/footsies.tsx b/apps/aot/src/components/footsies.tsx
new file mode 100644
index 00000000..81c3549f
--- /dev/null
+++ b/apps/aot/src/components/footsies.tsx
@@ -0,0 +1,59 @@
+import Link from 'next/link';
+import { Binary, Github, Twitter } from '@repo/ui/icons';
+import { ThemeButton } from './navigation/theme-button';
+
+export async function Footsies() {
+ return (
+ <footer className="flex w-full flex-col items-center gap-2 px-8 pb-12 text-sm font-light sm:px-16 sm:pb-20 sm:pt-6 md:px-0 md:py-12">
+ <div className="container flex flex-col-reverse justify-between gap-2 md:flex-row md:items-end">
+ <span>
+ Built with <Binary className="inline-block h-5 w-5 text-[#31bdc6]" /> by the Trash Devs
+ community.
+ </span>
+ <div className="flex items-center gap-2">
+ <ThemeButton />
+ <span className="px-2">|</span>
+ <a
+ target="_blank"
+ rel="noreferrer"
+ className="group rounded-lg p-2"
+ href="https://github.com/typehero/typehero"
+ >
+ <span className="sr-only">TypeHero on GitHub</span>
+ <Github className="h-5 w-5 duration-150 group-hover:scale-110 group-hover:fill-black dark:group-hover:fill-white" />
+ </a>
+ <a
+ target="_blank"
+ rel="noreferrer"
+ className="group rounded-lg p-2"
+ href="https://twitter.com/typeheroapp"
+ >
+ <span className="sr-only">TypeHero on Twitter</span>
+ <Twitter className="h-5 w-5 duration-150 group-hover:scale-110 group-hover:fill-black dark:group-hover:fill-white" />
+ </a>
+ </div>
+ </div>
+ <div className="container flex flex-col justify-between gap-2 text-neutral-500 md:flex-row md:items-end dark:text-neutral-400">
+ <span>
+ <Link
+ href="/privacy"
+ className="dark:hover:text-primary-foreground transition-colors duration-300 hover:text-neutral-900 hover:underline"
+ >
+ Privacy Policy
+ </Link>{' '}
+ |{' '}
+ <Link
+ href="/tos"
+ className="dark:hover:text-primary-foreground transition-colors duration-300 hover:text-neutral-900 hover:underline"
+ >
+ Terms of Service
+ </Link>
+ </span>
+ <span>
+ <div className="inline-block rotate-180">©</div>
+ {new Date().getFullYear()} TypeHero
+ </span>
+ </div>
+ </footer>
+ );
+}
diff --git a/apps/aot/src/components/navigation/index.tsx b/apps/aot/src/components/navigation/index.tsx
index f793847d..d2384c95 100644
--- a/apps/aot/src/components/navigation/index.tsx
+++ b/apps/aot/src/components/navigation/index.tsx
@@ -1,62 +1,75 @@
-'use client';
-
-import { signIn, signOut, useSession } from '@repo/auth/react';
-import { Button } from '@repo/ui/components/button';
+import type { Session } from '@repo/auth/server';
+import { Avatar, AvatarFallback, AvatarImage, DefaultAvatar } from '@repo/ui/components/avatar';
import {
DropdownMenu,
DropdownMenuContent,
+ DropdownMenuSeparator,
DropdownMenuTrigger,
} from '@repo/ui/components/dropdown-menu';
-import { Loader2, LogIn, Moon, Sun } from '@repo/ui/icons';
-import { useTheme } from 'next-themes';
+import { Palette } from '@repo/ui/icons';
import Link from 'next/link';
-import { useEffect, useState } from 'react';
+import { auth } from '~/server/auth';
+import { getAllFlags } from '~/utils/feature-flag';
+import { LoginLink } from './login-link';
import Logo from './logo';
+import { MobileNav } from './mobile-nav';
import { NavLink } from './nav-link';
-import { Avatar, AvatarFallback, AvatarImage, DefaultAvatar } from '@repo/ui/components/avatar';
+import { NavWrapper } from './nav-wrapper';
+import { SignOutLink } from './signout-link';
+import { ThemeButton } from './theme-button';
-export function Navigation() {
- return (
- <header className="sticky top-0 z-50 w-full">
- <nav className="flex h-14 grid-cols-3 items-center justify-between px-4 xl:grid">
- <div className="relative flex gap-3">
- <Link className="flex items-center space-x-2 duration-300" href="/">
- <Logo />
- </Link>
- </div>
- <div className="mx-auto mt-32 hidden w-fit items-center rounded-full md:mt-0 md:flex">
+export async function Navigation() {
+ const [session, featureFlags] = await Promise.all([auth(), getAllFlags()]);
+
+ const TopSectionLinks = (
+ <>
+ {featureFlags.enableAotPlatform ? (
+ <>
<NavLink title="About" href="/about" />
<NavLink title="Leaderboard" href="/leaderboard" />
<NavLink title="Events" href="/events" />
- {/* support button looks kinda out of place here */}
- <Link
- className="donate-btn relative overflow-hidden rounded-md border border-[#bea74b66] px-3 py-2 text-black duration-300 hover:bg-[#eed15f] dark:text-white dark:hover:bg-[#bea74b44]"
- href="/support"
- >
- Support Us
- </Link>
- </div>
- <div className="flex xl:ml-auto">
- <div className="flex items-center justify-end gap-2">
+ </>
+ ) : null}
+ </>
+ );
+ const NavLinks = (
+ <>
+ <div className="hidden items-center md:flex">{TopSectionLinks}</div>
+ <div className="flex flex-col gap-5 pl-2 md:hidden">
+ {TopSectionLinks}
+ {!session?.user && (
+ <div className="flex items-center gap-2">
+ <span>Theme</span>
<ThemeButton />
- <LoginButton />
</div>
- </div>
- </nav>
- </header>
+ )}
+
+ {session?.user ? (
+ <>
+ <hr />
+ <div className="flex items-center gap-2">
+ <span>Theme</span>
+ <ThemeButton />
+ </div>
+ <SignOutLink className="px-0" />
+ </>
+ ) : (
+ <LoginLink className="px-0 hover:bg-transparent hover:dark:bg-transparent" />
+ )}
+ </div>
+ </>
);
-}
-export function SimpleNavigation() {
return (
- <header className="sticky top-0 z-50 w-full">
- <nav className="flex h-14 grid-cols-2 items-center justify-between px-4 xl:grid">
- <div className="relative flex gap-3">
- <Link className="flex items-center space-x-2 duration-300" href="/">
- <Logo />
- </Link>
- </div>
- <div className="flex xl:ml-auto">
+ <header className="z-50 w-full">
+ <NavWrapper>
+ <div className="flex w-full items-center justify-between">
+ <div className="relative flex gap-3">
+ <Link className="flex items-center space-x-2 duration-300" href="/">
+ <Logo />
+ </Link>
+ </div>
+ <div className="hidden items-center md:flex">{NavLinks}</div>
<div className="flex items-center justify-end gap-2">
<Link
className="donate-btn relative overflow-hidden rounded-md border border-[#bea74b66] px-3 py-2 text-black duration-300 hover:bg-[#eed15f] dark:text-white dark:hover:bg-[#bea74b44]"
@@ -64,68 +77,22 @@ export function SimpleNavigation() {
>
Support Us
</Link>
- <LoginButton />
+ <LoginButton session={session} />
+ <MobileNav>{NavLinks}</MobileNav>
</div>
</div>
- </nav>
+ </NavWrapper>
</header>
);
}
-function ThemeButton() {
- const [mounted, setMounted] = useState(false);
- const { setTheme, resolvedTheme } = useTheme();
-
- useEffect(() => {
- setMounted(true);
- }, []);
-
- return (
- <>
- {mounted ? (
- <button
- aria-label="theme button"
- className="focus:bg-accent rounded-lg p-2 duration-300 focus:outline-none"
- onClick={() => {
- setTheme(resolvedTheme === 'dark' ? 'light' : 'dark');
- }}
- type="button"
- >
- {resolvedTheme === 'dark' && <Moon aria-hidden="true" className="h-5 w-5" />}
- {resolvedTheme === 'light' && <Sun aria-hidden="true" className="h-5 w-5" />}
- </button>
- ) : null}
- </>
- );
-}
-
-function LoginButton() {
- const [loading, setLoading] = useState(false);
- const { data: session, status } = useSession();
-
- // NOTE: 1. loading == true -> 2. signIn() -> 3. session status == 'loading' (loading == false)
- const handleSignIn = async () => {
- try {
- setLoading(true);
- // page reloads after sign in, so no need to setLoading(false), othersiwe ugly visual glitch
- await signIn('github', { redirect: false });
- } catch (error) {
- // only set loading to false if there was an error and page didn't reload after sign in
- setLoading(false);
- }
- };
- const handleSignOut = async () => {
- await signOut({ redirect: false });
- // whatever
- window.location.reload();
- };
-
- return session ? (
+async function LoginButton({ session }: { session: Session | null }) {
+ return session?.user ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
aria-label="profile button"
- className="rounded-lg p-2 duration-300 focus:outline-none focus-visible:ring-2"
+ className="hidden rounded-lg p-2 duration-300 focus:outline-none focus-visible:ring-2 md:block"
>
<Avatar className="h-7 w-7">
<AvatarImage src={session.user.image ?? ''} alt="user avatar" />
@@ -139,29 +106,21 @@ function LoginButton() {
align="end"
className="mt-[0.33rem] w-56 rounded-xl bg-white/50 backdrop-blur-sm dark:bg-neutral-950/50"
>
- <Button
- className="h-8 w-full justify-start rounded-b-lg rounded-t-sm bg-opacity-50 px-2 text-red-500 hover:bg-red-500/20 hover:text-red-500"
- onClick={handleSignOut}
- variant="ghost"
- >
- <span className="text-red-500">Log out</span>
- </Button>
+ <div className="flex items-center justify-between rounded-lg px-2 py-0.5 text-sm ">
+ <div className="flex items-center">
+ <Palette className="mr-2 h-4 w-4" />
+ <span>Theme</span>
+ </div>
+ <ThemeButton />
+ </div>
+ <DropdownMenuSeparator />
+
+ <SignOutLink className="w-full rounded-b-lg rounded-t-sm" />
</DropdownMenuContent>
</DropdownMenu>
) : (
- <Button
- className="focus:bg-accent w-20 rounded-lg bg-transparent p-2 text-black duration-300 hover:bg-gray-200 focus:outline-none dark:text-white hover:dark:bg-gray-800"
- disabled={loading || status === 'loading'}
- onClick={handleSignIn}
- >
- {loading || status === 'loading' ? (
- <Loader2 className="h-5 w-5 animate-spin" />
- ) : (
- <div className="flex items-center space-x-2">
- <LogIn className="h-5 w-5" />
- <span className="dark:text-white">Login</span>
- </div>
- )}
- </Button>
+ <span className="hidden md:flex">
+ <LoginLink />
+ </span>
);
}
diff --git a/apps/aot/src/components/navigation/login-link.tsx b/apps/aot/src/components/navigation/login-link.tsx
new file mode 100644
index 00000000..b09f645c
--- /dev/null
+++ b/apps/aot/src/components/navigation/login-link.tsx
@@ -0,0 +1,33 @@
+'use client';
+import { LogIn } from '@repo/ui/icons';
+import clsx from 'clsx';
+import Link from 'next/link';
+import { usePathname } from 'next/navigation';
+
+const BLACKLISTED_LOGIN_REDIRECT_PATHS = ['/', '/login'];
+
+export function LoginLink({ className }: { className?: string }) {
+ const pathname = usePathname();
+ const isBlacklistedPath = BLACKLISTED_LOGIN_REDIRECT_PATHS.some((blacklistedPath) => {
+ return blacklistedPath === pathname;
+ });
+ return (
+ <Link
+ className={clsx(
+ 'focus:bg-accent w-20 rounded-md border border-transparent bg-transparent p-2 text-black duration-300 hover:border-black/30 hover:bg-black/10 focus:outline-none dark:text-white dark:hover:border-white/30 dark:hover:bg-white/10',
+ className,
+ )}
+ href={{
+ pathname: '/login',
+ query: {
+ ...(!isBlacklistedPath && { redirectTo: pathname }),
+ },
+ }}
+ >
+ <div className="flex items-center space-x-2">
+ <LogIn className="h-5 w-5" />
+ <span className="dark:text-white">Login</span>
+ </div>
+ </Link>
+ );
+}
diff --git a/apps/aot/src/components/navigation/mobile-nav.tsx b/apps/aot/src/components/navigation/mobile-nav.tsx
new file mode 100644
index 00000000..50207161
--- /dev/null
+++ b/apps/aot/src/components/navigation/mobile-nav.tsx
@@ -0,0 +1,65 @@
+'use client';
+import { cn } from '@repo/ui/cn';
+import { motion } from 'framer-motion';
+import { usePathname } from 'next/navigation';
+import React, { useEffect } from 'react';
+
+interface Props {
+ children: React.ReactNode;
+}
+
+export function MobileNav({ children }: Props) {
+ const pathname = usePathname();
+ const [open, setOpen] = React.useState(false);
+ const [mounted, setMounted] = React.useState(false);
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ useEffect(() => {
+ setOpen(false);
+ }, [pathname]);
+
+ //blocking scroll on open nav-menu
+ useEffect(() => {
+ if (mounted && open) {
+ const body = document.getElementsByTagName('body')[0];
+ body?.classList.add('mobile-nav-active');
+ }
+ if (mounted && !open) {
+ const body = document.getElementsByTagName('body')[0];
+ body?.classList.remove('mobile-nav-active');
+ }
+ }, [open, mounted]);
+
+ return (
+ mounted && (
+ <>
+ <div className="md:hidden">
+ {/* Hamburger Icon */}
+ <button
+ className={cn(
+ 'hamburger rounded-lg p-4 duration-300 focus:outline-none ',
+ open ? 'is-active' : '',
+ )}
+ onClick={() => setOpen((prev) => !prev)}
+ >
+ <span className="line mb-2" />
+ <span className="line mt-2" />
+ </button>
+ </div>
+ <motion.div
+ key={open ? 'open' : 'close'}
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ className={`bg-background/30 left-0 top-[55px] z-50 flex h-full w-full flex-1 snap-y flex-col gap-5 justify-self-center border-b p-3 backdrop-blur-md md:mt-0 md:hidden md:pb-0 ${
+ open ? 'absolute block w-full' : 'hidden'
+ }`}
+ >
+ {children}
+ </motion.div>
+ </>
+ )
+ );
+}
diff --git a/apps/aot/src/components/navigation/nav-wrapper.tsx b/apps/aot/src/components/navigation/nav-wrapper.tsx
new file mode 100644
index 00000000..12758a73
--- /dev/null
+++ b/apps/aot/src/components/navigation/nav-wrapper.tsx
@@ -0,0 +1,21 @@
+'use client';
+
+import { usePathname } from 'next/navigation';
+import { useFullscreenSettingsStore } from '~/app/events/[year]/[day]/fullscreen-button';
+
+export function NavWrapper({ children }: { children: React.ReactNode }) {
+ const { fssettings } = useFullscreenSettingsStore();
+ const pathname = usePathname();
+
+ if (fssettings.isFullscreen) return <></>;
+
+ return (
+ <nav
+ className={`flex h-14 items-center ${
+ pathname?.startsWith('placeholder') ? 'container' : 'px-4'
+ }`}
+ >
+ {children}
+ </nav>
+ );
+}
diff --git a/apps/aot/src/components/navigation/signout-link.tsx b/apps/aot/src/components/navigation/signout-link.tsx
new file mode 100644
index 00000000..3321e4eb
--- /dev/null
+++ b/apps/aot/src/components/navigation/signout-link.tsx
@@ -0,0 +1,26 @@
+'use client';
+import { signOut } from '@repo/auth/react';
+import { Button } from '@repo/ui/components/button';
+import clsx from 'clsx';
+import { useRouter } from 'next/navigation';
+
+export function SignOutLink({ className }: { className?: string }) {
+ const router = useRouter();
+
+ const handleSignOut = async () => {
+ await signOut({ redirect: false });
+ router.refresh();
+ };
+ return (
+ <Button
+ className={clsx(
+ 'h-8 justify-start bg-opacity-50 px-2 text-red-500 hover:bg-red-500/20 hover:text-red-500',
+ className,
+ )}
+ onClick={handleSignOut}
+ variant="ghost"
+ >
+ <span className="text-red-500">Log out</span>
+ </Button>
+ );
+}
diff --git a/apps/aot/src/components/navigation/theme-button.tsx b/apps/aot/src/components/navigation/theme-button.tsx
new file mode 100644
index 00000000..8e710afd
--- /dev/null
+++ b/apps/aot/src/components/navigation/theme-button.tsx
@@ -0,0 +1,53 @@
+'use client';
+import { useEffect, useState } from 'react';
+import { useTheme } from 'next-themes';
+import { Laptop, Moon, Sun } from '@repo/ui/icons';
+import { cn } from '@repo/ui/cn';
+import { motion } from 'framer-motion';
+
+const themes = ['system', 'light', 'dark'] as const;
+
+export function ThemeButton() {
+ const [mounted, setMounted] = useState(false);
+ const { setTheme, theme } = useTheme();
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ if (!mounted) return null;
+
+ return (
+ <div className={cn('flex items-center rounded-full border p-0.5')}>
+ {themes.map((t) => {
+ const isActive = theme === t;
+ return (
+ <motion.button
+ key={t}
+ className={cn('rounded-full p-1.5', isActive && 'bg-secondary')}
+ onClick={() => setTheme(t)}
+ aria-label="theme button"
+ whileHover={{ scale: 1.1 }}
+ whileTap={{ scale: 0.95 }}
+ layout
+ transition={{ type: 'spring', stiffness: 300, damping: 20 }}
+ >
+ {t === 'system' && <Laptop aria-hidden="true" className="size-4" />}
+ {t === 'light' && (
+ <Sun
+ aria-hidden="true"
+ className={cn('size-4', isActive && 'fill-black dark:fill-white')}
+ />
+ )}
+ {t === 'dark' && (
+ <Moon
+ aria-hidden="true"
+ className={cn('size-4', isActive && 'fill-black dark:fill-white')}
+ />
+ )}
+ </motion.button>
+ );
+ })}
+ </div>
+ );
+}
diff --git a/apps/aot/src/utils/feature-flag.ts b/apps/aot/src/utils/feature-flag.ts
index 205bf5df..6f856f40 100644
--- a/apps/aot/src/utils/feature-flag.ts
+++ b/apps/aot/src/utils/feature-flag.ts
@@ -7,7 +7,7 @@ export const mockFlags = {
enableEarlyAccess: false,
enableInChallengeTrack: true,
enableHolidayEvent: true,
- enableAotPlatform: true,
+ enableAotPlatform: false,
enableAotLandingPage: true,
};
diff --git a/apps/web/src/app/(legal)/privacy/page.tsx b/apps/web/src/app/(legal)/privacy/page.tsx
index 5ceb0488..c8a2092e 100644
--- a/apps/web/src/app/(legal)/privacy/page.tsx
+++ b/apps/web/src/app/(legal)/privacy/page.tsx
@@ -45,8 +45,8 @@ export default function Page() {
<h2>Information we collect</h2>
<p>
- In the course of using the Services, we collect personally identifiable information, in
- the form of Persistent Identifiers, including IP Address. We collect and store this
+ In the course of using the Services, we collect personally identifiable
+ information(information that is already public via GitHub). We collect and store this
personal information solely for the purpose of providing support for the internal
operations of our Services and our Site.
</p>
@@ -56,9 +56,8 @@ export default function Page() {
<ul>
<li>Provide, operate, and maintain our website</li>
<li>
- Communicate with you, either directly or through one of our partners, including for
- customer service, to provide you with updates and other information relating to the
- website, and for marketing and promotional purposes(opt in).{' '}
+ Communicate with you for customer service, to provide you with updates and other
+ information relating to the website, and for marketing and promotional purposes(opt in).{' '}
</li>
<li>Find and prevent fraud</li>
</ul>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 92753756..24d0ba5a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -91,10 +91,10 @@ importers:
version: 2.6.0-beta.12
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
react:
specifier: 18.2.0
version: 18.2.0
@@ -158,7 +158,7 @@ importers:
eslint-plugin-import:
specifier: ^2.27.5
- version: 2.27.5([email protected])
postcss:
specifier: ^8.4.31
version: 8.4.31
@@ -237,6 +237,9 @@ importers:
date-fns:
specifier: ^2.30.0
version: 2.30.0
+ framer-motion:
+ specifier: ^10.12.22
lodash:
specifier: ^4.17.21
version: 4.17.21
@@ -248,10 +251,10 @@ importers:
version: 5.0.7
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
react:
specifier: 18.2.0
version: 18.2.0
@@ -367,7 +370,7 @@ importers:
version: 1.0.0
next:
specifier: 14.2.5
react:
specifier: 18.2.0
version: 18.2.0
@@ -443,7 +446,7 @@ importers:
version: link:../../packages/ui
'@sentry/nextjs':
specifier: ^7.73.0
'@stripe/react-stripe-js':
specifier: ^2.8.0
@@ -467,7 +470,7 @@ importers:
'@uploadthing/react':
specifier: ^6.2.2
'@vercel/analytics':
specifier: ^1.1.1
version: 1.1.1
@@ -476,10 +479,10 @@ importers:
version: 0.2.1
'@vercel/speed-insights':
specifier: ^1.0.12
'@vercel/toolbar':
specifier: ^0.1.18
algoliasearch:
specifier: ^4.20.0
version: 4.20.0
@@ -518,10 +521,10 @@ importers:
version: 5.0.7
next:
specifier: 14.2.5
next-themes:
specifier: ^0.2.1
react:
specifier: 18.2.0
version: 18.2.0
@@ -548,7 +551,7 @@ importers:
react-instantsearch-nextjs:
specifier: ^0.1.5
react-intersection-observer:
specifier: ^9.5.2
version: 9.5.2([email protected])
@@ -645,7 +648,7 @@ importers:
eslint-plugin-import:
specifier: ^2.27.5
- version: 2.27.5([email protected])
postcss:
specifier: ^8.4.31
version: 8.4.31
@@ -996,7 +999,7 @@ importers:
dependencies:
'@next/eslint-plugin-next':
specifier: canary
- version: 15.0.3-canary.2
+ version: 15.0.3-canary.4
'@repo/tsconfig':
specifier: workspace:*
version: link:../config-typescript
@@ -1008,7 +1011,7 @@ importers:
'@vercel/style-guide':
specifier: ^4.0.2
eslint:
specifier: ^8.45.0
version: 8.45.0
@@ -2111,8 +2114,8 @@ packages:
resolution: {integrity: sha512-YJqyq6vk39JQfvaNtN83t/p5Jy45+bazRL+V4QI8FPd3FBqFYMEsULiwRLgSJMgFqkk4t4JbeZurz+gILEAFpA==}
- resolution: {integrity: sha512-x8+2UKZvVzqF5M/FkFG9gWcZz3jPht5zxl9kOCWDODBrYSkGNPfvtEuNsBREluPtDNi75OVdiM3+oDiBybnljA==}
+ resolution: {integrity: sha512-2RXzHfdzBrDszGo65b+4CQYKIToY27+8rIUY8+dePpNWOnivjmvcIUUFbqdxaWcONikBiQvEBpF1M2ETbgy6Gw==}
resolution: {integrity: sha512-/9zVxJ+K9lrzSGli1///ujyRfon/ZneeZ+v4ptpiPoOU+GKZnm8Wj8ELWU1Pm7GHltYRBklmXMTUqM/DqQ99FQ==}
@@ -8015,7 +8018,7 @@ packages:
resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==}
engines: {node: '>= 4.0'}
- deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net
+ deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==}
@@ -9690,7 +9693,7 @@ snapshots:
dependencies:
glob: 7.1.7
dependencies:
fast-glob: 3.3.1
@@ -11191,7 +11194,7 @@ snapshots:
localforage: 1.10.0
tslib: 2.6.0
dependencies:
'@rollup/plugin-commonjs': 24.0.0([email protected])
'@sentry/core': 7.73.0
@@ -11203,7 +11206,7 @@ snapshots:
'@sentry/vercel-edge': 7.73.0
'@sentry/webpack-plugin': 1.20.0
chalk: 3.0.0
react: 18.2.0
rollup: 2.78.0
stacktrace-parser: 0.1.10
@@ -11779,6 +11782,20 @@ snapshots:
'@uploadthing/[email protected]': {}
+ dependencies:
+ '@uploadthing/dropzone': 0.1.1
+ '@uploadthing/shared': 6.2.0(@uploadthing/[email protected])
+ attr-accept: 2.2.2
+ file-selector: 0.6.0
+ react: 18.2.0
+ tailwind-merge: 1.14.0
+ uploadthing: 6.3.1
+ optionalDependencies:
+ transitivePeerDependencies:
+ - '@uploadthing/mime-types'
+
dependencies:
'@uploadthing/dropzone': 0.1.1
@@ -11789,7 +11806,7 @@ snapshots:
tailwind-merge: 1.14.0
uploadthing: 6.3.1
optionalDependencies:
transitivePeerDependencies:
- '@uploadthing/mime-types'
@@ -11846,12 +11863,12 @@ snapshots:
satori: 0.0.46
yoga-wasm-web: 0.3.0
optionalDependencies:
react: 18.2.0
dependencies:
'@babel/core': 7.22.10
'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])
@@ -11873,7 +11890,7 @@ snapshots:
eslint-plugin-unicorn: 43.0.2([email protected])
prettier-plugin-packagejson: 2.4.3([email protected])
optionalDependencies:
- '@next/eslint-plugin-next': 15.0.3-canary.2
+ '@next/eslint-plugin-next': 15.0.3-canary.4
eslint: 8.45.0
prettier: 3.1.1
typescript: 5.3.3
@@ -11883,7 +11900,7 @@ snapshots:
- jest
- supports-color
dependencies:
'@tinyhttp/app': 1.3.0
chokidar: 3.5.3
@@ -11892,7 +11909,7 @@ snapshots:
get-port: 5.1.1
strip-ansi: 6.0.1
optionalDependencies:
react: 18.2.0
'@vitest/[email protected]':
@@ -13204,7 +13221,7 @@ snapshots:
'@typescript-eslint/parser': 5.62.0([email protected])([email protected])
eslint: 8.56.0
eslint-import-resolver-node: 0.3.7
- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])
eslint-plugin-jsx-a11y: 6.7.1([email protected])
eslint-plugin-react: 7.32.2([email protected])
@@ -13242,7 +13259,7 @@ snapshots:
enhanced-resolve: 5.15.0
eslint: 8.45.0
- eslint-plugin-import: 2.27.5([email protected])
get-tsconfig: 4.6.2
globby: 13.2.2
is-core-module: 2.12.1
@@ -13272,7 +13289,7 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
dependencies:
debug: 4.3.4
enhanced-resolve: 5.15.0
@@ -13319,7 +13336,7 @@ snapshots:
'@typescript-eslint/parser': 5.62.0([email protected])([email protected])
eslint: 8.56.0
eslint-import-resolver-node: 0.3.7
- eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -13404,29 +13421,6 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
- dependencies:
- array-includes: 3.1.6
- array.prototype.flat: 1.3.1
- array.prototype.flatmap: 1.3.1
- debug: 3.2.7
- doctrine: 2.1.0
- eslint: 8.45.0
- eslint-import-resolver-node: 0.3.7
- has: 1.0.3
- is-core-module: 2.12.1
- is-glob: 4.0.3
- minimatch: 3.1.2
- object.values: 1.1.6
- resolve: 1.22.2
- semver: 6.3.1
- tsconfig-paths: 3.14.2
- transitivePeerDependencies:
- - eslint-import-resolver-typescript
- - eslint-import-resolver-webpack
- - supports-color
-
dependencies:
'@typescript-eslint/utils': 5.59.1([email protected])([email protected])
@@ -15300,15 +15294,15 @@ snapshots:
react: 18.3.1
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -15318,7 +15312,7 @@ snapshots:
react: 18.2.0
react-dom: 18.3.1([email protected])
dependencies:
'@next/env': 14.2.5
'@swc/helpers': 0.5.5
@@ -15339,11 +15333,12 @@ snapshots:
'@next/swc-win32-arm64-msvc': 14.2.5
'@next/swc-win32-ia32-msvc': 14.2.5
'@next/swc-win32-x64-msvc': 14.2.5
+ '@playwright/test': 1.38.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
dependencies:
'@next/env': 14.2.5
'@swc/helpers': 0.5.5
@@ -15364,7 +15359,6 @@ snapshots:
'@next/swc-win32-arm64-msvc': 14.2.5
'@next/swc-win32-ia32-msvc': 14.2.5
'@next/swc-win32-x64-msvc': 14.2.5
- '@playwright/test': 1.38.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -16027,9 +16021,9 @@ snapshots:
react: 18.2.0
use-sync-external-store: 1.2.0([email protected])
dependencies: