web 目录web/apps/labelstudioweb/libscomponents/: 可复用的 UI 组件pages/: 顶层页面组件utils/: 工具函数hooks/: 自定义 React Hooksatoms/: Jotai 原子状态定义providers/: Context 提供者services/: API 和其他服务types/: TypeScript 类型定义assets/: 静态资源遵循一致的文件组织模式:
component-name/
component-name.tsx
component-name.module.scss
component-name.test.tsx
index.ts
list-item.tsx.module.scss 文件,文件名为组件的 kebab-case 形式,例如 ListItem -> list-item.module.scssweb/libs/uiweb/libs/app-commonweb/apps 中的代码只能从 web/libs 导入,web/libs 不能从 web/apps 导入web/libs/app-common 中的代码只能从其他 web/libs 或 web/apps 导入。其他 web/libs 不能从 web/libs/app-common 导入list-item.stories.tsx@humansignal/ui 包获取 UI 组件@humansignal/icons 包获取图标@humansignal/core 包获取核心工具/函数@humansignal/app-common 包获取应用组件