Skip to content

Commit 5453404

Browse files
authored
Merge pull request #84 from techulus/supabase-ssr-migration
Setup Supabase SSR
2 parents d374ce7 + 9ae065f commit 5453404

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1446
-1097
lines changed

apps/web/components/dialogs/ai-expand-concept-prompt-dialog.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default function AiExpandConceptPromptDialogComponent({
7272
}, [open, content]);
7373

7474
return (
75+
// @ts-ignore
7576
<Transition.Root show={open} as={Fragment}>
7677
<Dialog
7778
as="div"
@@ -81,6 +82,7 @@ export default function AiExpandConceptPromptDialogComponent({
8182
>
8283
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
8384
<Transition.Child
85+
// @ts-ignore
8486
as={Fragment}
8587
enter="ease-out duration-300"
8688
enterFrom="opacity-0"
@@ -100,6 +102,7 @@ export default function AiExpandConceptPromptDialogComponent({
100102
&#8203;
101103
</span>
102104
<Transition.Child
105+
// @ts-ignore
103106
as={Fragment}
104107
enter="ease-out duration-300"
105108
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/ai-prood-read-dialog.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default function AiProofReadDialogComponent({ open, setOpen, content }) {
6565
}, [open, content]);
6666

6767
return (
68+
// @ts-ignore
6869
<Transition.Root show={open} as={Fragment}>
6970
<Dialog
7071
as="div"
@@ -74,6 +75,7 @@ export default function AiProofReadDialogComponent({ open, setOpen, content }) {
7475
>
7576
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
7677
<Transition.Child
78+
// @ts-ignore
7779
as={Fragment}
7880
enter="ease-out duration-300"
7981
enterFrom="opacity-0"
@@ -93,6 +95,7 @@ export default function AiProofReadDialogComponent({ open, setOpen, content }) {
9395
&#8203;
9496
</span>
9597
<Transition.Child
98+
// @ts-ignore
9699
as={Fragment}
97100
enter="ease-out duration-300"
98101
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/ai-suggest-title-prompt-dialog.component.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { SpinnerWithSpacing } from "@changes-page/ui";
2+
import { convertMarkdownToPlainText } from "@changes-page/utils";
13
import { Dialog, Transition } from "@headlessui/react";
2-
import React, { Fragment, useEffect, useRef, useState } from "react";
3-
import { promptSuggestTitle } from "../../utils/useAiAssistant";
44
import { LightningBoltIcon } from "@heroicons/react/solid";
5-
import { convertMarkdownToPlainText } from "@changes-page/utils";
6-
import { SpinnerWithSpacing } from "@changes-page/ui";
5+
import { Fragment, useEffect, useRef, useState } from "react";
6+
import { promptSuggestTitle } from "../../utils/useAiAssistant";
77
import { notifyError } from "../core/toast.component";
88

99
export default function AiSuggestTitlePromptDialogComponent({
@@ -37,6 +37,7 @@ export default function AiSuggestTitlePromptDialogComponent({
3737
}, [open, content]);
3838

3939
return (
40+
// @ts-ignore
4041
<Transition.Root show={open} as={Fragment}>
4142
<Dialog
4243
as="div"
@@ -46,6 +47,7 @@ export default function AiSuggestTitlePromptDialogComponent({
4647
>
4748
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
4849
<Transition.Child
50+
// @ts-ignore
4951
as={Fragment}
5052
enter="ease-out duration-300"
5153
enterFrom="opacity-0"
@@ -65,6 +67,7 @@ export default function AiSuggestTitlePromptDialogComponent({
6567
&#8203;
6668
</span>
6769
<Transition.Child
70+
// @ts-ignore
6871
as={Fragment}
6972
enter="ease-out duration-300"
7073
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/confirm-delete-dialog.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* This example requires Tailwind CSS v2.0+ */
2+
import { Spinner } from "@changes-page/ui";
23
import { Dialog, Transition } from "@headlessui/react";
34
import { ExclamationIcon } from "@heroicons/react/outline";
45
import classNames from "classnames";
56
import Head from "next/head";
67
import { Fragment, useRef, useState } from "react";
7-
import { Spinner } from "@changes-page/ui";
88

99
export default function ConfirmDeleteDialog({
1010
itemName,
@@ -25,7 +25,7 @@ export default function ConfirmDeleteDialog({
2525
<meta name="theme-color" content="#dc2626" />
2626
</Head>
2727
)}
28-
28+
{/* @ts-ignore */}
2929
<Transition.Root show={open} as={Fragment}>
3030
<Dialog
3131
as="div"
@@ -35,6 +35,7 @@ export default function ConfirmDeleteDialog({
3535
>
3636
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
3737
<Transition.Child
38+
// @ts-ignore
3839
as={Fragment}
3940
enter="ease-out duration-300"
4041
enterFrom="opacity-0"
@@ -54,6 +55,7 @@ export default function ConfirmDeleteDialog({
5455
&#8203;
5556
</span>
5657
<Transition.Child
58+
// @ts-ignore
5759
as={Fragment}
5860
enter="ease-out duration-300"
5961
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/date-time-prompt-dialog.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default function DateTimePromptDialog({
4242
}, [open]);
4343

4444
return (
45+
// @ts-ignore
4546
<Transition.Root show={open} as={Fragment}>
4647
<Dialog
4748
as="div"
@@ -51,6 +52,7 @@ export default function DateTimePromptDialog({
5152
>
5253
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
5354
<Transition.Child
55+
// @ts-ignore
5456
as={Fragment}
5557
enter="ease-out duration-300"
5658
enterFrom="opacity-0"
@@ -70,6 +72,7 @@ export default function DateTimePromptDialog({
7072
&#8203;
7173
</span>
7274
<Transition.Child
75+
// @ts-ignore
7376
as={Fragment}
7477
enter="ease-out duration-300"
7578
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/manage-team-dialog.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default function ManageTeamDialog({
8585
});
8686

8787
return (
88+
// @ts-ignore
8889
<Transition.Root show={open} as={Fragment}>
8990
<Dialog
9091
as="div"
@@ -94,6 +95,7 @@ export default function ManageTeamDialog({
9495
>
9596
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
9697
<Transition.Child
98+
// @ts-ignore
9799
as={Fragment}
98100
enter="ease-out duration-300"
99101
enterFrom="opacity-0"
@@ -113,6 +115,7 @@ export default function ManageTeamDialog({
113115
&#8203;
114116
</span>
115117
<Transition.Child
118+
// @ts-ignore
116119
as={Fragment}
117120
enter="ease-out duration-300"
118121
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/warning-dialog.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* This example requires Tailwind CSS v2.0+ */
2+
import { Spinner } from "@changes-page/ui";
23
import { Dialog, Transition } from "@headlessui/react";
34
import { ExclamationIcon } from "@heroicons/react/outline";
45
import classNames from "classnames";
56
import { Fragment, useRef } from "react";
6-
import { Spinner } from "@changes-page/ui";
77

88
export default function WarningDialog({
99
title,
@@ -16,6 +16,7 @@ export default function WarningDialog({
1616
const cancelButtonRef = useRef(null);
1717

1818
return (
19+
// @ts-ignore
1920
<Transition.Root show={open} as={Fragment}>
2021
<Dialog
2122
as="div"
@@ -25,6 +26,7 @@ export default function WarningDialog({
2526
>
2627
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
2728
<Transition.Child
29+
// @ts-ignore
2830
as={Fragment}
2931
enter="ease-out duration-300"
3032
enterFrom="opacity-0"
@@ -44,6 +46,7 @@ export default function WarningDialog({
4446
&#8203;
4547
</span>
4648
<Transition.Child
49+
// @ts-ignore
4750
as={Fragment}
4851
enter="ease-out duration-300"
4952
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/dialogs/widget-code-dialog.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default function WidgetCodeDialog({ urlSlug, open, setOpen }) {
1818
);
1919

2020
return (
21+
// @ts-ignore
2122
<Transition.Root show={open} as={Fragment}>
2223
<Dialog
2324
as="div"
@@ -27,6 +28,7 @@ export default function WidgetCodeDialog({ urlSlug, open, setOpen }) {
2728
>
2829
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
2930
<Transition.Child
31+
// @ts-ignore
3032
as={Fragment}
3133
enter="ease-out duration-300"
3234
enterFrom="opacity-0"
@@ -46,6 +48,7 @@ export default function WidgetCodeDialog({ urlSlug, open, setOpen }) {
4648
&#8203;
4749
</span>
4850
<Transition.Child
51+
// @ts-ignore
4952
as={Fragment}
5053
enter="ease-out duration-300"
5154
enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"

apps/web/components/forms/post-form.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export default function PostFormComponent({
204204

205205
<Transition
206206
show={open}
207+
// @ts-ignore
207208
as={Fragment}
208209
leave="transition ease-in duration-100"
209210
leaveFrom="opacity-100"
@@ -319,6 +320,7 @@ export default function PostFormComponent({
319320
</Menu.Button>
320321

321322
<Transition
323+
// @ts-ignore
322324
as={Fragment}
323325
leave="transition ease-in duration-100"
324326
leaveFrom="opacity-100"
@@ -586,6 +588,7 @@ export default function PostFormComponent({
586588
<div className="relative bg-slate-50 dark:bg-slate-900">
587589
{!editNotes ? (
588590
formik.values.notes ? (
591+
// @ts-ignore
589592
<ReactMarkdown className="pt-4 mx-auto px-6 prose dark:prose-invert prose-indigo max-w-full">
590593
{formik.values.notes}
591594
</ReactMarkdown>

apps/web/components/layout/blog-layout.component.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ export default function BlogLayout({
201201
) : null}
202202

203203
<div className="blog-content-override prose dark:prose-invert prose-indigo mx-auto mt-6 max-w-[70ch]">
204+
{/* @ts-ignore */}
204205
<ReactMarkdown
205206
rehypePlugins={[
206207
rehypeRaw,

0 commit comments

Comments
 (0)