← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / frontend / src / README.md

frontend/src

中文说明

Source for the next workbench. F-03 mounts a Preact empty shell. Later F-series items add modules in their own lanes (compat/, stores/, components/<area>/, features/<area>/, islands/) and only import stores/ rather than editing it.

Files

File Responsibility
app.test.ts Scaffold Vitest: @preact/signals updates.
app.tsx Workbench App. F-13 mounts the dashboard/workspace Shell.
app.tsx Empty-shell App. Replaced as real views land.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-20 imports features/chrome (bootChrome). Later items may add one module import here.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-19 imports features/customize (bootCustomize). Later items may add one module import here.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-17 imports features/artifacts (bootArtifacts). Later items may add one module import here.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-14 imports features/notebook (installNotebook).
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-13 imports features/sessions. Later items may add one module import here.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-10 imports features/messages.
main.tsx preact.render onto #app. F-05 imports compat/window-exports. F-06 imports features/ws (bootWs). F-11 imports features/send and calls bindComposer() after render, beside bootChrome().
vite-env.d.ts Vite client types (import.meta.env).

Subdirectories

Directory Responsibility
compat/ F-05 window export layer and window.S Proxy. Later lanes only append in the marker region.
components/ View components. F-19 adds customize/ (nine tabs + vendor cards).
components/ Lane-owned Preact views. F-17 adds artifacts/ (Files dock).
components/ Lane-owned Preact views. F-13 adds dashboard/.
features/ Lane-owned features. F-09 adds theme/.
features/ F-series domain kernels. F-08 lands the pure-function markdown / highlight / CSV / stream-cap / scrub modules.
i18n/ F-07: extracted zh/en dictionaries, t() / tOptional runtime, plan-mode payload helper.
stores/ F-05 signal modules. Later lanes import these files; they do not edit them.
components/ View containers. F-15 adds timeline/ (island host for #dock-timeline).
islands/ F-18 imperative islands: 3Dmol lazy inject, image annotator, Ketcher, PDF/html-preview sandbox.