@team-codeme/crud-forge 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/agents/generator-engineer.md +31 -0
- package/.cursor/agents/keycloak-engineer.md +33 -0
- package/.cursor/agents/qa-engineer.md +32 -0
- package/.cursor/agents/security-reviewer.md +30 -0
- package/.cursor/mcp.json +13 -0
- package/.cursor/rules/crudforge-precautions.mdc +16 -0
- package/.cursor/rules/playwright-browser.mdc +30 -0
- package/.cursor/rules/readme-todo-sync.mdc +13 -0
- package/.env.qa.example +19 -0
- package/.github/workflows/qa-live.yml +32 -0
- package/.github/workflows/qa.yml +27 -0
- package/.vscode/settings.json +32 -0
- package/QA/IAM-PLAN.md +25 -0
- package/QA/IAM-RESULTS.md +39 -0
- package/QA/IAM-TESTCASES.md +36 -0
- package/QA/IAM-TODO.md +7 -0
- package/QA/KEYCLOAK-BOOTSTRAP.md +105 -0
- package/QA/PLAN.md +43 -0
- package/QA/RESULTS.md +59 -0
- package/QA/TESTCASES.md +65 -0
- package/QA/TODO.md +14 -0
- package/QA/pmb-dev/README.md +49 -0
- package/QA/pmb-dev/config/config.yml +152 -0
- package/QA/pmb-dev/gdl/i.gdl +17 -0
- package/README.md +851 -2
- package/Todo.md +207 -0
- package/assets/branding/crudforge-logo.png +0 -0
- package/assets/branding/crudforge-mark.png +0 -0
- package/branding/poster-crudforge.jpg +0 -0
- package/chat/last-chat/Investigating Mock Data Configuration.md +428 -0
- package/cli.js +167 -0
- package/config/default-config.yml +245 -0
- package/docs/performance/README.md +217 -0
- package/docs/performance/after.json +111 -0
- package/docs/performance/before.json +111 -0
- package/docs/quality/README.md +276 -0
- package/e2e/crudforge.e2e.yml +47 -0
- package/e2e/crudforge.field-profile.yml +33 -0
- package/e2e/crudforge.iam-live.yml +124 -0
- package/e2e/crudforge.iam.yml +62 -0
- package/e2e/tests/field-profile.spec.js +152 -0
- package/e2e/tests/generated-crud.spec.js +251 -0
- package/e2e/tests/iam-live.spec.js +149 -0
- package/e2e/tests/iam-pack.spec.js +151 -0
- package/e2e/tests/list-state.spec.js +73 -0
- package/features.csv +27 -0
- package/fuse-starter-pack/branding/crudforge-mark-source.jpg +0 -0
- package/fuse-starter-pack/branding/crudforge-mark-source.png +0 -0
- package/fuse-starter-pack/branding/crudforge-mark.png +0 -0
- package/fuse-starter-pack/branding/crudforge-wordmark-source.jpg +0 -0
- package/fuse-starter-pack/branding/crudforge-wordmark-source.png +0 -0
- package/fuse-starter-pack/branding/crudforge-wordmark.png +0 -0
- package/fuse-starter-pack/fuse-v21.1/Dockerfile +14 -0
- package/fuse-starter-pack/fuse-v21.1/LICENSE.md +6 -0
- package/fuse-starter-pack/fuse-v21.1/README.md +59 -0
- package/fuse-starter-pack/fuse-v21.1/angular.json +113 -0
- package/fuse-starter-pack/fuse-v21.1/eslint.config.ts +150 -0
- package/fuse-starter-pack/fuse-v21.1/nginx.conf +23 -0
- package/fuse-starter-pack/fuse-v21.1/nginx.dev.conf +18 -0
- package/fuse-starter-pack/fuse-v21.1/package-lock.json +11513 -0
- package/fuse-starter-pack/fuse-v21.1/package.json +69 -0
- package/fuse-starter-pack/fuse-v21.1/postcss.config.json +5 -0
- package/fuse-starter-pack/fuse-v21.1/prettier.config.ts +15 -0
- package/fuse-starter-pack/fuse-v21.1/proxy.conf.json +8 -0
- package/fuse-starter-pack/fuse-v21.1/proxy.dev.conf.json +8 -0
- package/fuse-starter-pack/fuse-v21.1/public/favicon.png +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/fonts/geist/Geist-Italic.woff2 +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/fonts/geist/Geist.woff2 +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/fonts/geist/GeistMono-Italic.woff2 +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/fonts/geist/GeistMono.woff2 +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/i18n/en.json +8 -0
- package/fuse-starter-pack/fuse-v21.1/public/i18n/es.json +8 -0
- package/fuse-starter-pack/fuse-v21.1/public/images/flags/ES.svg +79 -0
- package/fuse-starter-pack/fuse-v21.1/public/images/flags/US.svg +14 -0
- package/fuse-starter-pack/fuse-v21.1/public/images/flags/where-to-find-other-flags.txt +5 -0
- package/fuse-starter-pack/fuse-v21.1/public/images/logo/logo-mark.png +0 -0
- package/fuse-starter-pack/fuse-v21.1/public/images/logo/logo.png +0 -0
- package/fuse-starter-pack/fuse-v21.1/push.sh +27 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/app.config.server.ts +10 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/app.config.ts +64 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/app.routes.server.ts +8 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/app.routes.ts +39 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/app.ts +22 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/icons/index.ts +1 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/icons/lucide.ts +1 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/icons/provider.ts +23 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/local-storage/index.ts +2 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/local-storage/local-storage.ts +109 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/local-storage/provider.ts +15 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/media/index.ts +2 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/media/media.ts +64 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/media/provider.ts +15 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/theming/index.ts +3 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/theming/models/theming.ts +13 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/theming/palette.ts +209 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/theming/provider.ts +24 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/theming/theming.ts +129 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/core/transloco/transloco-http-loader.ts +12 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/data/navigation.ts +176 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/layout.ts +77 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/language-switcher.ts +91 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/navigation.ts +238 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/notifications.ts +252 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/scheme-switcher.ts +58 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/sidebar.ts +31 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/layout/ui/user.ts +132 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/academy/data/academy.ts +753 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/academy/data/model.ts +27 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/academy/features/course.ts +318 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/academy/features/courses.ts +228 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/academy/routes.ts +14 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/contacts/data/contacts.ts +4372 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/contacts/data/model.ts +34 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/contacts/features/contact.ts +239 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/contacts/features/contacts.ts +185 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/contacts/routes.ts +16 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/file-manager/data/file-manager.ts +261 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/file-manager/data/model.ts +12 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/file-manager/features/file-manager.ts +131 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/file-manager/routes.ts +15 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/file-manager/ui/list.ts +164 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/help-center/features/faq.ts +288 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/help-center/features/guide.ts +134 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/help-center/features/home.ts +219 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/help-center/features/support.ts +161 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/help-center/routes.ts +33 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/notes/data/model.ts +18 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/notes/data/notes.ts +324 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/notes/features/note.ts +152 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/notes/features/notes.ts +118 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/notes/routes.ts +16 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/tasks/data/model.ts +17 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/tasks/data/tasks.ts +562 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/tasks/features/task.ts +195 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/tasks/features/tasks.ts +271 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/apps/tasks/routes.ts +16 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/data/analytics.ts +1620 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/data/finance.ts +1065 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/data/project.ts +376 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/features/analytics/analytics.ts +1096 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/features/finance/finance.ts +658 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/features/project/budget-table.ts +188 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/features/project/project.ts +565 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/dashboards/routes.ts +23 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/features/changelog/changelog.ts +932 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/features/getting-started/building.ts +33 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/features/getting-started/development.ts +42 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/features/getting-started/installation.ts +47 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/layout.ts +9 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/documentation/routes.ts +45 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/error/features/error-page.ts +70 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/error/routes.ts +21 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/notifications/features/notifications.ts +262 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/notifications/routes.ts +10 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/account.ts +238 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/notifications.ts +134 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/plan-and-billing.ts +238 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/security.ts +211 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/team.ts +188 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/layout.ts +109 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/routes.ts +37 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/welcome/welcome.component.ts +22 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/routes.ts +95 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/forgot-password/forgot-password.html +54 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/forgot-password/forgot-password.ts +51 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/reset-password/reset-password.html +82 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/reset-password/reset-password.ts +69 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/sign-in/sign-in.html +132 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/sign-in/sign-in.ts +54 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/sign-up/sign-up.html +183 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/features/sign-up/sign-up.ts +56 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/layout.ts +9 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/auth/routes.ts +34 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/coming-soon/features/coming-soon.ts +156 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/coming-soon/layout.ts +9 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/coming-soon/routes.ts +16 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/website/layout/layout.ts +9 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/website/modules/home/features/home.ts +23 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/website/modules/home/routes.ts +10 -0
- package/fuse-starter-pack/fuse-v21.1/src/app/domains/website/routes.ts +30 -0
- package/fuse-starter-pack/fuse-v21.1/src/environments/environment.mock.ts +5 -0
- package/fuse-starter-pack/fuse-v21.1/src/environments/environment.prod.ts +5 -0
- package/fuse-starter-pack/fuse-v21.1/src/environments/environment.ts +5 -0
- package/fuse-starter-pack/fuse-v21.1/src/index.html +66 -0
- package/fuse-starter-pack/fuse-v21.1/src/main.server.ts +11 -0
- package/fuse-starter-pack/fuse-v21.1/src/main.ts +5 -0
- package/fuse-starter-pack/fuse-v21.1/src/server.ts +70 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/base/base.css +63 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/base/typography.css +54 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/components/a.css +18 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/components/input.css +22 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/components/kbd.css +55 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/components/material.css +1149 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/styles.css +31 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/tailwind/theme.css +147 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/tailwind/utilities.css +563 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/tailwind/variants.css +4 -0
- package/fuse-starter-pack/fuse-v21.1/src/styles/third-party/lucide-icons.css +12 -0
- package/fuse-starter-pack/fuse-v21.1/tsconfig.app.json +16 -0
- package/fuse-starter-pack/fuse-v21.1/tsconfig.json +37 -0
- package/fuse-starter-pack/fuse-v21.1/tsconfig.spec.json +10 -0
- package/generator/README.md +12 -0
- package/generator/issues/.gitkeep +0 -0
- package/package.json +56 -4
- package/playwright.config.js +29 -0
- package/playwright.field-profile.config.js +6 -0
- package/playwright.iam-live.config.js +31 -0
- package/playwright.iam.config.js +29 -0
- package/playwright.list-state.config.js +6 -0
- package/playwright.performance.config.js +1 -0
- package/run-config-tests.sh +5 -0
- package/scripts/e2e-paths.js +89 -0
- package/scripts/e2e-prepare-field-profile.js +17 -0
- package/scripts/e2e-prepare-iam-live.js +135 -0
- package/scripts/e2e-prepare-iam.js +65 -0
- package/scripts/e2e-prepare.js +72 -0
- package/scripts/e2e-serve-iam-live.js +28 -0
- package/scripts/e2e-serve-iam.js +28 -0
- package/scripts/e2e-serve.js +28 -0
- package/scripts/performance/generate.js +17 -0
- package/scripts/performance/measure.js +55 -0
- package/scripts/postinstall.js +9 -0
- package/scripts/prepare-quality-apps.js +34 -0
- package/scripts/run-config-tests.js +63 -0
- package/src/assets/logo-with-lable.jpeg +0 -0
- package/src/assets/logo.jpeg +0 -0
- package/src/commands/bootstrap.js +92 -0
- package/src/commands/doctor.js +403 -0
- package/src/commands/generate.js +301 -0
- package/src/commands/init-config.js +310 -0
- package/src/commands/keycloak-options.js +182 -0
- package/src/commands/validate.js +52 -0
- package/src/config/auth-config.js +183 -0
- package/src/config/default-values.js +235 -0
- package/src/config/env-refs.js +71 -0
- package/src/config/field-preferences.js +99 -0
- package/src/config/input-sources.js +104 -0
- package/src/config/load-config.js +166 -0
- package/src/config/proxy-routes.js +44 -0
- package/src/generator/access-control-tools.js +334 -0
- package/src/generator/ai-docs.js +691 -0
- package/src/generator/application-tests.js +252 -0
- package/src/generator/auth-pack.js +965 -0
- package/src/generator/embed-config.js +431 -0
- package/src/generator/entity-layout.js +30 -0
- package/src/generator/fuse-build.js +57 -0
- package/src/generator/fuse-runtime.js +344 -0
- package/src/generator/generated-banner.js +137 -0
- package/src/generator/index.js +874 -0
- package/src/generator/project-output.js +126 -0
- package/src/generator/team-pack.js +220 -0
- package/src/index.js +68 -0
- package/src/parser/gdl-parser.js +169 -0
- package/src/parser/jdl-parser.js +171 -0
- package/src/presets/pmb-test.js +139 -0
- package/src/presets/static-source.js +73 -0
- package/src/presets/store.js +96 -0
- package/src/provision/admin-service.js +148 -0
- package/src/provision/bootstrap.js +147 -0
- package/src/provision/http.js +123 -0
- package/src/provision/keycloak-admin-rest.js +335 -0
- package/src/provision/state.js +51 -0
- package/src/provision/token.js +52 -0
- package/src/templates/angular/auth/access-control.service.ts.ejs +179 -0
- package/src/templates/angular/auth/access-ctrl.pipe.ts.ejs +20 -0
- package/src/templates/angular/auth/auth.guard.ts.ejs +27 -0
- package/src/templates/angular/auth/auth.interceptor.ts.ejs +53 -0
- package/src/templates/angular/auth/auth.service.ts.ejs +594 -0
- package/src/templates/angular/auth/auth.utils.ts.ejs +28 -0
- package/src/templates/angular/auth/current-user.ts.ejs +24 -0
- package/src/templates/angular/auth/disabled-account-overlay.component.css.ejs +95 -0
- package/src/templates/angular/auth/disabled-account-overlay.component.html.ejs +33 -0
- package/src/templates/angular/auth/disabled-account-overlay.component.ts.ejs +23 -0
- package/src/templates/angular/auth/fuse-account.ts.ejs +234 -0
- package/src/templates/angular/auth/fuse-user.ts.ejs +264 -0
- package/src/templates/angular/auth/has-permission.directive.ts.ejs +51 -0
- package/src/templates/angular/auth/index.ts.ejs +24 -0
- package/src/templates/angular/auth/keycloak-admin.service.ts.ejs +670 -0
- package/src/templates/angular/auth/landing.guard.ts.ejs +61 -0
- package/src/templates/angular/auth/no-auth.guard.ts.ejs +19 -0
- package/src/templates/angular/auth/permission-attribute.util.ts.ejs +182 -0
- package/src/templates/angular/auth/sign-in.ts.ejs +60 -0
- package/src/templates/angular/entity/_entity_.model.ts.ejs +64 -0
- package/src/templates/angular/entity/_entity_.routes.ts.ejs +9 -0
- package/src/templates/angular/entity/components/forms/form/_entity_-form.component.html.ejs +168 -0
- package/src/templates/angular/entity/components/forms/form/_entity_-form.component.ts.ejs +175 -0
- package/src/templates/angular/entity/components/forms/form-page/_entity_-form-page.component.html.ejs +10 -0
- package/src/templates/angular/entity/components/forms/form-page/_entity_-form-page.component.ts.ejs +86 -0
- package/src/templates/angular/entity/components/forms/update/_entity_-form.service.ts.ejs +136 -0
- package/src/templates/angular/entity/components/interaction/actions/_entity_-actions.component.html.ejs +68 -0
- package/src/templates/angular/entity/components/interaction/actions/_entity_-actions.component.ts.ejs +69 -0
- package/src/templates/angular/entity/components/interaction/filter/_entity_-filter.component.html.ejs +111 -0
- package/src/templates/angular/entity/components/interaction/filter/_entity_-filter.component.ts.ejs +102 -0
- package/src/templates/angular/entity/components/presentation/card/_entity_-card.component.css.ejs +33 -0
- package/src/templates/angular/entity/components/presentation/card/_entity_-card.component.html.ejs +29 -0
- package/src/templates/angular/entity/components/presentation/card/_entity_-card.component.ts.ejs +93 -0
- package/src/templates/angular/entity/components/presentation/detail/_entity_-detail.component.css.ejs +54 -0
- package/src/templates/angular/entity/components/presentation/detail/_entity_-detail.component.html.ejs +58 -0
- package/src/templates/angular/entity/components/presentation/detail/_entity_-detail.component.ts.ejs +47 -0
- package/src/templates/angular/entity/components/presentation/list/_entity_-list.component.html.ejs +419 -0
- package/src/templates/angular/entity/components/presentation/list/_entity_-list.component.scss.ejs +48 -0
- package/src/templates/angular/entity/components/presentation/list/_entity_-list.component.ts.ejs +592 -0
- package/src/templates/angular/entity/service/_entity_.service.ts.ejs +153 -0
- package/src/templates/angular/entity/settings/_entity_.settings.ts.ejs +49 -0
- package/src/templates/angular/enums/_enum_.model.ts.ejs +11 -0
- package/src/templates/angular/iam/change-password.component.html.ejs +39 -0
- package/src/templates/angular/iam/change-password.component.ts.ejs +44 -0
- package/src/templates/angular/iam/no-access.component.ts.ejs +17 -0
- package/src/templates/angular/iam/role-list.component.html.ejs +331 -0
- package/src/templates/angular/iam/role-list.component.scss.ejs +107 -0
- package/src/templates/angular/iam/role-list.component.ts.ejs +597 -0
- package/src/templates/angular/iam/role-management/role-header.component.html.ejs +51 -0
- package/src/templates/angular/iam/role-management/role-header.component.ts.ejs +45 -0
- package/src/templates/angular/iam/role-management/role-inheritance.component.html.ejs +15 -0
- package/src/templates/angular/iam/role-management/role-inheritance.component.ts.ejs +19 -0
- package/src/templates/angular/iam/role-management/role-permissions-panel.component.css.ejs +24 -0
- package/src/templates/angular/iam/role-management/role-permissions-panel.component.html.ejs +108 -0
- package/src/templates/angular/iam/role-management/role-permissions-panel.component.ts.ejs +122 -0
- package/src/templates/angular/iam/role-management/role-users.component.html.ejs +104 -0
- package/src/templates/angular/iam/role-management/role-users.component.ts.ejs +53 -0
- package/src/templates/angular/iam/role-management/user-select-dialog.component.html.ejs +113 -0
- package/src/templates/angular/iam/role-management/user-select-dialog.component.ts.ejs +157 -0
- package/src/templates/angular/iam/role-permission-matrix.component.html.ejs +355 -0
- package/src/templates/angular/iam/role-permission-matrix.component.scss.ejs +217 -0
- package/src/templates/angular/iam/role-permission-matrix.component.ts.ejs +800 -0
- package/src/templates/angular/iam/screen-catalog.ts.ejs +147 -0
- package/src/templates/angular/iam/shared/confirm-dialog.component.ts.ejs +83 -0
- package/src/templates/angular/iam/shared/matrix-hierarchy.util.ts.ejs +196 -0
- package/src/templates/angular/iam/shared/permission-matrix-sound.ts.ejs +59 -0
- package/src/templates/angular/iam/shared/role-display.util.ts.ejs +43 -0
- package/src/templates/angular/iam/shared/role-permission-skeleton.component.ts.ejs +54 -0
- package/src/templates/angular/iam/shared/screen-matrix.util.ts.ejs +554 -0
- package/src/templates/angular/iam/shared/screen-navigation-map.ts.ejs +187 -0
- package/src/templates/angular/iam/shared/screen-navigation.registry.ts.ejs +64 -0
- package/src/templates/angular/iam/shared/text-highlight.pipe.ts.ejs +39 -0
- package/src/templates/angular/iam/user-access-matrix.component.html.ejs +212 -0
- package/src/templates/angular/iam/user-access-matrix.component.scss.ejs +34 -0
- package/src/templates/angular/iam/user-access-matrix.component.ts.ejs +239 -0
- package/src/templates/angular/iam/user-detail.component.html.ejs +143 -0
- package/src/templates/angular/iam/user-detail.component.ts.ejs +108 -0
- package/src/templates/angular/iam/user-form.component.html.ejs +63 -0
- package/src/templates/angular/iam/user-form.component.ts.ejs +100 -0
- package/src/templates/angular/iam/user-list.component.html.ejs +369 -0
- package/src/templates/angular/iam/user-list.component.scss.ejs +242 -0
- package/src/templates/angular/iam/user-list.component.ts.ejs +446 -0
- package/src/templates/angular/iam/user-management.routes.ts.ejs +47 -0
- package/src/templates/angular/iam/user-permission-matrix.component.html.ejs +231 -0
- package/src/templates/angular/iam/user-permission-matrix.component.scss.ejs +216 -0
- package/src/templates/angular/iam/user-permission-matrix.component.ts.ejs +516 -0
- package/src/templates/angular/shared/base/audit-user-name.pipe.ts.ejs +69 -0
- package/src/templates/angular/shared/base/base-filter.component.ts.ejs +245 -0
- package/src/templates/angular/shared/base/base-form.component.ts.ejs +109 -0
- package/src/templates/angular/shared/base/base-list.component.ts.ejs +507 -0
- package/src/templates/angular/shared/base/filter-types.ts.ejs +55 -0
- package/src/templates/angular/shared/base/input-format.directive.ts.ejs +47 -0
- package/src/templates/angular/shared/base/input-format.ts.ejs +15 -0
- package/src/templates/angular/shared/confirm-with-input-dialog.component.ts.ejs +91 -0
- package/src/templates/angular/shared/confirmation-dialog.component.ts.ejs +80 -0
- package/src/templates/angular/shared/list-styles.css.ejs +103 -0
- package/src/templates/angular/shared/loading-overlay.component.ts.ejs +24 -0
- package/src/templates/angular/shared/resizable.directive.ts.ejs +115 -0
- package/src/templates/angular/shared/snackbar-styles.css.ejs +11 -0
- package/src/templates/fuse-packs/access-control-tools/access-control-sync.js +819 -0
- package/src/templates/fuse-packs/access-control-tools/build-rename-map.js +67 -0
- package/src/templates/fuse-packs/access-control-tools/inject-qa-ids.js +14 -0
- package/src/templates/fuse-packs/access-control-tools/lib/hierarchy-scanner.js +628 -0
- package/src/templates/fuse-packs/access-control-tools/lib/hierarchy-scanner.test.js +323 -0
- package/src/templates/fuse-packs/access-control-tools/lib/html-scanner.js +362 -0
- package/src/templates/fuse-packs/access-control-tools/lib/id-rules.duplicate.test.js +136 -0
- package/src/templates/fuse-packs/access-control-tools/lib/id-rules.js +1095 -0
- package/src/templates/fuse-packs/access-control-tools/lib/ts-component-index.js +482 -0
- package/src/templates/fuse-packs/access-control-tools/output/.gitkeep +0 -0
- package/src/templates/fuse-packs/access-control-tools/run.sh +223 -0
- package/src/templates/fuse-packs/access-control-tools/scan-access-control.js +14 -0
- package/src/templates/fuse-packs/iam-assets/sound/apple-play.mp3 +0 -0
- package/src/templates/fuse-packs/iam-assets/sound/remove.mp3 +0 -0
- package/src/templates/generator/README.md +12 -0
- package/src/templates/testing/ci.cjs +45 -0
- package/src/templates/testing/mock.cjs +149 -0
- package/src/templates/testing/playwright.config.cjs +25 -0
- package/src/templates/testing/serve.cjs +22 -0
- package/src/templates/testing/smoke.spec.cjs +180 -0
- package/src/utils/branding.js +39 -0
- package/src/utils/colors.js +18 -0
- package/src/utils/diff.js +109 -0
- package/src/utils/merger.js +115 -0
- package/src/validator/backend-diagnostics.js +30 -0
- package/src/validator/blueprint-validator.js +276 -0
- package/src/validator/diagnostics.js +608 -0
- package/src/validator/pattern.js +28 -0
- package/test/auth-interceptor.js +84 -0
- package/test/auth-provision-checks.js +297 -0
- package/test/field-preferences.js +145 -0
- package/test/fixtures/field-profile.gdl +7 -0
- package/test/fixtures/mock.jdl +17 -0
- package/test/fixtures/mock.png +0 -0
- package/test/fixtures/performance/config.yml +33 -0
- package/test/fixtures/performance/large.gdl +199 -0
- package/test/fixtures/performance/small.gdl +7 -0
- package/test/fixtures/quality/custom.yml +22 -0
- package/test/fixtures/quality/go-duck.yml +22 -0
- package/test/fixtures/quality/jhipster.yml +30 -0
- package/test/fixtures/quality/representative.gdl +14 -0
- package/test/list-state.js +138 -0
- package/test/micro-functions-layout.js +95 -0
- package/test/performance-generation.js +32 -0
- package/test/pmb-preset.js +127 -0
- package/test/project-workflow.js +111 -0
- package/test/quality-features.js +250 -0
- package/test/verify-commands.js +83 -0
- package/test/verify.js +959 -0
- package/test-files/GDL/example.gdl +15 -0
- package/test-files/JDL/example.jdl +15 -0
- package/test-files/config/crudforge.config.yml +127 -0
- package/test-run.sh +272 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { FormsModule } from '@angular/forms';
|
|
3
|
+
import { form, FormField, required, validate } from '@angular/forms/signals';
|
|
4
|
+
import { MatButton } from '@angular/material/button';
|
|
5
|
+
import { MatDivider } from '@angular/material/divider';
|
|
6
|
+
import { MatIcon } from '@angular/material/icon';
|
|
7
|
+
import {
|
|
8
|
+
MatError,
|
|
9
|
+
MatFormField,
|
|
10
|
+
MatHint,
|
|
11
|
+
MatInput,
|
|
12
|
+
MatLabel,
|
|
13
|
+
MatPrefix,
|
|
14
|
+
} from '@angular/material/input';
|
|
15
|
+
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'security-settings',
|
|
19
|
+
imports: [
|
|
20
|
+
FormsModule,
|
|
21
|
+
MatButton,
|
|
22
|
+
MatFormField,
|
|
23
|
+
MatIcon,
|
|
24
|
+
MatInput,
|
|
25
|
+
MatLabel,
|
|
26
|
+
MatPrefix,
|
|
27
|
+
MatSlideToggle,
|
|
28
|
+
MatDivider,
|
|
29
|
+
FormField,
|
|
30
|
+
MatHint,
|
|
31
|
+
MatError,
|
|
32
|
+
],
|
|
33
|
+
template: `
|
|
34
|
+
<form
|
|
35
|
+
class="grid grid-cols-1 gap-6 md:grid-cols-4 md:gap-8"
|
|
36
|
+
(submit)="save($event)"
|
|
37
|
+
>
|
|
38
|
+
<!-- Password section -->
|
|
39
|
+
<div class="col-span-full">
|
|
40
|
+
<div class="text-lg font-medium">Change your password</div>
|
|
41
|
+
<div class="text-neutral-500">
|
|
42
|
+
You can only change your password twice within 24 hours.
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- Current password -->
|
|
47
|
+
<mat-form-field class="col-span-full md:col-span-3">
|
|
48
|
+
<mat-label>Current password</mat-label>
|
|
49
|
+
<input
|
|
50
|
+
type="password"
|
|
51
|
+
matInput
|
|
52
|
+
[formField]="securitySettingsForm.currentPassword"
|
|
53
|
+
/>
|
|
54
|
+
<mat-icon
|
|
55
|
+
svgIcon="lock-keyhole"
|
|
56
|
+
matPrefix
|
|
57
|
+
></mat-icon>
|
|
58
|
+
<mat-error>
|
|
59
|
+
@for (
|
|
60
|
+
error of securitySettingsForm.currentPassword().errors();
|
|
61
|
+
track error
|
|
62
|
+
) {
|
|
63
|
+
{{ error.message }}
|
|
64
|
+
}
|
|
65
|
+
</mat-error>
|
|
66
|
+
</mat-form-field>
|
|
67
|
+
|
|
68
|
+
<!-- New password -->
|
|
69
|
+
<mat-form-field class="col-span-full md:col-span-3">
|
|
70
|
+
<mat-label>New password</mat-label>
|
|
71
|
+
<input
|
|
72
|
+
type="password"
|
|
73
|
+
matInput
|
|
74
|
+
[formField]="securitySettingsForm.newPassword"
|
|
75
|
+
/>
|
|
76
|
+
<mat-icon
|
|
77
|
+
svgIcon="lock-keyhole"
|
|
78
|
+
matPrefix
|
|
79
|
+
></mat-icon>
|
|
80
|
+
<mat-hint>
|
|
81
|
+
Minimum 8 characters. Must include numbers, letters and special
|
|
82
|
+
characters.
|
|
83
|
+
</mat-hint>
|
|
84
|
+
</mat-form-field>
|
|
85
|
+
|
|
86
|
+
<!-- Confirm new password -->
|
|
87
|
+
<mat-form-field class="col-span-full md:col-span-3">
|
|
88
|
+
<mat-label>Confirm new password</mat-label>
|
|
89
|
+
<input
|
|
90
|
+
type="password"
|
|
91
|
+
matInput
|
|
92
|
+
[formField]="securitySettingsForm.confirmNewPassword"
|
|
93
|
+
/>
|
|
94
|
+
<mat-icon
|
|
95
|
+
svgIcon="lock-keyhole"
|
|
96
|
+
matPrefix
|
|
97
|
+
></mat-icon>
|
|
98
|
+
<mat-error>
|
|
99
|
+
@for (
|
|
100
|
+
error of securitySettingsForm.confirmNewPassword().errors();
|
|
101
|
+
track error
|
|
102
|
+
) {
|
|
103
|
+
{{ error.message }}
|
|
104
|
+
}
|
|
105
|
+
</mat-error>
|
|
106
|
+
</mat-form-field>
|
|
107
|
+
|
|
108
|
+
<!-- Divider -->
|
|
109
|
+
<mat-divider class="col-span-full my-4" />
|
|
110
|
+
|
|
111
|
+
<!-- Security preferences section -->
|
|
112
|
+
<div class="col-span-full">
|
|
113
|
+
<div class="text-lg font-medium">Security preferences</div>
|
|
114
|
+
<div class="text-neutral-500">
|
|
115
|
+
Keep your account more secure with following preferences.
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<!-- Two-step auth -->
|
|
120
|
+
<mat-slide-toggle
|
|
121
|
+
class="col-span-full"
|
|
122
|
+
[formField]="securitySettingsForm.twoStep"
|
|
123
|
+
>
|
|
124
|
+
<div class="ml-2 flex flex-col">
|
|
125
|
+
<div class="font-medium">Enable two-step authentication</div>
|
|
126
|
+
<div class="text-sm text-neutral-500">
|
|
127
|
+
Protects you against password theft by requesting an authentication
|
|
128
|
+
code via SMS on every login.
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</mat-slide-toggle>
|
|
132
|
+
|
|
133
|
+
<!-- Ask to change password -->
|
|
134
|
+
<mat-slide-toggle
|
|
135
|
+
class="col-span-full"
|
|
136
|
+
[formField]="securitySettingsForm.askPasswordChange"
|
|
137
|
+
>
|
|
138
|
+
<div class="ml-2 flex flex-col">
|
|
139
|
+
<div class="font-medium">
|
|
140
|
+
Ask to change password on every 6 months
|
|
141
|
+
</div>
|
|
142
|
+
<div class="text-sm text-neutral-500">
|
|
143
|
+
A simple but an effective way to be protected against data leaks and
|
|
144
|
+
password theft.
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</mat-slide-toggle>
|
|
148
|
+
|
|
149
|
+
<!-- Divider -->
|
|
150
|
+
<mat-divider class="col-span-full my-4" />
|
|
151
|
+
|
|
152
|
+
<!-- Actions -->
|
|
153
|
+
<div class="col-span-full flex items-center justify-end gap-x-4">
|
|
154
|
+
<button
|
|
155
|
+
type="button"
|
|
156
|
+
matButton="outlined"
|
|
157
|
+
>
|
|
158
|
+
Cancel
|
|
159
|
+
</button>
|
|
160
|
+
<button matButton="filled">Save</button>
|
|
161
|
+
</div>
|
|
162
|
+
</form>
|
|
163
|
+
`,
|
|
164
|
+
})
|
|
165
|
+
export default class SecuritySettings {
|
|
166
|
+
// State
|
|
167
|
+
protected securitySettingsModel = signal({
|
|
168
|
+
currentPassword: '',
|
|
169
|
+
newPassword: '',
|
|
170
|
+
confirmNewPassword: '',
|
|
171
|
+
twoStep: true,
|
|
172
|
+
askPasswordChange: false,
|
|
173
|
+
});
|
|
174
|
+
protected securitySettingsForm = form(
|
|
175
|
+
this.securitySettingsModel,
|
|
176
|
+
(schema) => {
|
|
177
|
+
// Require current password when new password and confirm password are set
|
|
178
|
+
required(schema.currentPassword, {
|
|
179
|
+
when: ({ valueOf }) =>
|
|
180
|
+
valueOf(schema.newPassword) !== '' &&
|
|
181
|
+
valueOf(schema.confirmNewPassword) !== '',
|
|
182
|
+
message: 'Current password is required to change password.',
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// Require confirm new password when new password is set
|
|
186
|
+
required(schema.confirmNewPassword, {
|
|
187
|
+
when: ({ valueOf }) => valueOf(schema.newPassword) !== '',
|
|
188
|
+
message: 'Please confirm your new password.',
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// Match new password and confirm new password
|
|
192
|
+
validate(schema.confirmNewPassword, ({ value, valueOf }) => {
|
|
193
|
+
const confirmPassword = value();
|
|
194
|
+
const password = valueOf(schema.newPassword);
|
|
195
|
+
|
|
196
|
+
if (confirmPassword !== password) {
|
|
197
|
+
return {
|
|
198
|
+
kind: 'passwordMismatch',
|
|
199
|
+
message: 'New password and confirmation do not match.',
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return null;
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
save(event: Event) {
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
}
|
|
211
|
+
}
|
package/fuse-starter-pack/fuse-v21.1/src/app/domains/admin/modules/extras/settings/features/team.ts
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { TitleCasePipe } from '@angular/common';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { MatButton, MatIconButton } from '@angular/material/button';
|
|
5
|
+
import { MatOption } from '@angular/material/core';
|
|
6
|
+
import { MatDivider } from '@angular/material/divider';
|
|
7
|
+
import { MatIcon } from '@angular/material/icon';
|
|
8
|
+
import { MatFormField, MatInput } from '@angular/material/input';
|
|
9
|
+
import { MatSelect, MatSelectTrigger } from '@angular/material/select';
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'team-settings',
|
|
13
|
+
imports: [
|
|
14
|
+
FormsModule,
|
|
15
|
+
MatFormField,
|
|
16
|
+
MatIcon,
|
|
17
|
+
MatIconButton,
|
|
18
|
+
MatInput,
|
|
19
|
+
MatButton,
|
|
20
|
+
MatDivider,
|
|
21
|
+
MatOption,
|
|
22
|
+
MatSelect,
|
|
23
|
+
MatSelectTrigger,
|
|
24
|
+
TitleCasePipe,
|
|
25
|
+
],
|
|
26
|
+
template: `
|
|
27
|
+
<div class="grid grid-cols-1 gap-6 md:grid-cols-4 md:gap-8">
|
|
28
|
+
<div class="col-span-full flex items-center gap-x-3">
|
|
29
|
+
<mat-form-field class="flex-auto">
|
|
30
|
+
<input
|
|
31
|
+
matInput
|
|
32
|
+
placeholder="Enter email address"
|
|
33
|
+
/>
|
|
34
|
+
</mat-form-field>
|
|
35
|
+
<button matButton="outlined">Invite</button>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<!-- Divider -->
|
|
39
|
+
<mat-divider class="col-span-full" />
|
|
40
|
+
|
|
41
|
+
<!-- Team members -->
|
|
42
|
+
@for (member of members; track member.id) {
|
|
43
|
+
<div class="col-span-full flex flex-col sm:flex-row sm:items-center">
|
|
44
|
+
<div class="flex items-center">
|
|
45
|
+
<div
|
|
46
|
+
class="flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full"
|
|
47
|
+
>
|
|
48
|
+
@if (member.photo) {
|
|
49
|
+
<img
|
|
50
|
+
class="size-full object-cover"
|
|
51
|
+
[src]="member.photo"
|
|
52
|
+
alt="Member photo"
|
|
53
|
+
/>
|
|
54
|
+
}
|
|
55
|
+
@if (!member.photo) {
|
|
56
|
+
<div
|
|
57
|
+
class="flex size-full items-center justify-center rounded-full bg-gray-200 text-lg text-gray-600 uppercase dark:bg-gray-700 dark:text-gray-200"
|
|
58
|
+
>
|
|
59
|
+
{{ member.name.charAt(0) }}
|
|
60
|
+
</div>
|
|
61
|
+
}
|
|
62
|
+
</div>
|
|
63
|
+
<div class="ml-4">
|
|
64
|
+
<div class="font-medium">{{ member.name }}</div>
|
|
65
|
+
<div class="text-neutral-500">{{ member.email }}</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="mt-4 flex items-center sm:mt-0 sm:ml-auto">
|
|
69
|
+
<div class="order-2 ml-4 sm:order-1 sm:ml-0">
|
|
70
|
+
<mat-form-field class="fuse-mat-dense w-32">
|
|
71
|
+
<mat-select
|
|
72
|
+
[panelClass]="'w-72 min-w-72 max-w-72 h-auto max-h-none'"
|
|
73
|
+
[value]="member.role"
|
|
74
|
+
[disableOptionCentering]="true"
|
|
75
|
+
#roleSelect="matSelect"
|
|
76
|
+
>
|
|
77
|
+
<mat-select-trigger>
|
|
78
|
+
<span>Role:</span>
|
|
79
|
+
<span class="ml-1 font-medium">{{
|
|
80
|
+
roleSelect.value | titlecase
|
|
81
|
+
}}</span>
|
|
82
|
+
</mat-select-trigger>
|
|
83
|
+
@for (role of roles; track role.value) {
|
|
84
|
+
<mat-option
|
|
85
|
+
class="h-auto py-4 leading-none"
|
|
86
|
+
[value]="role.value"
|
|
87
|
+
>
|
|
88
|
+
<div class="font-medium">
|
|
89
|
+
{{ role.label }}
|
|
90
|
+
</div>
|
|
91
|
+
<div
|
|
92
|
+
class="leading-normal mt-1.5 text-sm whitespace-normal text-neutral-500"
|
|
93
|
+
>
|
|
94
|
+
{{ role.description }}
|
|
95
|
+
</div>
|
|
96
|
+
</mat-option>
|
|
97
|
+
}
|
|
98
|
+
</mat-select>
|
|
99
|
+
</mat-form-field>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="order-1 sm:order-2 sm:ml-3">
|
|
102
|
+
<button mat-icon-button>
|
|
103
|
+
<mat-icon
|
|
104
|
+
class="text-neutral-500"
|
|
105
|
+
svgIcon="trash"
|
|
106
|
+
></mat-icon>
|
|
107
|
+
</button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
}
|
|
112
|
+
</div>
|
|
113
|
+
`,
|
|
114
|
+
})
|
|
115
|
+
export default class TeamSettings {
|
|
116
|
+
// State
|
|
117
|
+
protected roles = [
|
|
118
|
+
{
|
|
119
|
+
label: 'Read',
|
|
120
|
+
value: 'read',
|
|
121
|
+
description:
|
|
122
|
+
'Can read and clone this repository. Can also open and comment on issues and pull requests.',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: 'Write',
|
|
126
|
+
value: 'write',
|
|
127
|
+
description:
|
|
128
|
+
'Can read, clone, and push to this repository. Can also manage issues and pull requests.',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: 'Admin',
|
|
132
|
+
value: 'admin',
|
|
133
|
+
description:
|
|
134
|
+
'Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators.',
|
|
135
|
+
},
|
|
136
|
+
];
|
|
137
|
+
protected members = [
|
|
138
|
+
{
|
|
139
|
+
id: '1',
|
|
140
|
+
photo: null,
|
|
141
|
+
name: 'Dejesus Michael',
|
|
142
|
+
email: 'dejesusmichael@mail.org',
|
|
143
|
+
role: 'admin',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: '2',
|
|
147
|
+
photo: null,
|
|
148
|
+
name: 'Mclaughlin Steele',
|
|
149
|
+
email: 'mclaughlinsteele@mail.me',
|
|
150
|
+
role: 'admin',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: '3',
|
|
154
|
+
photo: null,
|
|
155
|
+
name: 'Laverne Dodson',
|
|
156
|
+
email: 'lavernedodson@mail.ca',
|
|
157
|
+
role: 'write',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: '4',
|
|
161
|
+
photo: null,
|
|
162
|
+
name: 'Trudy Berg',
|
|
163
|
+
email: 'trudyberg@mail.us',
|
|
164
|
+
role: 'read',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: '5',
|
|
168
|
+
photo: null,
|
|
169
|
+
name: 'Lamb Underwood',
|
|
170
|
+
email: 'lambunderwood@mail.me',
|
|
171
|
+
role: 'read',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: '6',
|
|
175
|
+
photo: null,
|
|
176
|
+
name: 'Mcleod Wagner',
|
|
177
|
+
email: 'mcleodwagner@mail.biz',
|
|
178
|
+
role: 'read',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: '7',
|
|
182
|
+
photo: null,
|
|
183
|
+
name: 'Shannon Kennedy',
|
|
184
|
+
email: 'shannonkennedy@mail.ca',
|
|
185
|
+
role: 'read',
|
|
186
|
+
},
|
|
187
|
+
];
|
|
188
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Component, inject } from '@angular/core';
|
|
2
|
+
import { MatFormField } from '@angular/material/input';
|
|
3
|
+
import { MatOption, MatSelect } from '@angular/material/select';
|
|
4
|
+
import { MatTabLink, MatTabNav, MatTabNavPanel } from '@angular/material/tabs';
|
|
5
|
+
import {
|
|
6
|
+
Router,
|
|
7
|
+
RouterLink,
|
|
8
|
+
RouterLinkActive,
|
|
9
|
+
RouterOutlet,
|
|
10
|
+
} from '@angular/router';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'settings-layout',
|
|
14
|
+
imports: [
|
|
15
|
+
RouterOutlet,
|
|
16
|
+
MatTabNav,
|
|
17
|
+
MatTabLink,
|
|
18
|
+
MatTabNavPanel,
|
|
19
|
+
RouterLink,
|
|
20
|
+
RouterLinkActive,
|
|
21
|
+
MatFormField,
|
|
22
|
+
MatSelect,
|
|
23
|
+
MatOption,
|
|
24
|
+
],
|
|
25
|
+
template: `
|
|
26
|
+
<div
|
|
27
|
+
class="@container mx-auto flex w-full max-w-5xl flex-auto flex-col gap-4 p-6 sm:gap-6 lg:p-10 lg:pt-8"
|
|
28
|
+
>
|
|
29
|
+
<!-- Header -->
|
|
30
|
+
<div class="flex items-center justify-between gap-x-3">
|
|
31
|
+
<div class="text-xl font-semibold tracking-tighter sm:text-2xl">
|
|
32
|
+
Settings
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<!-- Tabs -->
|
|
37
|
+
<nav
|
|
38
|
+
class="mb-2 hidden sm:flex"
|
|
39
|
+
mat-tab-nav-bar
|
|
40
|
+
[mat-stretch-tabs]="false"
|
|
41
|
+
[tabPanel]="tabPanel"
|
|
42
|
+
ngSkipHydration
|
|
43
|
+
>
|
|
44
|
+
@for (link of links; track link.id) {
|
|
45
|
+
<a
|
|
46
|
+
mat-tab-link
|
|
47
|
+
routerLinkActive
|
|
48
|
+
[routerLink]="link.route"
|
|
49
|
+
[active]="rla.isActive"
|
|
50
|
+
#rla="routerLinkActive"
|
|
51
|
+
>
|
|
52
|
+
{{ link.label }}
|
|
53
|
+
</a>
|
|
54
|
+
}
|
|
55
|
+
</nav>
|
|
56
|
+
|
|
57
|
+
<!-- Mobile navigation -->
|
|
58
|
+
<mat-form-field class="mb-2 w-full sm:hidden">
|
|
59
|
+
<mat-select
|
|
60
|
+
[value]="router.url"
|
|
61
|
+
(selectionChange)="router.navigateByUrl($event.value)"
|
|
62
|
+
#select
|
|
63
|
+
>
|
|
64
|
+
@for (link of links; track link.id) {
|
|
65
|
+
<mat-option [value]="link.route">{{ link.label }}</mat-option>
|
|
66
|
+
}
|
|
67
|
+
</mat-select>
|
|
68
|
+
</mat-form-field>
|
|
69
|
+
|
|
70
|
+
<!-- Tab panel -->
|
|
71
|
+
<mat-tab-nav-panel #tabPanel>
|
|
72
|
+
<router-outlet />
|
|
73
|
+
</mat-tab-nav-panel>
|
|
74
|
+
</div>
|
|
75
|
+
`,
|
|
76
|
+
})
|
|
77
|
+
export default class SettingsLayout {
|
|
78
|
+
// Dependencies
|
|
79
|
+
protected router = inject(Router);
|
|
80
|
+
|
|
81
|
+
// State
|
|
82
|
+
protected links = [
|
|
83
|
+
{
|
|
84
|
+
id: 'account',
|
|
85
|
+
label: 'Account',
|
|
86
|
+
route: '/admin/settings/account',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'security',
|
|
90
|
+
label: 'Security',
|
|
91
|
+
route: '/admin/settings/security',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'plan-and-billing',
|
|
95
|
+
label: 'Plan and Billing',
|
|
96
|
+
route: '/admin/settings/plan-and-billing',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'notifications',
|
|
100
|
+
label: 'Notifications',
|
|
101
|
+
route: '/admin/settings/notifications',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'team',
|
|
105
|
+
label: 'Team',
|
|
106
|
+
route: '/admin/settings/team',
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
|
|
3
|
+
const routes: Routes = [
|
|
4
|
+
{
|
|
5
|
+
path: '',
|
|
6
|
+
loadComponent: () => import('./layout'),
|
|
7
|
+
children: [
|
|
8
|
+
{
|
|
9
|
+
path: '',
|
|
10
|
+
pathMatch: 'full',
|
|
11
|
+
redirectTo: 'account',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
path: 'account',
|
|
15
|
+
loadComponent: () => import('./features/account'),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
path: 'security',
|
|
19
|
+
loadComponent: () => import('./features/security'),
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
path: 'plan-and-billing',
|
|
23
|
+
loadComponent: () => import('./features/plan-and-billing'),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: 'notifications',
|
|
27
|
+
loadComponent: () => import('./features/notifications'),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
path: 'team',
|
|
31
|
+
loadComponent: () => import('./features/team'),
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export default routes;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-welcome',
|
|
5
|
+
standalone: true,
|
|
6
|
+
template: `
|
|
7
|
+
<div class="flex flex-col flex-auto items-center justify-center p-6 sm:p-10">
|
|
8
|
+
<img
|
|
9
|
+
src="/images/logo/logo.png"
|
|
10
|
+
class="mb-8 h-20 w-auto max-w-[18rem] object-contain sm:h-24 sm:max-w-[22rem]"
|
|
11
|
+
alt="CRUDForge logo"
|
|
12
|
+
/>
|
|
13
|
+
<div class="text-4xl font-extrabold tracking-tight text-center sm:text-5xl">
|
|
14
|
+
Welcome to CRUDForge!
|
|
15
|
+
</div>
|
|
16
|
+
<div class="mt-4 text-lg text-center text-secondary">
|
|
17
|
+
Select a module from the sidebar navigation to get started.
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
`
|
|
21
|
+
})
|
|
22
|
+
export default class WelcomeComponent {}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import { AdminLayout } from './layout/layout';
|
|
3
|
+
|
|
4
|
+
const routes: Routes = [
|
|
5
|
+
{
|
|
6
|
+
path: '',
|
|
7
|
+
component: AdminLayout,
|
|
8
|
+
children: [
|
|
9
|
+
// Redirect empty path to '/auth/sign-in'
|
|
10
|
+
{ path: '', pathMatch: 'full', redirectTo: '/auth/sign-in' },
|
|
11
|
+
|
|
12
|
+
// -----------------------------------------------------------------------
|
|
13
|
+
// Dashboards
|
|
14
|
+
// -----------------------------------------------------------------------
|
|
15
|
+
{
|
|
16
|
+
path: 'dashboards',
|
|
17
|
+
loadChildren: () => import('./modules/dashboards/routes'),
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
// -----------------------------------------------------------------------
|
|
21
|
+
// General
|
|
22
|
+
// -----------------------------------------------------------------------
|
|
23
|
+
{
|
|
24
|
+
path: 'academy',
|
|
25
|
+
loadChildren: () => import('./modules/apps/academy/routes'),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
path: 'contacts',
|
|
29
|
+
loadChildren: () => import('./modules/apps/contacts/routes'),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
path: 'file-manager',
|
|
33
|
+
loadChildren: () => import('./modules/apps/file-manager/routes'),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: 'help-center',
|
|
37
|
+
loadChildren: () => import('./modules/apps/help-center/routes'),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
path: 'notes',
|
|
41
|
+
loadChildren: () => import('./modules/apps/notes/routes'),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: 'tasks',
|
|
45
|
+
loadChildren: () => import('./modules/apps/tasks/routes'),
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
// -----------------------------------------------------------------------
|
|
49
|
+
// Extras
|
|
50
|
+
// -----------------------------------------------------------------------
|
|
51
|
+
{
|
|
52
|
+
path: 'welcome',
|
|
53
|
+
loadComponent: () => import('./modules/extras/welcome/welcome.component'),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: 'settings',
|
|
57
|
+
loadChildren: () => import('./modules/extras/settings/routes'),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
path: 'notifications',
|
|
61
|
+
loadChildren: () => import('./modules/extras/notifications/routes'),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
path: 'error',
|
|
65
|
+
loadChildren: () => import('./modules/extras/error/routes'),
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
// -----------------------------------------------------------------------
|
|
69
|
+
// Documentation
|
|
70
|
+
// -----------------------------------------------------------------------
|
|
71
|
+
{
|
|
72
|
+
path: 'documentation',
|
|
73
|
+
loadChildren: () => import('./modules/documentation/routes'),
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
// 404
|
|
77
|
+
{
|
|
78
|
+
path: '404',
|
|
79
|
+
pathMatch: 'full',
|
|
80
|
+
loadComponent: () =>
|
|
81
|
+
import('./modules/extras/error/features/error-page'),
|
|
82
|
+
data: { errorCode: 404, title: 'Page not found' }
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
// Catch all
|
|
86
|
+
{
|
|
87
|
+
path: '**',
|
|
88
|
+
loadComponent: () => import('./modules/extras/error/features/error-page'),
|
|
89
|
+
data: { errorCode: 404, title: 'Page not found' }
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
export default routes;
|