Skip to content
Merged

CVE #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4e6ac57
refactor: redesign discussion components with brutalist terminal aest…
ElhamDevelopmentStudio Aug 14, 2024
71be88e
refactor: update discussion thread and panel components
ElhamDevelopmentStudio Aug 14, 2024
82a241e
refactor: redesign discussion pages with OpenSolve design system
ElhamDevelopmentStudio Aug 15, 2024
18891aa
config: add discussions configuration file
ElhamDevelopmentStudio Aug 15, 2024
347f00b
refactor: redesign problem library and filters with monospace typography
ElhamDevelopmentStudio Aug 16, 2024
103e8ab
refactor: redesign problem reader and workspace components
ElhamDevelopmentStudio Aug 17, 2024
6a84fcd
config: add problems configuration file
ElhamDevelopmentStudio Aug 17, 2024
2c3eb8d
refactor: update problem detail pages with new design system
ElhamDevelopmentStudio Aug 18, 2024
416caa7
refactor: update problem trails and not-found pages
ElhamDevelopmentStudio Aug 19, 2024
5a139a4
refactor: redesign leaderboard client with OpenSolve design
ElhamDevelopmentStudio Aug 20, 2024
24124df
refactor: update leaderboard pages with brutalist design
ElhamDevelopmentStudio Aug 21, 2024
c991d0e
config: add leaderboards configuration file
ElhamDevelopmentStudio Aug 21, 2024
b0b128d
refactor: update tags page and reader layout
ElhamDevelopmentStudio Aug 22, 2024
79d886e
refactor: redesign trails board component
ElhamDevelopmentStudio Aug 23, 2024
c3b9495
refactor: update admin and staff problem components
ElhamDevelopmentStudio Aug 24, 2024
e91182d
refactor: update platform pages with new design system
ElhamDevelopmentStudio Aug 25, 2024
cb8d829
refactor: update icon system to use hugeicons-react
ElhamDevelopmentStudio Aug 26, 2024
f9c48ac
docs: update redesign checklist
ElhamDevelopmentStudio Aug 27, 2024
1948a27
refactor: redesign auth pages with OpenSolve design system
ElhamDevelopmentStudio Aug 13, 2024
745004a
chore: complete UI redesign migration to OpenSolve design system
ElhamDevelopmentStudio Aug 28, 2024
74a93ac
Merge branch 'main' of github.com-elham:ElhamDevelopmentStudio/open-s…
ElhamDevelopmentStudio Nov 22, 2025
45abe94
patch: cve vulnerability
ElhamDevelopmentStudio Dec 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/(platform)/settings/account/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client";

import { useQueryClient } from "@tanstack/react-query";
import { formatDistanceToNow } from "date-fns";
import { useRouter } from "next/navigation";
import type { ReactNode } from "react";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { formatDistanceToNow } from "date-fns";
import { useQueryClient } from "@tanstack/react-query";
import { toast } from "sonner";

import {
Expand Down
2 changes: 1 addition & 1 deletion app/(reader)/problems/[slug]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandPalette } from "@/components/marketing/command-palette";
import { ArrowRight } from "@/components/icons";
import { CommandPalette } from "@/components/marketing/command-palette";
import { Button } from "@/components/ui/button";
import { problemsConfig } from "@/config/problems";
import Link from "next/link";
Expand Down
56 changes: 28 additions & 28 deletions components/problems/problem-library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Drawer,
DrawerClose,
DrawerContent,
DrawerFooter,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
Drawer,
DrawerClose,
DrawerContent,
DrawerFooter,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from "@/components/ui/drawer";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Separator } from "@/components/ui/separator";
import { Skeleton } from "@/components/ui/skeleton";
Expand All @@ -31,33 +31,33 @@ import { trackAnalyticsEvent } from "@/lib/analytics/client";
import { publicContentQueryOptions } from "@/lib/react-query/policies";
import { trpc } from "@/lib/trpc/client";
import type {
ProblemFiltersInput,
ProblemListItem,
ProblemListResponse,
ProblemFiltersInput,
ProblemListItem,
ProblemListResponse,
} from "@/lib/trpc/router/problems";
import { cn } from "@/lib/utils";
import { stableHash } from "@/lib/utils/stable-hash";
import { useWindowVirtualizer } from "@tanstack/react-virtual";
import { formatDistanceToNow } from "date-fns";
import {
ArrowRight01Icon,
Cancel01Icon,
Clock01Icon,
FilterIcon,
Search01Icon,
SlidersHorizontalIcon,
ArrowRight01Icon,
Cancel01Icon,
Clock01Icon,
FilterIcon,
Search01Icon,
SlidersHorizontalIcon,
} from "hugeicons-react";
import Link from "next/link";
import { useRouter } from "next/navigation";
import type { KeyboardEvent } from "react";
import {
forwardRef,
startTransition,
useCallback,
useEffect,
useMemo,
useRef,
useState,
forwardRef,
startTransition,
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";

const SORT_LABELS: Record<ProblemFiltersInput["sort"], string> = {
Expand Down
64 changes: 32 additions & 32 deletions components/problems/problem-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ import { SubmissionStatusBadge } from "@/components/submissions/status-badge";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
} from "@/components/ui/drawer";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
DropdownMenu,
DropdownMenuContent,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Input } from "@/components/ui/input";
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
import { ScrollArea } from "@/components/ui/scroll-area";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Spinner } from "@/components/ui/spinner";
import { Switch } from "@/components/ui/switch";
Expand All @@ -43,15 +43,15 @@ import type { ContestProblemAntiCheatContext } from "@/lib/contests/anti-cheat/t
import { getDefaultCodeStub } from "@/lib/problems/editor-presets";
import { invalidateTags } from "@/lib/react-query/invalidation";
import {
sessionQueryOptions,
submissionDraftQueryOptions,
submissionHistoryQueryOptions,
sessionQueryOptions,
submissionDraftQueryOptions,
submissionHistoryQueryOptions,
} from "@/lib/react-query/policies";
import { simulateSampleRun } from "@/lib/submissions/simulator";
import type {
SampleRunResult,
SubmissionDetailPayload,
SubmissionHistoryEntry,
SampleRunResult,
SubmissionDetailPayload,
SubmissionHistoryEntry,
} from "@/lib/submissions/types";
import { trpc } from "@/lib/trpc/client";
import { ProblemDetailPayload } from "@/lib/trpc/router/problems";
Expand All @@ -60,17 +60,17 @@ import { useQueryClient } from "@tanstack/react-query";
import { format } from "date-fns";
import { motion } from "framer-motion";
import {
Alert01Icon,
BookOpen01Icon,
CircleArrowReload01Icon,
Copy01Icon,
Legal01Icon,
PlayIcon,
SaveEnergy01Icon,
SentIcon,
Settings02Icon,
TimeScheduleIcon,
Train01Icon,
Alert01Icon,
BookOpen01Icon,
CircleArrowReload01Icon,
Copy01Icon,
Legal01Icon,
PlayIcon,
SaveEnergy01Icon,
SentIcon,
Settings02Icon,
TimeScheduleIcon,
Train01Icon,
} from "hugeicons-react";
import { useTheme } from "next-themes";
import Link from "next/link";
Expand Down
58 changes: 29 additions & 29 deletions components/staff/problems/problem-editor-shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,51 @@
import { CodeEditor } from "@/components/code/code-editor";
import { RichTextEditor } from "@/components/editor/rich-text-editor";
import {
Eye,
FileText,
Info,
Loader2,
Plus,
RotateCcw,
Save,
Send,
ShieldAlert,
ShieldCheck,
Trash2,
UserPlus,
Eye,
FileText,
Info,
Loader2,
Plus,
RotateCcw,
Save,
Send,
ShieldAlert,
ShieldCheck,
Trash2,
UserPlus,
} from "@/components/icons";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
import { ConfirmDialog } from "@/components/ui/confirm-dialog";
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
import { ScrollArea } from "@/components/ui/scroll-area";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { Switch } from "@/components/ui/switch";
import {
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
Table,
TableBody,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Textarea } from "@/components/ui/textarea";
Expand Down
1 change: 1 addition & 0 deletions config/discussions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ export const discussionsConfig = {
};

export type DiscussionsConfig = typeof discussionsConfig;

1 change: 1 addition & 0 deletions config/leaderboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ export const leaderboardsConfig = {
};

export type LeaderboardsConfig = typeof leaderboardsConfig;

Loading