mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +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;
|
Details: React.ReactNode;
|
||||||
Code: React.ReactNode;
|
Code: React.ReactNode;
|
||||||
Testcase: React.ReactNode;
|
Testcase: React.ReactNode;
|
||||||
TestResult: React.ReactNode;
|
|
||||||
Bot: React.ReactNode;
|
Bot: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +23,6 @@ export default async function ProblemLayout({
|
|||||||
Details,
|
Details,
|
||||||
Code,
|
Code,
|
||||||
Testcase,
|
Testcase,
|
||||||
TestResult,
|
|
||||||
Bot,
|
Bot,
|
||||||
}: ProblemProps) {
|
}: ProblemProps) {
|
||||||
const { id } = await params;
|
const { id } = await params;
|
||||||
@ -79,7 +77,6 @@ export default async function ProblemLayout({
|
|||||||
Details={Details}
|
Details={Details}
|
||||||
Code={Code}
|
Code={Code}
|
||||||
Testcase={Testcase}
|
Testcase={Testcase}
|
||||||
TestResult={TestResult}
|
|
||||||
Bot={Bot}
|
Bot={Bot}
|
||||||
/>
|
/>
|
||||||
</main>
|
</main>
|
||||||
|
@ -7,7 +7,6 @@ import {
|
|||||||
FlaskConicalIcon,
|
FlaskConicalIcon,
|
||||||
SquareCheckIcon,
|
SquareCheckIcon,
|
||||||
SquarePenIcon,
|
SquarePenIcon,
|
||||||
TerminalIcon,
|
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import Dockview from "@/components/dockview";
|
import Dockview from "@/components/dockview";
|
||||||
import { useDockviewStore } from "@/stores/dockview";
|
import { useDockviewStore } from "@/stores/dockview";
|
||||||
@ -19,7 +18,6 @@ interface ProblemPageProps {
|
|||||||
Details: React.ReactNode;
|
Details: React.ReactNode;
|
||||||
Code: React.ReactNode;
|
Code: React.ReactNode;
|
||||||
Testcase: React.ReactNode;
|
Testcase: React.ReactNode;
|
||||||
TestResult: React.ReactNode;
|
|
||||||
Bot: React.ReactNode;
|
Bot: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,7 +28,6 @@ export default function ProblemPage({
|
|||||||
Details,
|
Details,
|
||||||
Code,
|
Code,
|
||||||
Testcase,
|
Testcase,
|
||||||
TestResult,
|
|
||||||
Bot,
|
Bot,
|
||||||
}: ProblemPageProps) {
|
}: ProblemPageProps) {
|
||||||
const { setApi } = useDockviewStore();
|
const { setApi } = useDockviewStore();
|
||||||
@ -118,21 +115,6 @@ export default function ProblemPage({
|
|||||||
direction: "below",
|
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",
|
id: "Bot",
|
||||||
component: "Bot",
|
component: "Bot",
|
||||||
|
Loading…
Reference in New Issue
Block a user