36 Commits
Author SHA1 Message Date
Cursor Agentandzuiidea 3d17e6d636 chore(deps): upgrade basic and with-lingui within current majors
Align shared app dependencies, bump Lingui to 6.10, and move Vite+ to 0.3.3.
Drop the removed vite-plus-test override, import tests from vite-plus/test, and
fix TypeScript/lint issues surfaced by antd and oxlint.

Co-authored-by: zuiidea <zuiiidea@gmail.com>
2026-10-17 07:22:28 +00:00
zuiidea f28bae8f3e Feature/upgrade (#1170)
* chore: align workspace tooling and refresh docs

Unify pnpm workspace configuration and CI versioning, upgrade create package dependencies, and update README guidance for basic and with-lingui templates.

Made-with: Cursor

* chore: regenerate route tree files

Update generated route tree outputs after recent formatting and script changes.

Made-with: Cursor

* ci: fix with-lingui e2e script name

Use the existing test:e2e script in CI to avoid missing-script failures.

Made-with: Cursor
2026-04-28 18:52:45 +08:00
zuiidea 3d4551c9a4 docs: standardize README structure and remove oxfmt configs
Reorganize root README sections for template onboarding, translate remaining with-lingui README Chinese notes, and drop redundant .oxfmt.toml files from both templates.

Made-with: Cursor
2026-04-28 17:50:17 +08:00
zuiidea 0726321552 docs: add localized docs routes and language content
Migrate docs to language-prefixed app routes and split content into zh/en trees, including translated English navigation and pages.

Made-with: Cursor
2026-04-28 17:31:50 +08:00
zuiidea f12539812e chore: add root .githooks dispatcher and sync with-lingui
Wire monorepo pre-commit by staged paths; document setup; update Lingui template.

Made-with: Cursor
2026-04-28 12:04:29 +08:00
zuiidea 1cb0819011 docs: restructure Nextra IA, migrate middleware to proxy
Sync apps/basic instructions, hooks, and vercel config; refresh lockfile.

Made-with: Cursor
2026-04-28 11:53:31 +08:00
zuiidea 6ac8a62770 chore: update with-lingui pre-commit hook and i18n translations 2026-04-28 10:23:25 +08:00
zuiidea 335c77cc8c feat(basic): register API, MSW, /register route, dashboard timeline
Made-with: Cursor
2026-04-27 18:45:26 +08:00
zuiidea b277f522bd feat(with-lingui): register route, Lingui refresh, and MSW auth
Add register page and endpoint wiring; optional email on register schema;
shared AppFooter for login/register; MSW register and session mocks;
dashboard timeline and styles; locale catalogs and Lingui config.

Made-with: Cursor
2026-04-27 18:38:11 +08:00
zuiidea 39a6339c59 feat(templates): remove orders sample, align basic with with-lingui
- Drop orders routes, API, MSW, and e2e; users-only CRUD template
- Port HTTP refresh, hooks, RouteError, and core e2e to basic
- Lingui extract --clean in script; refresh catalogs
- Update add-resource docs, cursor rule, and optimization spec

Made-with: Cursor
2026-04-27 15:53:47 +08:00
zuiidea 4406e57556 fix(with-lingui): run vp staged from app roots in pre-commit
Git core.hooksPath points at this app while commits use the repo root cwd, so plain vp staged could not find vite.config.ts. Dispatch into apps/with-lingui and apps/basic by staged path; run packages/create check-types for matching TS sources. Document behavior in AGENTS.md.

Made-with: Cursor
2026-04-27 15:04:51 +08:00
zuiidea c5221c71be feat(with-lingui): orders CRUD, shared hooks, auth refresh, and docs
- Add second sample resource (orders): API, schemas, MSW, routes, menu, Lingui, and E2E.

- Introduce useCrudToasts, useUrlSearchState, useTableFitHeight; extend useResourceCRUD with optimistic updates; add Vitest coverage for hooks and createHandler.

- Implement token refresh in http layer, RouteError, and new E2E specs (auth-refresh, rbac, url-state).

- Replace gen-resource codegen with English add-resource.instructions.md; fix Copilot instruction YAML in with-lingui and basic.

- Add with-lingui CI workflow, Cursor thin rules, optimization plan doc, and refresh README/AGENTS.

- Bump packages/create and lockfile where applicable.

Made-with: Cursor
2026-04-27 14:47:55 +08:00
zuiidea a54300c588 fix(docs): intercept mockServiceWorker.js before Nextra catch-all
Made-with: Cursor
2026-04-15 09:51:01 +08:00
zuiidea 2fce0a3e2a fix(docs): remove package type module for Next build compatibility
Made-with: Cursor
2026-04-14 23:19:03 +08:00
zuiidea d4706457c8 chore(docs): fix tsbuildinfo gitignore pattern
Made-with: Cursor
2026-04-14 23:17:56 +08:00
zuiidea fe322fae17 chore(docs): gitignore Next build output and tsbuildinfo
Made-with: Cursor
2026-04-14 23:17:41 +08:00
zuiidea ab43016511 chore(docs): eslint flat config and verify next build
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea a2f23fbbe9 chore: wire docs app into turbo and root README
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea bef1ea8f18 docs(docs): add Chinese content skeleton for Nextra
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea bd26b035ac feat(docs): add Nextra catch-all MDX page
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea 3730c874b5 feat(docs): Nextra docs theme root layout (zh-CN)
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea b186628cb6 feat(docs): add mdx-components for Nextra theme
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea 72e01b9641 chore(docs): add Next and TypeScript config for Nextra
Made-with: Cursor
2026-04-14 23:17:07 +08:00
zuiidea 0c3619f684 chore(docs): scaffold antd-admin-docs package with Nextra deps
Made-with: Cursor
2026-04-14 23:17:06 +08:00
zuiidea 81bb9e996c feat(with-lingui): dynamic load locale message catalogs
Made-with: Cursor
2026-04-14 21:06:01 +08:00
zuiidea 432d67b28e fix(basic): e2e script paths and template docs
Made-with: Cursor
2026-04-14 20:57:24 +08:00
zuiidea b6f98b71b1 feat(basic): remove Lingui bootstrap and English shell (batch A)
Made-with: Cursor
2026-04-14 20:55:52 +08:00
zuiidea b47e932d92 chore(basic): remove Lingui vite and swc plugins
Made-with: Cursor
2026-04-14 19:23:06 +08:00
zuiidea a5d6189b53 chore(basic): drop Lingui deps and rename package
Made-with: Cursor
2026-04-14 19:22:27 +08:00
zuiidea b08775bad8 chore: scaffold apps/basic from with-lingui
Made-with: Cursor
2026-04-14 19:21:30 +08:00
zuiidea 29888fd1ad refactor(with-lingui): move theme and session, merge mock utils
- Theme hooks: tokenBuilders + useAppTheme under hooks; drop theme barrel
- Session fetch helper under utils; update entry/login imports
- Mock filter + avatar helpers in mocks/utils; avatars from API in UI
- README tree updates

Made-with: Cursor
2026-04-14 19:12:48 +08:00
zuiidea ab24405469 chore: add workspace instruction files 2026-04-14 18:39:21 +08:00
zuiidea 1b4c8e2895 chore: add vercel SPA rewrite config 2026-04-14 18:35:02 +08:00
zuiidea 3994caea8e feat: support enabling mock in build via env 2026-04-14 18:33:34 +08:00
zuiidea dd91ffcecd chore: sync package metadata 2026-04-14 18:05:22 +08:00
zuiidea 426518c70a chore: initial import 2026-04-14 18:04:41 +08:00