From 31c21115e9198ce9cd41658e7f42fca4b0ed25a3 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:04:30 +0200 Subject: [PATCH 01/10] scope prettier to clean only apps for now --- .github/workflows/prettier.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 1972d75eebf..c71fb46be16 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -14,7 +14,7 @@ jobs: # disable this check while we migrate to monorepo - name: Run prettier run: |- - npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}' + npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' # run: |- # function run_check() { # if $(grep -q '"prettier"' "$1") ; then diff --git a/package.json b/package.json index b54660a4308..58174515ed8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "turbo run build", "dev": "turbo run dev --parallel", "lint": "turbo run lint", - "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "format": "prettier --write \"apps/**/*.{ts,tsx,md}\"", "docker:dev": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml up --renew-anon-volumes", "docker:up": "cd docker && docker-compose up", "docker:down": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml down --remove-orphans", From dbc4a35616d5f2a5554b78295079fe0a23a1c8d6 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:06:02 +0200 Subject: [PATCH 02/10] commit all changes from formatter --- apps/www/components/AdminAccess/tabs.tsx | 2 +- .../AuthWidget/AuthComponentExample.tsx | 8 +- apps/www/components/AuthWidget/AuthWidget.tsx | 8 +- apps/www/components/Blog/BlogHeader.tsx | 2 +- apps/www/components/Blog/BlogListItem.tsx | 16 +- .../components/BuiltWithSupabase/index.tsx | 4 +- apps/www/components/Button.tsx | 6 +- apps/www/components/CTABanner/index.tsx | 2 +- apps/www/components/Card.tsx | 14 +- .../components/Carousels/ImageCarousel.tsx | 12 +- .../Carousels/SplitCodeBlockCarousel.tsx | 10 +- apps/www/components/CaseStudies/benchmark.tsx | 12 +- apps/www/components/CaseStudies/index.tsx | 2 +- apps/www/components/CodeBlock/CodeBlock.tsx | 4 +- apps/www/components/DarkModeToggle.tsx | 8 +- apps/www/components/EnterpriseContactForm.tsx | 4 +- apps/www/components/ExampleCard.tsx | 36 ++-- apps/www/components/FeatureColumn.tsx | 4 +- apps/www/components/Features/index.tsx | 8 +- .../FloatingIcons/FloatingIcons.tsx | 4 +- apps/www/components/Footer/index.tsx | 20 +-- apps/www/components/Hero.tsx | 38 ++--- apps/www/components/ImageGrid.tsx | 16 +- .../components/Layouts/SectionContainer.tsx | 2 +- .../MadeForDevelopers/CodeExamples.tsx | 8 +- .../components/MadeForDevelopers/index.tsx | 4 +- apps/www/components/Nav/Announcement.tsx | 22 +-- apps/www/components/Nav/Company.tsx | 18 +- apps/www/components/Nav/Developers.tsx | 20 +-- apps/www/components/Nav/Product.tsx | 16 +- apps/www/components/Nav/index.tsx | 96 +++++------ .../components/Partners/BecomeAPartners.tsx | 6 +- .../components/Partners/PartnerLinkBox.tsx | 14 +- apps/www/components/Partners/TileGrid.tsx | 16 +- apps/www/components/PricingAddOnTable.tsx | 26 +-- apps/www/components/PricingTableRow.tsx | 32 ++-- apps/www/components/ProductIcon.tsx | 2 +- apps/www/components/Quote.tsx | 6 +- apps/www/components/ScrollableCodeBlock.tsx | 10 +- apps/www/components/Sections/APISection.tsx | 4 +- .../components/Sections/FunctionsUsecases.tsx | 10 +- .../components/Sections/GithubExamples.tsx | 8 +- .../www/components/Sections/ProductHeader.tsx | 8 +- .../Sections/TwitterSocialProof.tsx | 8 +- apps/www/components/TextLink.tsx | 4 +- apps/www/components/TweetCard.tsx | 12 +- apps/www/components/UI/FlyOut.tsx | 12 +- apps/www/components/UI/SectionHeader.tsx | 4 +- apps/www/data/Community.tsx | 4 +- apps/www/pages/404.tsx | 16 +- apps/www/pages/auth/Auth.tsx | 18 +- apps/www/pages/beta.tsx | 158 +++++++++--------- apps/www/pages/blog.tsx | 24 +-- .../blog/[year]/[month]/[day]/[slug].tsx | 44 ++--- apps/www/pages/blog/tags/[tag].tsx | 2 +- apps/www/pages/brand-assets.tsx | 16 +- apps/www/pages/company.tsx | 72 ++++---- apps/www/pages/contact/enterprise.tsx | 4 +- apps/www/pages/database/Database.tsx | 28 ++-- .../pages/edge-functions/edge-functions.tsx | 38 ++--- apps/www/pages/partners/[slug].tsx | 18 +- apps/www/pages/partners/experts/index.tsx | 8 +- .../www/pages/partners/integrations/index.tsx | 16 +- apps/www/pages/pricing/index.tsx | 138 +++++++-------- apps/www/pages/storage/Storage.tsx | 18 +- apps/www/pages/support.tsx | 64 +++---- 66 files changed, 647 insertions(+), 647 deletions(-) diff --git a/apps/www/components/AdminAccess/tabs.tsx b/apps/www/components/AdminAccess/tabs.tsx index 753b2f85b44..95ba72ef503 100644 --- a/apps/www/components/AdminAccess/tabs.tsx +++ b/apps/www/components/AdminAccess/tabs.tsx @@ -14,7 +14,7 @@ function Tabs(props: Props) { } return ( -
+
*/}
-
-
+
+

or continue with

-
+
{/* diff --git a/apps/www/components/AuthWidget/AuthWidget.tsx b/apps/www/components/AuthWidget/AuthWidget.tsx index 87aa96947cf..d1d35e0fce4 100644 --- a/apps/www/components/AuthWidget/AuthWidget.tsx +++ b/apps/www/components/AuthWidget/AuthWidget.tsx @@ -45,7 +45,7 @@ function AuthPage() { return ( -
+

ReactJS Auth Widget

@@ -56,9 +56,9 @@ function AuthPage() {
-
+
-
+
diff --git a/apps/www/components/Blog/BlogHeader.tsx b/apps/www/components/Blog/BlogHeader.tsx index c1c494969c0..23bf06073f1 100644 --- a/apps/www/components/Blog/BlogHeader.tsx +++ b/apps/www/components/Blog/BlogHeader.tsx @@ -6,7 +6,7 @@ interface Props { export default function BlogHeader({ title }: Props) { return ( -
+

diff --git a/apps/www/components/Blog/BlogListItem.tsx b/apps/www/components/Blog/BlogListItem.tsx index b1a70d0abce..e68dee9049d 100644 --- a/apps/www/components/Blog/BlogListItem.tsx +++ b/apps/www/components/Blog/BlogListItem.tsx @@ -25,11 +25,11 @@ const BlogListItem = ({ post }: Props) => { return (
-
+
{ : `/images/blog/${post.thumb}` } objectFit="cover" - className="duration-100 ease-in transform scale-100 group-hover:scale-105" + className="scale-100 transform duration-100 ease-in group-hover:scale-105" />
-

{post.title}

- {post.date &&

{post.date}

} -

{post.description}

+

{post.title}

+ {post.date &&

{post.date}

} +

{post.description}

{author.map((author: any) => { return ( -
+
{author.author_image_url && ( {

What can you build with supabase?

There are many example apps and starter projects to get going

-
+
-
+
{Examples.slice(0, 6).map((example, i) => { return (
{ diff --git a/apps/www/components/CaseStudies/index.tsx b/apps/www/components/CaseStudies/index.tsx index 5093d3ecc36..4dc45f45fd2 100644 --- a/apps/www/components/CaseStudies/index.tsx +++ b/apps/www/components/CaseStudies/index.tsx @@ -20,7 +20,7 @@ const CaseStudies = () => { } />
-
+
{CaseStudiesData.map((caseStudy, idx: number) => ( {!props.hideCopy && props.children ? ( -
+
diff --git a/apps/www/components/EnterpriseContactForm.tsx b/apps/www/components/EnterpriseContactForm.tsx index af4c80eda3a..9d2176d451c 100644 --- a/apps/www/components/EnterpriseContactForm.tsx +++ b/apps/www/components/EnterpriseContactForm.tsx @@ -139,7 +139,7 @@ const EnterpriseContactForm = () => { />
-
+
) diff --git a/apps/www/components/ExampleCard.tsx b/apps/www/components/ExampleCard.tsx index ffa7ed10284..64bc41ceb32 100644 --- a/apps/www/components/ExampleCard.tsx +++ b/apps/www/components/ExampleCard.tsx @@ -5,15 +5,15 @@ function ExampleCard(props: any) { return ( <>
@@ -23,9 +23,9 @@ function ExampleCard(props: any) { {props.author - {props.author} + {props.author}
@@ -35,15 +35,15 @@ function ExampleCard(props: any) { className=" bg-scale-100 dark:bg-scale-400 - border border-scale-400 - border-b border-r border-l border-t-0 - p-5 - flex flex-col justify-between - rounded rounded-t-none" + border-scale-400 flex + flex-col justify-between rounded rounded-t-none + border + border-b border-r border-l + border-t-0 p-5" >
{props.repo_name} @@ -53,7 +53,7 @@ function ExampleCard(props: any) { -
+
{props.vercel_deploy_url && ( diff --git a/apps/www/components/FeatureColumn.tsx b/apps/www/components/FeatureColumn.tsx index 745f97561bc..e7607c9d253 100644 --- a/apps/www/components/FeatureColumn.tsx +++ b/apps/www/components/FeatureColumn.tsx @@ -1,8 +1,8 @@ function FeatureColumn({ icon, title, text }: any) { return ( <> - {icon &&
{icon}
} -

{title}

+ {icon &&
{icon}
} +

{title}

{text}

) diff --git a/apps/www/components/Features/index.tsx b/apps/www/components/Features/index.tsx index 21dbc854381..3687e6bb269 100644 --- a/apps/www/components/Features/index.tsx +++ b/apps/www/components/Features/index.tsx @@ -10,10 +10,10 @@ const Features = () => { const IconSections = Object.values(Solutions).map((solution: any) => { const { name, description, icon, label, url } = solution return ( -
+
-
{name}
+
{name}

{description}

@@ -29,9 +29,9 @@ const Features = () => { }) return ( - +

Build faster and focus on your products

-
+
{IconSections}
diff --git a/apps/www/components/FloatingIcons/FloatingIcons.tsx b/apps/www/components/FloatingIcons/FloatingIcons.tsx index d5d95f60697..b0e6aa6ffba 100644 --- a/apps/www/components/FloatingIcons/FloatingIcons.tsx +++ b/apps/www/components/FloatingIcons/FloatingIcons.tsx @@ -7,8 +7,8 @@ function FloatingIcons() { const { basePath } = useRouter() return ( -
-
+
+ -
+
{FooterLinks.map((segment: any) => { return ( -
+
© Supabase Inc
diff --git a/apps/www/components/Hero.tsx b/apps/www/components/Hero.tsx index 516d79c7c8d..807149110cb 100644 --- a/apps/www/components/Hero.tsx +++ b/apps/www/components/Hero.tsx @@ -13,22 +13,22 @@ const Hero = () => {
-
+

The Open Source - Firebase Alternative + Firebase Alternative

@@ -38,7 +38,7 @@ const Hero = () => {

-
+
-
-
-
-
-
-
+
+
+
+
+
+