Created
October 16, 2025 00:20
-
-
Save codewithsadee/6720007a2d725bedd34fb05eb44edf40 to your computer and use it in GitHub Desktop.
Cloudbin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type File = { | |
| name: string; | |
| url: string; | |
| thumbnail: string; | |
| mime: string; | |
| updatedAt: Date; | |
| createdAt: Date; | |
| size: number; | |
| filePath: string; | |
| fileId: string; | |
| }; | |
| type DeleteFileType = { | |
| open: boolean; | |
| onOpenChange: (open: boolean) => void; | |
| fileId: string; | |
| fileUrl: string; | |
| onSuccess?: () => void; | |
| }; | |
| type FileDetailsType = { | |
| open: boolean; | |
| onOpenChange: (open: boolean) => void; | |
| file: any; | |
| onSuccess?: () => void; | |
| }; | |
| type FilePreviewType = { | |
| file: File; | |
| isVideo: boolean; | |
| isImage: boolean; | |
| thumbnail: string; | |
| transformQuery: string; | |
| loading: boolean; | |
| setLoading: (loading: boolean) => void; | |
| }; | |
| type FolderCardType = { | |
| folderPath: string; | |
| name: string; | |
| }; | |
| type ImgPreviewSidebarType = { | |
| file: File; | |
| selectedTransforms: string[]; | |
| prompts: { [key: string]: string }; | |
| handleToggle: (id: string, promtText?: string) => void; | |
| handlePromptChange: (id: string, value: string) => void; | |
| }; | |
| type PromptEditorType = { | |
| id: string; | |
| label: string; | |
| placeholder: string; | |
| value: string; | |
| onChange: (value: string) => void; | |
| onApply: () => void; | |
| }; | |
| export type { | |
| File, | |
| DeleteFileType, | |
| FileDetailsType, | |
| FilePreviewType, | |
| FolderCardType, | |
| ImgPreviewSidebarType, | |
| PromptEditorType, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @copyright 2025 codewithsadee | |
| * @license Apache-2.0 | |
| */ | |
| /** | |
| * Assets | |
| */ | |
| import { Box, Clock, Home } from 'lucide-react'; | |
| export const SIDEBAR_LINKS = [ | |
| { | |
| title: 'Home', | |
| url: '/drive/home', | |
| icon: Home, | |
| isActive: true, | |
| }, | |
| { | |
| title: 'My Drive', | |
| url: '/drive/my-drive', | |
| icon: Box, | |
| }, | |
| { | |
| title: 'Recent', | |
| url: '/drive/recent', | |
| icon: Clock, | |
| }, | |
| ] as const; | |
| export const AI_OPTIONS = [ | |
| { id: 'e-bgremove', label: 'Remove Background' }, | |
| { id: 'e-dropshadow', label: 'AI Drop Shadow' }, | |
| { id: 'e-retouch', label: 'Retouch' }, | |
| { id: 'e-upscale', label: 'Upscale' }, | |
| ] as const; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @copyright 2025 codewithsadee | |
| * @license Apache-2.0 | |
| */ | |
| interface SignupForm { | |
| name: string; | |
| email: string; | |
| password: string; | |
| } | |
| interface LoginForm { | |
| email: string; | |
| password: string; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment