mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:40:42 +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.
16 lines
536 B
TypeScript
16 lines
536 B
TypeScript
import dynamic from "next/dynamic";
|
|
import type { UiLayoutSlots } from "../types";
|
|
import { ClassicSidebarShell } from "./ClassicSidebarShell";
|
|
|
|
/**
|
|
* The UI as it ships on dev, frozen. Every file in this folder is a snapshot;
|
|
* fixes that must reach classic users go into the shared code it renders.
|
|
*/
|
|
export const classicSlots: UiLayoutSlots = {
|
|
SidebarShell: ClassicSidebarShell,
|
|
PageBar: null,
|
|
LearningHome: dynamic(() =>
|
|
import("./ClassicLearningDashboard").then((module) => module.ClassicLearningDashboard),
|
|
),
|
|
};
|