From faf7f45425833be6cdedb355f4ebf2ac15ccf238 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 12 Apr 2025 10:40:59 +0800 Subject: [PATCH] feat(dockview): add configuration for panel layout --- src/config/dockview.ts | 73 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/config/dockview.ts diff --git a/src/config/dockview.ts b/src/config/dockview.ts new file mode 100644 index 0000000..066a94c --- /dev/null +++ b/src/config/dockview.ts @@ -0,0 +1,73 @@ +import { AddPanelOptions } from "dockview"; + +export const DefaultDockviewOptions: AddPanelOptions[] = [ + { + id: "Description", + component: "Description", + title: "Description", + params: { icon: "FileTextIcon" }, + }, + { + id: "Solutions", + component: "Solutions", + title: "Solutions", + params: { icon: "FlaskConicalIcon" }, + position: { + referencePanel: "Description", + direction: "within", + }, + inactive: true, + }, + { + id: "Submissions", + component: "Submissions", + title: "Submissions", + params: { icon: "CircleCheckBigIcon" }, + position: { + referencePanel: "Solutions", + direction: "within", + }, + inactive: true, + }, + { + id: "Code", + component: "Code", + title: "Code", + params: { icon: "SquarePenIcon" }, + position: { + referencePanel: "Submissions", + direction: "right", + }, + }, + { + id: "Bot", + component: "Bot", + title: "Bot", + params: { icon: "BotIcon" }, + position: { + referencePanel: "Code", + direction: "right", + }, + }, + { + id: "Testcase", + component: "Testcase", + title: "Testcase", + params: { icon: "SquareCheckIcon" }, + position: { + referencePanel: "Code", + direction: "below", + }, + }, + { + id: "TestResult", + component: "TestResult", + title: "Test Result", + params: { icon: "TerminalIcon" }, + position: { + referencePanel: "Testcase", + direction: "within", + }, + inactive: true, + }, +];