mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 08:52:12 +00:00
17 lines
614 B
TypeScript
17 lines
614 B
TypeScript
/**
|
|
* Plain-browser development aid (`pnpm dev` without Tauri): injects a fake
|
|
* project so the workbench and features render for visual review. Features
|
|
* fall back to in-memory backends in this mode. Never loaded under Tauri or
|
|
* in production builds (except `--mode perf`, used by the performance harness).
|
|
*/
|
|
import { useProject } from "@/platform/project";
|
|
|
|
export function registerDevSamples(): () => void {
|
|
if (!useProject.getState().project) {
|
|
useProject.setState({
|
|
project: { root: "/dev/acme-api", name: "acme-api", isGit: true, settings: {} as never },
|
|
});
|
|
}
|
|
return () => {};
|
|
}
|