create-huenei-template 0.2.2
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/README.md +132 -0
- package/bin/create-huenei-template.js +2 -0
- package/dist/config/templates.js +54 -0
- package/dist/core/dependency-manager.js +55 -0
- package/dist/core/errors.js +43 -0
- package/dist/core/file-operations.js +25 -0
- package/dist/core/prompts.js +183 -0
- package/dist/core/template-resolver.js +18 -0
- package/dist/index.js +85 -0
- package/dist/templates/backend/.gitkeep +1 -0
- package/dist/templates/backend/nestjs-api/.prettierrc +4 -0
- package/dist/templates/backend/nestjs-api/README.md +98 -0
- package/dist/templates/backend/nestjs-api/eslint.config.mjs +35 -0
- package/dist/templates/backend/nestjs-api/nest-cli.json +8 -0
- package/dist/templates/backend/nestjs-api/package.json +71 -0
- package/dist/templates/backend/nestjs-api/pnpm-lock.yaml +6233 -0
- package/dist/templates/backend/nestjs-api/src/app.controller.spec.ts +22 -0
- package/dist/templates/backend/nestjs-api/src/app.controller.ts +12 -0
- package/dist/templates/backend/nestjs-api/src/app.module.ts +10 -0
- package/dist/templates/backend/nestjs-api/src/app.service.ts +8 -0
- package/dist/templates/backend/nestjs-api/src/main.ts +8 -0
- package/dist/templates/backend/nestjs-api/test/app.e2e-spec.ts +25 -0
- package/dist/templates/backend/nestjs-api/test/jest-e2e.json +9 -0
- package/dist/templates/backend/nestjs-api/tsconfig.build.json +4 -0
- package/dist/templates/backend/nestjs-api/tsconfig.json +25 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
- package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
- package/dist/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
- package/dist/templates/backend/nestjs-api-postgres/.env.example +18 -0
- package/dist/templates/backend/nestjs-api-postgres/.env.test +18 -0
- package/dist/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
- package/dist/templates/backend/nestjs-api-postgres/README.md +1502 -0
- package/dist/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
- package/dist/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
- package/dist/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
- package/dist/templates/backend/nestjs-api-postgres/package.json +107 -0
- package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
- package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
- package/dist/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
- package/dist/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
- package/dist/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
- package/dist/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
- package/dist/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
- package/dist/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
- package/dist/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
- package/dist/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
- package/dist/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
- package/dist/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
- package/dist/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
- package/dist/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
- package/dist/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
- package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
- package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
- package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
- package/dist/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
- package/dist/templates/backend/nestjs-api-postgres/test/README.md +412 -0
- package/dist/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
- package/dist/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
- package/dist/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
- package/dist/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
- package/dist/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
- package/dist/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
- package/dist/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
- package/dist/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
- package/dist/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
- package/dist/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
- package/dist/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
- package/dist/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
- package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
- package/dist/templates/backend/nestjs-api-sqlite/.env.example +4 -0
- package/dist/templates/backend/nestjs-api-sqlite/.env.test +4 -0
- package/dist/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
- package/dist/templates/backend/nestjs-api-sqlite/FINAL_IMPLEMENTATION_SUMMARY.md +537 -0
- package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_REPORT.md +229 -0
- package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_SUMMARY.md +275 -0
- package/dist/templates/backend/nestjs-api-sqlite/PRISMA_7_MIGRATION.md +175 -0
- package/dist/templates/backend/nestjs-api-sqlite/README.md +1464 -0
- package/dist/templates/backend/nestjs-api-sqlite/SWAGGER_INTEGRATION.md +194 -0
- package/dist/templates/backend/nestjs-api-sqlite/TESTING_IMPLEMENTATION_REPORT.md +368 -0
- package/dist/templates/backend/nestjs-api-sqlite/TESTING_SUMMARY.md +293 -0
- package/dist/templates/backend/nestjs-api-sqlite/Untitled +218 -0
- package/dist/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
- package/dist/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
- package/dist/templates/backend/nestjs-api-sqlite/package.json +105 -0
- package/dist/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
- package/dist/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
- package/dist/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
- package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
- package/dist/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
- package/dist/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
- package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/dist/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
- package/dist/templates/frontend/angular-base/.cursor/mcp.json +12 -0
- package/dist/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
- package/dist/templates/frontend/angular-base/.editorconfig +17 -0
- package/dist/templates/frontend/angular-base/.eslintrc.json +52 -0
- package/dist/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
- package/dist/templates/frontend/angular-base/.husky/pre-commit +1 -0
- package/dist/templates/frontend/angular-base/.husky/pre-push +1 -0
- package/dist/templates/frontend/angular-base/.postcssrc.json +5 -0
- package/dist/templates/frontend/angular-base/.prettierignore +8 -0
- package/dist/templates/frontend/angular-base/.prettierrc.json +15 -0
- package/dist/templates/frontend/angular-base/.vscode/extensions.json +4 -0
- package/dist/templates/frontend/angular-base/.vscode/launch.json +20 -0
- package/dist/templates/frontend/angular-base/.vscode/mcp.json +9 -0
- package/dist/templates/frontend/angular-base/.vscode/tasks.json +42 -0
- package/dist/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
- package/dist/templates/frontend/angular-base/README.md +383 -0
- package/dist/templates/frontend/angular-base/angular.json +84 -0
- package/dist/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
- package/dist/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
- package/dist/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
- package/dist/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
- package/dist/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
- package/dist/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
- package/dist/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
- package/dist/templates/frontend/angular-base/cypress.config.ts +11 -0
- package/dist/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
- package/dist/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
- package/dist/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
- package/dist/templates/frontend/angular-base/docs/FEATURES.md +404 -0
- package/dist/templates/frontend/angular-base/docs/TESTING.md +418 -0
- package/dist/templates/frontend/angular-base/docs/THEMING.md +333 -0
- package/dist/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
- package/dist/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
- package/dist/templates/frontend/angular-base/package-lock.json +13321 -0
- package/dist/templates/frontend/angular-base/package.json +93 -0
- package/dist/templates/frontend/angular-base/public/favicon.ico +0 -0
- package/dist/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
- package/dist/templates/frontend/angular-base/src/app/app.config.ts +32 -0
- package/dist/templates/frontend/angular-base/src/app/app.css +0 -0
- package/dist/templates/frontend/angular-base/src/app/app.html +1 -0
- package/dist/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
- package/dist/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
- package/dist/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/app.ts +12 -0
- package/dist/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
- package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
- package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
- package/dist/templates/frontend/angular-base/src/app/core/index.ts +10 -0
- package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
- package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
- package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
- package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
- package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
- package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
- package/dist/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
- package/dist/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
- package/dist/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
- package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
- package/dist/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
- package/dist/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
- package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
- package/dist/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
- package/dist/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
- package/dist/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
- package/dist/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
- package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
- package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
- package/dist/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
- package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
- package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
- package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
- package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
- package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
- package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
- package/dist/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
- package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
- package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
- package/dist/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
- package/dist/templates/frontend/angular-base/src/environments/environment.ts +4 -0
- package/dist/templates/frontend/angular-base/src/index.html +44 -0
- package/dist/templates/frontend/angular-base/src/main.server.ts +7 -0
- package/dist/templates/frontend/angular-base/src/main.ts +5 -0
- package/dist/templates/frontend/angular-base/src/server.ts +66 -0
- package/dist/templates/frontend/angular-base/src/styles.css +209 -0
- package/dist/templates/frontend/angular-base/src/test-setup.ts +10 -0
- package/dist/templates/frontend/angular-base/tsconfig.app.json +17 -0
- package/dist/templates/frontend/angular-base/tsconfig.json +41 -0
- package/dist/templates/frontend/angular-base/tsconfig.spec.json +15 -0
- package/dist/templates/frontend/angular-base/vitest.config.ts +25 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
- package/dist/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
- package/dist/templates/frontend/react-vite/.prettierrc +6 -0
- package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
- package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
- package/dist/templates/frontend/react-vite/.vscode/extensions.json +7 -0
- package/dist/templates/frontend/react-vite/README.md +75 -0
- package/dist/templates/frontend/react-vite/components.json +22 -0
- package/dist/templates/frontend/react-vite/eslint.config.js +31 -0
- package/dist/templates/frontend/react-vite/index.html +13 -0
- package/dist/templates/frontend/react-vite/package.json +62 -0
- package/dist/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
- package/dist/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
- package/dist/templates/frontend/react-vite/src/assets/react.svg +1 -0
- package/dist/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
- package/dist/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
- package/dist/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
- package/dist/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
- package/dist/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
- package/dist/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
- package/dist/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
- package/dist/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
- package/dist/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
- package/dist/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
- package/dist/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
- package/dist/templates/frontend/react-vite/src/index.css +104 -0
- package/dist/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
- package/dist/templates/frontend/react-vite/src/lib/utils.ts +6 -0
- package/dist/templates/frontend/react-vite/src/main.tsx +33 -0
- package/dist/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
- package/dist/templates/frontend/react-vite/src/router.tsx +13 -0
- package/dist/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
- package/dist/templates/frontend/react-vite/src/routes/index.tsx +187 -0
- package/dist/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
- package/dist/templates/frontend/react-vite/src/test/setup.ts +1 -0
- package/dist/templates/frontend/react-vite/tsconfig.app.json +34 -0
- package/dist/templates/frontend/react-vite/tsconfig.json +10 -0
- package/dist/templates/frontend/react-vite/tsconfig.node.json +26 -0
- package/dist/templates/frontend/react-vite/vite.config.ts +22 -0
- package/dist/templates/frontend/react-vite/vitest.config.ts +9 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
- package/dist/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
- package/dist/templates/frontend/react-vite-help/.prettierrc +6 -0
- package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
- package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
- package/dist/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
- package/dist/templates/frontend/react-vite-help/README.md +75 -0
- package/dist/templates/frontend/react-vite-help/components.json +22 -0
- package/dist/templates/frontend/react-vite-help/eslint.config.js +31 -0
- package/dist/templates/frontend/react-vite-help/index.html +13 -0
- package/dist/templates/frontend/react-vite-help/package.json +62 -0
- package/dist/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
- package/dist/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
- package/dist/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
- package/dist/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
- package/dist/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
- package/dist/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
- package/dist/templates/frontend/react-vite-help/src/index.css +104 -0
- package/dist/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
- package/dist/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
- package/dist/templates/frontend/react-vite-help/src/main.tsx +33 -0
- package/dist/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
- package/dist/templates/frontend/react-vite-help/src/router.tsx +13 -0
- package/dist/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
- package/dist/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
- package/dist/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
- package/dist/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
- package/dist/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
- package/dist/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
- package/dist/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
- package/dist/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
- package/dist/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
- package/dist/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
- package/dist/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
- package/dist/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
- package/dist/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
- package/dist/templates/frontend/react-vite-help/tsconfig.json +10 -0
- package/dist/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
- package/dist/templates/frontend/react-vite-help/vite.config.ts +22 -0
- package/dist/templates/frontend/react-vite-help/vitest.config.ts +9 -0
- package/dist/templates/mobile/.gitkeep +1 -0
- package/dist/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
- package/dist/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
- package/dist/templates/mobile/expo-base/.env +1 -0
- package/dist/templates/mobile/expo-base/.husky/commit-msg +4 -0
- package/dist/templates/mobile/expo-base/.husky/pre-commit +1 -0
- package/dist/templates/mobile/expo-base/.lintstagedrc.js +25 -0
- package/dist/templates/mobile/expo-base/.prettierignore +10 -0
- package/dist/templates/mobile/expo-base/.prettierrc +11 -0
- package/dist/templates/mobile/expo-base/.vscode/extensions.json +1 -0
- package/dist/templates/mobile/expo-base/.vscode/settings.json +7 -0
- package/dist/templates/mobile/expo-base/CHANGELOG.md +155 -0
- package/dist/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
- package/dist/templates/mobile/expo-base/README.md +510 -0
- package/dist/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
- package/dist/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
- package/dist/templates/mobile/expo-base/WARP.md +123 -0
- package/dist/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
- package/dist/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
- package/dist/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
- package/dist/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
- package/dist/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/_layout.tsx +143 -0
- package/dist/templates/mobile/expo-base/app/modal.tsx +29 -0
- package/dist/templates/mobile/expo-base/app/onboarding.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
- package/dist/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
- package/dist/templates/mobile/expo-base/app/settings/about.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/settings/index.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/settings/language.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
- package/dist/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
- package/dist/templates/mobile/expo-base/app.json +31 -0
- package/dist/templates/mobile/expo-base/commitlint.config.js +50 -0
- package/dist/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
- package/dist/templates/mobile/expo-base/docs/CI_CD.md +461 -0
- package/dist/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
- package/dist/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
- package/dist/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
- package/dist/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
- package/dist/templates/mobile/expo-base/docs/I18N.md +701 -0
- package/dist/templates/mobile/expo-base/docs/TESTING.md +565 -0
- package/dist/templates/mobile/expo-base/docs/THEMING.md +753 -0
- package/dist/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
- package/dist/templates/mobile/expo-base/eslint.config.js +180 -0
- package/dist/templates/mobile/expo-base/jest.config.js +51 -0
- package/dist/templates/mobile/expo-base/jest.setup.js +106 -0
- package/dist/templates/mobile/expo-base/package.json +74 -0
- package/dist/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
- package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
- package/dist/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
- package/dist/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
- package/dist/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
- package/dist/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
- package/dist/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
- package/dist/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
- package/dist/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
- package/dist/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
- package/dist/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
- package/dist/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
- package/dist/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
- package/dist/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
- package/dist/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
- package/dist/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
- package/dist/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
- package/dist/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
- package/dist/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
- package/dist/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
- package/dist/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
- package/dist/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
- package/dist/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
- package/dist/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
- package/dist/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
- package/dist/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
- package/dist/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
- package/dist/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
- package/dist/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
- package/dist/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
- package/dist/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
- package/dist/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
- package/dist/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
- package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
- package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
- package/dist/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
- package/dist/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
- package/dist/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
- package/dist/templates/mobile/expo-base/src/constants/theme.ts +53 -0
- package/dist/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
- package/dist/templates/mobile/expo-base/src/contexts/index.ts +8 -0
- package/dist/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
- package/dist/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
- package/dist/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
- package/dist/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
- package/dist/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
- package/dist/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
- package/dist/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
- package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
- package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
- package/dist/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
- package/dist/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
- package/dist/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
- package/dist/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
- package/dist/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
- package/dist/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
- package/dist/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
- package/dist/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
- package/dist/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
- package/dist/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
- package/dist/templates/mobile/expo-base/src/hooks/index.ts +13 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
- package/dist/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
- package/dist/templates/mobile/expo-base/src/i18n/index.ts +113 -0
- package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
- package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
- package/dist/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
- package/dist/templates/mobile/expo-base/src/services/api/client.ts +190 -0
- package/dist/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
- package/dist/templates/mobile/expo-base/src/services/api/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
- package/dist/templates/mobile/expo-base/src/theme/colors.ts +147 -0
- package/dist/templates/mobile/expo-base/src/theme/index.ts +40 -0
- package/dist/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
- package/dist/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
- package/dist/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
- package/dist/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
- package/dist/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
- package/dist/templates/mobile/expo-base/src/theme/typography.ts +152 -0
- package/dist/templates/mobile/expo-base/src/types/index.ts +6 -0
- package/dist/templates/mobile/expo-base/src/types/models.ts +153 -0
- package/dist/templates/mobile/expo-base/src/types/navigation.ts +67 -0
- package/dist/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
- package/dist/templates/mobile/expo-base/src/utils/constants.ts +167 -0
- package/dist/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
- package/dist/templates/mobile/expo-base/src/utils/index.ts +7 -0
- package/dist/templates/mobile/expo-base/src/utils/validators.ts +187 -0
- package/dist/templates/mobile/expo-base/tsconfig.json +26 -0
- package/dist/test-cli.js +40 -0
- package/dist/types/index.js +1 -0
- package/package.json +25 -0
- package/templates/backend/.gitkeep +1 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
- package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
- package/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
- package/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
- package/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
- package/templates/backend/nestjs-api-postgres/.env.example +18 -0
- package/templates/backend/nestjs-api-postgres/.env.test +18 -0
- package/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
- package/templates/backend/nestjs-api-postgres/README.md +1502 -0
- package/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
- package/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
- package/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
- package/templates/backend/nestjs-api-postgres/package.json +107 -0
- package/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
- package/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
- package/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
- package/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
- package/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
- package/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
- package/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
- package/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
- package/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
- package/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
- package/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
- package/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
- package/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
- package/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
- package/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
- package/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
- package/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
- package/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
- package/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
- package/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
- package/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
- package/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
- package/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
- package/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
- package/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
- package/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
- package/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
- package/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
- package/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
- package/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
- package/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
- package/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
- package/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
- package/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
- package/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
- package/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
- package/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
- package/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
- package/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
- package/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
- package/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
- package/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
- package/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
- package/templates/backend/nestjs-api-postgres/test/README.md +412 -0
- package/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
- package/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
- package/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
- package/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
- package/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
- package/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
- package/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
- package/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
- package/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
- package/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
- package/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
- package/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
- package/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
- package/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
- package/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
- package/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
- package/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
- package/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
- package/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
- package/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
- package/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
- package/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
- package/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
- package/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
- package/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
- package/templates/backend/nestjs-api-sqlite/.env.example +4 -0
- package/templates/backend/nestjs-api-sqlite/.env.test +4 -0
- package/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
- package/templates/backend/nestjs-api-sqlite/README.md +1464 -0
- package/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
- package/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
- package/templates/backend/nestjs-api-sqlite/package.json +105 -0
- package/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
- package/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
- package/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
- package/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
- package/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
- package/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
- package/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
- package/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
- package/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
- package/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
- package/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
- package/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
- package/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
- package/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
- package/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
- package/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
- package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
- package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
- package/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
- package/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
- package/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
- package/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
- package/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
- package/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
- package/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
- package/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
- package/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
- package/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
- package/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
- package/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
- package/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
- package/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
- package/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
- package/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
- package/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
- package/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
- package/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
- package/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
- package/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
- package/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
- package/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
- package/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
- package/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
- package/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
- package/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
- package/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
- package/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
- package/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
- package/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
- package/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
- package/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
- package/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
- package/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
- package/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
- package/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
- package/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
- package/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
- package/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
- package/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
- package/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
- package/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
- package/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
- package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
- package/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
- package/templates/frontend/angular-base/.cursor/mcp.json +12 -0
- package/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
- package/templates/frontend/angular-base/.editorconfig +17 -0
- package/templates/frontend/angular-base/.eslintrc.json +52 -0
- package/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
- package/templates/frontend/angular-base/.husky/pre-commit +1 -0
- package/templates/frontend/angular-base/.husky/pre-push +1 -0
- package/templates/frontend/angular-base/.postcssrc.json +5 -0
- package/templates/frontend/angular-base/.prettierignore +8 -0
- package/templates/frontend/angular-base/.prettierrc.json +15 -0
- package/templates/frontend/angular-base/.vscode/extensions.json +4 -0
- package/templates/frontend/angular-base/.vscode/launch.json +20 -0
- package/templates/frontend/angular-base/.vscode/mcp.json +9 -0
- package/templates/frontend/angular-base/.vscode/tasks.json +42 -0
- package/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
- package/templates/frontend/angular-base/README.md +383 -0
- package/templates/frontend/angular-base/angular.json +84 -0
- package/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
- package/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
- package/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
- package/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
- package/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
- package/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
- package/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
- package/templates/frontend/angular-base/cypress.config.ts +11 -0
- package/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
- package/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
- package/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
- package/templates/frontend/angular-base/docs/FEATURES.md +404 -0
- package/templates/frontend/angular-base/docs/TESTING.md +418 -0
- package/templates/frontend/angular-base/docs/THEMING.md +333 -0
- package/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
- package/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
- package/templates/frontend/angular-base/package-lock.json +13321 -0
- package/templates/frontend/angular-base/package.json +93 -0
- package/templates/frontend/angular-base/public/favicon.ico +0 -0
- package/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
- package/templates/frontend/angular-base/src/app/app.config.ts +32 -0
- package/templates/frontend/angular-base/src/app/app.css +0 -0
- package/templates/frontend/angular-base/src/app/app.html +1 -0
- package/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
- package/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
- package/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
- package/templates/frontend/angular-base/src/app/app.ts +12 -0
- package/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
- package/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
- package/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
- package/templates/frontend/angular-base/src/app/core/index.ts +10 -0
- package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
- package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
- package/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
- package/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
- package/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
- package/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
- package/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
- package/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
- package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
- package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
- package/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
- package/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
- package/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
- package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
- package/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
- package/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
- package/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
- package/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
- package/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
- package/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
- package/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
- package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
- package/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
- package/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
- package/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
- package/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
- package/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
- package/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
- package/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
- package/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
- package/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
- package/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
- package/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
- package/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
- package/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
- package/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
- package/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
- package/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
- package/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
- package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
- package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
- package/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
- package/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
- package/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
- package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
- package/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
- package/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
- package/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
- package/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
- package/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
- package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
- package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
- package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
- package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
- package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
- package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
- package/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
- package/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
- package/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
- package/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
- package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
- package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
- package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
- package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
- package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
- package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
- package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
- package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
- package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
- package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
- package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
- package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
- package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
- package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
- package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
- package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
- package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
- package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
- package/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
- package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
- package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
- package/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
- package/templates/frontend/angular-base/src/environments/environment.ts +4 -0
- package/templates/frontend/angular-base/src/index.html +44 -0
- package/templates/frontend/angular-base/src/main.server.ts +7 -0
- package/templates/frontend/angular-base/src/main.ts +5 -0
- package/templates/frontend/angular-base/src/server.ts +66 -0
- package/templates/frontend/angular-base/src/styles.css +209 -0
- package/templates/frontend/angular-base/src/test-setup.ts +10 -0
- package/templates/frontend/angular-base/tsconfig.app.json +17 -0
- package/templates/frontend/angular-base/tsconfig.json +41 -0
- package/templates/frontend/angular-base/tsconfig.spec.json +15 -0
- package/templates/frontend/angular-base/vitest.config.ts +25 -0
- package/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
- package/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
- package/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
- package/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
- package/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
- package/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
- package/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
- package/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
- package/templates/frontend/react-vite/.prettierrc +6 -0
- package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
- package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
- package/templates/frontend/react-vite/.vscode/extensions.json +7 -0
- package/templates/frontend/react-vite/README.md +75 -0
- package/templates/frontend/react-vite/components.json +22 -0
- package/templates/frontend/react-vite/eslint.config.js +31 -0
- package/templates/frontend/react-vite/index.html +13 -0
- package/templates/frontend/react-vite/package.json +62 -0
- package/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
- package/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
- package/templates/frontend/react-vite/src/assets/react.svg +1 -0
- package/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
- package/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
- package/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
- package/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
- package/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
- package/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
- package/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
- package/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
- package/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
- package/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
- package/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
- package/templates/frontend/react-vite/src/index.css +104 -0
- package/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
- package/templates/frontend/react-vite/src/lib/utils.ts +6 -0
- package/templates/frontend/react-vite/src/main.tsx +33 -0
- package/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
- package/templates/frontend/react-vite/src/router.tsx +13 -0
- package/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
- package/templates/frontend/react-vite/src/routes/index.tsx +187 -0
- package/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
- package/templates/frontend/react-vite/src/test/setup.ts +1 -0
- package/templates/frontend/react-vite/tsconfig.app.json +34 -0
- package/templates/frontend/react-vite/tsconfig.json +10 -0
- package/templates/frontend/react-vite/tsconfig.node.json +26 -0
- package/templates/frontend/react-vite/vite.config.ts +22 -0
- package/templates/frontend/react-vite/vitest.config.ts +9 -0
- package/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
- package/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
- package/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
- package/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
- package/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
- package/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
- package/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
- package/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
- package/templates/frontend/react-vite-help/.prettierrc +6 -0
- package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
- package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
- package/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
- package/templates/frontend/react-vite-help/README.md +75 -0
- package/templates/frontend/react-vite-help/components.json +22 -0
- package/templates/frontend/react-vite-help/eslint.config.js +31 -0
- package/templates/frontend/react-vite-help/index.html +13 -0
- package/templates/frontend/react-vite-help/package.json +62 -0
- package/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
- package/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
- package/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
- package/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
- package/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
- package/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
- package/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
- package/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
- package/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
- package/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
- package/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
- package/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
- package/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
- package/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
- package/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
- package/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
- package/templates/frontend/react-vite-help/src/index.css +104 -0
- package/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
- package/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
- package/templates/frontend/react-vite-help/src/main.tsx +33 -0
- package/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
- package/templates/frontend/react-vite-help/src/router.tsx +13 -0
- package/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
- package/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
- package/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
- package/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
- package/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
- package/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
- package/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
- package/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
- package/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
- package/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
- package/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
- package/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
- package/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
- package/templates/frontend/react-vite-help/tsconfig.json +10 -0
- package/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
- package/templates/frontend/react-vite-help/vite.config.ts +22 -0
- package/templates/frontend/react-vite-help/vitest.config.ts +9 -0
- package/templates/mobile/.gitkeep +1 -0
- package/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
- package/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
- package/templates/mobile/expo-base/.env +1 -0
- package/templates/mobile/expo-base/.husky/commit-msg +4 -0
- package/templates/mobile/expo-base/.husky/pre-commit +1 -0
- package/templates/mobile/expo-base/.lintstagedrc.js +25 -0
- package/templates/mobile/expo-base/.prettierignore +10 -0
- package/templates/mobile/expo-base/.prettierrc +11 -0
- package/templates/mobile/expo-base/.vscode/extensions.json +1 -0
- package/templates/mobile/expo-base/.vscode/settings.json +7 -0
- package/templates/mobile/expo-base/CHANGELOG.md +155 -0
- package/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
- package/templates/mobile/expo-base/README.md +510 -0
- package/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
- package/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
- package/templates/mobile/expo-base/WARP.md +123 -0
- package/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
- package/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
- package/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
- package/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
- package/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
- package/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
- package/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
- package/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
- package/templates/mobile/expo-base/app/_layout.tsx +143 -0
- package/templates/mobile/expo-base/app/modal.tsx +29 -0
- package/templates/mobile/expo-base/app/onboarding.tsx +3 -0
- package/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
- package/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
- package/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
- package/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
- package/templates/mobile/expo-base/app/settings/about.tsx +3 -0
- package/templates/mobile/expo-base/app/settings/index.tsx +3 -0
- package/templates/mobile/expo-base/app/settings/language.tsx +3 -0
- package/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
- package/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
- package/templates/mobile/expo-base/app.json +31 -0
- package/templates/mobile/expo-base/commitlint.config.js +50 -0
- package/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
- package/templates/mobile/expo-base/docs/CI_CD.md +461 -0
- package/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
- package/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
- package/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
- package/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
- package/templates/mobile/expo-base/docs/I18N.md +701 -0
- package/templates/mobile/expo-base/docs/TESTING.md +565 -0
- package/templates/mobile/expo-base/docs/THEMING.md +753 -0
- package/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
- package/templates/mobile/expo-base/eslint.config.js +180 -0
- package/templates/mobile/expo-base/jest.config.js +51 -0
- package/templates/mobile/expo-base/jest.setup.js +106 -0
- package/templates/mobile/expo-base/package.json +74 -0
- package/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
- package/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
- package/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
- package/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
- package/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
- package/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
- package/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
- package/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
- package/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
- package/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
- package/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
- package/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
- package/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
- package/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
- package/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
- package/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
- package/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
- package/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
- package/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
- package/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
- package/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
- package/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
- package/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
- package/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
- package/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
- package/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
- package/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
- package/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
- package/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
- package/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
- package/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
- package/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
- package/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
- package/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
- package/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
- package/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
- package/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
- package/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
- package/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
- package/templates/mobile/expo-base/src/constants/theme.ts +53 -0
- package/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
- package/templates/mobile/expo-base/src/contexts/index.ts +8 -0
- package/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
- package/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
- package/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
- package/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
- package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
- package/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
- package/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
- package/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
- package/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
- package/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
- package/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
- package/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
- package/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
- package/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
- package/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
- package/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
- package/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
- package/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
- package/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
- package/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
- package/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
- package/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
- package/templates/mobile/expo-base/src/hooks/index.ts +13 -0
- package/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
- package/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
- package/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
- package/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
- package/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
- package/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
- package/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
- package/templates/mobile/expo-base/src/i18n/index.ts +113 -0
- package/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
- package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
- package/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
- package/templates/mobile/expo-base/src/services/api/client.ts +190 -0
- package/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
- package/templates/mobile/expo-base/src/services/api/index.ts +7 -0
- package/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
- package/templates/mobile/expo-base/src/theme/colors.ts +147 -0
- package/templates/mobile/expo-base/src/theme/index.ts +40 -0
- package/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
- package/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
- package/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
- package/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
- package/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
- package/templates/mobile/expo-base/src/theme/typography.ts +152 -0
- package/templates/mobile/expo-base/src/types/index.ts +6 -0
- package/templates/mobile/expo-base/src/types/models.ts +153 -0
- package/templates/mobile/expo-base/src/types/navigation.ts +67 -0
- package/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
- package/templates/mobile/expo-base/src/utils/constants.ts +167 -0
- package/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
- package/templates/mobile/expo-base/src/utils/index.ts +7 -0
- package/templates/mobile/expo-base/src/utils/validators.ts +187 -0
- package/templates/mobile/expo-base/tsconfig.json +26 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Tokens
|
|
3
|
+
*
|
|
4
|
+
* Sistema centralizado de tokens de diseño que define los valores fundamentales
|
|
5
|
+
* para colores, espaciado, tipografía, radio de bordes y sombras.
|
|
6
|
+
*
|
|
7
|
+
* Estos tokens son la base del sistema de diseño y deben ser utilizados
|
|
8
|
+
* en todos los componentes para mantener consistencia visual.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export const tokens = {
|
|
12
|
+
/**
|
|
13
|
+
* Paleta de colores con variantes de 50 a 900
|
|
14
|
+
* Siguiendo el sistema de Material Design para consistencia
|
|
15
|
+
*/
|
|
16
|
+
colors: {
|
|
17
|
+
primary: {
|
|
18
|
+
50: '#E6F4FE',
|
|
19
|
+
100: '#CCE9FD',
|
|
20
|
+
200: '#99D3FB',
|
|
21
|
+
300: '#66BDF9',
|
|
22
|
+
400: '#33A7F7',
|
|
23
|
+
500: '#0A7EA4', // Color principal
|
|
24
|
+
600: '#0971A1',
|
|
25
|
+
700: '#065A75',
|
|
26
|
+
800: '#054D62',
|
|
27
|
+
900: '#043D4F',
|
|
28
|
+
},
|
|
29
|
+
secondary: {
|
|
30
|
+
50: '#F3E5F5',
|
|
31
|
+
100: '#E1BEE7',
|
|
32
|
+
200: '#CE93D8',
|
|
33
|
+
300: '#BA68C8',
|
|
34
|
+
400: '#AB47BC',
|
|
35
|
+
500: '#9C27B0',
|
|
36
|
+
600: '#8E24AA',
|
|
37
|
+
700: '#7B1FA2',
|
|
38
|
+
800: '#6A1B9A',
|
|
39
|
+
900: '#4A148C',
|
|
40
|
+
},
|
|
41
|
+
neutral: {
|
|
42
|
+
0: '#FFFFFF',
|
|
43
|
+
50: '#F9FAFB',
|
|
44
|
+
100: '#F3F4F6',
|
|
45
|
+
200: '#E5E7EB',
|
|
46
|
+
300: '#D1D5DB',
|
|
47
|
+
400: '#9CA3AF',
|
|
48
|
+
500: '#6B7280',
|
|
49
|
+
600: '#4B5563',
|
|
50
|
+
700: '#374151',
|
|
51
|
+
800: '#1F2937',
|
|
52
|
+
900: '#111827',
|
|
53
|
+
950: '#030712',
|
|
54
|
+
},
|
|
55
|
+
success: {
|
|
56
|
+
50: '#ECFDF5',
|
|
57
|
+
500: '#10B981',
|
|
58
|
+
700: '#047857',
|
|
59
|
+
},
|
|
60
|
+
error: {
|
|
61
|
+
50: '#FEF2F2',
|
|
62
|
+
500: '#EF4444',
|
|
63
|
+
700: '#B91C1C',
|
|
64
|
+
},
|
|
65
|
+
warning: {
|
|
66
|
+
50: '#FFFBEB',
|
|
67
|
+
500: '#F59E0B',
|
|
68
|
+
700: '#B45309',
|
|
69
|
+
},
|
|
70
|
+
info: {
|
|
71
|
+
50: '#EFF6FF',
|
|
72
|
+
500: '#3B82F6',
|
|
73
|
+
700: '#1D4ED8',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Sistema de espaciado consistente
|
|
79
|
+
* Base de 4px para mantener consistencia y alineación pixel-perfect
|
|
80
|
+
*/
|
|
81
|
+
spacing: {
|
|
82
|
+
none: 0,
|
|
83
|
+
xs: 4,
|
|
84
|
+
sm: 8,
|
|
85
|
+
md: 16,
|
|
86
|
+
lg: 24,
|
|
87
|
+
xl: 32,
|
|
88
|
+
'2xl': 40,
|
|
89
|
+
'3xl': 48,
|
|
90
|
+
'4xl': 64,
|
|
91
|
+
'5xl': 80,
|
|
92
|
+
'6xl': 96,
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Radio de bordes para componentes
|
|
97
|
+
*/
|
|
98
|
+
radius: {
|
|
99
|
+
none: 0,
|
|
100
|
+
sm: 4,
|
|
101
|
+
md: 8,
|
|
102
|
+
lg: 12,
|
|
103
|
+
xl: 16,
|
|
104
|
+
'2xl': 20,
|
|
105
|
+
'3xl': 24,
|
|
106
|
+
full: 9999,
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Sistema tipográfico escalable
|
|
111
|
+
*/
|
|
112
|
+
typography: {
|
|
113
|
+
fontSize: {
|
|
114
|
+
xs: 12,
|
|
115
|
+
sm: 14,
|
|
116
|
+
base: 16,
|
|
117
|
+
lg: 18,
|
|
118
|
+
xl: 20,
|
|
119
|
+
'2xl': 24,
|
|
120
|
+
'3xl': 30,
|
|
121
|
+
'4xl': 36,
|
|
122
|
+
'5xl': 48,
|
|
123
|
+
'6xl': 60,
|
|
124
|
+
},
|
|
125
|
+
fontWeight: {
|
|
126
|
+
regular: '400' as const,
|
|
127
|
+
medium: '500' as const,
|
|
128
|
+
semibold: '600' as const,
|
|
129
|
+
bold: '700' as const,
|
|
130
|
+
extrabold: '800' as const,
|
|
131
|
+
},
|
|
132
|
+
lineHeight: {
|
|
133
|
+
tight: 1.2,
|
|
134
|
+
normal: 1.5,
|
|
135
|
+
relaxed: 1.75,
|
|
136
|
+
loose: 2,
|
|
137
|
+
},
|
|
138
|
+
letterSpacing: {
|
|
139
|
+
tighter: -0.5,
|
|
140
|
+
tight: -0.25,
|
|
141
|
+
normal: 0,
|
|
142
|
+
wide: 0.25,
|
|
143
|
+
wider: 0.5,
|
|
144
|
+
widest: 1,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Alturas y dimensiones comunes
|
|
150
|
+
*/
|
|
151
|
+
sizes: {
|
|
152
|
+
button: {
|
|
153
|
+
sm: 32,
|
|
154
|
+
md: 40,
|
|
155
|
+
lg: 48,
|
|
156
|
+
xl: 56,
|
|
157
|
+
},
|
|
158
|
+
input: {
|
|
159
|
+
sm: 36,
|
|
160
|
+
md: 44,
|
|
161
|
+
lg: 52,
|
|
162
|
+
},
|
|
163
|
+
icon: {
|
|
164
|
+
xs: 16,
|
|
165
|
+
sm: 20,
|
|
166
|
+
md: 24,
|
|
167
|
+
lg: 32,
|
|
168
|
+
xl: 40,
|
|
169
|
+
'2xl': 48,
|
|
170
|
+
},
|
|
171
|
+
avatar: {
|
|
172
|
+
xs: 24,
|
|
173
|
+
sm: 32,
|
|
174
|
+
md: 40,
|
|
175
|
+
lg: 48,
|
|
176
|
+
xl: 64,
|
|
177
|
+
'2xl': 80,
|
|
178
|
+
'3xl': 96,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Valores de opacidad estándar
|
|
184
|
+
*/
|
|
185
|
+
opacity: {
|
|
186
|
+
disabled: 0.4,
|
|
187
|
+
hover: 0.8,
|
|
188
|
+
pressed: 0.6,
|
|
189
|
+
overlay: 0.5,
|
|
190
|
+
ghost: 0.1,
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Duración de animaciones (en milisegundos)
|
|
195
|
+
*/
|
|
196
|
+
animation: {
|
|
197
|
+
fast: 150,
|
|
198
|
+
normal: 250,
|
|
199
|
+
slow: 350,
|
|
200
|
+
slower: 500,
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Z-index layers para manejo consistente de stack
|
|
205
|
+
*/
|
|
206
|
+
zIndex: {
|
|
207
|
+
base: 0,
|
|
208
|
+
dropdown: 1000,
|
|
209
|
+
sticky: 1020,
|
|
210
|
+
fixed: 1030,
|
|
211
|
+
modalBackdrop: 1040,
|
|
212
|
+
modal: 1050,
|
|
213
|
+
popover: 1060,
|
|
214
|
+
tooltip: 1070,
|
|
215
|
+
},
|
|
216
|
+
} as const;
|
|
217
|
+
|
|
218
|
+
export type Tokens = typeof tokens;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography System
|
|
3
|
+
*
|
|
4
|
+
* Sistema tipográfico consistente con variantes predefinidas
|
|
5
|
+
* para heading, body text, labels, y texto especializado.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { TextStyle } from 'react-native';
|
|
9
|
+
|
|
10
|
+
import { tokens } from './tokens';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Estilos tipográficos base
|
|
14
|
+
*/
|
|
15
|
+
export const typography = {
|
|
16
|
+
// Headings
|
|
17
|
+
h1: {
|
|
18
|
+
fontSize: tokens.typography.fontSize['4xl'],
|
|
19
|
+
fontWeight: tokens.typography.fontWeight.bold,
|
|
20
|
+
lineHeight: tokens.typography.fontSize['4xl'] * tokens.typography.lineHeight.tight,
|
|
21
|
+
letterSpacing: tokens.typography.letterSpacing.tight,
|
|
22
|
+
} as TextStyle,
|
|
23
|
+
|
|
24
|
+
h2: {
|
|
25
|
+
fontSize: tokens.typography.fontSize['3xl'],
|
|
26
|
+
fontWeight: tokens.typography.fontWeight.bold,
|
|
27
|
+
lineHeight: tokens.typography.fontSize['3xl'] * tokens.typography.lineHeight.tight,
|
|
28
|
+
letterSpacing: tokens.typography.letterSpacing.tight,
|
|
29
|
+
} as TextStyle,
|
|
30
|
+
|
|
31
|
+
h3: {
|
|
32
|
+
fontSize: tokens.typography.fontSize['2xl'],
|
|
33
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
34
|
+
lineHeight: tokens.typography.fontSize['2xl'] * tokens.typography.lineHeight.normal,
|
|
35
|
+
} as TextStyle,
|
|
36
|
+
|
|
37
|
+
h4: {
|
|
38
|
+
fontSize: tokens.typography.fontSize.xl,
|
|
39
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
40
|
+
lineHeight: tokens.typography.fontSize.xl * tokens.typography.lineHeight.normal,
|
|
41
|
+
} as TextStyle,
|
|
42
|
+
|
|
43
|
+
h5: {
|
|
44
|
+
fontSize: tokens.typography.fontSize.lg,
|
|
45
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
46
|
+
lineHeight: tokens.typography.fontSize.lg * tokens.typography.lineHeight.normal,
|
|
47
|
+
} as TextStyle,
|
|
48
|
+
|
|
49
|
+
h6: {
|
|
50
|
+
fontSize: tokens.typography.fontSize.base,
|
|
51
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
52
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.normal,
|
|
53
|
+
} as TextStyle,
|
|
54
|
+
|
|
55
|
+
// Body text
|
|
56
|
+
body: {
|
|
57
|
+
fontSize: tokens.typography.fontSize.base,
|
|
58
|
+
fontWeight: tokens.typography.fontWeight.regular,
|
|
59
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.relaxed,
|
|
60
|
+
} as TextStyle,
|
|
61
|
+
|
|
62
|
+
bodyMedium: {
|
|
63
|
+
fontSize: tokens.typography.fontSize.base,
|
|
64
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
65
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.relaxed,
|
|
66
|
+
} as TextStyle,
|
|
67
|
+
|
|
68
|
+
bodySemibold: {
|
|
69
|
+
fontSize: tokens.typography.fontSize.base,
|
|
70
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
71
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.relaxed,
|
|
72
|
+
} as TextStyle,
|
|
73
|
+
|
|
74
|
+
bodyLarge: {
|
|
75
|
+
fontSize: tokens.typography.fontSize.lg,
|
|
76
|
+
fontWeight: tokens.typography.fontWeight.regular,
|
|
77
|
+
lineHeight: tokens.typography.fontSize.lg * tokens.typography.lineHeight.relaxed,
|
|
78
|
+
} as TextStyle,
|
|
79
|
+
|
|
80
|
+
bodySmall: {
|
|
81
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
82
|
+
fontWeight: tokens.typography.fontWeight.regular,
|
|
83
|
+
lineHeight: tokens.typography.fontSize.sm * tokens.typography.lineHeight.relaxed,
|
|
84
|
+
} as TextStyle,
|
|
85
|
+
|
|
86
|
+
// Labels y botones
|
|
87
|
+
label: {
|
|
88
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
89
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
90
|
+
lineHeight: tokens.typography.fontSize.sm * tokens.typography.lineHeight.normal,
|
|
91
|
+
letterSpacing: tokens.typography.letterSpacing.wide,
|
|
92
|
+
} as TextStyle,
|
|
93
|
+
|
|
94
|
+
labelSmall: {
|
|
95
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
96
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
97
|
+
lineHeight: tokens.typography.fontSize.xs * tokens.typography.lineHeight.normal,
|
|
98
|
+
letterSpacing: tokens.typography.letterSpacing.wide,
|
|
99
|
+
} as TextStyle,
|
|
100
|
+
|
|
101
|
+
button: {
|
|
102
|
+
fontSize: tokens.typography.fontSize.base,
|
|
103
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
104
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.tight,
|
|
105
|
+
letterSpacing: tokens.typography.letterSpacing.wide,
|
|
106
|
+
} as TextStyle,
|
|
107
|
+
|
|
108
|
+
buttonSmall: {
|
|
109
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
110
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
111
|
+
lineHeight: tokens.typography.fontSize.sm * tokens.typography.lineHeight.tight,
|
|
112
|
+
letterSpacing: tokens.typography.letterSpacing.wide,
|
|
113
|
+
} as TextStyle,
|
|
114
|
+
|
|
115
|
+
buttonLarge: {
|
|
116
|
+
fontSize: tokens.typography.fontSize.lg,
|
|
117
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
118
|
+
lineHeight: tokens.typography.fontSize.lg * tokens.typography.lineHeight.tight,
|
|
119
|
+
letterSpacing: tokens.typography.letterSpacing.wide,
|
|
120
|
+
} as TextStyle,
|
|
121
|
+
|
|
122
|
+
// Texto especializado
|
|
123
|
+
caption: {
|
|
124
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
125
|
+
fontWeight: tokens.typography.fontWeight.regular,
|
|
126
|
+
lineHeight: tokens.typography.fontSize.xs * tokens.typography.lineHeight.normal,
|
|
127
|
+
} as TextStyle,
|
|
128
|
+
|
|
129
|
+
overline: {
|
|
130
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
131
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
132
|
+
lineHeight: tokens.typography.fontSize.xs * tokens.typography.lineHeight.normal,
|
|
133
|
+
letterSpacing: tokens.typography.letterSpacing.widest,
|
|
134
|
+
textTransform: 'uppercase' as const,
|
|
135
|
+
} as TextStyle,
|
|
136
|
+
|
|
137
|
+
link: {
|
|
138
|
+
fontSize: tokens.typography.fontSize.base,
|
|
139
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
140
|
+
lineHeight: tokens.typography.fontSize.base * tokens.typography.lineHeight.relaxed,
|
|
141
|
+
textDecorationLine: 'underline' as const,
|
|
142
|
+
} as TextStyle,
|
|
143
|
+
|
|
144
|
+
code: {
|
|
145
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
146
|
+
fontWeight: tokens.typography.fontWeight.regular,
|
|
147
|
+
fontFamily: 'monospace',
|
|
148
|
+
} as TextStyle,
|
|
149
|
+
} as const;
|
|
150
|
+
|
|
151
|
+
export type Typography = typeof typography;
|
|
152
|
+
export type TypographyVariant = keyof typeof typography;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Models Types
|
|
3
|
+
*
|
|
4
|
+
* Tipos de datos para modelos de dominio de la aplicación.
|
|
5
|
+
* Define las estructuras de datos que se usan en toda la app.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* User model
|
|
10
|
+
*/
|
|
11
|
+
export interface User {
|
|
12
|
+
id: string;
|
|
13
|
+
email: string;
|
|
14
|
+
name: string;
|
|
15
|
+
avatar?: string;
|
|
16
|
+
bio?: string;
|
|
17
|
+
phone?: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* User preferences
|
|
24
|
+
*/
|
|
25
|
+
export interface UserPreferences {
|
|
26
|
+
theme: 'light' | 'dark' | 'system';
|
|
27
|
+
language: string;
|
|
28
|
+
notifications: {
|
|
29
|
+
email: boolean;
|
|
30
|
+
push: boolean;
|
|
31
|
+
sms: boolean;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Auth tokens
|
|
37
|
+
*/
|
|
38
|
+
export interface AuthTokens {
|
|
39
|
+
accessToken: string;
|
|
40
|
+
refreshToken: string;
|
|
41
|
+
expiresAt: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* API Response wrapper
|
|
46
|
+
*/
|
|
47
|
+
export interface ApiResponse<T> {
|
|
48
|
+
data: T;
|
|
49
|
+
message?: string;
|
|
50
|
+
success: boolean;
|
|
51
|
+
error?: {
|
|
52
|
+
code: string;
|
|
53
|
+
message: string;
|
|
54
|
+
details?: unknown;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Paginated response
|
|
60
|
+
*/
|
|
61
|
+
export interface PaginatedResponse<T> {
|
|
62
|
+
data: T[];
|
|
63
|
+
pagination: {
|
|
64
|
+
page: number;
|
|
65
|
+
pageSize: number;
|
|
66
|
+
total: number;
|
|
67
|
+
totalPages: number;
|
|
68
|
+
hasNext: boolean;
|
|
69
|
+
hasPrev: boolean;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Post model (ejemplo)
|
|
75
|
+
*/
|
|
76
|
+
export interface Post {
|
|
77
|
+
id: string;
|
|
78
|
+
title: string;
|
|
79
|
+
content: string;
|
|
80
|
+
author: User;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
likesCount: number;
|
|
84
|
+
commentsCount: number;
|
|
85
|
+
isLiked?: boolean;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Comment model (ejemplo)
|
|
90
|
+
*/
|
|
91
|
+
export interface Comment {
|
|
92
|
+
id: string;
|
|
93
|
+
postId: string;
|
|
94
|
+
content: string;
|
|
95
|
+
author: User;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
likesCount: number;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Notification model
|
|
102
|
+
*/
|
|
103
|
+
export interface Notification {
|
|
104
|
+
id: string;
|
|
105
|
+
type: 'info' | 'success' | 'warning' | 'error';
|
|
106
|
+
title: string;
|
|
107
|
+
message: string;
|
|
108
|
+
read: boolean;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
actionUrl?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Settings model
|
|
115
|
+
*/
|
|
116
|
+
export interface Settings {
|
|
117
|
+
id: string;
|
|
118
|
+
userId: string;
|
|
119
|
+
preferences: UserPreferences;
|
|
120
|
+
privacy: {
|
|
121
|
+
profileVisibility: 'public' | 'private' | 'friends';
|
|
122
|
+
showEmail: boolean;
|
|
123
|
+
showPhone: boolean;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Upload file result
|
|
129
|
+
*/
|
|
130
|
+
export interface UploadResult {
|
|
131
|
+
url: string;
|
|
132
|
+
filename: string;
|
|
133
|
+
size: number;
|
|
134
|
+
mimeType: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Form field error
|
|
139
|
+
*/
|
|
140
|
+
export interface FieldError {
|
|
141
|
+
field: string;
|
|
142
|
+
message: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* API Error
|
|
147
|
+
*/
|
|
148
|
+
export interface ApiError {
|
|
149
|
+
message: string;
|
|
150
|
+
code?: string;
|
|
151
|
+
status?: number;
|
|
152
|
+
errors?: FieldError[];
|
|
153
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation Types
|
|
3
|
+
*
|
|
4
|
+
* Tipos para navegación con Expo Router.
|
|
5
|
+
* Define los parámetros de cada ruta para type-safety.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Parámetros de las rutas principales
|
|
10
|
+
*/
|
|
11
|
+
export type RootStackParamList = {
|
|
12
|
+
// Public routes
|
|
13
|
+
'(public)/login': undefined;
|
|
14
|
+
'(public)/register': undefined;
|
|
15
|
+
'(public)/forgot-password': undefined;
|
|
16
|
+
|
|
17
|
+
// Protected routes
|
|
18
|
+
'(tabs)': undefined;
|
|
19
|
+
'(tabs)/index': undefined;
|
|
20
|
+
'(tabs)/explore': undefined;
|
|
21
|
+
'(tabs)/profile': undefined;
|
|
22
|
+
|
|
23
|
+
// Modal routes
|
|
24
|
+
modal: undefined;
|
|
25
|
+
|
|
26
|
+
// Onboarding
|
|
27
|
+
onboarding: undefined;
|
|
28
|
+
|
|
29
|
+
// Settings
|
|
30
|
+
'settings/index': undefined;
|
|
31
|
+
'settings/notifications': undefined;
|
|
32
|
+
'settings/language': undefined;
|
|
33
|
+
'settings/about': undefined;
|
|
34
|
+
|
|
35
|
+
// Profile
|
|
36
|
+
'profile/edit': undefined;
|
|
37
|
+
'profile/change-password': undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Tipos para nested navigators
|
|
42
|
+
*/
|
|
43
|
+
export type TabsParamList = {
|
|
44
|
+
index: undefined;
|
|
45
|
+
explore: undefined;
|
|
46
|
+
profile: undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type PublicStackParamList = {
|
|
50
|
+
login: undefined;
|
|
51
|
+
register: undefined;
|
|
52
|
+
'forgot-password': undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type SettingsStackParamList = {
|
|
56
|
+
index: undefined;
|
|
57
|
+
notifications: undefined;
|
|
58
|
+
language: undefined;
|
|
59
|
+
about: undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Helper types para navigation props
|
|
64
|
+
*/
|
|
65
|
+
export type ScreenRoute<T extends keyof RootStackParamList> = {
|
|
66
|
+
params: RootStackParamList[T];
|
|
67
|
+
};
|