chore: first commit
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ import Drawer from "react-modern-drawer"
|
||||
import cs from "classnames"
|
||||
import Link from "next/link"
|
||||
|
||||
import { INavigationDrawerProps } from "../model/NavigationDrawer.d"
|
||||
import { INavigationDrawerProps } from "./NavigationDrawer.d"
|
||||
import styles from "./NavigationDrawer.module.scss"
|
||||
|
||||
import "react-modern-drawer/dist/index.css"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/NavigationDrawer"
|
||||
export * from "./NavigationDrawer"
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IProjectCardProps } from "../model/ProjectCard.d"
|
||||
import type { IProjectCardProps } from "./ProjectCard.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Image as ImageIcon, MoreHorizontal } from "lucide-react"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/ProjectCard"
|
||||
export * from "./ProjectCard"
|
||||
|
||||
Vendored
+2
-2
@@ -11,8 +11,8 @@ import {
|
||||
DropdownTrigger,
|
||||
} from "@shared/ui/Dropdown"
|
||||
|
||||
import { userDropdownValues } from "../model/constants"
|
||||
import { IUserDropdownProps } from "../model/UserDropdown.d"
|
||||
import { userDropdownValues } from "./constants"
|
||||
import { IUserDropdownProps } from "./UserDropdown.d"
|
||||
import styles from "./UserDropdown.module.scss"
|
||||
|
||||
export const UserDropdown: FunctionComponent<IUserDropdownProps> = ({
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/UserDropdown"
|
||||
export * from "./UserDropdown"
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import type { ProjectCreateBody } from "../api/useCreateProject"
|
||||
import type { ICreateProjectModalProps } from "../model/CreateProjectModal.d"
|
||||
import type { ProjectCreateBody } from "./useCreateProject"
|
||||
import type { ICreateProjectModalProps } from "./CreateProjectModal.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { FunctionComponent, useEffect } from "react"
|
||||
@@ -9,7 +9,7 @@ import { Controller, useForm } from "react-hook-form"
|
||||
|
||||
import { Button, Form, Modal, Select, SelectItem, TextField } from "@shared/ui"
|
||||
|
||||
import { useCreateProject } from "../api/useCreateProject"
|
||||
import { useCreateProject } from "./useCreateProject"
|
||||
import styles from "./CreateProjectModal.module.scss"
|
||||
|
||||
type ProjectStatus = ProjectCreateBody["status"]
|
||||
@@ -1,3 +1,3 @@
|
||||
export { CreateProjectModal } from "./ui/CreateProjectModal"
|
||||
export { CreateProjectModal } from "./CreateProjectModal"
|
||||
|
||||
export type { ICreateProjectModalProps } from "./model/CreateProjectModal.d"
|
||||
export type { ICreateProjectModalProps } from "./CreateProjectModal.d"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import HomePage from "./ui/HomePage"
|
||||
import HomePage from "./HomePage"
|
||||
|
||||
export { HomePage }
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
} from "@shared/lib/constants"
|
||||
import { Button, Form, TextField } from "@shared/ui"
|
||||
|
||||
import { ILoginPageProps } from "../model/LoginPage.d"
|
||||
import { ILoginPageProps } from "./LoginPage.d"
|
||||
import styles from "./LoginPage.module.scss"
|
||||
|
||||
interface ILoginFormData {
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/LoginPage"
|
||||
export * from "./LoginPage"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface IProjectWorkspacePageProps {
|
||||
message?: string
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
.root {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { FunctionComponent } from "react"
|
||||
|
||||
import { IProjectWorkspacePageProps } from "./ProjectWorkspacePage.d"
|
||||
import styles from "./ProjectWorkspacePage.module.scss"
|
||||
|
||||
export const ProjectWorkspacePage: FunctionComponent<
|
||||
IProjectWorkspacePageProps
|
||||
> = (): JSX.Element => {
|
||||
return (
|
||||
<div className={styles.root} data-testid="ProjectWorkspacePage">
|
||||
ProjectWorkspacePage Component
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./ProjectWorkspacePage"
|
||||
+5
-2
@@ -10,14 +10,16 @@ import { CreateProjectModal } from "@features/CreateProjectModal"
|
||||
import api from "@shared/api"
|
||||
import { Button } from "@shared/ui"
|
||||
import { StaticLoader } from "@shared/ui/Loader"
|
||||
import { ProjectsHeader } from "@widgets/Projects/ProjectsHeader/ui/ProjectsHeader"
|
||||
import { ProjectsHeader } from "@widgets/Projects/ProjectsHeader"
|
||||
|
||||
import { IProjectsPageProps } from "../model/ProjectsPage.d"
|
||||
import { IProjectsPageProps } from "./ProjectsPage.d"
|
||||
import styles from "./ProjectsPage.module.scss"
|
||||
import { useRouter } from "next/navigation"
|
||||
|
||||
export const ProjectsPage: FunctionComponent<
|
||||
IProjectsPageProps
|
||||
> = (): JSX.Element => {
|
||||
const router = useRouter();
|
||||
const [isCreateModalOpen, setIsCreateModalOpen] = useState(false)
|
||||
|
||||
const {
|
||||
@@ -67,6 +69,7 @@ export const ProjectsPage: FunctionComponent<
|
||||
currentAction={
|
||||
project.status === "PROCESSING" ? "Rendering" : undefined
|
||||
}
|
||||
onClick={() => router.push(`/projects/${project.id}`)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/ProjectsPage"
|
||||
export * from "./ProjectsPage"
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import { useHookFormMask } from "use-mask-input"
|
||||
import api from "@shared/api"
|
||||
import { Button, Form, TextField } from "@shared/ui"
|
||||
|
||||
import { IRegisterPageProps } from "../model/RegisterPage.d"
|
||||
import { IRegisterPageProps } from "./RegisterPage.d"
|
||||
import styles from "./RegisterPage.module.scss"
|
||||
|
||||
interface IRegisterFormData {
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/RegisterPage"
|
||||
export * from "./RegisterPage"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IAlertProps } from "../model/Alert.d"
|
||||
import type { IAlertProps } from "./Alert.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Callout } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Alert"
|
||||
export * from "./Alert"
|
||||
|
||||
@@ -6,7 +6,7 @@ import cs from "classnames"
|
||||
import Image from "next/image"
|
||||
import avatarPlaceholder from "@shared/assets/placeholder.png"
|
||||
|
||||
import { IAvatarProps } from "../model/Avatar"
|
||||
import { IAvatarProps } from "./Avatar.d"
|
||||
import styles from "./Avatar.module.scss"
|
||||
|
||||
const avatarProperties = {
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Avatar"
|
||||
export * from "./Avatar"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IBadgeProps } from "../model/Badge.d"
|
||||
import type { IBadgeProps } from "./Badge.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Badge as RadixBadge } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Badge"
|
||||
export * from "./Badge"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IButtonProps } from "../model/Button.d"
|
||||
import type { IButtonProps } from "./Button.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { forwardRef } from "react"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Button"
|
||||
export * from "./Button"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { ICardProps } from "../model/Card.d"
|
||||
import type { ICardProps } from "./Card.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Card as RadixCard } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Card"
|
||||
export * from "./Card"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { ICheckboxProps } from "../model/Checkbox.d"
|
||||
import type { ICheckboxProps } from "./Checkbox.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Checkbox as RadixCheckbox, Flex, Text } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Checkbox"
|
||||
export * from "./Checkbox"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { ICircularProgressProps } from "../model/CircularProgress.d"
|
||||
import type { ICircularProgressProps } from "./CircularProgress.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { FunctionComponent } from "react"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/CircularProgress"
|
||||
export * from "./CircularProgress"
|
||||
|
||||
@@ -13,7 +13,7 @@ import type {
|
||||
IDropdownSubProps,
|
||||
IDropdownSubTriggerProps,
|
||||
IDropdownTriggerProps,
|
||||
} from "../model/Dropdown.d"
|
||||
} from "./Dropdown.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import * as DropdownMenu from "@radix-ui/react-dropdown-menu"
|
||||
@@ -11,7 +11,7 @@ export {
|
||||
DropdownSubContent,
|
||||
DropdownSubTrigger,
|
||||
DropdownTrigger,
|
||||
} from "./ui/Dropdown"
|
||||
} from "./Dropdown"
|
||||
|
||||
export type {
|
||||
IDropdownCheckboxItemProps,
|
||||
@@ -26,4 +26,4 @@ export type {
|
||||
IDropdownSubProps,
|
||||
IDropdownSubTriggerProps,
|
||||
IDropdownTriggerProps,
|
||||
} from "./model/Dropdown.d"
|
||||
} from "./Dropdown.d"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IFormProps } from "../model/Form.d"
|
||||
import type { IFormProps } from "./Form.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { forwardRef } from "react"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Form"
|
||||
export * from "./Form"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IModalProps } from "../model/Modal.d"
|
||||
import type { IModalProps } from "./Modal.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Dialog } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Modal"
|
||||
export * from "./Modal"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IPaginationProps } from "../model/Pagination.d"
|
||||
import type { IPaginationProps } from "./Pagination.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Flex, IconButton, Text } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Pagination"
|
||||
export * from "./Pagination"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { IRadioGroupProps, IRadioProps } from "../model/Radio.d"
|
||||
import type { IRadioGroupProps, IRadioProps } from "./Radio.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Flex, RadioGroup, Text } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Radio"
|
||||
export * from "./Radio"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { ISelectItemProps, ISelectProps } from "../model/Select.d"
|
||||
import type { ISelectItemProps, ISelectProps } from "./Select.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Select as RadixSelect } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Select"
|
||||
export * from "./Select"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import type { ITableProps } from "../model/Table.d"
|
||||
import type { ITableProps } from "./Table.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Table as RadixTable } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Table"
|
||||
export * from "./Table"
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
ITabsListProps,
|
||||
ITabsProps,
|
||||
ITabsTriggerProps,
|
||||
} from "../model/Tabs.d"
|
||||
} from "./Tabs.d"
|
||||
import type { JSX } from "react"
|
||||
|
||||
import { Tabs as RadixTabs } from "@radix-ui/themes"
|
||||
@@ -1 +1 @@
|
||||
export * from "./ui/Tabs"
|
||||
export * from "./Tabs"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user