From 288d64d1e901ea84abfcd8886fac524e2c9d523c Mon Sep 17 00:00:00 2001
From: Keith Stevens
Date: Tue, 13 Dec 2022 21:37:52 +0900
Subject: [PATCH] Running prettier on all next.js files
---
website/next.config.js | 4 +--
website/pages/_app.js | 19 +++++++------
website/pages/api/hello.js | 2 +-
website/pages/index.js | 51 +++++++++++++++++++---------------
website/public/vercel.svg | 4 +--
website/styles/Home.module.css | 13 +++++----
6 files changed, 53 insertions(+), 40 deletions(-)
diff --git a/website/next.config.js b/website/next.config.js
index a843cbee..91ef62f0 100644
--- a/website/next.config.js
+++ b/website/next.config.js
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
-}
+};
-module.exports = nextConfig
+module.exports = nextConfig;
diff --git a/website/pages/_app.js b/website/pages/_app.js
index 82eba3ec..0bf2e144 100644
--- a/website/pages/_app.js
+++ b/website/pages/_app.js
@@ -1,17 +1,20 @@
-import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs'
-import { SessionContextProvider } from '@supabase/auth-helpers-react'
+import { createBrowserSupabaseClient } from "@supabase/auth-helpers-nextjs";
+import { SessionContextProvider } from "@supabase/auth-helpers-react";
-import { useState } from 'react'
+import { useState } from "react";
-import '../styles/globals.css'
+import "../styles/globals.css";
function MyApp({ Component, pageProps }) {
- const [supabase] = useState(() => createBrowserSupabaseClient())
+ const [supabase] = useState(() => createBrowserSupabaseClient());
return (
-
+
- )
+ );
}
-export default MyApp
+export default MyApp;
diff --git a/website/pages/api/hello.js b/website/pages/api/hello.js
index df63de88..aee21e9a 100644
--- a/website/pages/api/hello.js
+++ b/website/pages/api/hello.js
@@ -1,5 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default function handler(req, res) {
- res.status(200).json({ name: 'John Doe' })
+ res.status(200).json({ name: "John Doe" });
}
diff --git a/website/pages/index.js b/website/pages/index.js
index 24f9b423..eb83ff6e 100644
--- a/website/pages/index.js
+++ b/website/pages/index.js
@@ -1,21 +1,21 @@
-import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
-import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react'
+import { Auth, ThemeSupa } from "@supabase/auth-ui-react";
+import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
-import { useState } from 'react'
-import Head from 'next/head'
-import Image from 'next/image'
+import { useState } from "react";
+import Head from "next/head";
+import Image from "next/image";
-import styles from '../styles/Home.module.css'
+import styles from "../styles/Home.module.css";
export default function Home() {
- const session = useSession()
- const supabase = useSupabaseClient()
+ const session = useSession();
+ const supabase = useSupabaseClient();
- const signinWithDiscord = async() => {
+ const signinWithDiscord = async () => {
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'discord',
- })
- }
+ provider: "discord",
+ });
+ };
if (!session) {
return (
@@ -24,16 +24,25 @@ export default function Home() {
{/* */}
Open Chat Gpt
- Open chat gpt is a project meant to give everyone access to a great chat based large language model.
+ Open chat gpt is a project meant to give everyone access to a great
+ chat based large language model.
+
Register
-
- We believe that by doing this we will create a revolution in innovation in language. In the same way that stable-diffusion helped the world make art and images in new ways we hope open chat gpt can help improve the world by improving language itself.
+
+ We believe that by doing this we will create a revolution in
+ innovation in language. In the same way that stable-diffusion helped
+ the world make art and images in new ways we hope open chat gpt can
+ help improve the world by improving language itself.
How can you help?
- All open source projects begins with people like you. Open source is the belief that if we collaborate we can together gift our knowledge and technology to the world for the benefit of humanity.
-
+
+ All open source projects begins with people like you. Open source is
+ the belief that if we collaborate we can together gift our knowledge
+ and technology to the world for the benefit of humanity.
+
+
I am in! Now what?
We live and collaborate the work in the LAION discord. Join us!
- )
+ );
}
return (
@@ -55,10 +64,8 @@ export default function Home() {
Open Chat Gpt
-
- You are logged in
-
+
You are logged in
- )
+ );
}
diff --git a/website/public/vercel.svg b/website/public/vercel.svg
index fbf0e25a..7daff190 100644
--- a/website/public/vercel.svg
+++ b/website/public/vercel.svg
@@ -1,4 +1,4 @@
-
-
\ No newline at end of file
+
diff --git a/website/styles/Home.module.css b/website/styles/Home.module.css
index 597c906c..69ab0c28 100644
--- a/website/styles/Home.module.css
+++ b/website/styles/Home.module.css
@@ -14,10 +14,14 @@
}
.AppHeader {
- background: linear-gradient(217deg, rgba(255,0,0,.8), rgba(255,0,0,0) 70.71%),
- linear-gradient(127deg, rgba(0,255,0,.8), rgba(0,255,0,0) 70.71%),
- linear-gradient(336deg, rgba(0,0,255,.8), rgba(0,0,255,0) 70.71%);
- background: black;
+ background: linear-gradient(
+ 217deg,
+ rgba(255, 0, 0, 0.8),
+ rgba(255, 0, 0, 0) 70.71%
+ ),
+ linear-gradient(127deg, rgba(0, 255, 0, 0.8), rgba(0, 255, 0, 0) 70.71%),
+ linear-gradient(336deg, rgba(0, 0, 255, 0.8), rgba(0, 0, 255, 0) 70.71%);
+ background: black;
min-height: 100vh;
display: flex;
flex-direction: column;
@@ -39,4 +43,3 @@
transform: rotate(360deg);
}
}
-