mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 16:59:27 +08:00
- Settings → General gains a classic/modern layout choice; classic is a frozen snapshot of dev's sidebar and learning dashboard, modern keeps iterating. Variants differ only through slots, tokens and per-variant CSS on <html data-ui-layout>; the preference lives in localStorage. - Modern chrome: warm neutral tokens, WorkspaceMenu header, ⌘K command palette and keyboard shortcuts, PageBar location strip, swipeable PartnerRoster. - Remove dead HomeShortcuts, WorkspaceSwitcher and the inline sidebar search query chain.
14 lines
485 B
TypeScript
14 lines
485 B
TypeScript
import dynamic from "next/dynamic";
|
|
import { PageBar } from "@/components/sidebar/PageBar";
|
|
import { SidebarShell } from "@/components/sidebar/SidebarShell";
|
|
import type { UiLayoutSlots } from "../types";
|
|
|
|
/** The dt-exp redesign. Its components live where they always have. */
|
|
export const modernSlots: UiLayoutSlots = {
|
|
SidebarShell,
|
|
PageBar,
|
|
LearningHome: dynamic(() =>
|
|
import("@/components/learning/LearningDashboard").then((module) => module.LearningDashboard),
|
|
),
|
|
};
|