feat: add homepage & auth

This commit is contained in:
2024-02-23 19:36:10 +07:00
parent d579c1b7c5
commit 735fa9354b
42 changed files with 981 additions and 70 deletions
@@ -5,7 +5,7 @@ import {
DialogTitle,
} from "../../../../components/ui/dialog";
import { UseDiscloseReturn } from "~/hooks/useDisclose";
import { Input } from "../../../../components/ui/input";
import { BaseInput } from "../../../../components/ui/input";
import { Button } from "../../../../components/ui/button";
import { useForm } from "~/hooks/useForm";
import { z } from "zod";
@@ -76,7 +76,7 @@ const CreateFileDialog = ({ disclose, onSuccess }: Props) => {
<form onSubmit={onSubmit}>
<FormErrorMessage form={form} />
<Input
<BaseInput
placeholder={isDir ? "Directory Name" : "Filename"}
autoFocus
{...form.register("filename")}
@@ -3,8 +3,7 @@ import Panel from "~/components/ui/panel";
import { useCallback, useEffect, useRef } from "react";
import { useProjectContext } from "../context/project";
import { Button } from "~/components/ui/button";
import { FaEllipsisV, FaRedo } from "react-icons/fa";
import { Input } from "~/components/ui/input";
import { FaRedo } from "react-icons/fa";
import { previewStore } from "../stores/web-preview";
type WebPreviewProps = {