mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 14:56:36 +00:00
refactor(problem): remove TestResult tab and adjust tab positions
This commit is contained in:
parent
d58723bd47
commit
69d03f89da
@ -12,7 +12,6 @@ interface ProblemProps {
|
||||
Details: React.ReactNode;
|
||||
Code: React.ReactNode;
|
||||
Testcase: React.ReactNode;
|
||||
TestResult: React.ReactNode;
|
||||
Bot: React.ReactNode;
|
||||
}
|
||||
|
||||
@ -24,7 +23,6 @@ export default async function ProblemLayout({
|
||||
Details,
|
||||
Code,
|
||||
Testcase,
|
||||
TestResult,
|
||||
Bot,
|
||||
}: ProblemProps) {
|
||||
const { id } = await params;
|
||||
@ -79,7 +77,6 @@ export default async function ProblemLayout({
|
||||
Details={Details}
|
||||
Code={Code}
|
||||
Testcase={Testcase}
|
||||
TestResult={TestResult}
|
||||
Bot={Bot}
|
||||
/>
|
||||
</main>
|
||||
|
@ -7,7 +7,6 @@ import {
|
||||
FlaskConicalIcon,
|
||||
SquareCheckIcon,
|
||||
SquarePenIcon,
|
||||
TerminalIcon,
|
||||
} from "lucide-react";
|
||||
import Dockview from "@/components/dockview";
|
||||
import { useDockviewStore } from "@/stores/dockview";
|
||||
@ -19,7 +18,6 @@ interface ProblemPageProps {
|
||||
Details: React.ReactNode;
|
||||
Code: React.ReactNode;
|
||||
Testcase: React.ReactNode;
|
||||
TestResult: React.ReactNode;
|
||||
Bot: React.ReactNode;
|
||||
}
|
||||
|
||||
@ -30,7 +28,6 @@ export default function ProblemPage({
|
||||
Details,
|
||||
Code,
|
||||
Testcase,
|
||||
TestResult,
|
||||
Bot,
|
||||
}: ProblemPageProps) {
|
||||
const { setApi } = useDockviewStore();
|
||||
@ -118,21 +115,6 @@ export default function ProblemPage({
|
||||
direction: "below",
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "TestResult",
|
||||
component: "TestResult",
|
||||
tabComponent: "TestResult",
|
||||
title: "Test Result",
|
||||
params: {
|
||||
icon: TerminalIcon,
|
||||
content: TestResult,
|
||||
},
|
||||
position: {
|
||||
referencePanel: "Testcase",
|
||||
direction: "within",
|
||||
},
|
||||
inactive: true,
|
||||
},
|
||||
{
|
||||
id: "Bot",
|
||||
component: "Bot",
|
||||
|
Loading…
Reference in New Issue
Block a user