尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Nx + React monorepo for the StockKart inventory web app. Domains live under core/*, shared UI under ui-kit, platform infra under platform/*, and vertical extras under plugins/*.
inventory-platform/
├── apps/inventory/ # App shell: providers, route composer, env
├── platform/ # Infra only (no business UI)
├── ui-kit/ # Design system (primitives + chrome patterns)
├── core/ # Domain modules (api, queries, pages, routes, nav)
├── plugins/ # Vertical plugins (e.g. cafe) + registry
└── docs (repo root) # ../docs_stockkart/FRONTEND_MONOREPO_REDESIGN.html
| Layer | Package examples | May depend on |
|---|---|---|
| App | @inventory-platform/inventory | everything |
| Plugins | plugin-cafe, plugin-registry | platform, ui-kit, contracts, selected core public APIs |
| Core domains | product, accounting, user, … | platform, ui-kit, contracts |
| Platform | shell, session, api-client, query, … | ui-kit (shell), contracts |
| ui-kit | @inventory-platform/ui-kit | nothing in core/platform (presentation only) |
pnpm install
pnpm nx dev inventory
Docker (frontend + API + Mongo):
cp .env-example .env
docker-compose up
pnpm nx dev inventory # Vite / React Router app
pnpm nx build inventory
pnpm nx lint <project>
pnpm nx typecheck <project>
pnpm nx storybook ui-kit
pnpm nx graph # dependency graph
| Concern | Package |
|---|---|
| Dashboard layout, nav, toasts, help | platform/shell |
| Auth session, shop, capabilities | platform/session |
| HTTP client | platform/api-client |
| TanStack Query setup | platform/query |
| Vertical schema fields | platform/schema |
| Buttons, forms, chrome CSS maps | ui-kit |
| Scan & sell, stock, returns | core/product |
| Login / onboarding / shops / CRM | core/user |
| Cafe menu / ingredient stock | plugins/cafe |
Box, Stack, Button, Link, FormField) over raw HTML.Button variant="solid". Marketing CTAs: variant="brand".*Chrome export from ui-kit (shellChrome, journeyChrome, chartChrome, productChrome, accountingChrome, …).core/*/queries; avoid new Zustand stores for server state.routes.ts + nav.ts; the app/registry composes them.Shop/product UIs render API-driven vertical fields (no hardcoded pharmacy-only forms). Schema sources and surfaces are documented historically in older notes; canonical runtime code lives in platform/schema + platform/session (useVerticalSchemaStore).
After API seed changes to vertical_schemas, restart/reseed the API so the UI picks up new labels.
core/, platform/, ui-kit/, plugins/