mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
chore(components): remove unused problem-related components
- Delete footer.tsx from problem/description - Delete solution.tsx from problem/description - Delete header.tsx from problem/workspace/editor/components
This commit is contained in:
parent
b67b13d7bf
commit
f93224f56e
@ -1,23 +0,0 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface ProblemDescriptionFooterProps {
|
||||
title: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function ProblemDescriptionFooter({
|
||||
title,
|
||||
className,
|
||||
...props
|
||||
}: ProblemDescriptionFooterProps) {
|
||||
return (
|
||||
<footer
|
||||
{...props}
|
||||
className={cn("h-9 flex flex-none items-center bg-muted px-3 py-2", className)}
|
||||
>
|
||||
<div className="w-full flex items-center justify-center">
|
||||
<span className="truncate">{title}</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface ProblemSolutionFooterProps {
|
||||
title: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function ProblemSolutionFooter({
|
||||
title,
|
||||
className,
|
||||
...props
|
||||
}: ProblemSolutionFooterProps) {
|
||||
return (
|
||||
<footer
|
||||
{...props}
|
||||
className={cn("h-9 flex flex-none items-center bg-muted px-3 py-2", className)}
|
||||
>
|
||||
<div className="w-full flex items-center justify-center">
|
||||
<span className="truncate">{title}</span>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
import { cn } from "@/lib/utils";
|
||||
import { CopyButton } from "./copy-button";
|
||||
import { RedoButton } from "./redo-button";
|
||||
import { UndoButton } from "./undo-button";
|
||||
import { ResetButton } from "./reset-button";
|
||||
import { FormatButton } from "./format-button";
|
||||
import { LspStatusButton } from "./lsp-status-button";
|
||||
import { LanguageSelector } from "./language-selector";
|
||||
|
||||
interface WorkspaceEditorHeaderProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function WorkspaceEditorHeader({
|
||||
className,
|
||||
...props
|
||||
}: WorkspaceEditorHeaderProps) {
|
||||
return (
|
||||
<header
|
||||
{...props}
|
||||
className={cn("flex items-center flex-none h-8 relative border-b", className)}
|
||||
>
|
||||
<div className="absolute flex w-full items-center justify-between px-2">
|
||||
<div className="flex items-center">
|
||||
<LanguageSelector />
|
||||
<LspStatusButton />
|
||||
</div>
|
||||
<div className="flex items-center gap-x-2">
|
||||
<ResetButton />
|
||||
<UndoButton />
|
||||
<RedoButton />
|
||||
<FormatButton />
|
||||
<CopyButton />
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user