@cherishxn/agent-scaffold 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +99 -2
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +105 -0
- package/dist/diagnostics.d.ts +10 -0
- package/dist/diagnostics.js +27 -0
- package/dist/generate.d.ts +55 -0
- package/dist/generate.js +159 -0
- package/dist/model.d.ts +33 -0
- package/dist/model.js +24 -0
- package/dist/verify.d.ts +67 -0
- package/dist/verify.js +278 -0
- package/package.json +52 -4
- package/schemas/manifest.json +171 -0
- package/schemas/plan.json +164 -0
- package/schemas/result.json +97 -0
- package/schemas/spec.json +50 -0
- package/skills/scaffold-use/SKILL.md +24 -0
- package/templates/catalog.json +37 -0
- package/templates/next-fullstack-antd/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-antd/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-antd/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-antd/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-antd/.dockerignore +18 -0
- package/templates/next-fullstack-antd/.env.example +13 -0
- package/templates/next-fullstack-antd/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-antd/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-antd/.scaffold-checks.json +7 -0
- package/templates/next-fullstack-antd/AGENTS.md +11 -0
- package/templates/next-fullstack-antd/CLAUDE.md +1 -0
- package/templates/next-fullstack-antd/DESIGN.md +208 -0
- package/templates/next-fullstack-antd/LICENSE +21 -0
- package/templates/next-fullstack-antd/README.md +64 -0
- package/templates/next-fullstack-antd/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/next-fullstack-antd/compose.yaml +18 -0
- package/templates/next-fullstack-antd/design/guide.md +61 -0
- package/templates/next-fullstack-antd/design/layout.css +6 -0
- package/templates/next-fullstack-antd/design/structure.json +107 -0
- package/templates/next-fullstack-antd/design/tokens.json +171 -0
- package/templates/next-fullstack-antd/design/widgets.css +30 -0
- package/templates/next-fullstack-antd/design/widgets.json +233 -0
- package/templates/next-fullstack-antd/docs/PROJECT.md +32 -0
- package/templates/next-fullstack-antd/docs/api.d.ts +544 -0
- package/templates/next-fullstack-antd/docs/openapi.json +461 -0
- package/templates/next-fullstack-antd/gitignore.template +19 -0
- package/templates/next-fullstack-antd/licenses/fastapi.txt +21 -0
- package/templates/next-fullstack-antd/licenses/nest.txt +22 -0
- package/templates/next-fullstack-antd/licenses/next.txt +21 -0
- package/templates/next-fullstack-antd/licenses/shadcn.txt +21 -0
- package/templates/next-fullstack-antd/licenses/sources.json +27 -0
- package/templates/next-fullstack-antd/licenses/spring.txt +202 -0
- package/templates/next-fullstack-antd/package-lock.json +494 -0
- package/templates/next-fullstack-antd/package.json +26 -0
- package/templates/next-fullstack-antd/playwright.config.ts +3 -0
- package/templates/next-fullstack-antd/project.json +8 -0
- package/templates/next-fullstack-antd/scripts/api-check.mjs +18 -0
- package/templates/next-fullstack-antd/scripts/api-contract.mjs +46 -0
- package/templates/next-fullstack-antd/scripts/design-coverage.mjs +20 -0
- package/templates/next-fullstack-antd/scripts/design-next-cleanup.mjs +13 -0
- package/templates/next-fullstack-antd/scripts/design-verify.mjs +154 -0
- package/templates/next-fullstack-antd/scripts/design.mjs +108 -0
- package/templates/next-fullstack-antd/scripts/project.mjs +120 -0
- package/templates/next-fullstack-antd/tests/contract-client.ts +20 -0
- package/templates/next-fullstack-antd/tests/contract.spec.ts +49 -0
- package/templates/next-fullstack-antd/tests/design/harness.tsx +63 -0
- package/templates/next-fullstack-antd/tests/ui.spec.ts +61 -0
- package/templates/next-fullstack-antd/web/Dockerfile +12 -0
- package/templates/next-fullstack-antd/web/app/api/auth/login/route.ts +1 -0
- package/templates/next-fullstack-antd/web/app/api/auth/logout/route.ts +1 -0
- package/templates/next-fullstack-antd/web/app/api/auth/me/route.ts +1 -0
- package/templates/next-fullstack-antd/web/app/api/health/route.ts +1 -0
- package/templates/next-fullstack-antd/web/app/api/records/[id]/route.ts +5 -0
- package/templates/next-fullstack-antd/web/app/api/records/route.ts +3 -0
- package/templates/next-fullstack-antd/web/app/layout.tsx +5 -0
- package/templates/next-fullstack-antd/web/app/page.tsx +2 -0
- package/templates/next-fullstack-antd/web/eslint.config.mjs +3 -0
- package/templates/next-fullstack-antd/web/lib/api.ts +35 -0
- package/templates/next-fullstack-antd/web/lib/auth.ts +10 -0
- package/templates/next-fullstack-antd/web/lib/db.ts +3 -0
- package/templates/next-fullstack-antd/web/lib/session.test.ts +15 -0
- package/templates/next-fullstack-antd/web/lib/validation.test.ts +3 -0
- package/templates/next-fullstack-antd/web/lib/validation.ts +5 -0
- package/templates/next-fullstack-antd/web/next-env.d.ts +7 -0
- package/templates/next-fullstack-antd/web/next.config.ts +3 -0
- package/templates/next-fullstack-antd/web/package.json +35 -0
- package/templates/next-fullstack-antd/web/pnpm-lock.yaml +3756 -0
- package/templates/next-fullstack-antd/web/pnpm-workspace.yaml +7 -0
- package/templates/next-fullstack-antd/web/prisma/migrations/202610190001_initial/migration.sql +99 -0
- package/templates/next-fullstack-antd/web/prisma/migrations/migration_lock.toml +1 -0
- package/templates/next-fullstack-antd/web/prisma/schema.prisma +72 -0
- package/templates/next-fullstack-antd/web/scripts/seed.ts +4 -0
- package/templates/next-fullstack-antd/web/src/App.tsx +29 -0
- package/templates/next-fullstack-antd/web/src/design-layout.css +7 -0
- package/templates/next-fullstack-antd/web/src/design-runtime.json +511 -0
- package/templates/next-fullstack-antd/web/src/design-tokens.css +168 -0
- package/templates/next-fullstack-antd/web/src/design-widgets.css +31 -0
- package/templates/next-fullstack-antd/web/src/structure-view.tsx +16 -0
- package/templates/next-fullstack-antd/web/src/styles.css +3 -0
- package/templates/next-fullstack-antd/web/src/ui.tsx +30 -0
- package/templates/next-fullstack-antd/web/src/widget-icon.tsx +5 -0
- package/templates/next-fullstack-antd/web/src/widget-types.ts +13 -0
- package/templates/next-fullstack-antd/web/src/workspace-model.ts +85 -0
- package/templates/next-fullstack-antd/web/tsconfig.json +42 -0
- package/templates/next-fullstack-antd/web/vitest.config.ts +2 -0
- package/templates/next-fullstack-shadcn/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-shadcn/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-shadcn/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-shadcn/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-shadcn/.dockerignore +18 -0
- package/templates/next-fullstack-shadcn/.env.example +13 -0
- package/templates/next-fullstack-shadcn/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/next-fullstack-shadcn/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/next-fullstack-shadcn/.scaffold-checks.json +7 -0
- package/templates/next-fullstack-shadcn/AGENTS.md +11 -0
- package/templates/next-fullstack-shadcn/CLAUDE.md +1 -0
- package/templates/next-fullstack-shadcn/DESIGN.md +208 -0
- package/templates/next-fullstack-shadcn/LICENSE +21 -0
- package/templates/next-fullstack-shadcn/README.md +64 -0
- package/templates/next-fullstack-shadcn/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/next-fullstack-shadcn/compose.yaml +18 -0
- package/templates/next-fullstack-shadcn/design/guide.md +61 -0
- package/templates/next-fullstack-shadcn/design/layout.css +6 -0
- package/templates/next-fullstack-shadcn/design/structure.json +107 -0
- package/templates/next-fullstack-shadcn/design/tokens.json +171 -0
- package/templates/next-fullstack-shadcn/design/widgets.css +30 -0
- package/templates/next-fullstack-shadcn/design/widgets.json +233 -0
- package/templates/next-fullstack-shadcn/docs/PROJECT.md +32 -0
- package/templates/next-fullstack-shadcn/docs/api.d.ts +544 -0
- package/templates/next-fullstack-shadcn/docs/openapi.json +461 -0
- package/templates/next-fullstack-shadcn/gitignore.template +19 -0
- package/templates/next-fullstack-shadcn/licenses/fastapi.txt +21 -0
- package/templates/next-fullstack-shadcn/licenses/nest.txt +22 -0
- package/templates/next-fullstack-shadcn/licenses/next.txt +21 -0
- package/templates/next-fullstack-shadcn/licenses/shadcn.txt +21 -0
- package/templates/next-fullstack-shadcn/licenses/sources.json +27 -0
- package/templates/next-fullstack-shadcn/licenses/spring.txt +202 -0
- package/templates/next-fullstack-shadcn/package-lock.json +494 -0
- package/templates/next-fullstack-shadcn/package.json +26 -0
- package/templates/next-fullstack-shadcn/playwright.config.ts +3 -0
- package/templates/next-fullstack-shadcn/project.json +8 -0
- package/templates/next-fullstack-shadcn/scripts/api-check.mjs +18 -0
- package/templates/next-fullstack-shadcn/scripts/api-contract.mjs +46 -0
- package/templates/next-fullstack-shadcn/scripts/design-coverage.mjs +20 -0
- package/templates/next-fullstack-shadcn/scripts/design-next-cleanup.mjs +13 -0
- package/templates/next-fullstack-shadcn/scripts/design-verify.mjs +154 -0
- package/templates/next-fullstack-shadcn/scripts/design.mjs +108 -0
- package/templates/next-fullstack-shadcn/scripts/project.mjs +120 -0
- package/templates/next-fullstack-shadcn/tests/contract-client.ts +20 -0
- package/templates/next-fullstack-shadcn/tests/contract.spec.ts +49 -0
- package/templates/next-fullstack-shadcn/tests/design/harness.tsx +63 -0
- package/templates/next-fullstack-shadcn/tests/ui.spec.ts +61 -0
- package/templates/next-fullstack-shadcn/web/Dockerfile +12 -0
- package/templates/next-fullstack-shadcn/web/app/api/auth/login/route.ts +1 -0
- package/templates/next-fullstack-shadcn/web/app/api/auth/logout/route.ts +1 -0
- package/templates/next-fullstack-shadcn/web/app/api/auth/me/route.ts +1 -0
- package/templates/next-fullstack-shadcn/web/app/api/health/route.ts +1 -0
- package/templates/next-fullstack-shadcn/web/app/api/records/[id]/route.ts +5 -0
- package/templates/next-fullstack-shadcn/web/app/api/records/route.ts +3 -0
- package/templates/next-fullstack-shadcn/web/app/layout.tsx +4 -0
- package/templates/next-fullstack-shadcn/web/app/page.tsx +2 -0
- package/templates/next-fullstack-shadcn/web/eslint.config.mjs +3 -0
- package/templates/next-fullstack-shadcn/web/lib/api.ts +35 -0
- package/templates/next-fullstack-shadcn/web/lib/auth.ts +10 -0
- package/templates/next-fullstack-shadcn/web/lib/db.ts +3 -0
- package/templates/next-fullstack-shadcn/web/lib/session.test.ts +15 -0
- package/templates/next-fullstack-shadcn/web/lib/validation.test.ts +3 -0
- package/templates/next-fullstack-shadcn/web/lib/validation.ts +5 -0
- package/templates/next-fullstack-shadcn/web/next-env.d.ts +7 -0
- package/templates/next-fullstack-shadcn/web/next.config.ts +3 -0
- package/templates/next-fullstack-shadcn/web/package.json +39 -0
- package/templates/next-fullstack-shadcn/web/pnpm-lock.yaml +3286 -0
- package/templates/next-fullstack-shadcn/web/pnpm-workspace.yaml +7 -0
- package/templates/next-fullstack-shadcn/web/postcss.config.mjs +1 -0
- package/templates/next-fullstack-shadcn/web/prisma/migrations/202610190001_initial/migration.sql +99 -0
- package/templates/next-fullstack-shadcn/web/prisma/migrations/migration_lock.toml +1 -0
- package/templates/next-fullstack-shadcn/web/prisma/schema.prisma +72 -0
- package/templates/next-fullstack-shadcn/web/scripts/seed.ts +4 -0
- package/templates/next-fullstack-shadcn/web/src/App.tsx +30 -0
- package/templates/next-fullstack-shadcn/web/src/design-layout.css +7 -0
- package/templates/next-fullstack-shadcn/web/src/design-runtime.json +511 -0
- package/templates/next-fullstack-shadcn/web/src/design-tokens.css +168 -0
- package/templates/next-fullstack-shadcn/web/src/design-widgets.css +31 -0
- package/templates/next-fullstack-shadcn/web/src/structure-view.tsx +16 -0
- package/templates/next-fullstack-shadcn/web/src/styles.css +3 -0
- package/templates/next-fullstack-shadcn/web/src/tailwind.css +2 -0
- package/templates/next-fullstack-shadcn/web/src/ui.tsx +13 -0
- package/templates/next-fullstack-shadcn/web/src/widget-icon.tsx +5 -0
- package/templates/next-fullstack-shadcn/web/src/widget-types.ts +13 -0
- package/templates/next-fullstack-shadcn/web/src/workspace-model.ts +85 -0
- package/templates/next-fullstack-shadcn/web/tsconfig.json +42 -0
- package/templates/next-fullstack-shadcn/web/vitest.config.ts +2 -0
- package/templates/react-fastapi-antd/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-antd/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-antd/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-antd/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-antd/.dockerignore +18 -0
- package/templates/react-fastapi-antd/.env.example +13 -0
- package/templates/react-fastapi-antd/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-antd/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-antd/.scaffold-checks.json +7 -0
- package/templates/react-fastapi-antd/AGENTS.md +11 -0
- package/templates/react-fastapi-antd/CLAUDE.md +1 -0
- package/templates/react-fastapi-antd/DESIGN.md +208 -0
- package/templates/react-fastapi-antd/LICENSE +21 -0
- package/templates/react-fastapi-antd/README.md +64 -0
- package/templates/react-fastapi-antd/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-fastapi-antd/backend/.python-version +1 -0
- package/templates/react-fastapi-antd/backend/Dockerfile +10 -0
- package/templates/react-fastapi-antd/backend/alembic.ini +3 -0
- package/templates/react-fastapi-antd/backend/app/__init__.py +0 -0
- package/templates/react-fastapi-antd/backend/app/core/__init__.py +0 -0
- package/templates/react-fastapi-antd/backend/app/core/security.py +25 -0
- package/templates/react-fastapi-antd/backend/app/db.py +11 -0
- package/templates/react-fastapi-antd/backend/app/main.py +146 -0
- package/templates/react-fastapi-antd/backend/app/models.py +21 -0
- package/templates/react-fastapi-antd/backend/app/seed.py +21 -0
- package/templates/react-fastapi-antd/backend/migrations/env.py +9 -0
- package/templates/react-fastapi-antd/backend/migrations/versions/0001_initial.py +18 -0
- package/templates/react-fastapi-antd/backend/pyproject.toml +16 -0
- package/templates/react-fastapi-antd/backend/tests/test_api.py +27 -0
- package/templates/react-fastapi-antd/backend/uv.lock +1085 -0
- package/templates/react-fastapi-antd/compose.yaml +18 -0
- package/templates/react-fastapi-antd/design/guide.md +61 -0
- package/templates/react-fastapi-antd/design/layout.css +6 -0
- package/templates/react-fastapi-antd/design/structure.json +107 -0
- package/templates/react-fastapi-antd/design/tokens.json +171 -0
- package/templates/react-fastapi-antd/design/widgets.css +30 -0
- package/templates/react-fastapi-antd/design/widgets.json +233 -0
- package/templates/react-fastapi-antd/docs/PROJECT.md +32 -0
- package/templates/react-fastapi-antd/docs/api.d.ts +544 -0
- package/templates/react-fastapi-antd/docs/openapi.json +461 -0
- package/templates/react-fastapi-antd/gitignore.template +19 -0
- package/templates/react-fastapi-antd/licenses/fastapi.txt +21 -0
- package/templates/react-fastapi-antd/licenses/nest.txt +22 -0
- package/templates/react-fastapi-antd/licenses/next.txt +21 -0
- package/templates/react-fastapi-antd/licenses/shadcn.txt +21 -0
- package/templates/react-fastapi-antd/licenses/sources.json +27 -0
- package/templates/react-fastapi-antd/licenses/spring.txt +202 -0
- package/templates/react-fastapi-antd/package-lock.json +494 -0
- package/templates/react-fastapi-antd/package.json +26 -0
- package/templates/react-fastapi-antd/playwright.config.ts +3 -0
- package/templates/react-fastapi-antd/project.json +8 -0
- package/templates/react-fastapi-antd/scripts/api-check.mjs +18 -0
- package/templates/react-fastapi-antd/scripts/api-contract.mjs +46 -0
- package/templates/react-fastapi-antd/scripts/design-coverage.mjs +20 -0
- package/templates/react-fastapi-antd/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-fastapi-antd/scripts/design-verify.mjs +154 -0
- package/templates/react-fastapi-antd/scripts/design.mjs +108 -0
- package/templates/react-fastapi-antd/scripts/project.mjs +120 -0
- package/templates/react-fastapi-antd/tests/contract-client.ts +20 -0
- package/templates/react-fastapi-antd/tests/contract.spec.ts +49 -0
- package/templates/react-fastapi-antd/tests/design/harness.tsx +63 -0
- package/templates/react-fastapi-antd/tests/ui.spec.ts +61 -0
- package/templates/react-fastapi-antd/web/bun.lock +442 -0
- package/templates/react-fastapi-antd/web/eslint.config.mjs +3 -0
- package/templates/react-fastapi-antd/web/index.html +1 -0
- package/templates/react-fastapi-antd/web/package.json +28 -0
- package/templates/react-fastapi-antd/web/src/App.tsx +29 -0
- package/templates/react-fastapi-antd/web/src/design-layout.css +7 -0
- package/templates/react-fastapi-antd/web/src/design-runtime.json +511 -0
- package/templates/react-fastapi-antd/web/src/design-tokens.css +168 -0
- package/templates/react-fastapi-antd/web/src/design-widgets.css +31 -0
- package/templates/react-fastapi-antd/web/src/main.tsx +6 -0
- package/templates/react-fastapi-antd/web/src/structure-view.tsx +16 -0
- package/templates/react-fastapi-antd/web/src/styles.css +3 -0
- package/templates/react-fastapi-antd/web/src/ui.tsx +30 -0
- package/templates/react-fastapi-antd/web/src/widget-icon.tsx +5 -0
- package/templates/react-fastapi-antd/web/src/widget-types.ts +13 -0
- package/templates/react-fastapi-antd/web/src/workspace-model.ts +85 -0
- package/templates/react-fastapi-antd/web/tsconfig.json +22 -0
- package/templates/react-fastapi-antd/web/vite.config.ts +3 -0
- package/templates/react-fastapi-shadcn/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-shadcn/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-shadcn/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-shadcn/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-shadcn/.dockerignore +18 -0
- package/templates/react-fastapi-shadcn/.env.example +13 -0
- package/templates/react-fastapi-shadcn/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-fastapi-shadcn/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-fastapi-shadcn/.scaffold-checks.json +7 -0
- package/templates/react-fastapi-shadcn/AGENTS.md +11 -0
- package/templates/react-fastapi-shadcn/CLAUDE.md +1 -0
- package/templates/react-fastapi-shadcn/DESIGN.md +208 -0
- package/templates/react-fastapi-shadcn/LICENSE +21 -0
- package/templates/react-fastapi-shadcn/README.md +64 -0
- package/templates/react-fastapi-shadcn/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-fastapi-shadcn/backend/.python-version +1 -0
- package/templates/react-fastapi-shadcn/backend/Dockerfile +10 -0
- package/templates/react-fastapi-shadcn/backend/alembic.ini +3 -0
- package/templates/react-fastapi-shadcn/backend/app/__init__.py +0 -0
- package/templates/react-fastapi-shadcn/backend/app/core/__init__.py +0 -0
- package/templates/react-fastapi-shadcn/backend/app/core/security.py +25 -0
- package/templates/react-fastapi-shadcn/backend/app/db.py +11 -0
- package/templates/react-fastapi-shadcn/backend/app/main.py +146 -0
- package/templates/react-fastapi-shadcn/backend/app/models.py +21 -0
- package/templates/react-fastapi-shadcn/backend/app/seed.py +21 -0
- package/templates/react-fastapi-shadcn/backend/migrations/env.py +9 -0
- package/templates/react-fastapi-shadcn/backend/migrations/versions/0001_initial.py +18 -0
- package/templates/react-fastapi-shadcn/backend/pyproject.toml +16 -0
- package/templates/react-fastapi-shadcn/backend/tests/test_api.py +27 -0
- package/templates/react-fastapi-shadcn/backend/uv.lock +1085 -0
- package/templates/react-fastapi-shadcn/compose.yaml +18 -0
- package/templates/react-fastapi-shadcn/design/guide.md +61 -0
- package/templates/react-fastapi-shadcn/design/layout.css +6 -0
- package/templates/react-fastapi-shadcn/design/structure.json +107 -0
- package/templates/react-fastapi-shadcn/design/tokens.json +171 -0
- package/templates/react-fastapi-shadcn/design/widgets.css +30 -0
- package/templates/react-fastapi-shadcn/design/widgets.json +233 -0
- package/templates/react-fastapi-shadcn/docs/PROJECT.md +32 -0
- package/templates/react-fastapi-shadcn/docs/api.d.ts +544 -0
- package/templates/react-fastapi-shadcn/docs/openapi.json +461 -0
- package/templates/react-fastapi-shadcn/gitignore.template +19 -0
- package/templates/react-fastapi-shadcn/licenses/fastapi.txt +21 -0
- package/templates/react-fastapi-shadcn/licenses/nest.txt +22 -0
- package/templates/react-fastapi-shadcn/licenses/next.txt +21 -0
- package/templates/react-fastapi-shadcn/licenses/shadcn.txt +21 -0
- package/templates/react-fastapi-shadcn/licenses/sources.json +27 -0
- package/templates/react-fastapi-shadcn/licenses/spring.txt +202 -0
- package/templates/react-fastapi-shadcn/package-lock.json +494 -0
- package/templates/react-fastapi-shadcn/package.json +26 -0
- package/templates/react-fastapi-shadcn/playwright.config.ts +3 -0
- package/templates/react-fastapi-shadcn/project.json +8 -0
- package/templates/react-fastapi-shadcn/scripts/api-check.mjs +18 -0
- package/templates/react-fastapi-shadcn/scripts/api-contract.mjs +46 -0
- package/templates/react-fastapi-shadcn/scripts/design-coverage.mjs +20 -0
- package/templates/react-fastapi-shadcn/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-fastapi-shadcn/scripts/design-verify.mjs +154 -0
- package/templates/react-fastapi-shadcn/scripts/design.mjs +108 -0
- package/templates/react-fastapi-shadcn/scripts/project.mjs +120 -0
- package/templates/react-fastapi-shadcn/tests/contract-client.ts +20 -0
- package/templates/react-fastapi-shadcn/tests/contract.spec.ts +49 -0
- package/templates/react-fastapi-shadcn/tests/design/harness.tsx +63 -0
- package/templates/react-fastapi-shadcn/tests/ui.spec.ts +61 -0
- package/templates/react-fastapi-shadcn/web/bun.lock +413 -0
- package/templates/react-fastapi-shadcn/web/eslint.config.mjs +3 -0
- package/templates/react-fastapi-shadcn/web/index.html +1 -0
- package/templates/react-fastapi-shadcn/web/package.json +33 -0
- package/templates/react-fastapi-shadcn/web/src/App.tsx +30 -0
- package/templates/react-fastapi-shadcn/web/src/design-layout.css +7 -0
- package/templates/react-fastapi-shadcn/web/src/design-runtime.json +511 -0
- package/templates/react-fastapi-shadcn/web/src/design-tokens.css +168 -0
- package/templates/react-fastapi-shadcn/web/src/design-widgets.css +31 -0
- package/templates/react-fastapi-shadcn/web/src/main.tsx +6 -0
- package/templates/react-fastapi-shadcn/web/src/structure-view.tsx +16 -0
- package/templates/react-fastapi-shadcn/web/src/styles.css +3 -0
- package/templates/react-fastapi-shadcn/web/src/tailwind.css +2 -0
- package/templates/react-fastapi-shadcn/web/src/ui.tsx +13 -0
- package/templates/react-fastapi-shadcn/web/src/widget-icon.tsx +5 -0
- package/templates/react-fastapi-shadcn/web/src/widget-types.ts +13 -0
- package/templates/react-fastapi-shadcn/web/src/workspace-model.ts +85 -0
- package/templates/react-fastapi-shadcn/web/tsconfig.json +22 -0
- package/templates/react-fastapi-shadcn/web/vite.config.ts +4 -0
- package/templates/react-nest-antd/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-antd/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-antd/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-antd/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-antd/.dockerignore +18 -0
- package/templates/react-nest-antd/.env.example +13 -0
- package/templates/react-nest-antd/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-antd/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-antd/.scaffold-checks.json +7 -0
- package/templates/react-nest-antd/AGENTS.md +11 -0
- package/templates/react-nest-antd/CLAUDE.md +1 -0
- package/templates/react-nest-antd/DESIGN.md +208 -0
- package/templates/react-nest-antd/LICENSE +21 -0
- package/templates/react-nest-antd/README.md +64 -0
- package/templates/react-nest-antd/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-nest-antd/backend/Dockerfile +12 -0
- package/templates/react-nest-antd/backend/eslint.config.mjs +3 -0
- package/templates/react-nest-antd/backend/jest.config.cjs +1 -0
- package/templates/react-nest-antd/backend/package.json +40 -0
- package/templates/react-nest-antd/backend/pnpm-lock.yaml +5165 -0
- package/templates/react-nest-antd/backend/pnpm-workspace.yaml +6 -0
- package/templates/react-nest-antd/backend/prisma/migrations/202610190001_initial/migration.sql +3 -0
- package/templates/react-nest-antd/backend/prisma/migrations/migration_lock.toml +1 -0
- package/templates/react-nest-antd/backend/prisma/schema.prisma +25 -0
- package/templates/react-nest-antd/backend/scripts/seed.ts +4 -0
- package/templates/react-nest-antd/backend/src/app.module.ts +43 -0
- package/templates/react-nest-antd/backend/src/main.ts +6 -0
- package/templates/react-nest-antd/backend/src/password.ts +3 -0
- package/templates/react-nest-antd/backend/src/validation.ts +7 -0
- package/templates/react-nest-antd/backend/test/api.test.ts +25 -0
- package/templates/react-nest-antd/backend/tsconfig.build.json +15 -0
- package/templates/react-nest-antd/backend/tsconfig.json +17 -0
- package/templates/react-nest-antd/compose.yaml +18 -0
- package/templates/react-nest-antd/design/guide.md +61 -0
- package/templates/react-nest-antd/design/layout.css +6 -0
- package/templates/react-nest-antd/design/structure.json +107 -0
- package/templates/react-nest-antd/design/tokens.json +171 -0
- package/templates/react-nest-antd/design/widgets.css +30 -0
- package/templates/react-nest-antd/design/widgets.json +233 -0
- package/templates/react-nest-antd/docs/PROJECT.md +32 -0
- package/templates/react-nest-antd/docs/api.d.ts +544 -0
- package/templates/react-nest-antd/docs/openapi.json +461 -0
- package/templates/react-nest-antd/gitignore.template +19 -0
- package/templates/react-nest-antd/licenses/fastapi.txt +21 -0
- package/templates/react-nest-antd/licenses/nest.txt +22 -0
- package/templates/react-nest-antd/licenses/next.txt +21 -0
- package/templates/react-nest-antd/licenses/shadcn.txt +21 -0
- package/templates/react-nest-antd/licenses/sources.json +27 -0
- package/templates/react-nest-antd/licenses/spring.txt +202 -0
- package/templates/react-nest-antd/package-lock.json +494 -0
- package/templates/react-nest-antd/package.json +26 -0
- package/templates/react-nest-antd/playwright.config.ts +3 -0
- package/templates/react-nest-antd/project.json +8 -0
- package/templates/react-nest-antd/scripts/api-check.mjs +18 -0
- package/templates/react-nest-antd/scripts/api-contract.mjs +46 -0
- package/templates/react-nest-antd/scripts/design-coverage.mjs +20 -0
- package/templates/react-nest-antd/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-nest-antd/scripts/design-verify.mjs +154 -0
- package/templates/react-nest-antd/scripts/design.mjs +108 -0
- package/templates/react-nest-antd/scripts/project.mjs +120 -0
- package/templates/react-nest-antd/tests/contract-client.ts +20 -0
- package/templates/react-nest-antd/tests/contract.spec.ts +49 -0
- package/templates/react-nest-antd/tests/design/harness.tsx +63 -0
- package/templates/react-nest-antd/tests/ui.spec.ts +61 -0
- package/templates/react-nest-antd/web/eslint.config.mjs +3 -0
- package/templates/react-nest-antd/web/index.html +1 -0
- package/templates/react-nest-antd/web/package.json +28 -0
- package/templates/react-nest-antd/web/pnpm-lock.yaml +2215 -0
- package/templates/react-nest-antd/web/src/App.tsx +29 -0
- package/templates/react-nest-antd/web/src/design-layout.css +7 -0
- package/templates/react-nest-antd/web/src/design-runtime.json +511 -0
- package/templates/react-nest-antd/web/src/design-tokens.css +168 -0
- package/templates/react-nest-antd/web/src/design-widgets.css +31 -0
- package/templates/react-nest-antd/web/src/main.tsx +6 -0
- package/templates/react-nest-antd/web/src/structure-view.tsx +16 -0
- package/templates/react-nest-antd/web/src/styles.css +3 -0
- package/templates/react-nest-antd/web/src/ui.tsx +30 -0
- package/templates/react-nest-antd/web/src/widget-icon.tsx +5 -0
- package/templates/react-nest-antd/web/src/widget-types.ts +13 -0
- package/templates/react-nest-antd/web/src/workspace-model.ts +85 -0
- package/templates/react-nest-antd/web/tsconfig.json +22 -0
- package/templates/react-nest-antd/web/vite.config.ts +3 -0
- package/templates/react-nest-shadcn/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-shadcn/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-shadcn/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-shadcn/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-shadcn/.dockerignore +18 -0
- package/templates/react-nest-shadcn/.env.example +13 -0
- package/templates/react-nest-shadcn/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-nest-shadcn/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-nest-shadcn/.scaffold-checks.json +7 -0
- package/templates/react-nest-shadcn/AGENTS.md +11 -0
- package/templates/react-nest-shadcn/CLAUDE.md +1 -0
- package/templates/react-nest-shadcn/DESIGN.md +208 -0
- package/templates/react-nest-shadcn/LICENSE +21 -0
- package/templates/react-nest-shadcn/README.md +64 -0
- package/templates/react-nest-shadcn/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-nest-shadcn/backend/Dockerfile +12 -0
- package/templates/react-nest-shadcn/backend/eslint.config.mjs +3 -0
- package/templates/react-nest-shadcn/backend/jest.config.cjs +1 -0
- package/templates/react-nest-shadcn/backend/package.json +40 -0
- package/templates/react-nest-shadcn/backend/pnpm-lock.yaml +5165 -0
- package/templates/react-nest-shadcn/backend/pnpm-workspace.yaml +6 -0
- package/templates/react-nest-shadcn/backend/prisma/migrations/202610190001_initial/migration.sql +3 -0
- package/templates/react-nest-shadcn/backend/prisma/migrations/migration_lock.toml +1 -0
- package/templates/react-nest-shadcn/backend/prisma/schema.prisma +25 -0
- package/templates/react-nest-shadcn/backend/scripts/seed.ts +4 -0
- package/templates/react-nest-shadcn/backend/src/app.module.ts +43 -0
- package/templates/react-nest-shadcn/backend/src/main.ts +6 -0
- package/templates/react-nest-shadcn/backend/src/password.ts +3 -0
- package/templates/react-nest-shadcn/backend/src/validation.ts +7 -0
- package/templates/react-nest-shadcn/backend/test/api.test.ts +25 -0
- package/templates/react-nest-shadcn/backend/tsconfig.build.json +15 -0
- package/templates/react-nest-shadcn/backend/tsconfig.json +17 -0
- package/templates/react-nest-shadcn/compose.yaml +18 -0
- package/templates/react-nest-shadcn/design/guide.md +61 -0
- package/templates/react-nest-shadcn/design/layout.css +6 -0
- package/templates/react-nest-shadcn/design/structure.json +107 -0
- package/templates/react-nest-shadcn/design/tokens.json +171 -0
- package/templates/react-nest-shadcn/design/widgets.css +30 -0
- package/templates/react-nest-shadcn/design/widgets.json +233 -0
- package/templates/react-nest-shadcn/docs/PROJECT.md +32 -0
- package/templates/react-nest-shadcn/docs/api.d.ts +544 -0
- package/templates/react-nest-shadcn/docs/openapi.json +461 -0
- package/templates/react-nest-shadcn/gitignore.template +19 -0
- package/templates/react-nest-shadcn/licenses/fastapi.txt +21 -0
- package/templates/react-nest-shadcn/licenses/nest.txt +22 -0
- package/templates/react-nest-shadcn/licenses/next.txt +21 -0
- package/templates/react-nest-shadcn/licenses/shadcn.txt +21 -0
- package/templates/react-nest-shadcn/licenses/sources.json +27 -0
- package/templates/react-nest-shadcn/licenses/spring.txt +202 -0
- package/templates/react-nest-shadcn/package-lock.json +494 -0
- package/templates/react-nest-shadcn/package.json +26 -0
- package/templates/react-nest-shadcn/playwright.config.ts +3 -0
- package/templates/react-nest-shadcn/project.json +8 -0
- package/templates/react-nest-shadcn/scripts/api-check.mjs +18 -0
- package/templates/react-nest-shadcn/scripts/api-contract.mjs +46 -0
- package/templates/react-nest-shadcn/scripts/design-coverage.mjs +20 -0
- package/templates/react-nest-shadcn/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-nest-shadcn/scripts/design-verify.mjs +154 -0
- package/templates/react-nest-shadcn/scripts/design.mjs +108 -0
- package/templates/react-nest-shadcn/scripts/project.mjs +120 -0
- package/templates/react-nest-shadcn/tests/contract-client.ts +20 -0
- package/templates/react-nest-shadcn/tests/contract.spec.ts +49 -0
- package/templates/react-nest-shadcn/tests/design/harness.tsx +63 -0
- package/templates/react-nest-shadcn/tests/ui.spec.ts +61 -0
- package/templates/react-nest-shadcn/web/eslint.config.mjs +3 -0
- package/templates/react-nest-shadcn/web/index.html +1 -0
- package/templates/react-nest-shadcn/web/package.json +33 -0
- package/templates/react-nest-shadcn/web/pnpm-lock.yaml +1788 -0
- package/templates/react-nest-shadcn/web/src/App.tsx +30 -0
- package/templates/react-nest-shadcn/web/src/design-layout.css +7 -0
- package/templates/react-nest-shadcn/web/src/design-runtime.json +511 -0
- package/templates/react-nest-shadcn/web/src/design-tokens.css +168 -0
- package/templates/react-nest-shadcn/web/src/design-widgets.css +31 -0
- package/templates/react-nest-shadcn/web/src/main.tsx +6 -0
- package/templates/react-nest-shadcn/web/src/structure-view.tsx +16 -0
- package/templates/react-nest-shadcn/web/src/styles.css +3 -0
- package/templates/react-nest-shadcn/web/src/tailwind.css +2 -0
- package/templates/react-nest-shadcn/web/src/ui.tsx +13 -0
- package/templates/react-nest-shadcn/web/src/widget-icon.tsx +5 -0
- package/templates/react-nest-shadcn/web/src/widget-types.ts +13 -0
- package/templates/react-nest-shadcn/web/src/workspace-model.ts +85 -0
- package/templates/react-nest-shadcn/web/tsconfig.json +22 -0
- package/templates/react-nest-shadcn/web/vite.config.ts +4 -0
- package/templates/react-spring-antd/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-antd/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-antd/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-antd/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-antd/.dockerignore +18 -0
- package/templates/react-spring-antd/.env.example +13 -0
- package/templates/react-spring-antd/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-antd/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-antd/.scaffold-checks.json +7 -0
- package/templates/react-spring-antd/AGENTS.md +11 -0
- package/templates/react-spring-antd/CLAUDE.md +1 -0
- package/templates/react-spring-antd/DESIGN.md +208 -0
- package/templates/react-spring-antd/LICENSE +21 -0
- package/templates/react-spring-antd/README.md +64 -0
- package/templates/react-spring-antd/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-spring-antd/backend/.mvn/wrapper/maven-wrapper.properties +3 -0
- package/templates/react-spring-antd/backend/Dockerfile +11 -0
- package/templates/react-spring-antd/backend/mvnw +295 -0
- package/templates/react-spring-antd/backend/pom.xml +15 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Api.java +38 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/AppUser.java +11 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Application.java +7 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Errors.java +13 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/PersonalRecord.java +15 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Records.java +14 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Security.java +28 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Seed.java +13 -0
- package/templates/react-spring-antd/backend/src/main/java/dev/scaffold/app/Users.java +5 -0
- package/templates/react-spring-antd/backend/src/main/resources/application.properties +17 -0
- package/templates/react-spring-antd/backend/src/main/resources/db/migration/V1__initial.sql +3 -0
- package/templates/react-spring-antd/backend/src/main/resources/openapi.json +461 -0
- package/templates/react-spring-antd/backend/src/test/java/dev/scaffold/app/ApiTest.java +28 -0
- package/templates/react-spring-antd/backend/src/test/java/dev/scaffold/app/SessionExpiryTest.java +37 -0
- package/templates/react-spring-antd/compose.yaml +18 -0
- package/templates/react-spring-antd/design/guide.md +61 -0
- package/templates/react-spring-antd/design/layout.css +6 -0
- package/templates/react-spring-antd/design/structure.json +107 -0
- package/templates/react-spring-antd/design/tokens.json +171 -0
- package/templates/react-spring-antd/design/widgets.css +30 -0
- package/templates/react-spring-antd/design/widgets.json +233 -0
- package/templates/react-spring-antd/docs/PROJECT.md +32 -0
- package/templates/react-spring-antd/docs/api.d.ts +544 -0
- package/templates/react-spring-antd/docs/openapi.json +461 -0
- package/templates/react-spring-antd/gitignore.template +19 -0
- package/templates/react-spring-antd/licenses/fastapi.txt +21 -0
- package/templates/react-spring-antd/licenses/nest.txt +22 -0
- package/templates/react-spring-antd/licenses/next.txt +21 -0
- package/templates/react-spring-antd/licenses/shadcn.txt +21 -0
- package/templates/react-spring-antd/licenses/sources.json +27 -0
- package/templates/react-spring-antd/licenses/spring.txt +202 -0
- package/templates/react-spring-antd/package-lock.json +494 -0
- package/templates/react-spring-antd/package.json +26 -0
- package/templates/react-spring-antd/playwright.config.ts +3 -0
- package/templates/react-spring-antd/project.json +8 -0
- package/templates/react-spring-antd/scripts/api-check.mjs +18 -0
- package/templates/react-spring-antd/scripts/api-contract.mjs +46 -0
- package/templates/react-spring-antd/scripts/design-coverage.mjs +20 -0
- package/templates/react-spring-antd/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-spring-antd/scripts/design-verify.mjs +154 -0
- package/templates/react-spring-antd/scripts/design.mjs +108 -0
- package/templates/react-spring-antd/scripts/project.mjs +120 -0
- package/templates/react-spring-antd/tests/contract-client.ts +20 -0
- package/templates/react-spring-antd/tests/contract.spec.ts +49 -0
- package/templates/react-spring-antd/tests/design/harness.tsx +63 -0
- package/templates/react-spring-antd/tests/ui.spec.ts +61 -0
- package/templates/react-spring-antd/web/eslint.config.mjs +3 -0
- package/templates/react-spring-antd/web/index.html +1 -0
- package/templates/react-spring-antd/web/package.json +28 -0
- package/templates/react-spring-antd/web/pnpm-lock.yaml +2215 -0
- package/templates/react-spring-antd/web/src/App.tsx +29 -0
- package/templates/react-spring-antd/web/src/design-layout.css +7 -0
- package/templates/react-spring-antd/web/src/design-runtime.json +511 -0
- package/templates/react-spring-antd/web/src/design-tokens.css +168 -0
- package/templates/react-spring-antd/web/src/design-widgets.css +31 -0
- package/templates/react-spring-antd/web/src/main.tsx +6 -0
- package/templates/react-spring-antd/web/src/structure-view.tsx +16 -0
- package/templates/react-spring-antd/web/src/styles.css +3 -0
- package/templates/react-spring-antd/web/src/ui.tsx +30 -0
- package/templates/react-spring-antd/web/src/widget-icon.tsx +5 -0
- package/templates/react-spring-antd/web/src/widget-types.ts +13 -0
- package/templates/react-spring-antd/web/src/workspace-model.ts +85 -0
- package/templates/react-spring-antd/web/tsconfig.json +22 -0
- package/templates/react-spring-antd/web/vite.config.ts +3 -0
- package/templates/react-spring-shadcn/.agents/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-shadcn/.agents/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-shadcn/.claude/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-shadcn/.claude/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-shadcn/.dockerignore +18 -0
- package/templates/react-spring-shadcn/.env.example +13 -0
- package/templates/react-spring-shadcn/.grok/skills/design-contract/SKILL.md +23 -0
- package/templates/react-spring-shadcn/.grok/skills/project-work/SKILL.md +10 -0
- package/templates/react-spring-shadcn/.scaffold-checks.json +7 -0
- package/templates/react-spring-shadcn/AGENTS.md +11 -0
- package/templates/react-spring-shadcn/CLAUDE.md +1 -0
- package/templates/react-spring-shadcn/DESIGN.md +208 -0
- package/templates/react-spring-shadcn/LICENSE +21 -0
- package/templates/react-spring-shadcn/README.md +64 -0
- package/templates/react-spring-shadcn/THIRD_PARTY_NOTICES.md +18 -0
- package/templates/react-spring-shadcn/backend/.mvn/wrapper/maven-wrapper.properties +3 -0
- package/templates/react-spring-shadcn/backend/Dockerfile +11 -0
- package/templates/react-spring-shadcn/backend/mvnw +295 -0
- package/templates/react-spring-shadcn/backend/pom.xml +15 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Api.java +38 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/AppUser.java +11 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Application.java +7 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Errors.java +13 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/PersonalRecord.java +15 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Records.java +14 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Security.java +28 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Seed.java +13 -0
- package/templates/react-spring-shadcn/backend/src/main/java/dev/scaffold/app/Users.java +5 -0
- package/templates/react-spring-shadcn/backend/src/main/resources/application.properties +17 -0
- package/templates/react-spring-shadcn/backend/src/main/resources/db/migration/V1__initial.sql +3 -0
- package/templates/react-spring-shadcn/backend/src/main/resources/openapi.json +461 -0
- package/templates/react-spring-shadcn/backend/src/test/java/dev/scaffold/app/ApiTest.java +28 -0
- package/templates/react-spring-shadcn/backend/src/test/java/dev/scaffold/app/SessionExpiryTest.java +37 -0
- package/templates/react-spring-shadcn/compose.yaml +18 -0
- package/templates/react-spring-shadcn/design/guide.md +61 -0
- package/templates/react-spring-shadcn/design/layout.css +6 -0
- package/templates/react-spring-shadcn/design/structure.json +107 -0
- package/templates/react-spring-shadcn/design/tokens.json +171 -0
- package/templates/react-spring-shadcn/design/widgets.css +30 -0
- package/templates/react-spring-shadcn/design/widgets.json +233 -0
- package/templates/react-spring-shadcn/docs/PROJECT.md +32 -0
- package/templates/react-spring-shadcn/docs/api.d.ts +544 -0
- package/templates/react-spring-shadcn/docs/openapi.json +461 -0
- package/templates/react-spring-shadcn/gitignore.template +19 -0
- package/templates/react-spring-shadcn/licenses/fastapi.txt +21 -0
- package/templates/react-spring-shadcn/licenses/nest.txt +22 -0
- package/templates/react-spring-shadcn/licenses/next.txt +21 -0
- package/templates/react-spring-shadcn/licenses/shadcn.txt +21 -0
- package/templates/react-spring-shadcn/licenses/sources.json +27 -0
- package/templates/react-spring-shadcn/licenses/spring.txt +202 -0
- package/templates/react-spring-shadcn/package-lock.json +494 -0
- package/templates/react-spring-shadcn/package.json +26 -0
- package/templates/react-spring-shadcn/playwright.config.ts +3 -0
- package/templates/react-spring-shadcn/project.json +8 -0
- package/templates/react-spring-shadcn/scripts/api-check.mjs +18 -0
- package/templates/react-spring-shadcn/scripts/api-contract.mjs +46 -0
- package/templates/react-spring-shadcn/scripts/design-coverage.mjs +20 -0
- package/templates/react-spring-shadcn/scripts/design-next-cleanup.mjs +13 -0
- package/templates/react-spring-shadcn/scripts/design-verify.mjs +154 -0
- package/templates/react-spring-shadcn/scripts/design.mjs +108 -0
- package/templates/react-spring-shadcn/scripts/project.mjs +120 -0
- package/templates/react-spring-shadcn/tests/contract-client.ts +20 -0
- package/templates/react-spring-shadcn/tests/contract.spec.ts +49 -0
- package/templates/react-spring-shadcn/tests/design/harness.tsx +63 -0
- package/templates/react-spring-shadcn/tests/ui.spec.ts +61 -0
- package/templates/react-spring-shadcn/web/eslint.config.mjs +3 -0
- package/templates/react-spring-shadcn/web/index.html +1 -0
- package/templates/react-spring-shadcn/web/package.json +33 -0
- package/templates/react-spring-shadcn/web/pnpm-lock.yaml +1788 -0
- package/templates/react-spring-shadcn/web/src/App.tsx +30 -0
- package/templates/react-spring-shadcn/web/src/design-layout.css +7 -0
- package/templates/react-spring-shadcn/web/src/design-runtime.json +511 -0
- package/templates/react-spring-shadcn/web/src/design-tokens.css +168 -0
- package/templates/react-spring-shadcn/web/src/design-widgets.css +31 -0
- package/templates/react-spring-shadcn/web/src/main.tsx +6 -0
- package/templates/react-spring-shadcn/web/src/structure-view.tsx +16 -0
- package/templates/react-spring-shadcn/web/src/styles.css +3 -0
- package/templates/react-spring-shadcn/web/src/tailwind.css +2 -0
- package/templates/react-spring-shadcn/web/src/ui.tsx +13 -0
- package/templates/react-spring-shadcn/web/src/widget-icon.tsx +5 -0
- package/templates/react-spring-shadcn/web/src/widget-types.ts +13 -0
- package/templates/react-spring-shadcn/web/src/workspace-model.ts +85 -0
- package/templates/react-spring-shadcn/web/tsconfig.json +22 -0
- package/templates/react-spring-shadcn/web/vite.config.ts +4 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {useEffect,useState,useSyncExternalStore} from 'react';
|
|
3
|
+
import project from '../../project.json';
|
|
4
|
+
import * as defaultWidgets from './ui';
|
|
5
|
+
import type {WidgetSet} from './widget-types';
|
|
6
|
+
import {Structure} from './structure-view';
|
|
7
|
+
import {createWorkspaceModel,type WorkspaceModel,type WorkspaceState} from './workspace-model';
|
|
8
|
+
import './tailwind.css';
|
|
9
|
+
import './styles.css';
|
|
10
|
+
export function WorkspaceView({state,model,widgets=defaultWidgets}:{state:WorkspaceState;model:WorkspaceModel;widgets?:WidgetSet}) {
|
|
11
|
+
const {Alert,Badge,Button,Field,Input,TextArea,Theme}=widgets;
|
|
12
|
+
const {user,checking,email,password,list,page,selected,title,content,editing,busy,loading,error,notice}=state;
|
|
13
|
+
const login=<Structure widgets={widgets} name="login" slots={{
|
|
14
|
+
loginIntro:<><p className="eyebrow">YOUR WORKSPACE</p><h1>让每一条记录<br/>都有自己的位置。</h1><p className="intro">{project.description}</p></>,
|
|
15
|
+
loginCard:<><h2>登录 {project.nameZh}</h2><p className="muted">使用本地初始化创建的账号。</p>{error&&<Alert>{error}</Alert>}<form onSubmit={event=>{event.preventDefault();void model.login();}}><Field label="邮箱" htmlFor="email"><Input id="email" name="email" type="email" autoComplete="username" value={email} onChange={event=>model.setField('email',event.target.value)} required/></Field><Field label="密码" htmlFor="password"><Input id="password" name="password" type="password" autoComplete="current-password" value={password} onChange={event=>model.setField('password',event.target.value)} required/></Field><Button type="submit" loading={busy}>{busy?'正在登录…':'登录'}</Button></form></>
|
|
16
|
+
}}/>;
|
|
17
|
+
const workspace=<Structure widgets={widgets} name="workspace" slots={{
|
|
18
|
+
heading:<><div><p className="eyebrow">PERSONAL RECORDS</p><h1>我的记录</h1><p className="muted">仅你自己可见,共 {list.total} 条。</p></div><Button onClick={model.create} disabled={busy}>新建记录</Button></>,
|
|
19
|
+
feedback:<>{error&&<Alert>{error}</Alert>}{notice&&<Alert variant="success">{notice}</Alert>}</>,
|
|
20
|
+
records:<><h2>记录列表</h2>{loading?<p role="status">正在加载…</p>:list.items.length===0?<div className="empty"><h3>还没有记录</h3><p>从新建第一条记录开始。</p></div>:<ul>{list.items.map(item=><li key={item.id}><button className={`record-link ${selected===item.id?'active':''}`} onClick={()=>void model.open(item.id)} disabled={busy}><strong>{item.title}</strong><span>{new Date(item.updated_at).toLocaleDateString()}</span></button></li>)}</ul>}<nav className="pagination" aria-label="分页"><Button variant="secondary" disabled={page===1||loading||busy} onClick={()=>void model.changePage(page-1)}>上一页</Button><span>第 {page} 页</span><Button variant="secondary" disabled={page*10>=list.total||loading||busy} onClick={()=>void model.changePage(page+1)}>下一页</Button></nav></>,
|
|
21
|
+
editor:editing?<><div className="editor-heading"><h2>{selected?'记录详情 / 编辑':'新建记录'}</h2>{selected&&<Button variant="danger" disabled={busy} onClick={()=>void model.remove(window.confirm('确认删除这条记录?此操作无法撤销。'))}>删除记录</Button>}</div><form onSubmit={event=>{event.preventDefault();void model.save();}}><Field label="标题" htmlFor="title"><Input id="title" value={title} onChange={event=>model.setField('title',event.target.value)} required/></Field><Field label="正文" htmlFor="content"><TextArea id="content" rows={12} value={content} onChange={event=>model.setField('content',event.target.value)}/></Field><div className="editor-footer"><span className="muted">{Array.from(content).length} / 10,000</span><Button type="submit" loading={busy}>{busy?'正在处理…':'保存记录'}</Button></div></form></>:<div className="empty"><h2>留下一点值得记住的事</h2><p>选择一条记录查看详情,或创建新记录。</p></div>
|
|
22
|
+
}}/>;
|
|
23
|
+
return <Theme><Structure widgets={widgets} name="root" slots={{brand:project.nameZh,badge:<Badge>个人工作空间</Badge>,account:user?<><span>{user.email}</span><Button variant="secondary" disabled={busy} onClick={()=>void model.logout()}>退出登录</Button></>:null,page:checking?<Structure widgets={widgets} name="checking" slots={{checking:<p role="status">正在检查登录状态…</p>}}/>:user?workspace:login,footer:'私有记录 · 安心整理'}}/></Theme>;
|
|
24
|
+
}
|
|
25
|
+
export default function App(){
|
|
26
|
+
const [model]=useState(()=>createWorkspaceModel());
|
|
27
|
+
const state=useSyncExternalStore(model.subscribe,model.getSnapshot,model.getSnapshot);
|
|
28
|
+
useEffect(()=>{void model.start();return model.stop;},[model]);
|
|
29
|
+
return <WorkspaceView state={state} model={model}/>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Generated by design:sync. Edit design/layout.css. */
|
|
2
|
+
*{box-sizing:border-box}body{color-scheme:dark;margin:0;background:var(--design-colors-background);color:var(--design-colors-text);font-family:var(--design-typography-body-font-family);font-size:var(--design-typography-body-font-size);line-height:var(--design-typography-body-line-height)}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:var(--design-spacing-s3) solid var(--design-colors-focus);outline-offset:var(--design-spacing-s3)}.app-shell{max-width:var(--design-spacing-shell-max);margin:auto;padding:0 var(--design-spacing-s32)}.topbar{display:flex;align-items:center;gap:var(--design-spacing-s20);min-height:var(--design-spacing-s88);border-bottom:var(--design-spacing-s1) solid var(--design-colors-border)}.brand{font-weight:var(--design-typography-eyebrow-font-weight);color:var(--design-colors-brand);text-decoration:none;font-size:var(--design-typography-h2-font-size)}.account{margin-left:auto;display:flex;gap:var(--design-spacing-s20);align-items:center;font-size:var(--design-typography-label-font-size)}main{padding:var(--design-spacing-s44) 0;min-height:calc(100vh - var(--design-spacing-footer-reserve))}h1,h2,h3,p{margin-top:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}h1{font-weight:var(--design-typography-h1-font-weight);font-size:var(--design-typography-h1-font-size);line-height:var(--design-typography-h1-line-height);letter-spacing:var(--design-typography-h1-letter-spacing);margin-bottom:var(--design-spacing-s12)}h2{font-weight:var(--design-typography-h2-font-weight);letter-spacing:var(--design-typography-h2-letter-spacing);font-size:var(--design-typography-h2-font-size);line-height:var(--design-typography-h2-line-height)}h3{font-weight:var(--design-typography-h3-font-weight);line-height:var(--design-typography-h3-line-height);font-size:var(--design-typography-h3-font-size)}.eyebrow{font-size:var(--design-typography-eyebrow-font-size);font-weight:var(--design-typography-eyebrow-font-weight);letter-spacing:var(--design-typography-eyebrow-letter-spacing);color:var(--design-colors-eyebrow);margin-bottom:var(--design-spacing-s14)}.muted{color:var(--design-colors-muted);font-size:var(--design-typography-label-font-size)}.intro{color:var(--design-colors-intro);font-size:var(--design-typography-intro-font-size);line-height:var(--design-typography-intro-line-height);max-width:var(--design-spacing-intro-max)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--design-spacing-s20);margin-bottom:var(--design-spacing-s28)}.workspace{display:grid;grid-template-columns:minmax(var(--design-spacing-list-min),.8fr) minmax(0,1.6fr);gap:var(--design-spacing-s24)}.panel{background:var(--design-components-panel-background-color);border:var(--design-spacing-s1) solid var(--design-colors-panel-border);border-radius:var(--design-components-panel-rounded);padding:var(--design-components-panel-padding);box-shadow:var(--design-effects-panel-shadow)}.login-layout{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:var(--design-spacing-s80);max-width:var(--design-spacing-login-max);margin:auto}.login-layout h1{font-size:var(--design-typography-login-heading-font-size);font-weight:var(--design-typography-login-heading-font-weight);line-height:var(--design-typography-login-heading-line-height);letter-spacing:var(--design-typography-login-heading-letter-spacing)}.login-card{max-width:var(--design-spacing-login-card-max);width:100%;justify-self:end}.field{display:flex;flex-direction:column;gap:var(--design-spacing-s8);margin:var(--design-spacing-s22) 0}.field label{font-weight:var(--design-typography-label-font-weight);font-size:var(--design-typography-label-font-size)}.record-list ul{padding:0;margin:0;list-style:none}.record-list li+li{border-top:var(--design-spacing-s1) solid var(--design-colors-divider)}.record-link{display:flex;flex-direction:column;gap:var(--design-spacing-s4);width:100%;padding:var(--design-spacing-s15) var(--design-spacing-s12);text-align:left;cursor:pointer;background:transparent;border:0;border-radius:var(--design-rounded-md);color:var(--design-colors-record-text)}.record-link strong{overflow-wrap:anywhere}.record-link span{color:var(--design-colors-record-meta);font-size:var(--design-typography-caption-font-size)}.record-link:hover,.record-link.active{background:var(--design-colors-record-hover)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:var(--design-spacing-s8);border-top:var(--design-spacing-s1) solid var(--design-colors-pagination-border);margin-top:var(--design-spacing-s20);padding-top:var(--design-spacing-s20);font-size:var(--design-typography-caption-font-size)}.editor-heading,.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--design-spacing-s14)}.editor-heading h2{margin:0}.empty{padding:var(--design-spacing-s60) var(--design-spacing-s14);text-align:center;color:var(--design-colors-empty)}.empty h2,.empty h3{color:var(--design-colors-empty-heading)}.notice{padding:var(--design-spacing-s12) var(--design-spacing-s16);background:var(--design-colors-success-background);border:var(--design-spacing-s1) solid var(--design-colors-success-border);border-radius:var(--design-rounded-md);color:var(--design-colors-success-text)}.alert{margin:var(--design-spacing-s16) 0;padding:var(--design-spacing-s12) var(--design-spacing-s16);background:var(--design-colors-error-background);border:var(--design-spacing-s1) solid var(--design-colors-error-border);border-radius:var(--design-rounded-md);color:var(--design-colors-error-text)}footer{padding:var(--design-spacing-s20) 0;border-top:var(--design-spacing-s1) solid var(--design-colors-footer-border);color:var(--design-colors-footer-text);font-size:var(--design-typography-caption-font-size)}.badge{display:inline-flex;border:var(--design-spacing-s1) solid var(--design-colors-badge-border);padding:var(--design-spacing-s3) var(--design-spacing-s10);border-radius:var(--design-rounded-full);color:var(--design-colors-badge-text);font-size:var(--design-typography-eyebrow-font-size);white-space:nowrap}textarea{resize:vertical}@media(max-width:760px){.app-shell{padding:0 var(--design-spacing-s18)}.topbar{flex-wrap:wrap;gap:var(--design-spacing-s10);padding:var(--design-spacing-s18) 0}.account{width:100%;justify-content:space-between}.workspace,.login-layout{grid-template-columns:1fr;gap:var(--design-spacing-s24)}.login-layout h1{font-size:var(--design-typography-mobile-heading-font-size);line-height:var(--design-typography-mobile-heading-line-height)}.login-card{max-width:none}.page-heading h1{font-size:var(--design-typography-mobile-page-heading-font-size);line-height:var(--design-typography-mobile-page-heading-line-height)}.panel{padding:var(--design-spacing-s20)}main{padding:var(--design-spacing-s28) 0}.pagination button{padding:var(--design-spacing-s6)}.badge{margin-left:auto}}
|
|
3
|
+
|
|
4
|
+
.account{min-width:0}.account span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand{overflow-wrap:anywhere}.workspace>*{min-width:0}
|
|
5
|
+
|
|
6
|
+
.record-link.active{box-shadow:inset 2px 0 var(--design-colors-primary)}
|
|
7
|
+
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}
|
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tokens": {
|
|
3
|
+
"version": "alpha",
|
|
4
|
+
"name": "Scientific Workspace",
|
|
5
|
+
"description": "从 CleerScience 提炼的通用深色科技视觉,适配可读、安静的工具型界面。",
|
|
6
|
+
"colors": {
|
|
7
|
+
"primary": "#8fc3ff",
|
|
8
|
+
"primary-hover": "#b5d8ff",
|
|
9
|
+
"primary-active": "#69a9f3",
|
|
10
|
+
"primary-text": "#02040a",
|
|
11
|
+
"background": "#02040a",
|
|
12
|
+
"text": "#f4f8ff",
|
|
13
|
+
"surface": "#0b111d",
|
|
14
|
+
"focus": "#8fc3ff",
|
|
15
|
+
"border": "#283547",
|
|
16
|
+
"brand": "#f4f8ff",
|
|
17
|
+
"eyebrow": "#9baecb",
|
|
18
|
+
"muted": "#a1afc3",
|
|
19
|
+
"intro": "#b5c3d7",
|
|
20
|
+
"panel-border": "#283547",
|
|
21
|
+
"divider": "#202c3e",
|
|
22
|
+
"record-text": "#f4f8ff",
|
|
23
|
+
"record-meta": "#a1afc3",
|
|
24
|
+
"record-hover": "#142237",
|
|
25
|
+
"pagination-border": "#283547",
|
|
26
|
+
"empty": "#a1afc3",
|
|
27
|
+
"empty-heading": "#e2eeff",
|
|
28
|
+
"success-background": "#102b25",
|
|
29
|
+
"success-border": "#387c69",
|
|
30
|
+
"success-text": "#a2e6cc",
|
|
31
|
+
"error-background": "#311b24",
|
|
32
|
+
"error-border": "#8f4c61",
|
|
33
|
+
"error-text": "#ffbdcd",
|
|
34
|
+
"footer-border": "#283547",
|
|
35
|
+
"footer-text": "#a1afc3",
|
|
36
|
+
"badge-border": "#435773",
|
|
37
|
+
"badge-text": "#b5c3d7",
|
|
38
|
+
"control-focus": "#8fc3ff",
|
|
39
|
+
"control-border": "#657891",
|
|
40
|
+
"control-background": "#080e18",
|
|
41
|
+
"secondary-border": "#657891",
|
|
42
|
+
"secondary-text": "#e2eeff",
|
|
43
|
+
"secondary-hover": "#19283d",
|
|
44
|
+
"danger-border": "#ad6578",
|
|
45
|
+
"danger-background": "#311b24",
|
|
46
|
+
"danger-text": "#ffbdcd",
|
|
47
|
+
"danger-hover": "#472636"
|
|
48
|
+
},
|
|
49
|
+
"typography": {
|
|
50
|
+
"body": {
|
|
51
|
+
"fontFamily": "Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",sans-serif",
|
|
52
|
+
"fontSize": "16px",
|
|
53
|
+
"lineHeight": 1.65
|
|
54
|
+
},
|
|
55
|
+
"h1": {
|
|
56
|
+
"fontSize": "36px",
|
|
57
|
+
"lineHeight": 1.2,
|
|
58
|
+
"letterSpacing": "-0.03em",
|
|
59
|
+
"fontWeight": 560
|
|
60
|
+
},
|
|
61
|
+
"login-heading": {
|
|
62
|
+
"fontSize": "48px",
|
|
63
|
+
"lineHeight": 1.15,
|
|
64
|
+
"fontWeight": 560,
|
|
65
|
+
"letterSpacing": "-0.03em"
|
|
66
|
+
},
|
|
67
|
+
"h2": {
|
|
68
|
+
"fontSize": "20px",
|
|
69
|
+
"lineHeight": 1.4,
|
|
70
|
+
"fontWeight": 580,
|
|
71
|
+
"letterSpacing": "-0.02em"
|
|
72
|
+
},
|
|
73
|
+
"h3": {
|
|
74
|
+
"fontSize": "18px",
|
|
75
|
+
"fontWeight": 600,
|
|
76
|
+
"lineHeight": 1.5
|
|
77
|
+
},
|
|
78
|
+
"label": {
|
|
79
|
+
"fontSize": "14px",
|
|
80
|
+
"fontWeight": 600
|
|
81
|
+
},
|
|
82
|
+
"eyebrow": {
|
|
83
|
+
"fontSize": "11px",
|
|
84
|
+
"fontWeight": 700,
|
|
85
|
+
"letterSpacing": "0.22em",
|
|
86
|
+
"lineHeight": 1.5
|
|
87
|
+
},
|
|
88
|
+
"button": {
|
|
89
|
+
"fontSize": "14px",
|
|
90
|
+
"fontWeight": 600,
|
|
91
|
+
"lineHeight": "20px"
|
|
92
|
+
},
|
|
93
|
+
"caption": {
|
|
94
|
+
"fontSize": "12px"
|
|
95
|
+
},
|
|
96
|
+
"intro": {
|
|
97
|
+
"fontSize": "18px",
|
|
98
|
+
"lineHeight": 1.8
|
|
99
|
+
},
|
|
100
|
+
"mobile-heading": {
|
|
101
|
+
"fontSize": "32px",
|
|
102
|
+
"lineHeight": 1.2
|
|
103
|
+
},
|
|
104
|
+
"mobile-page-heading": {
|
|
105
|
+
"fontSize": "28px",
|
|
106
|
+
"lineHeight": 1.25
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"rounded": {
|
|
110
|
+
"md": "0px",
|
|
111
|
+
"panel": "0px",
|
|
112
|
+
"full": "0px"
|
|
113
|
+
},
|
|
114
|
+
"spacing": {
|
|
115
|
+
"s0": "0px",
|
|
116
|
+
"s1": "1px",
|
|
117
|
+
"s2": "2px",
|
|
118
|
+
"s3": "3px",
|
|
119
|
+
"s4": "4px",
|
|
120
|
+
"s6": "6px",
|
|
121
|
+
"s8": "8px",
|
|
122
|
+
"s10": "10px",
|
|
123
|
+
"s12": "12px",
|
|
124
|
+
"s14": "14px",
|
|
125
|
+
"s15": "15px",
|
|
126
|
+
"s16": "16px",
|
|
127
|
+
"s18": "18px",
|
|
128
|
+
"s20": "20px",
|
|
129
|
+
"s22": "22px",
|
|
130
|
+
"s24": "24px",
|
|
131
|
+
"s26": "26px",
|
|
132
|
+
"s28": "28px",
|
|
133
|
+
"s30": "30px",
|
|
134
|
+
"s32": "32px",
|
|
135
|
+
"s34": "34px",
|
|
136
|
+
"s38": "38px",
|
|
137
|
+
"s44": "44px",
|
|
138
|
+
"s48": "48px",
|
|
139
|
+
"s60": "60px",
|
|
140
|
+
"s80": "80px",
|
|
141
|
+
"s88": "88px",
|
|
142
|
+
"shell-max": "1240px",
|
|
143
|
+
"login-max": "1020px",
|
|
144
|
+
"intro-max": "460px",
|
|
145
|
+
"login-card-max": "430px",
|
|
146
|
+
"list-min": "260px",
|
|
147
|
+
"footer-reserve": "155px",
|
|
148
|
+
"mobile-breakpoint": "760px",
|
|
149
|
+
"control-min": "44px"
|
|
150
|
+
},
|
|
151
|
+
"components": {
|
|
152
|
+
"button-primary": {
|
|
153
|
+
"backgroundColor": "#8fc3ff",
|
|
154
|
+
"textColor": "#02040a",
|
|
155
|
+
"rounded": "0px",
|
|
156
|
+
"height": "44px"
|
|
157
|
+
},
|
|
158
|
+
"panel": {
|
|
159
|
+
"backgroundColor": "#0b111d",
|
|
160
|
+
"padding": "26px",
|
|
161
|
+
"rounded": "0px"
|
|
162
|
+
},
|
|
163
|
+
"input": {
|
|
164
|
+
"rounded": "0px"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"effects": {
|
|
169
|
+
"panelShadow": "0 16px 48px rgba(0,0,0,0.18)"
|
|
170
|
+
},
|
|
171
|
+
"widgets": {
|
|
172
|
+
"schemaVersion": 1,
|
|
173
|
+
"acceptance": {
|
|
174
|
+
"positionTolerance": 0.6,
|
|
175
|
+
"exact": [
|
|
176
|
+
"color",
|
|
177
|
+
"radius",
|
|
178
|
+
"iconGeometry"
|
|
179
|
+
],
|
|
180
|
+
"viewports": [
|
|
181
|
+
{
|
|
182
|
+
"width": 1440,
|
|
183
|
+
"height": 1000
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"width": 375,
|
|
187
|
+
"height": 812
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"widgets": {
|
|
192
|
+
"button": {
|
|
193
|
+
"parts": [
|
|
194
|
+
"root",
|
|
195
|
+
"label"
|
|
196
|
+
],
|
|
197
|
+
"variants": [
|
|
198
|
+
"primary",
|
|
199
|
+
"secondary",
|
|
200
|
+
"danger"
|
|
201
|
+
],
|
|
202
|
+
"states": [
|
|
203
|
+
"default",
|
|
204
|
+
"hover",
|
|
205
|
+
"active",
|
|
206
|
+
"focus",
|
|
207
|
+
"disabled",
|
|
208
|
+
"loading"
|
|
209
|
+
],
|
|
210
|
+
"styles": {
|
|
211
|
+
"height": "44px",
|
|
212
|
+
"paddingX": "16px",
|
|
213
|
+
"paddingY": "8px",
|
|
214
|
+
"borderWidth": "1px",
|
|
215
|
+
"fontSize": "14px",
|
|
216
|
+
"fontWeight": 600,
|
|
217
|
+
"lineHeight": "20px",
|
|
218
|
+
"radius": "0px"
|
|
219
|
+
},
|
|
220
|
+
"behavior": {
|
|
221
|
+
"keyboard": [
|
|
222
|
+
"Enter",
|
|
223
|
+
"Space"
|
|
224
|
+
],
|
|
225
|
+
"loading": "disabled-with-status-label",
|
|
226
|
+
"icon": "none"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"input": {
|
|
230
|
+
"parts": [
|
|
231
|
+
"root"
|
|
232
|
+
],
|
|
233
|
+
"variants": [
|
|
234
|
+
"text",
|
|
235
|
+
"email",
|
|
236
|
+
"password"
|
|
237
|
+
],
|
|
238
|
+
"states": [
|
|
239
|
+
"default",
|
|
240
|
+
"hover",
|
|
241
|
+
"focus",
|
|
242
|
+
"disabled",
|
|
243
|
+
"invalid",
|
|
244
|
+
"readonly"
|
|
245
|
+
],
|
|
246
|
+
"styles": {
|
|
247
|
+
"height": "44px",
|
|
248
|
+
"paddingX": "12px",
|
|
249
|
+
"paddingY": "8px",
|
|
250
|
+
"borderWidth": "1px",
|
|
251
|
+
"fontSize": "16px",
|
|
252
|
+
"lineHeight": "24px",
|
|
253
|
+
"radius": "0px"
|
|
254
|
+
},
|
|
255
|
+
"behavior": {
|
|
256
|
+
"keyboard": "native-text-editing",
|
|
257
|
+
"passwordVisibility": "always-masked",
|
|
258
|
+
"autocomplete": "caller-provided",
|
|
259
|
+
"validation": "business-owned"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"textarea": {
|
|
263
|
+
"parts": [
|
|
264
|
+
"root"
|
|
265
|
+
],
|
|
266
|
+
"variants": [
|
|
267
|
+
"default"
|
|
268
|
+
],
|
|
269
|
+
"states": [
|
|
270
|
+
"default",
|
|
271
|
+
"hover",
|
|
272
|
+
"focus",
|
|
273
|
+
"disabled",
|
|
274
|
+
"invalid",
|
|
275
|
+
"readonly"
|
|
276
|
+
],
|
|
277
|
+
"styles": {
|
|
278
|
+
"paddingX": "12px",
|
|
279
|
+
"paddingY": "8px",
|
|
280
|
+
"borderWidth": "1px",
|
|
281
|
+
"fontSize": "16px",
|
|
282
|
+
"lineHeight": "24px",
|
|
283
|
+
"radius": "0px"
|
|
284
|
+
},
|
|
285
|
+
"behavior": {
|
|
286
|
+
"keyboard": "native-multiline-editing",
|
|
287
|
+
"resize": "vertical"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"alert": {
|
|
291
|
+
"parts": [
|
|
292
|
+
"root",
|
|
293
|
+
"icon",
|
|
294
|
+
"message"
|
|
295
|
+
],
|
|
296
|
+
"variants": [
|
|
297
|
+
"error",
|
|
298
|
+
"success"
|
|
299
|
+
],
|
|
300
|
+
"states": [
|
|
301
|
+
"default"
|
|
302
|
+
],
|
|
303
|
+
"styles": {
|
|
304
|
+
"paddingX": "16px",
|
|
305
|
+
"paddingY": "12px",
|
|
306
|
+
"gap": "8px",
|
|
307
|
+
"iconSize": "16px",
|
|
308
|
+
"fontSize": "14px",
|
|
309
|
+
"lineHeight": "22px",
|
|
310
|
+
"borderWidth": "1px",
|
|
311
|
+
"radius": "0px"
|
|
312
|
+
},
|
|
313
|
+
"behavior": {
|
|
314
|
+
"errorRole": "alert",
|
|
315
|
+
"successRole": "status",
|
|
316
|
+
"dismiss": "none"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"badge": {
|
|
320
|
+
"parts": [
|
|
321
|
+
"root",
|
|
322
|
+
"label"
|
|
323
|
+
],
|
|
324
|
+
"variants": [
|
|
325
|
+
"default"
|
|
326
|
+
],
|
|
327
|
+
"states": [
|
|
328
|
+
"default"
|
|
329
|
+
],
|
|
330
|
+
"styles": {
|
|
331
|
+
"paddingX": "10px",
|
|
332
|
+
"paddingY": "3px",
|
|
333
|
+
"fontSize": "12px",
|
|
334
|
+
"lineHeight": "18px",
|
|
335
|
+
"borderWidth": "1px",
|
|
336
|
+
"radius": "0px"
|
|
337
|
+
},
|
|
338
|
+
"behavior": {
|
|
339
|
+
"interactive": false
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"panel": {
|
|
343
|
+
"parts": [
|
|
344
|
+
"root"
|
|
345
|
+
],
|
|
346
|
+
"variants": [
|
|
347
|
+
"default"
|
|
348
|
+
],
|
|
349
|
+
"states": [
|
|
350
|
+
"default"
|
|
351
|
+
],
|
|
352
|
+
"styles": {
|
|
353
|
+
"padding": "26px",
|
|
354
|
+
"borderWidth": "1px",
|
|
355
|
+
"radius": "0px"
|
|
356
|
+
},
|
|
357
|
+
"behavior": {
|
|
358
|
+
"interactive": false
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"field": {
|
|
362
|
+
"parts": [
|
|
363
|
+
"root",
|
|
364
|
+
"label",
|
|
365
|
+
"control"
|
|
366
|
+
],
|
|
367
|
+
"variants": [
|
|
368
|
+
"default"
|
|
369
|
+
],
|
|
370
|
+
"states": [
|
|
371
|
+
"default"
|
|
372
|
+
],
|
|
373
|
+
"styles": {
|
|
374
|
+
"gap": "8px",
|
|
375
|
+
"marginY": "22px",
|
|
376
|
+
"fontSize": "14px",
|
|
377
|
+
"fontWeight": 600,
|
|
378
|
+
"lineHeight": "22px"
|
|
379
|
+
},
|
|
380
|
+
"behavior": {
|
|
381
|
+
"label": "explicit-for-control"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"icons": {
|
|
386
|
+
"error": {
|
|
387
|
+
"viewBox": "0 0 24 24",
|
|
388
|
+
"strokeWidth": 2,
|
|
389
|
+
"paths": [
|
|
390
|
+
"M12 3 2 21h20L12 3Z",
|
|
391
|
+
"M12 9v5",
|
|
392
|
+
"M12 17h.01"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"success": {
|
|
396
|
+
"viewBox": "0 0 24 24",
|
|
397
|
+
"strokeWidth": 2,
|
|
398
|
+
"paths": [
|
|
399
|
+
"M20 6 9 17l-5-5"
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"structure": {
|
|
405
|
+
"schemaVersion": 1,
|
|
406
|
+
"root": {
|
|
407
|
+
"region": "app-shell",
|
|
408
|
+
"element": "div",
|
|
409
|
+
"children": [
|
|
410
|
+
{
|
|
411
|
+
"region": "topbar",
|
|
412
|
+
"element": "header",
|
|
413
|
+
"children": [
|
|
414
|
+
{
|
|
415
|
+
"region": "brand",
|
|
416
|
+
"element": "a",
|
|
417
|
+
"slot": "brand"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"region": "badge",
|
|
421
|
+
"element": "slot",
|
|
422
|
+
"slot": "badge"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"region": "account",
|
|
426
|
+
"element": "div",
|
|
427
|
+
"slot": "account"
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"region": "page",
|
|
433
|
+
"element": "slot",
|
|
434
|
+
"slot": "page"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"region": "footer",
|
|
438
|
+
"element": "footer",
|
|
439
|
+
"slot": "footer"
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
"pages": {
|
|
444
|
+
"checking": {
|
|
445
|
+
"region": "checking",
|
|
446
|
+
"element": "main",
|
|
447
|
+
"slot": "checking"
|
|
448
|
+
},
|
|
449
|
+
"login": {
|
|
450
|
+
"region": "login-layout",
|
|
451
|
+
"element": "main",
|
|
452
|
+
"children": [
|
|
453
|
+
{
|
|
454
|
+
"region": "login-intro",
|
|
455
|
+
"element": "section",
|
|
456
|
+
"slot": "loginIntro"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"region": "login-card",
|
|
460
|
+
"element": "panel",
|
|
461
|
+
"slot": "loginCard"
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"workspace": {
|
|
466
|
+
"region": "workspace-main",
|
|
467
|
+
"element": "main",
|
|
468
|
+
"children": [
|
|
469
|
+
{
|
|
470
|
+
"region": "page-heading",
|
|
471
|
+
"element": "div",
|
|
472
|
+
"slot": "heading"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"region": "feedback",
|
|
476
|
+
"element": "div",
|
|
477
|
+
"slot": "feedback"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"region": "workspace",
|
|
481
|
+
"element": "div",
|
|
482
|
+
"children": [
|
|
483
|
+
{
|
|
484
|
+
"region": "record-list",
|
|
485
|
+
"element": "panel",
|
|
486
|
+
"slot": "records"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"region": "editor",
|
|
490
|
+
"element": "panel",
|
|
491
|
+
"slot": "editor"
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"scenarios": [
|
|
499
|
+
"checking",
|
|
500
|
+
"login",
|
|
501
|
+
"login-error",
|
|
502
|
+
"login-busy",
|
|
503
|
+
"workspace-empty",
|
|
504
|
+
"workspace-loading",
|
|
505
|
+
"workspace-records",
|
|
506
|
+
"editor-new",
|
|
507
|
+
"editor-existing",
|
|
508
|
+
"editor-error"
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
}
|