create-mithaq 0.1.1 → 0.2.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/LICENSES/openstatus-time-picker.txt +21 -0
- package/index.js +457 -63
- package/package.json +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/package.json +5 -3
- package/template/apps/{asas-platform → asas-backoffice}/src/api.ts +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/src/auth-frame.tsx +12 -12
- package/template/apps/asas-backoffice/src/components.ts +35 -0
- package/template/apps/asas-backoffice/src/first-user.ts +14 -0
- package/template/apps/{asas-platform → asas-backoffice}/src/links.ts +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/src/locale-switch.tsx +7 -5
- package/template/apps/asas-backoffice/src/no-organization.tsx +5 -0
- package/template/apps/asas-backoffice/src/redirect.ts +1 -0
- package/template/apps/{asas-platform → asas-backoffice}/src/request-headers.ts +1 -1
- package/template/apps/asas-backoffice/src/routeTree.gen.ts +206 -0
- package/template/apps/asas-backoffice/src/router.tsx +18 -0
- package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/files.ts +10 -0
- package/template/apps/{asas-platform/src/routes/(screens)/platform → asas-backoffice/src/routes/(screens)/backoffice}/screen.json +426 -64
- package/template/apps/{asas-platform/src/routes/(screens)/platform → asas-backoffice/src/routes/(screens)/backoffice}/types.ts +18 -0
- package/template/apps/{asas-platform/src/routes/(screens)/platform.$.tsx → asas-backoffice/src/routes/(screens)/backoffice.$.tsx} +4 -4
- package/template/apps/{asas-platform/src/routes/(screens)/platform.index.tsx → asas-backoffice/src/routes/(screens)/backoffice.index.tsx} +3 -3
- package/template/apps/{asas-platform/src/routes/(screens)/platform.tsx → asas-backoffice/src/routes/(screens)/backoffice.tsx} +3 -3
- package/template/apps/{asas-platform → asas-backoffice}/src/routes/__root.tsx +2 -2
- package/template/apps/asas-backoffice/src/routes/api/$.ts +34 -0
- package/template/apps/asas-backoffice/src/routes/auth.create-first-user.tsx +113 -0
- package/template/apps/{asas-platform → asas-backoffice}/src/routes/auth.sign-in.tsx +9 -4
- package/template/apps/{asas-platform → asas-backoffice}/src/routes/unauthorized.tsx +24 -12
- package/template/apps/{asas-platform → asas-backoffice}/src/screen-form.tsx +5 -3
- package/template/apps/{asas-platform → asas-backoffice}/src/screen-list.tsx +6 -5
- package/template/apps/{asas-platform → asas-backoffice}/src/screen-names.ts +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/src/screens.tsx +46 -26
- package/template/apps/asas-backoffice/src/server.ts +30 -0
- package/template/apps/{asas-platform → asas-backoffice}/src/slide.ts +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/src/start.ts +1 -1
- package/template/apps/{asas-platform → asas-backoffice}/src/styles.css +9 -7
- package/template/apps/{asas-platform → asas-backoffice}/tsconfig.json +2 -2
- package/template/apps/{asas-platform → asas-backoffice}/vite.config.ts +7 -1
- package/template/apps/asas-tanstack/package.json +4 -2
- package/template/apps/asas-tanstack/src/api.ts +1 -1
- package/template/apps/asas-tanstack/src/auth-frame.tsx +12 -12
- package/template/apps/asas-tanstack/src/choose-password.tsx +150 -0
- package/template/apps/asas-tanstack/src/components.ts +35 -0
- package/template/apps/asas-tanstack/src/copy.ts +416 -79
- package/template/apps/asas-tanstack/src/first-run.ts +16 -0
- package/template/apps/asas-tanstack/src/links.ts +1 -1
- package/template/apps/asas-tanstack/src/locale-switch.tsx +7 -5
- package/template/apps/asas-tanstack/src/no-organization.tsx +108 -0
- package/template/apps/asas-tanstack/src/redirect.ts +20 -1
- package/template/apps/asas-tanstack/src/request-headers.ts +1 -1
- package/template/apps/asas-tanstack/src/routeTree.gen.ts +42 -0
- package/template/apps/asas-tanstack/src/router.tsx +12 -1
- package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/files.ts +9 -2
- package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/screen.json +475 -116
- package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/types.ts +4 -2
- package/template/apps/asas-tanstack/src/routes/(screens)/portal/files.ts +7 -2
- package/template/apps/asas-tanstack/src/routes/(screens)/portal/screen.json +83 -319
- package/template/apps/asas-tanstack/src/routes/(screens)/portal/types.ts +3 -1
- package/template/apps/asas-tanstack/src/routes/__root.tsx +1 -1
- package/template/apps/asas-tanstack/src/routes/auth.accept-invitation.tsx +14 -7
- package/template/apps/asas-tanstack/src/routes/auth.first-run.tsx +114 -0
- package/template/apps/asas-tanstack/src/routes/auth.forgot-password.tsx +2 -2
- package/template/apps/asas-tanstack/src/routes/auth.handoff.ts +5 -5
- package/template/apps/asas-tanstack/src/routes/auth.reset-password.tsx +7 -100
- package/template/apps/asas-tanstack/src/routes/auth.set-password.tsx +16 -0
- package/template/apps/asas-tanstack/src/routes/auth.sign-in.tsx +27 -15
- package/template/apps/asas-tanstack/src/routes/auth.sign-up.tsx +59 -38
- package/template/apps/asas-tanstack/src/routes/index.tsx +18 -14
- package/template/apps/asas-tanstack/src/routes/unauthorized.tsx +24 -12
- package/template/apps/asas-tanstack/src/screen-form.tsx +5 -3
- package/template/apps/asas-tanstack/src/screen-list.tsx +6 -5
- package/template/apps/asas-tanstack/src/screen-names.ts +1 -1
- package/template/apps/asas-tanstack/src/screens.tsx +46 -26
- package/template/apps/asas-tanstack/src/server.ts +10 -0
- package/template/apps/asas-tanstack/src/slide.ts +1 -1
- package/template/apps/asas-tanstack/src/styles.css +7 -3
- package/template/apps/asas-tanstack/tsconfig.json +2 -2
- package/template/apps/asas-tanstack/vite.config.ts +7 -1
- package/template/package.json +3 -3
- package/template/templates/asas/.claude/skills/add-field/SKILL.md +27 -0
- package/template/templates/asas/.claude/skills/add-kayan/SKILL.md +26 -0
- package/template/templates/asas/.claude/skills/eject-admin-piece/SKILL.md +28 -0
- package/template/templates/asas/.claude/skills/upgrade-mithaq/SKILL.md +35 -0
- package/template/templates/asas/.env.example +22 -5
- package/template/templates/asas/AGENTS.md +101 -0
- package/template/templates/asas/CLAUDE.md +1 -0
- package/template/templates/asas/README.md +1056 -0
- package/template/templates/asas/package.json +19 -4
- package/template/templates/asas/src/asas.ts +81 -56
- package/template/templates/asas/src/{platform-http.ts → backoffice-http.ts} +48 -27
- package/template/templates/asas/src/dev-setup.ts +112 -0
- package/template/templates/asas/src/local-database.ts +22 -0
- package/template/templates/asas/src/messages/account.json +129 -103
- package/template/templates/asas/src/messages/auditLog.json +223 -105
- package/template/templates/asas/src/messages/backofficeLog.json +132 -0
- package/template/templates/asas/src/messages/courses.json +256 -214
- package/template/templates/asas/src/messages/enrollments.json +45 -27
- package/template/templates/asas/src/messages/invitation.json +72 -56
- package/template/templates/asas/src/messages/localUsers.json +34 -28
- package/template/templates/asas/src/messages/media.json +31 -21
- package/template/templates/asas/src/messages/member.json +59 -39
- package/template/templates/asas/src/messages/memberRoles.json +37 -31
- package/template/templates/asas/src/messages/mithaq.json +206 -162
- package/template/templates/asas/src/messages/organization.json +63 -41
- package/template/templates/asas/src/messages/organizationRole.json +59 -47
- package/template/templates/asas/src/messages/roles.json +59 -45
- package/template/templates/asas/src/messages/session.json +99 -79
- package/template/templates/asas/src/messages/sessions.json +110 -80
- package/template/templates/asas/src/messages/settings.json +51 -53
- package/template/templates/asas/src/messages/tags.json +31 -21
- package/template/templates/asas/src/messages/user.json +109 -87
- package/template/templates/asas/src/messages/verification.json +59 -47
- package/template/templates/asas/src/migrations/20261014221355_tags_restrict/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261014221355_tags_restrict/snapshot.json +3881 -0
- package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/snapshot.json +3894 -0
- package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/snapshot.json +3907 -0
- package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/snapshot.json +3907 -0
- package/template/templates/asas/src/migrations/20261015042444_organization_names/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261015042444_organization_names/snapshot.json +3920 -0
- package/template/templates/asas/src/migrations/20261015053212_member_last_seen/migration.sql +1 -0
- package/template/templates/asas/src/migrations/20261015053212_member_last_seen/snapshot.json +3933 -0
- package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/migration.sql +15 -0
- package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/snapshot.json +4113 -0
- package/template/templates/asas/src/migrations/20261015095752_portal/migration.sql +2 -0
- package/template/templates/asas/src/migrations/20261015095752_portal/snapshot.json +4113 -0
- package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/migration.sql +9 -0
- package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/snapshot.json +4302 -0
- package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/migration.sql +27 -0
- package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/snapshot.json +4289 -0
- package/template/templates/asas/src/migrations/schema.ts +1 -0
- package/template/templates/asas/src/mithaq.ts +4 -406
- package/template/templates/asas/src/organizations.ts +3 -0
- package/template/templates/asas/src/seed.ts +147 -45
- package/template/templates/asas/src/{ui-platform → ui-backoffice}/home.tsx +9 -9
- package/template/templates/asas/src/ui-backoffice/organization-actions.tsx +121 -0
- package/template/templates/asas/src/{ui-platform → ui-backoffice}/record-page.tsx +4 -4
- package/template/templates/asas/src/{ui-platform → ui-backoffice}/role-cells.tsx +13 -6
- package/template/templates/asas/src/{ui-platform → ui-backoffice}/user-actions.tsx +46 -48
- package/template/templates/asas/src/ui-dashboard/dashboard.tsx +10 -4
- package/template/templates/asas/src/ui-dashboard/home.tsx +73 -0
- package/template/templates/asas/src/ui-dashboard/members-card.tsx +147 -0
- package/template/templates/asas/src/ui-dashboard/members.tsx +637 -438
- package/template/templates/asas/src/ui-dashboard/versions.tsx +22 -8
- package/template/templates/asas/src/ui-portal/courses-home.tsx +96 -0
- package/template/templates/asas/src/ui-portal/home.tsx +9 -13
- package/template/templates/features/audit-log/audit-log/audit-log.ts +284 -0
- package/template/templates/features/audit-log/backoffice-log/backoffice-log.ts +67 -0
- package/template/templates/features/audit-log/index.ts +4 -0
- package/template/templates/features/audit-log/package.json +13 -0
- package/template/templates/features/auth/index.ts +11 -0
- package/template/templates/{asas/src → features/auth}/local-users/local-users.ts +7 -7
- package/template/templates/{auth → features/auth}/package.json +2 -3
- package/template/templates/{asas/src/kayan → features}/auth/user/account.access.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/account.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/invitation.access.ts +1 -1
- package/template/templates/{asas/src/kayan → features}/auth/user/invitation.ts +3 -3
- package/template/templates/{asas/src/kayan → features}/auth/user/member.access.ts +4 -4
- package/template/templates/{asas/src/kayan → features}/auth/user/member.screens.ts +5 -5
- package/template/templates/{asas/src/kayan → features}/auth/user/member.ts +4 -3
- package/template/templates/{asas/src/kayan → features}/auth/user/organization.access.ts +6 -6
- package/template/templates/{asas/src/kayan → features}/auth/user/organization.screens.ts +6 -6
- package/template/templates/{asas/src/kayan → features}/auth/user/organization.ts +2 -1
- package/template/templates/{asas/src/kayan → features}/auth/user/organizationRole.access.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/organizationRole.ts +3 -3
- package/template/templates/{asas/src/kayan → features}/auth/user/session.access.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/session.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/user.access.ts +8 -7
- package/template/templates/{asas/src/kayan → features}/auth/user/user.screens.ts +9 -9
- package/template/templates/{asas/src/kayan → features}/auth/user/user.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/verification.access.ts +2 -2
- package/template/templates/{asas/src/kayan → features}/auth/user/verification.ts +2 -2
- package/template/templates/{asas/src → features/courses}/courses/courses.ts +122 -133
- package/template/templates/features/courses/courses/cover-reads.ts +33 -0
- package/template/templates/features/courses/courses/ui/archived-badge.tsx +9 -0
- package/template/templates/{asas/src → features/courses}/courses/ui/fee-cell.tsx +1 -1
- package/template/templates/{asas/src → features/courses}/courses/ui/status-cell.tsx +5 -3
- package/template/templates/features/courses/courses/ui/unpublish-button.tsx +15 -0
- package/template/templates/features/courses/domain/archive.ts +39 -0
- package/template/templates/features/courses/domain/on-offer.ts +6 -0
- package/template/templates/features/courses/enrollments/enrollments.ts +309 -0
- package/template/templates/{asas/src → features/courses}/enrollments/ui/session-cell.tsx +17 -7
- package/template/templates/{asas/src → features/courses/enrollments}/ui/session-labels.tsx +3 -3
- package/template/templates/features/courses/index.ts +8 -0
- package/template/templates/features/courses/package.json +24 -0
- package/template/templates/features/courses/portal/ui/catalogue.tsx +86 -0
- package/template/templates/features/courses/portal/ui/course.tsx +176 -0
- package/template/templates/features/courses/portal/ui/enrollments.tsx +170 -0
- package/template/templates/features/courses/portal/ui/parts.tsx +95 -0
- package/template/templates/features/courses/portal/ui/reads.ts +76 -0
- package/template/templates/features/courses/portal/ui/rules.ts +87 -0
- package/template/templates/features/courses/portal/ui/shell.tsx +194 -0
- package/template/templates/features/courses/sessions/seats.ts +42 -0
- package/template/templates/{asas/src → features/courses}/sessions/sessions.ts +45 -14
- package/template/templates/features/media/index.ts +10 -0
- package/template/templates/{asas/src → features/media}/media/media.ts +34 -40
- package/template/templates/{asas/src → features/media}/media/ui/preview.tsx +2 -2
- package/template/templates/features/media/package.json +19 -0
- package/template/templates/features/roles/index.ts +4 -0
- package/template/templates/{asas/src → features/roles}/member-roles/member-roles.ts +15 -15
- package/template/templates/features/roles/package.json +21 -0
- package/template/templates/{asas/src → features/roles}/roles/roles.ts +23 -23
- package/template/templates/{asas/src → features/roles}/roles/ui/role-form.tsx +65 -24
- package/template/templates/{asas/src → features/roles}/roles/ui/roles.tsx +49 -25
- package/template/templates/features/settings/index.ts +3 -0
- package/template/templates/features/settings/package.json +13 -0
- package/template/templates/{asas/src → features/settings}/settings/settings.ts +12 -17
- package/template/templates/features/tags/index.ts +3 -0
- package/template/templates/features/tags/package.json +14 -0
- package/template/templates/{asas/src → features/tags}/tags/tags.ts +15 -15
- package/template/templates/mithaq/package.json +33 -0
- package/template/templates/mithaq/src/mail/index.ts +32 -0
- package/template/templates/mithaq/src/mail/mailers.ts +36 -0
- package/template/templates/{asas/src/audit-log/sink.ts → mithaq/src/mithaq/audit-sink.ts} +31 -9
- package/template/templates/{auth/src/platform-roles.ts → mithaq/src/mithaq/auth/backoffice-roles.ts} +44 -23
- package/template/templates/mithaq/src/mithaq/auth/index.ts +1859 -0
- package/template/templates/mithaq/src/mithaq/auth/organizations.ts +80 -0
- package/template/templates/{asas/src → mithaq/src/mithaq}/pages.ts +16 -7
- package/template/templates/mithaq/src/mithaq/rich-text-nodes.ts +19 -0
- package/template/templates/mithaq/src/mithaq.ts +593 -0
- package/template/templates/mithaq/src/roles/default-member-roles.ts +29 -0
- package/template/templates/{asas → mithaq}/src/roles/grants.ts +1 -1
- package/template/templates/mithaq/src/roles/member-access.ts +11 -0
- package/template/templates/{asas/src → mithaq/src/roles}/statements.ts +6 -4
- package/template/templates/mithaq/src/roles/system-roles.ts +16 -0
- package/template/templates/{asas/src → mithaq/src/roles}/tenant-access.ts +96 -57
- package/template/templates/{asas/src → mithaq/src/roles}/tenant-roles.ts +84 -25
- package/template/templates/{asas → mithaq}/src/steps/expected-updated-at.ts +2 -2
- package/template/templates/{asas → mithaq}/src/storage/index.ts +3 -1
- package/template/templates/mithaq/src/ui/activity-page.tsx +33 -0
- package/template/templates/mithaq/src/ui/activity.tsx +527 -0
- package/template/templates/{asas → mithaq}/src/ui/app-shell.tsx +27 -19
- package/template/templates/mithaq/src/ui/rich-text-nodes.tsx +33 -0
- package/template/templates/{asas → mithaq}/src/ui/screen-nav.tsx +1 -1
- package/template/templates/{asas → mithaq}/src/ui/top-shell.tsx +8 -8
- package/template/apps/asas-platform/src/components/mithaq/cells.tsx +0 -112
- package/template/apps/asas-platform/src/components/mithaq/controls.tsx +0 -650
- package/template/apps/asas-platform/src/components/mithaq/field-shell.tsx +0 -53
- package/template/apps/asas-platform/src/components/mithaq/filter-operators.ts +0 -108
- package/template/apps/asas-platform/src/components/mithaq/form.tsx +0 -1467
- package/template/apps/asas-platform/src/components/mithaq/list-columns.tsx +0 -108
- package/template/apps/asas-platform/src/components/mithaq/list-filters.tsx +0 -368
- package/template/apps/asas-platform/src/components/mithaq/list-pagination.tsx +0 -153
- package/template/apps/asas-platform/src/components/mithaq/list-query.ts +0 -432
- package/template/apps/asas-platform/src/components/mithaq/list-selection.tsx +0 -74
- package/template/apps/asas-platform/src/components/mithaq/list.tsx +0 -865
- package/template/apps/asas-platform/src/components/mithaq/nav.tsx +0 -871
- package/template/apps/asas-platform/src/components/mithaq/nodes.tsx +0 -1024
- package/template/apps/asas-platform/src/components/mithaq/relationship-cell.tsx +0 -127
- package/template/apps/asas-platform/src/components/mithaq/relationship-control.tsx +0 -400
- package/template/apps/asas-platform/src/components/mithaq/rich-text-nodes.ts +0 -6
- package/template/apps/asas-platform/src/components/mithaq/rich-text.tsx +0 -1083
- package/template/apps/asas-platform/src/components/mithaq/upload.tsx +0 -686
- package/template/apps/asas-platform/src/components/ui/drawer.tsx +0 -216
- package/template/apps/asas-platform/src/redirect.ts +0 -1
- package/template/apps/asas-platform/src/routeTree.gen.ts +0 -181
- package/template/apps/asas-platform/src/router.tsx +0 -7
- package/template/apps/asas-platform/src/routes/(screens)/platform/files.ts +0 -4
- package/template/apps/asas-platform/src/routes/api/$.ts +0 -30
- package/template/apps/asas-platform/src/server.ts +0 -20
- package/template/apps/asas-tanstack/src/components/mithaq/cells.tsx +0 -112
- package/template/apps/asas-tanstack/src/components/mithaq/controls.tsx +0 -650
- package/template/apps/asas-tanstack/src/components/mithaq/field-shell.tsx +0 -53
- package/template/apps/asas-tanstack/src/components/mithaq/filter-operators.ts +0 -108
- package/template/apps/asas-tanstack/src/components/mithaq/form.tsx +0 -1467
- package/template/apps/asas-tanstack/src/components/mithaq/list-columns.tsx +0 -108
- package/template/apps/asas-tanstack/src/components/mithaq/list-filters.tsx +0 -368
- package/template/apps/asas-tanstack/src/components/mithaq/list-pagination.tsx +0 -153
- package/template/apps/asas-tanstack/src/components/mithaq/list-query.ts +0 -432
- package/template/apps/asas-tanstack/src/components/mithaq/list-selection.tsx +0 -74
- package/template/apps/asas-tanstack/src/components/mithaq/list.tsx +0 -865
- package/template/apps/asas-tanstack/src/components/mithaq/nav.tsx +0 -871
- package/template/apps/asas-tanstack/src/components/mithaq/nodes.tsx +0 -1024
- package/template/apps/asas-tanstack/src/components/mithaq/relationship-cell.tsx +0 -127
- package/template/apps/asas-tanstack/src/components/mithaq/relationship-control.tsx +0 -400
- package/template/apps/asas-tanstack/src/components/mithaq/rich-text-nodes.ts +0 -6
- package/template/apps/asas-tanstack/src/components/mithaq/rich-text.tsx +0 -1083
- package/template/apps/asas-tanstack/src/components/mithaq/upload.tsx +0 -686
- package/template/apps/asas-tanstack/src/components/ui/drawer.tsx +0 -215
- package/template/templates/asas/src/audit-log/audit-log.ts +0 -187
- package/template/templates/asas/src/audit-log/ui/activity.tsx +0 -243
- package/template/templates/asas/src/courses/ui/archive-button.tsx +0 -25
- package/template/templates/asas/src/courses/ui/no-courses-on-offer.tsx +0 -11
- package/template/templates/asas/src/courses/ui/on-offer.ts +0 -6
- package/template/templates/asas/src/enrollments/enrollments.ts +0 -137
- package/template/templates/asas/src/rich-text-nodes.ts +0 -11
- package/template/templates/asas/src/roles.ts +0 -16
- package/template/templates/asas/src/ui/rich-text-nodes.tsx +0 -15
- package/template/templates/asas/src/ui-platform/organization-actions.tsx +0 -114
- package/template/templates/auth/src/index.ts +0 -690
- /package/template/apps/{asas-platform → asas-backoffice}/components.json +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/gitignore +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/public/favicon.svg +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/accordion.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/alert-dialog.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/avatar.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/badge.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/breadcrumb.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/button-group.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/button.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/calendar.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/card.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/chart.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/checkbox.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/collapsible.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/combobox.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/dialog.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/direction.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/directional-icon.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/dropdown-menu.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/field.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/input-group.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/input-otp.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/input.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/label.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/popover.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/radio-group.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/resizable.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/scroll-area.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/select.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/separator.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/sheet.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/sidebar.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/skeleton.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/slider.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/spinner.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/switch.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/table.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/tabs.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/textarea.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/toggle-group.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/toggle.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/components/ui/tooltip.tsx +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/copy.ts +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/hooks/use-mobile.ts +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/lib/utils.ts +0 -0
- /package/template/apps/{asas-platform → asas-backoffice}/src/theme.ts +0 -0
- /package/template/templates/{asas/src/kayan → features}/auth/user/index.ts +0 -0
- /package/template/templates/{asas/src → features/courses}/courses/ui/no-courses.tsx +0 -0
- /package/template/templates/{asas → mithaq}/components.json +0 -0
- /package/template/templates/{asas → mithaq}/src/storage/defaults.ts +0 -0
- /package/template/templates/{asas → mithaq}/src/storage/local.ts +0 -0
- /package/template/templates/{asas → mithaq}/src/storage/r2.ts +0 -0
- /package/template/templates/{asas → mithaq}/src/storage/s3.ts +0 -0
- /package/template/templates/{asas → mithaq}/src/storage/uploadthing.ts +0 -0
- /package/template/templates/{asas → mithaq}/src/ui/kpi-card.tsx +0 -0
- /package/template/templates/{asas → mithaq}/src/ui/record-page.tsx +0 -0
- /package/template/templates/{asas → mithaq}/src/ui/table-page.tsx +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"path": "/dashboard",
|
|
3
3
|
"providers": [
|
|
4
4
|
"./src/ui-dashboard/theme-provider.tsx#ThemeProvider",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"@asas/mithaq:./src/ui/rich-text-nodes.tsx#RichTextNodes",
|
|
6
|
+
"@asas/courses:./enrollments/ui/session-labels.tsx#SessionLabels"
|
|
7
7
|
],
|
|
8
8
|
"pages": {
|
|
9
9
|
"dashboard": {
|
|
@@ -20,7 +20,18 @@
|
|
|
20
20
|
"ar": "الأعضاء"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"permission": "
|
|
23
|
+
"permission": "member.find"
|
|
24
|
+
},
|
|
25
|
+
"activity": {
|
|
26
|
+
"path": "/activity",
|
|
27
|
+
"component": "@asas/mithaq:./src/ui/activity-page.tsx#ActivityPage",
|
|
28
|
+
"nav": {
|
|
29
|
+
"label": {
|
|
30
|
+
"en": "Activity",
|
|
31
|
+
"ar": "النشاط"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"permission": "auditLog.find"
|
|
24
35
|
}
|
|
25
36
|
},
|
|
26
37
|
"nav": [
|
|
@@ -73,21 +84,27 @@
|
|
|
73
84
|
"en": "Members",
|
|
74
85
|
"ar": "الأعضاء"
|
|
75
86
|
},
|
|
76
|
-
"permission": "
|
|
87
|
+
"permission": "member.find"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "/activity",
|
|
91
|
+
"page": "activity",
|
|
92
|
+
"label": {
|
|
93
|
+
"en": "Activity",
|
|
94
|
+
"ar": "النشاط"
|
|
95
|
+
},
|
|
96
|
+
"permission": "auditLog.find"
|
|
77
97
|
}
|
|
78
98
|
],
|
|
79
99
|
"layouts": {
|
|
80
|
-
"app": "
|
|
81
|
-
"record": "
|
|
82
|
-
"table": "
|
|
83
|
-
"top": "
|
|
100
|
+
"app": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
101
|
+
"record": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
102
|
+
"table": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
103
|
+
"top": "@asas/mithaq:./src/ui/top-shell.tsx#TopShell"
|
|
84
104
|
},
|
|
85
105
|
"components": {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"rolesTable": "./src/roles/ui/roles.tsx#RolesTable",
|
|
89
|
-
"deleteRole": "./src/roles/ui/roles.tsx#DeleteRole",
|
|
90
|
-
"activity": "./src/audit-log/ui/activity.tsx#Activity",
|
|
106
|
+
"activity": "@asas/mithaq:./src/ui/activity.tsx#Activity",
|
|
107
|
+
"activityLog": "@asas/mithaq:./src/ui/activity.tsx#ActivityTab",
|
|
91
108
|
"versions": "./src/ui-dashboard/versions.tsx#Versions"
|
|
92
109
|
},
|
|
93
110
|
"controls": {
|
|
@@ -135,6 +152,10 @@
|
|
|
135
152
|
"control": "relationship",
|
|
136
153
|
"cell": "relationship"
|
|
137
154
|
},
|
|
155
|
+
"json": {
|
|
156
|
+
"control": "json",
|
|
157
|
+
"cell": "json"
|
|
158
|
+
},
|
|
138
159
|
"join": {
|
|
139
160
|
"control": "join",
|
|
140
161
|
"cell": "join"
|
|
@@ -285,7 +306,7 @@
|
|
|
285
306
|
"ar": "لكل مقعد"
|
|
286
307
|
},
|
|
287
308
|
"component": "number",
|
|
288
|
-
"cell": "
|
|
309
|
+
"cell": "@asas/courses:./courses/ui/fee-cell.tsx#FeeCell",
|
|
289
310
|
"filter": true
|
|
290
311
|
},
|
|
291
312
|
{
|
|
@@ -425,6 +446,10 @@
|
|
|
425
446
|
"ar": "مؤرشف"
|
|
426
447
|
},
|
|
427
448
|
"rules": {
|
|
449
|
+
"providedBy": {
|
|
450
|
+
"create": "never",
|
|
451
|
+
"update": "application"
|
|
452
|
+
},
|
|
428
453
|
"required": false
|
|
429
454
|
},
|
|
430
455
|
"component": "checkbox",
|
|
@@ -490,6 +515,10 @@
|
|
|
490
515
|
},
|
|
491
516
|
"rules": {
|
|
492
517
|
"maxLength": 200,
|
|
518
|
+
"providedBy": {
|
|
519
|
+
"create": "never",
|
|
520
|
+
"update": "application"
|
|
521
|
+
},
|
|
493
522
|
"required": false
|
|
494
523
|
},
|
|
495
524
|
"component": "text",
|
|
@@ -503,7 +532,8 @@
|
|
|
503
532
|
"ar": "الوسوم"
|
|
504
533
|
},
|
|
505
534
|
"rules": {
|
|
506
|
-
"required": false
|
|
535
|
+
"required": false,
|
|
536
|
+
"onDelete": "restrict"
|
|
507
537
|
},
|
|
508
538
|
"relationTo": "tags",
|
|
509
539
|
"hasMany": true,
|
|
@@ -557,7 +587,7 @@
|
|
|
557
587
|
}
|
|
558
588
|
],
|
|
559
589
|
"component": "text",
|
|
560
|
-
"cell": "
|
|
590
|
+
"cell": "@asas/courses:./courses/ui/status-cell.tsx#StatusCell"
|
|
561
591
|
},
|
|
562
592
|
{
|
|
563
593
|
"name": "details",
|
|
@@ -587,6 +617,19 @@
|
|
|
587
617
|
"relationTo": "media",
|
|
588
618
|
"component": "upload",
|
|
589
619
|
"cell": "upload"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "selfEnroll",
|
|
623
|
+
"kind": "checkbox",
|
|
624
|
+
"label": {
|
|
625
|
+
"en": "Students may enroll themselves",
|
|
626
|
+
"ar": "يسجّل الطلاب أنفسهم"
|
|
627
|
+
},
|
|
628
|
+
"rules": {
|
|
629
|
+
"required": false
|
|
630
|
+
},
|
|
631
|
+
"component": "checkbox",
|
|
632
|
+
"cell": "checkbox"
|
|
590
633
|
}
|
|
591
634
|
],
|
|
592
635
|
"operations": [
|
|
@@ -655,6 +698,30 @@
|
|
|
655
698
|
}
|
|
656
699
|
]
|
|
657
700
|
},
|
|
701
|
+
{
|
|
702
|
+
"name": "unarchive",
|
|
703
|
+
"effect": "update",
|
|
704
|
+
"fields": [
|
|
705
|
+
{
|
|
706
|
+
"name": "reason",
|
|
707
|
+
"kind": "text",
|
|
708
|
+
"label": {
|
|
709
|
+
"en": "Reason",
|
|
710
|
+
"ar": "السبب"
|
|
711
|
+
},
|
|
712
|
+
"rules": {
|
|
713
|
+
"required": true,
|
|
714
|
+
"maxLength": 200
|
|
715
|
+
},
|
|
716
|
+
"component": "text",
|
|
717
|
+
"cell": "text"
|
|
718
|
+
}
|
|
719
|
+
]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "unpublish",
|
|
723
|
+
"effect": "update"
|
|
724
|
+
},
|
|
658
725
|
{
|
|
659
726
|
"name": "findWithSessions",
|
|
660
727
|
"effect": "read"
|
|
@@ -674,7 +741,7 @@
|
|
|
674
741
|
"list": {
|
|
675
742
|
"path": "/courses",
|
|
676
743
|
"page": {
|
|
677
|
-
"shell": "
|
|
744
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
678
745
|
"header": [
|
|
679
746
|
{
|
|
680
747
|
"title": {}
|
|
@@ -682,7 +749,7 @@
|
|
|
682
749
|
],
|
|
683
750
|
"main": [
|
|
684
751
|
{
|
|
685
|
-
"layout": "
|
|
752
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
686
753
|
"main": [
|
|
687
754
|
{
|
|
688
755
|
"list": {
|
|
@@ -694,14 +761,9 @@
|
|
|
694
761
|
},
|
|
695
762
|
{
|
|
696
763
|
"field": "fee",
|
|
697
|
-
"cell": "
|
|
764
|
+
"cell": "@asas/courses:./courses/ui/fee-cell.tsx#FeeCell",
|
|
698
765
|
"decided": "field"
|
|
699
766
|
},
|
|
700
|
-
{
|
|
701
|
-
"field": "archived",
|
|
702
|
-
"cell": "checkbox",
|
|
703
|
-
"decided": "table"
|
|
704
|
-
},
|
|
705
767
|
{
|
|
706
768
|
"field": "opensOn",
|
|
707
769
|
"cell": "date",
|
|
@@ -709,7 +771,7 @@
|
|
|
709
771
|
},
|
|
710
772
|
{
|
|
711
773
|
"field": "_status",
|
|
712
|
-
"cell": "
|
|
774
|
+
"cell": "@asas/courses:./courses/ui/status-cell.tsx#StatusCell",
|
|
713
775
|
"decided": "field"
|
|
714
776
|
},
|
|
715
777
|
{
|
|
@@ -733,7 +795,7 @@
|
|
|
733
795
|
"summary",
|
|
734
796
|
"details"
|
|
735
797
|
],
|
|
736
|
-
"empty": "
|
|
798
|
+
"empty": "@asas/courses:./courses/ui/no-courses.tsx#NoCourses",
|
|
737
799
|
"bulk": [
|
|
738
800
|
{
|
|
739
801
|
"button": "deleteMany",
|
|
@@ -760,7 +822,7 @@
|
|
|
760
822
|
},
|
|
761
823
|
"fields": [
|
|
762
824
|
"fee",
|
|
763
|
-
"
|
|
825
|
+
"notifications"
|
|
764
826
|
]
|
|
765
827
|
}
|
|
766
828
|
],
|
|
@@ -788,6 +850,93 @@
|
|
|
788
850
|
}
|
|
789
851
|
]
|
|
790
852
|
}
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"button": "unarchive",
|
|
856
|
+
"label": {
|
|
857
|
+
"en": "Unarchive",
|
|
858
|
+
"ar": "إلغاء الأرشفة"
|
|
859
|
+
},
|
|
860
|
+
"fields": [
|
|
861
|
+
"reason"
|
|
862
|
+
],
|
|
863
|
+
"when": {
|
|
864
|
+
"record.archived": {
|
|
865
|
+
"equals": true
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
"tabs": [
|
|
871
|
+
{
|
|
872
|
+
"tab": "active",
|
|
873
|
+
"label": {
|
|
874
|
+
"en": "Active",
|
|
875
|
+
"ar": "النشطة"
|
|
876
|
+
},
|
|
877
|
+
"where": {
|
|
878
|
+
"or": [
|
|
879
|
+
{
|
|
880
|
+
"archived": {
|
|
881
|
+
"exists": false
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"archived": {
|
|
886
|
+
"equals": false
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"tab": "drafts",
|
|
894
|
+
"label": {
|
|
895
|
+
"en": "Drafts",
|
|
896
|
+
"ar": "المسودات"
|
|
897
|
+
},
|
|
898
|
+
"where": {
|
|
899
|
+
"and": [
|
|
900
|
+
{
|
|
901
|
+
"or": [
|
|
902
|
+
{
|
|
903
|
+
"archived": {
|
|
904
|
+
"exists": false
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"archived": {
|
|
909
|
+
"equals": false
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
]
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"_status": {
|
|
916
|
+
"equals": "draft"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
]
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"tab": "archived",
|
|
924
|
+
"label": {
|
|
925
|
+
"en": "Archived",
|
|
926
|
+
"ar": "المؤرشفة"
|
|
927
|
+
},
|
|
928
|
+
"where": {
|
|
929
|
+
"archived": {
|
|
930
|
+
"equals": true
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"tab": "all",
|
|
936
|
+
"label": {
|
|
937
|
+
"en": "All",
|
|
938
|
+
"ar": "الكل"
|
|
939
|
+
}
|
|
791
940
|
}
|
|
792
941
|
]
|
|
793
942
|
}
|
|
@@ -800,7 +949,7 @@
|
|
|
800
949
|
"create": {
|
|
801
950
|
"path": "/courses/new",
|
|
802
951
|
"page": {
|
|
803
|
-
"shell": "
|
|
952
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
804
953
|
"header": [
|
|
805
954
|
{
|
|
806
955
|
"title": {}
|
|
@@ -811,7 +960,7 @@
|
|
|
811
960
|
],
|
|
812
961
|
"main": [
|
|
813
962
|
{
|
|
814
|
-
"layout": "
|
|
963
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
815
964
|
"main": [
|
|
816
965
|
{
|
|
817
966
|
"form": [
|
|
@@ -893,6 +1042,11 @@
|
|
|
893
1042
|
"field": "notifications",
|
|
894
1043
|
"component": "switch",
|
|
895
1044
|
"decided": "field"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"field": "selfEnroll",
|
|
1048
|
+
"component": "switch",
|
|
1049
|
+
"decided": "leaf"
|
|
896
1050
|
}
|
|
897
1051
|
]
|
|
898
1052
|
}
|
|
@@ -922,11 +1076,19 @@
|
|
|
922
1076
|
"edit": {
|
|
923
1077
|
"path": "/courses/:id",
|
|
924
1078
|
"page": {
|
|
925
|
-
"shell": "
|
|
1079
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
926
1080
|
"header": [
|
|
927
1081
|
{
|
|
928
1082
|
"title": {}
|
|
929
1083
|
},
|
|
1084
|
+
{
|
|
1085
|
+
"component": "@asas/courses:./courses/ui/archived-badge.tsx#ArchivedBadge",
|
|
1086
|
+
"when": {
|
|
1087
|
+
"record.archived": {
|
|
1088
|
+
"equals": true
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
930
1092
|
{
|
|
931
1093
|
"controls": {}
|
|
932
1094
|
}
|
|
@@ -942,7 +1104,7 @@
|
|
|
942
1104
|
},
|
|
943
1105
|
"fields": [
|
|
944
1106
|
{
|
|
945
|
-
"layout": "
|
|
1107
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
946
1108
|
"main": [
|
|
947
1109
|
{
|
|
948
1110
|
"form": [
|
|
@@ -1024,6 +1186,11 @@
|
|
|
1024
1186
|
"field": "notifications",
|
|
1025
1187
|
"component": "switch",
|
|
1026
1188
|
"decided": "field"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"field": "selfEnroll",
|
|
1192
|
+
"component": "switch",
|
|
1193
|
+
"decided": "leaf"
|
|
1027
1194
|
}
|
|
1028
1195
|
]
|
|
1029
1196
|
}
|
|
@@ -1052,7 +1219,7 @@
|
|
|
1052
1219
|
]
|
|
1053
1220
|
},
|
|
1054
1221
|
{
|
|
1055
|
-
"component": "
|
|
1222
|
+
"component": "@asas/mithaq:./src/ui/activity.tsx#Activity",
|
|
1056
1223
|
"when": {
|
|
1057
1224
|
"$user.collections.auditLog.operations.find": {
|
|
1058
1225
|
"equals": true
|
|
@@ -1061,6 +1228,30 @@
|
|
|
1061
1228
|
}
|
|
1062
1229
|
],
|
|
1063
1230
|
"danger": [
|
|
1231
|
+
{
|
|
1232
|
+
"button": "unpublish",
|
|
1233
|
+
"label": {
|
|
1234
|
+
"en": "Unpublish",
|
|
1235
|
+
"ar": "إلغاء النشر"
|
|
1236
|
+
},
|
|
1237
|
+
"reload": true,
|
|
1238
|
+
"component": "@asas/courses:./courses/ui/unpublish-button.tsx#UnpublishButton",
|
|
1239
|
+
"confirm": {
|
|
1240
|
+
"title": {
|
|
1241
|
+
"en": "Unpublish this course?",
|
|
1242
|
+
"ar": "إلغاء نشر هذه الدورة؟"
|
|
1243
|
+
},
|
|
1244
|
+
"body": {
|
|
1245
|
+
"en": "It goes back to a draft that no student sees, until it is published again.",
|
|
1246
|
+
"ar": "تعود مسودة لا يراها أي طالب حتى تُنشر مجددا."
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"when": {
|
|
1250
|
+
"record._status": {
|
|
1251
|
+
"equals": "published"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1064
1255
|
{
|
|
1065
1256
|
"button": "archive",
|
|
1066
1257
|
"label": {
|
|
@@ -1096,6 +1287,32 @@
|
|
|
1096
1287
|
]
|
|
1097
1288
|
}
|
|
1098
1289
|
},
|
|
1290
|
+
{
|
|
1291
|
+
"button": "unarchive",
|
|
1292
|
+
"label": {
|
|
1293
|
+
"en": "Unarchive",
|
|
1294
|
+
"ar": "إلغاء الأرشفة"
|
|
1295
|
+
},
|
|
1296
|
+
"fields": [
|
|
1297
|
+
"reason"
|
|
1298
|
+
],
|
|
1299
|
+
"reload": true,
|
|
1300
|
+
"confirm": {
|
|
1301
|
+
"title": {
|
|
1302
|
+
"en": "Unarchive this course?",
|
|
1303
|
+
"ar": "إلغاء أرشفة هذه الدورة؟"
|
|
1304
|
+
},
|
|
1305
|
+
"body": {
|
|
1306
|
+
"en": "It is back in the catalogue as it was.",
|
|
1307
|
+
"ar": "تعود إلى الدليل كما كانت."
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
"when": {
|
|
1311
|
+
"record.archived": {
|
|
1312
|
+
"equals": true
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1099
1316
|
{
|
|
1100
1317
|
"button": "delete",
|
|
1101
1318
|
"label": {
|
|
@@ -1192,6 +1409,23 @@
|
|
|
1192
1409
|
}
|
|
1193
1410
|
}
|
|
1194
1411
|
]
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"tab": "activity",
|
|
1415
|
+
"label": {
|
|
1416
|
+
"en": "Activity",
|
|
1417
|
+
"ar": "النشاط"
|
|
1418
|
+
},
|
|
1419
|
+
"fields": [
|
|
1420
|
+
{
|
|
1421
|
+
"component": "@asas/mithaq:./src/ui/activity.tsx#ActivityTab",
|
|
1422
|
+
"when": {
|
|
1423
|
+
"$user.collections.auditLog.operations.find": {
|
|
1424
|
+
"equals": true
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1195
1429
|
}
|
|
1196
1430
|
]
|
|
1197
1431
|
}
|
|
@@ -1201,7 +1435,7 @@
|
|
|
1201
1435
|
"board": {
|
|
1202
1436
|
"path": "/courses/board",
|
|
1203
1437
|
"page": {
|
|
1204
|
-
"shell": "
|
|
1438
|
+
"shell": "@asas/mithaq:./src/ui/top-shell.tsx#TopShell",
|
|
1205
1439
|
"header": [
|
|
1206
1440
|
{
|
|
1207
1441
|
"title": {}
|
|
@@ -1214,10 +1448,10 @@
|
|
|
1214
1448
|
],
|
|
1215
1449
|
"main": [
|
|
1216
1450
|
{
|
|
1217
|
-
"layout": "
|
|
1451
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
1218
1452
|
"main": [
|
|
1219
1453
|
{
|
|
1220
|
-
"component": "
|
|
1454
|
+
"component": "@asas/courses:./courses/ui/no-courses.tsx#NoCourses"
|
|
1221
1455
|
}
|
|
1222
1456
|
]
|
|
1223
1457
|
}
|
|
@@ -1409,6 +1643,10 @@
|
|
|
1409
1643
|
"ar": "مؤرشفة"
|
|
1410
1644
|
},
|
|
1411
1645
|
"rules": {
|
|
1646
|
+
"providedBy": {
|
|
1647
|
+
"create": "never",
|
|
1648
|
+
"update": "application"
|
|
1649
|
+
},
|
|
1412
1650
|
"required": false
|
|
1413
1651
|
},
|
|
1414
1652
|
"component": "checkbox",
|
|
@@ -1446,6 +1684,24 @@
|
|
|
1446
1684
|
"on": "session",
|
|
1447
1685
|
"component": "join",
|
|
1448
1686
|
"cell": "join"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"name": "archiveReason",
|
|
1690
|
+
"kind": "text",
|
|
1691
|
+
"label": {
|
|
1692
|
+
"en": "Archive reason",
|
|
1693
|
+
"ar": "سبب الأرشفة"
|
|
1694
|
+
},
|
|
1695
|
+
"rules": {
|
|
1696
|
+
"maxLength": 200,
|
|
1697
|
+
"providedBy": {
|
|
1698
|
+
"create": "never",
|
|
1699
|
+
"update": "application"
|
|
1700
|
+
},
|
|
1701
|
+
"required": false
|
|
1702
|
+
},
|
|
1703
|
+
"component": "text",
|
|
1704
|
+
"cell": "text"
|
|
1449
1705
|
}
|
|
1450
1706
|
],
|
|
1451
1707
|
"operations": [
|
|
@@ -1486,6 +1742,46 @@
|
|
|
1486
1742
|
"name": "archiveMany",
|
|
1487
1743
|
"effect": "update",
|
|
1488
1744
|
"updatesMany": true
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "archive",
|
|
1748
|
+
"effect": "update",
|
|
1749
|
+
"fields": [
|
|
1750
|
+
{
|
|
1751
|
+
"name": "reason",
|
|
1752
|
+
"kind": "text",
|
|
1753
|
+
"label": {
|
|
1754
|
+
"en": "Reason",
|
|
1755
|
+
"ar": "السبب"
|
|
1756
|
+
},
|
|
1757
|
+
"rules": {
|
|
1758
|
+
"required": true,
|
|
1759
|
+
"maxLength": 200
|
|
1760
|
+
},
|
|
1761
|
+
"component": "text",
|
|
1762
|
+
"cell": "text"
|
|
1763
|
+
}
|
|
1764
|
+
]
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "unarchive",
|
|
1768
|
+
"effect": "update",
|
|
1769
|
+
"fields": [
|
|
1770
|
+
{
|
|
1771
|
+
"name": "reason",
|
|
1772
|
+
"kind": "text",
|
|
1773
|
+
"label": {
|
|
1774
|
+
"en": "Reason",
|
|
1775
|
+
"ar": "السبب"
|
|
1776
|
+
},
|
|
1777
|
+
"rules": {
|
|
1778
|
+
"required": true,
|
|
1779
|
+
"maxLength": 200
|
|
1780
|
+
},
|
|
1781
|
+
"component": "text",
|
|
1782
|
+
"cell": "text"
|
|
1783
|
+
}
|
|
1784
|
+
]
|
|
1489
1785
|
}
|
|
1490
1786
|
],
|
|
1491
1787
|
"useAsTitle": "startsAt",
|
|
@@ -1497,7 +1793,7 @@
|
|
|
1497
1793
|
"list": {
|
|
1498
1794
|
"path": "/sessions",
|
|
1499
1795
|
"page": {
|
|
1500
|
-
"shell": "
|
|
1796
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
1501
1797
|
"header": [
|
|
1502
1798
|
{
|
|
1503
1799
|
"title": {}
|
|
@@ -1505,7 +1801,7 @@
|
|
|
1505
1801
|
],
|
|
1506
1802
|
"main": [
|
|
1507
1803
|
{
|
|
1508
|
-
"layout": "
|
|
1804
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
1509
1805
|
"main": [
|
|
1510
1806
|
{
|
|
1511
1807
|
"list": {
|
|
@@ -1552,7 +1848,7 @@
|
|
|
1552
1848
|
"create": {
|
|
1553
1849
|
"path": "/sessions/new",
|
|
1554
1850
|
"page": {
|
|
1555
|
-
"shell": "
|
|
1851
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
1556
1852
|
"header": [
|
|
1557
1853
|
{
|
|
1558
1854
|
"title": {}
|
|
@@ -1563,7 +1859,7 @@
|
|
|
1563
1859
|
],
|
|
1564
1860
|
"main": [
|
|
1565
1861
|
{
|
|
1566
|
-
"layout": "
|
|
1862
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
1567
1863
|
"main": [
|
|
1568
1864
|
{
|
|
1569
1865
|
"form": [
|
|
@@ -1651,7 +1947,7 @@
|
|
|
1651
1947
|
"edit": {
|
|
1652
1948
|
"path": "/sessions/:id",
|
|
1653
1949
|
"page": {
|
|
1654
|
-
"shell": "
|
|
1950
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
1655
1951
|
"header": [
|
|
1656
1952
|
{
|
|
1657
1953
|
"title": {}
|
|
@@ -1662,7 +1958,7 @@
|
|
|
1662
1958
|
],
|
|
1663
1959
|
"main": [
|
|
1664
1960
|
{
|
|
1665
|
-
"layout": "
|
|
1961
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
1666
1962
|
"main": [
|
|
1667
1963
|
{
|
|
1668
1964
|
"tabs": [
|
|
@@ -1786,11 +2082,23 @@
|
|
|
1786
2082
|
"field": "course",
|
|
1787
2083
|
"component": "relationship",
|
|
1788
2084
|
"decided": "table"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"field": "archived",
|
|
2088
|
+
"readOnly": true,
|
|
2089
|
+
"component": "checkbox",
|
|
2090
|
+
"decided": "table"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"field": "archiveReason",
|
|
2094
|
+
"readOnly": true,
|
|
2095
|
+
"component": "text",
|
|
2096
|
+
"decided": "table"
|
|
1789
2097
|
}
|
|
1790
2098
|
]
|
|
1791
2099
|
},
|
|
1792
2100
|
{
|
|
1793
|
-
"component": "
|
|
2101
|
+
"component": "@asas/mithaq:./src/ui/activity.tsx#Activity",
|
|
1794
2102
|
"when": {
|
|
1795
2103
|
"$user.collections.auditLog.operations.find": {
|
|
1796
2104
|
"equals": true
|
|
@@ -1799,6 +2107,67 @@
|
|
|
1799
2107
|
}
|
|
1800
2108
|
],
|
|
1801
2109
|
"danger": [
|
|
2110
|
+
{
|
|
2111
|
+
"button": "archive",
|
|
2112
|
+
"label": {
|
|
2113
|
+
"en": "Archive",
|
|
2114
|
+
"ar": "أرشفة"
|
|
2115
|
+
},
|
|
2116
|
+
"fields": [
|
|
2117
|
+
"reason"
|
|
2118
|
+
],
|
|
2119
|
+
"reload": true,
|
|
2120
|
+
"confirm": {
|
|
2121
|
+
"title": {
|
|
2122
|
+
"en": "Archive this session?",
|
|
2123
|
+
"ar": "أرشفة هذه الجلسة؟"
|
|
2124
|
+
},
|
|
2125
|
+
"body": {
|
|
2126
|
+
"en": "It stays on the course, marked archived.",
|
|
2127
|
+
"ar": "تبقى في الدورة، معلمة بأنها مؤرشفة."
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
"when": {
|
|
2131
|
+
"or": [
|
|
2132
|
+
{
|
|
2133
|
+
"record.archived": {
|
|
2134
|
+
"exists": false
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"record.archived": {
|
|
2139
|
+
"equals": false
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
]
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"button": "unarchive",
|
|
2147
|
+
"label": {
|
|
2148
|
+
"en": "Unarchive",
|
|
2149
|
+
"ar": "إلغاء الأرشفة"
|
|
2150
|
+
},
|
|
2151
|
+
"fields": [
|
|
2152
|
+
"reason"
|
|
2153
|
+
],
|
|
2154
|
+
"reload": true,
|
|
2155
|
+
"confirm": {
|
|
2156
|
+
"title": {
|
|
2157
|
+
"en": "Unarchive this session?",
|
|
2158
|
+
"ar": "إلغاء أرشفة هذه الجلسة؟"
|
|
2159
|
+
},
|
|
2160
|
+
"body": {
|
|
2161
|
+
"en": "It is open again as it was.",
|
|
2162
|
+
"ar": "تعود مفتوحة كما كانت."
|
|
2163
|
+
}
|
|
2164
|
+
},
|
|
2165
|
+
"when": {
|
|
2166
|
+
"record.archived": {
|
|
2167
|
+
"equals": true
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
1802
2171
|
{
|
|
1803
2172
|
"button": "delete",
|
|
1804
2173
|
"label": {
|
|
@@ -1900,8 +2269,9 @@
|
|
|
1900
2269
|
"onDelete": "restrict"
|
|
1901
2270
|
},
|
|
1902
2271
|
"relationTo": "sessions",
|
|
2272
|
+
"filterOptions": true,
|
|
1903
2273
|
"component": "relationship",
|
|
1904
|
-
"cell": "
|
|
2274
|
+
"cell": "@asas/courses:./enrollments/ui/session-cell.tsx#SessionCell"
|
|
1905
2275
|
},
|
|
1906
2276
|
{
|
|
1907
2277
|
"name": "student",
|
|
@@ -1915,6 +2285,7 @@
|
|
|
1915
2285
|
"onDelete": "restrict"
|
|
1916
2286
|
},
|
|
1917
2287
|
"relationTo": "user",
|
|
2288
|
+
"filterOptions": true,
|
|
1918
2289
|
"component": "relationship",
|
|
1919
2290
|
"cell": "relationship"
|
|
1920
2291
|
},
|
|
@@ -1980,7 +2351,7 @@
|
|
|
1980
2351
|
"list": {
|
|
1981
2352
|
"path": "/enrollments",
|
|
1982
2353
|
"page": {
|
|
1983
|
-
"shell": "
|
|
2354
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
1984
2355
|
"header": [
|
|
1985
2356
|
{
|
|
1986
2357
|
"title": {}
|
|
@@ -1988,14 +2359,14 @@
|
|
|
1988
2359
|
],
|
|
1989
2360
|
"main": [
|
|
1990
2361
|
{
|
|
1991
|
-
"layout": "
|
|
2362
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
1992
2363
|
"main": [
|
|
1993
2364
|
{
|
|
1994
2365
|
"list": {
|
|
1995
2366
|
"columns": [
|
|
1996
2367
|
{
|
|
1997
2368
|
"field": "session",
|
|
1998
|
-
"cell": "
|
|
2369
|
+
"cell": "@asas/courses:./enrollments/ui/session-cell.tsx#SessionCell",
|
|
1999
2370
|
"decided": "field"
|
|
2000
2371
|
},
|
|
2001
2372
|
{
|
|
@@ -2027,7 +2398,7 @@
|
|
|
2027
2398
|
"create": {
|
|
2028
2399
|
"path": "/enrollments/new",
|
|
2029
2400
|
"page": {
|
|
2030
|
-
"shell": "
|
|
2401
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2031
2402
|
"header": [
|
|
2032
2403
|
{
|
|
2033
2404
|
"title": {}
|
|
@@ -2038,7 +2409,7 @@
|
|
|
2038
2409
|
],
|
|
2039
2410
|
"main": [
|
|
2040
2411
|
{
|
|
2041
|
-
"layout": "
|
|
2412
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
2042
2413
|
"main": [
|
|
2043
2414
|
{
|
|
2044
2415
|
"form": [
|
|
@@ -2071,7 +2442,7 @@
|
|
|
2071
2442
|
"edit": {
|
|
2072
2443
|
"path": "/enrollments/:id",
|
|
2073
2444
|
"page": {
|
|
2074
|
-
"shell": "
|
|
2445
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2075
2446
|
"header": [
|
|
2076
2447
|
{
|
|
2077
2448
|
"title": {}
|
|
@@ -2082,7 +2453,7 @@
|
|
|
2082
2453
|
],
|
|
2083
2454
|
"main": [
|
|
2084
2455
|
{
|
|
2085
|
-
"layout": "
|
|
2456
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
2086
2457
|
"main": [
|
|
2087
2458
|
{
|
|
2088
2459
|
"form": [
|
|
@@ -2116,12 +2487,6 @@
|
|
|
2116
2487
|
"ar": "السجل"
|
|
2117
2488
|
},
|
|
2118
2489
|
"fields": [
|
|
2119
|
-
{
|
|
2120
|
-
"field": "organization",
|
|
2121
|
-
"readOnly": true,
|
|
2122
|
-
"component": "relationship",
|
|
2123
|
-
"decided": "table"
|
|
2124
|
-
},
|
|
2125
2490
|
{
|
|
2126
2491
|
"field": "createdAt",
|
|
2127
2492
|
"readOnly": true,
|
|
@@ -2131,7 +2496,7 @@
|
|
|
2131
2496
|
]
|
|
2132
2497
|
},
|
|
2133
2498
|
{
|
|
2134
|
-
"component": "
|
|
2499
|
+
"component": "@asas/mithaq:./src/ui/activity.tsx#Activity",
|
|
2135
2500
|
"when": {
|
|
2136
2501
|
"$user.collections.auditLog.operations.find": {
|
|
2137
2502
|
"equals": true
|
|
@@ -2284,14 +2649,14 @@
|
|
|
2284
2649
|
],
|
|
2285
2650
|
"useAsTitle": "name",
|
|
2286
2651
|
"description": {
|
|
2287
|
-
"en": "Labels
|
|
2288
|
-
"ar": "تسميات تجمع
|
|
2652
|
+
"en": "Labels the organization groups its records by.",
|
|
2653
|
+
"ar": "تسميات تجمع بها المؤسسة سجلاتها."
|
|
2289
2654
|
},
|
|
2290
2655
|
"pages": {
|
|
2291
2656
|
"list": {
|
|
2292
2657
|
"path": "/tags",
|
|
2293
2658
|
"page": {
|
|
2294
|
-
"shell": "
|
|
2659
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2295
2660
|
"header": [
|
|
2296
2661
|
{
|
|
2297
2662
|
"title": {}
|
|
@@ -2299,7 +2664,7 @@
|
|
|
2299
2664
|
],
|
|
2300
2665
|
"main": [
|
|
2301
2666
|
{
|
|
2302
|
-
"layout": "
|
|
2667
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
2303
2668
|
"main": [
|
|
2304
2669
|
{
|
|
2305
2670
|
"list": {
|
|
@@ -2328,7 +2693,7 @@
|
|
|
2328
2693
|
"create": {
|
|
2329
2694
|
"path": "/tags/new",
|
|
2330
2695
|
"page": {
|
|
2331
|
-
"shell": "
|
|
2696
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2332
2697
|
"header": [
|
|
2333
2698
|
{
|
|
2334
2699
|
"title": {}
|
|
@@ -2339,7 +2704,7 @@
|
|
|
2339
2704
|
],
|
|
2340
2705
|
"main": [
|
|
2341
2706
|
{
|
|
2342
|
-
"layout": "
|
|
2707
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
2343
2708
|
"main": [
|
|
2344
2709
|
{
|
|
2345
2710
|
"form": [
|
|
@@ -2354,12 +2719,12 @@
|
|
|
2354
2719
|
}
|
|
2355
2720
|
]
|
|
2356
2721
|
},
|
|
2357
|
-
"mode": "
|
|
2722
|
+
"mode": "drawer"
|
|
2358
2723
|
},
|
|
2359
2724
|
"edit": {
|
|
2360
2725
|
"path": "/tags/:id",
|
|
2361
2726
|
"page": {
|
|
2362
|
-
"shell": "
|
|
2727
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2363
2728
|
"header": [
|
|
2364
2729
|
{
|
|
2365
2730
|
"title": {}
|
|
@@ -2370,7 +2735,7 @@
|
|
|
2370
2735
|
],
|
|
2371
2736
|
"main": [
|
|
2372
2737
|
{
|
|
2373
|
-
"layout": "
|
|
2738
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
2374
2739
|
"main": [
|
|
2375
2740
|
{
|
|
2376
2741
|
"form": [
|
|
@@ -2670,7 +3035,7 @@
|
|
|
2670
3035
|
"list": {
|
|
2671
3036
|
"path": "/media",
|
|
2672
3037
|
"page": {
|
|
2673
|
-
"shell": "
|
|
3038
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2674
3039
|
"header": [
|
|
2675
3040
|
{
|
|
2676
3041
|
"title": {}
|
|
@@ -2678,14 +3043,14 @@
|
|
|
2678
3043
|
],
|
|
2679
3044
|
"main": [
|
|
2680
3045
|
{
|
|
2681
|
-
"layout": "
|
|
3046
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
2682
3047
|
"main": [
|
|
2683
3048
|
{
|
|
2684
3049
|
"list": {
|
|
2685
3050
|
"columns": [
|
|
2686
3051
|
{
|
|
2687
3052
|
"field": "filename",
|
|
2688
|
-
"cell": "
|
|
3053
|
+
"cell": "@asas/media:./media/ui/preview.tsx#FileName",
|
|
2689
3054
|
"decided": "leaf"
|
|
2690
3055
|
},
|
|
2691
3056
|
{
|
|
@@ -2700,7 +3065,7 @@
|
|
|
2700
3065
|
},
|
|
2701
3066
|
{
|
|
2702
3067
|
"field": "filesize",
|
|
2703
|
-
"cell": "
|
|
3068
|
+
"cell": "@asas/media:./media/ui/preview.tsx#FileSize",
|
|
2704
3069
|
"decided": "leaf"
|
|
2705
3070
|
},
|
|
2706
3071
|
{
|
|
@@ -2722,12 +3087,12 @@
|
|
|
2722
3087
|
},
|
|
2723
3088
|
"create": {
|
|
2724
3089
|
"path": "/media/new",
|
|
2725
|
-
"component": "
|
|
3090
|
+
"component": "@asas/media:./media/ui/preview.tsx#NewImage"
|
|
2726
3091
|
},
|
|
2727
3092
|
"edit": {
|
|
2728
3093
|
"path": "/media/:id",
|
|
2729
3094
|
"page": {
|
|
2730
|
-
"shell": "
|
|
3095
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2731
3096
|
"header": [
|
|
2732
3097
|
{
|
|
2733
3098
|
"title": {}
|
|
@@ -2738,7 +3103,7 @@
|
|
|
2738
3103
|
],
|
|
2739
3104
|
"main": [
|
|
2740
3105
|
{
|
|
2741
|
-
"layout": "
|
|
3106
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
2742
3107
|
"main": [
|
|
2743
3108
|
{
|
|
2744
3109
|
"form": [
|
|
@@ -2794,7 +3159,7 @@
|
|
|
2794
3159
|
],
|
|
2795
3160
|
"side": [
|
|
2796
3161
|
{
|
|
2797
|
-
"component": "
|
|
3162
|
+
"component": "@asas/media:./media/ui/preview.tsx#MediaPreview"
|
|
2798
3163
|
}
|
|
2799
3164
|
],
|
|
2800
3165
|
"danger": [
|
|
@@ -2978,7 +3343,7 @@
|
|
|
2978
3343
|
"list": {
|
|
2979
3344
|
"path": "/roles",
|
|
2980
3345
|
"page": {
|
|
2981
|
-
"shell": "
|
|
3346
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
2982
3347
|
"header": [
|
|
2983
3348
|
{
|
|
2984
3349
|
"title": {}
|
|
@@ -2986,7 +3351,7 @@
|
|
|
2986
3351
|
],
|
|
2987
3352
|
"main": [
|
|
2988
3353
|
{
|
|
2989
|
-
"layout": "
|
|
3354
|
+
"layout": "@asas/mithaq:./src/ui/table-page.tsx#TablePage",
|
|
2990
3355
|
"main": [
|
|
2991
3356
|
{
|
|
2992
3357
|
"list": {
|
|
@@ -3000,11 +3365,16 @@
|
|
|
3000
3365
|
"field": "name",
|
|
3001
3366
|
"cell": "text",
|
|
3002
3367
|
"decided": "table"
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
"field": "permissions",
|
|
3371
|
+
"cell": "textArray",
|
|
3372
|
+
"decided": "table"
|
|
3003
3373
|
}
|
|
3004
3374
|
],
|
|
3005
3375
|
"limit": 100
|
|
3006
3376
|
},
|
|
3007
|
-
"component": "
|
|
3377
|
+
"component": "@asas/roles:./roles/ui/roles.tsx#RolesTable"
|
|
3008
3378
|
}
|
|
3009
3379
|
]
|
|
3010
3380
|
}
|
|
@@ -3014,7 +3384,7 @@
|
|
|
3014
3384
|
"create": {
|
|
3015
3385
|
"path": "/roles/new",
|
|
3016
3386
|
"page": {
|
|
3017
|
-
"shell": "
|
|
3387
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
3018
3388
|
"header": [
|
|
3019
3389
|
{
|
|
3020
3390
|
"title": {}
|
|
@@ -3025,7 +3395,7 @@
|
|
|
3025
3395
|
],
|
|
3026
3396
|
"main": [
|
|
3027
3397
|
{
|
|
3028
|
-
"layout": "
|
|
3398
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
3029
3399
|
"main": [
|
|
3030
3400
|
{
|
|
3031
3401
|
"form": [
|
|
@@ -3045,7 +3415,7 @@
|
|
|
3045
3415
|
"decided": "table"
|
|
3046
3416
|
}
|
|
3047
3417
|
],
|
|
3048
|
-
"component": "
|
|
3418
|
+
"component": "@asas/roles:./roles/ui/role-form.tsx#RoleForm"
|
|
3049
3419
|
}
|
|
3050
3420
|
]
|
|
3051
3421
|
}
|
|
@@ -3055,7 +3425,7 @@
|
|
|
3055
3425
|
"edit": {
|
|
3056
3426
|
"path": "/roles/:id",
|
|
3057
3427
|
"page": {
|
|
3058
|
-
"shell": "
|
|
3428
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
3059
3429
|
"header": [
|
|
3060
3430
|
{
|
|
3061
3431
|
"title": {}
|
|
@@ -3066,7 +3436,7 @@
|
|
|
3066
3436
|
],
|
|
3067
3437
|
"main": [
|
|
3068
3438
|
{
|
|
3069
|
-
"layout": "
|
|
3439
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
3070
3440
|
"main": [
|
|
3071
3441
|
{
|
|
3072
3442
|
"form": [
|
|
@@ -3086,7 +3456,7 @@
|
|
|
3086
3456
|
"decided": "table"
|
|
3087
3457
|
}
|
|
3088
3458
|
],
|
|
3089
|
-
"component": "
|
|
3459
|
+
"component": "@asas/roles:./roles/ui/role-form.tsx#RoleForm"
|
|
3090
3460
|
}
|
|
3091
3461
|
],
|
|
3092
3462
|
"danger": [
|
|
@@ -3096,7 +3466,7 @@
|
|
|
3096
3466
|
"en": "Delete",
|
|
3097
3467
|
"ar": "حذف"
|
|
3098
3468
|
},
|
|
3099
|
-
"component": "
|
|
3469
|
+
"component": "@asas/roles:./roles/ui/roles.tsx#DeleteRole"
|
|
3100
3470
|
}
|
|
3101
3471
|
]
|
|
3102
3472
|
}
|
|
@@ -3325,21 +3695,6 @@
|
|
|
3325
3695
|
"component": "relationship",
|
|
3326
3696
|
"cell": "relationship"
|
|
3327
3697
|
},
|
|
3328
|
-
{
|
|
3329
|
-
"name": "siteTitle",
|
|
3330
|
-
"kind": "text",
|
|
3331
|
-
"label": {
|
|
3332
|
-
"en": "Site title",
|
|
3333
|
-
"ar": "عنوان الموقع"
|
|
3334
|
-
},
|
|
3335
|
-
"rules": {
|
|
3336
|
-
"required": true,
|
|
3337
|
-
"trim": true,
|
|
3338
|
-
"maxLength": 120
|
|
3339
|
-
},
|
|
3340
|
-
"component": "text",
|
|
3341
|
-
"cell": "text"
|
|
3342
|
-
},
|
|
3343
3698
|
{
|
|
3344
3699
|
"name": "maintenance",
|
|
3345
3700
|
"kind": "checkbox",
|
|
@@ -3351,8 +3706,8 @@
|
|
|
3351
3706
|
"required": false
|
|
3352
3707
|
},
|
|
3353
3708
|
"description": {
|
|
3354
|
-
"en": "While this is on, the
|
|
3355
|
-
"ar": "ما دام هذا مفعلا،
|
|
3709
|
+
"en": "While this is on, the portal tells students it is closed for maintenance. Staff keep working.",
|
|
3710
|
+
"ar": "ما دام هذا مفعلا، تخبر البوابة الطلاب بأنها مغلقة للصيانة. ويواصل الموظفون عملهم."
|
|
3356
3711
|
},
|
|
3357
3712
|
"component": "checkbox",
|
|
3358
3713
|
"cell": "checkbox"
|
|
@@ -3395,14 +3750,14 @@
|
|
|
3395
3750
|
}
|
|
3396
3751
|
],
|
|
3397
3752
|
"description": {
|
|
3398
|
-
"en": "
|
|
3399
|
-
"ar": "
|
|
3753
|
+
"en": "Where students reach the school, and whether the portal is open to them.",
|
|
3754
|
+
"ar": "أين يتواصل الطلاب مع المدرسة، وهل البوابة مفتوحة لهم."
|
|
3400
3755
|
},
|
|
3401
3756
|
"pages": {
|
|
3402
3757
|
"settings": {
|
|
3403
3758
|
"path": "/settings",
|
|
3404
3759
|
"page": {
|
|
3405
|
-
"shell": "
|
|
3760
|
+
"shell": "@asas/mithaq:./src/ui/app-shell.tsx#AppShell",
|
|
3406
3761
|
"header": [
|
|
3407
3762
|
{
|
|
3408
3763
|
"title": {}
|
|
@@ -3413,22 +3768,17 @@
|
|
|
3413
3768
|
],
|
|
3414
3769
|
"main": [
|
|
3415
3770
|
{
|
|
3416
|
-
"layout": "
|
|
3771
|
+
"layout": "@asas/mithaq:./src/ui/record-page.tsx#RecordPage",
|
|
3417
3772
|
"main": [
|
|
3418
3773
|
{
|
|
3419
3774
|
"form": [
|
|
3420
3775
|
{
|
|
3421
|
-
"section": "
|
|
3776
|
+
"section": "contact",
|
|
3422
3777
|
"label": {
|
|
3423
|
-
"en": "
|
|
3424
|
-
"ar": "
|
|
3778
|
+
"en": "Contact",
|
|
3779
|
+
"ar": "التواصل"
|
|
3425
3780
|
},
|
|
3426
3781
|
"fields": [
|
|
3427
|
-
{
|
|
3428
|
-
"field": "siteTitle",
|
|
3429
|
-
"component": "text",
|
|
3430
|
-
"decided": "table"
|
|
3431
|
-
},
|
|
3432
3782
|
{
|
|
3433
3783
|
"field": "contactEmail",
|
|
3434
3784
|
"component": "email",
|
|
@@ -3683,6 +4033,15 @@
|
|
|
3683
4033
|
},
|
|
3684
4034
|
"component": "text",
|
|
3685
4035
|
"cell": "text"
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
"name": "names",
|
|
4039
|
+
"kind": "text",
|
|
4040
|
+
"rules": {
|
|
4041
|
+
"required": false
|
|
4042
|
+
},
|
|
4043
|
+
"component": "text",
|
|
4044
|
+
"cell": "text"
|
|
3686
4045
|
}
|
|
3687
4046
|
],
|
|
3688
4047
|
"operations": [
|
|
@@ -3849,7 +4208,7 @@
|
|
|
3849
4208
|
},
|
|
3850
4209
|
{
|
|
3851
4210
|
"name": "changes",
|
|
3852
|
-
"kind": "
|
|
4211
|
+
"kind": "json",
|
|
3853
4212
|
"label": {
|
|
3854
4213
|
"en": "Changes",
|
|
3855
4214
|
"ar": "التغييرات"
|
|
@@ -3857,8 +4216,8 @@
|
|
|
3857
4216
|
"rules": {
|
|
3858
4217
|
"required": true
|
|
3859
4218
|
},
|
|
3860
|
-
"component": "
|
|
3861
|
-
"cell": "
|
|
4219
|
+
"component": "json",
|
|
4220
|
+
"cell": "json",
|
|
3862
4221
|
"sortable": false
|
|
3863
4222
|
}
|
|
3864
4223
|
],
|