feat(webui): add adaptive pointer interactions

Introduce a CSS-driven adaptive cursor that morphs for controls, text editing, dragging, resizing, busy states, and other native pointer semantics on desktop devices.

Add a themed context menu for editing, selections, links, images, and page navigation while preserving explicit native-menu escape paths. Store a default-on interaction preference through the normalized appearance model and cover its migration and opt-out behavior.
This commit is contained in:
DrSmoothl committed 2026-07-18 23:38:43 +08:00
1 parent c15625dbd8
commit d40c803ed9
9 files changed
+1339 -1

No files matched your search

+4
View File
@@ -9,12 +9,16 @@ import { ConsentPage } from '@/components/pages/consent-page';
import { ApiProvider, createApiClient, useApi, type ApiClient } from '@/lib/api';
import { DebugTaskProvider } from '@/contexts/DebugTaskContext';
import { TaskBadge } from '@/components/debug/task-badge';
import { AdaptivePointer } from '@/components/ui/adaptive-pointer';
import { GlobalContextMenu } from '@/components/ui/global-context-menu';
import type { AgreementsPayload } from '@/lib/api/types';
import { appRouter } from '@/router';
export default function App() {
return (
<ThemeProvider>
<AdaptivePointer />
<GlobalContextMenu />
<AuthBoundary />
</ThemeProvider>
);