@rebasepro/cli 0.30.0 → 0.31.0-canary.g59cd6fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/{agent-setup-0uyfC7VX.js → agent-setup-DqAcoDcn.js} +10 -5
- package/dist/{agent-setup-0uyfC7VX.js.map → agent-setup-DqAcoDcn.js.map} +1 -1
- package/dist/{api-keys-Dfw5-9s1.js → api-keys-eIUjMqWn.js} +8 -7
- package/dist/api-keys-eIUjMqWn.js.map +1 -0
- package/dist/{apps-MKQbgDtN.js → apps-DExO4PEl.js} +8 -7
- package/dist/apps-DExO4PEl.js.map +1 -0
- package/dist/{project-CasK56vN.js → args-CaCcrYE1.js} +2 -351
- package/dist/args-CaCcrYE1.js.map +1 -0
- package/dist/{atlas-dev-database-BODqdCWt.js → atlas-dev-database-DOCKk6ht.js} +2 -2
- package/dist/{atlas-dev-database-BODqdCWt.js.map → atlas-dev-database-DOCKk6ht.js.map} +1 -1
- package/dist/{auth-Bv0rTbQX.js → auth-D96QYgFR.js} +7 -6
- package/dist/{auth-Bv0rTbQX.js.map → auth-D96QYgFR.js.map} +1 -1
- package/dist/backend-guard-C0mVkXBw.js +162 -0
- package/dist/backend-guard-C0mVkXBw.js.map +1 -0
- package/dist/{branch-pointer-BQUF6lYa.js → branch-pointer-DMPyvZoK.js} +1 -1
- package/dist/{build-BuKTnec8.js → build-CA5R07tw.js} +29 -9
- package/dist/build-CA5R07tw.js.map +1 -0
- package/dist/{bundle-BAH4FCju.js → bundle-DgILeA5b.js} +112 -138
- package/dist/bundle-DgILeA5b.js.map +1 -0
- package/dist/bundle.d.ts +35 -12
- package/dist/cli.d.ts +2 -2
- package/dist/{cloud-Cj5ey3l_.js → cloud-CYMk92iG.js} +217 -104
- package/dist/cloud-CYMk92iG.js.map +1 -0
- package/dist/cms-directories-BK3vcswg.js +33 -0
- package/dist/cms-directories-BK3vcswg.js.map +1 -0
- package/dist/codemod/collections-to-tables/ast.d.ts +135 -0
- package/dist/codemod/collections-to-tables/backend.d.ts +38 -0
- package/dist/codemod/collections-to-tables/command.d.ts +35 -0
- package/dist/codemod/collections-to-tables/comments.d.ts +45 -0
- package/dist/codemod/collections-to-tables/customization.d.ts +47 -0
- package/dist/codemod/collections-to-tables/dynamic-props.d.ts +34 -0
- package/dist/codemod/collections-to-tables/export-changes.d.ts +83 -0
- package/dist/codemod/collections-to-tables/firestore.d.ts +11 -0
- package/dist/codemod/collections-to-tables/helper-hooks.d.ts +41 -0
- package/dist/codemod/collections-to-tables/hooks.d.ts +44 -0
- package/dist/codemod/collections-to-tables/journal.d.ts +10 -0
- package/dist/codemod/collections-to-tables/legacy-shims.d.ts +52 -0
- package/dist/codemod/collections-to-tables/load-legacy.d.ts +81 -0
- package/dist/codemod/collections-to-tables/migrate.d.ts +20 -0
- package/dist/codemod/collections-to-tables/modules.d.ts +127 -0
- package/dist/codemod/collections-to-tables/moved-imports.d.ts +70 -0
- package/dist/codemod/collections-to-tables/moved-symbols.generated.d.ts +12 -0
- package/dist/codemod/collections-to-tables/own.d.ts +10 -0
- package/dist/codemod/collections-to-tables/path-aliases.d.ts +26 -0
- package/dist/codemod/collections-to-tables/plan-context.d.ts +49 -0
- package/dist/codemod/collections-to-tables/print-js.d.ts +44 -0
- package/dist/codemod/collections-to-tables/project-files.d.ts +144 -0
- package/dist/codemod/collections-to-tables/repoint.d.ts +50 -0
- package/dist/codemod/collections-to-tables/row-hands.d.ts +7 -0
- package/dist/codemod/collections-to-tables/sdk-calls.d.ts +88 -0
- package/dist/codemod/collections-to-tables/skills-step.d.ts +13 -0
- package/dist/codemod/collections-to-tables/split-constants.d.ts +42 -0
- package/dist/codemod/collections-to-tables/storage-paths.d.ts +28 -0
- package/dist/codemod/collections-to-tables/types.d.ts +164 -0
- package/dist/codemod/collections-to-tables/verify.d.ts +27 -0
- package/dist/codemod/collections-to-tables/vocabulary.d.ts +40 -0
- package/dist/command-D5lhW_-B.js +9984 -0
- package/dist/command-D5lhW_-B.js.map +1 -0
- package/dist/commands/agent-setup.d.ts +6 -2
- package/dist/commands/cloud/auth.d.ts +2 -0
- package/dist/commands/cloud/context.d.ts +1 -1
- package/dist/commands/cloud/init.d.ts +2 -2
- package/dist/commands/cloud/login-flow.d.ts +30 -1
- package/dist/commands/console.d.ts +1 -2
- package/dist/commands/db.d.ts +5 -6
- package/dist/commands/dev.d.ts +18 -17
- package/dist/commands/doctor.d.ts +4 -5
- package/dist/commands/eject.d.ts +17 -13
- package/dist/commands/generate-view.d.ts +20 -9
- package/dist/commands/generate_sdk.d.ts +27 -27
- package/dist/commands/init.d.ts +21 -8
- package/dist/commands/migrate.d.ts +24 -0
- package/dist/commands/schema-reconcile.d.ts +1 -1
- package/dist/commands/skills.d.ts +8 -0
- package/dist/commands/verify-cms.d.ts +28 -0
- package/dist/commands/verify.d.ts +14 -9
- package/dist/{consent-BD7F29T3.js → consent-BXLIrMl8.js} +2 -2
- package/dist/{consent-BD7F29T3.js.map → consent-BXLIrMl8.js.map} +1 -1
- package/dist/{console-CdwIYOMV.js → console-C1d3LwB7.js} +14 -14
- package/dist/console-C1d3LwB7.js.map +1 -0
- package/dist/{context-AXdAh-q8.js → context--JwaHaZp.js} +6 -5
- package/dist/context--JwaHaZp.js.map +1 -0
- package/dist/{daemon-Cp7oNXth.js → daemon-w30PsdwV.js} +2 -2
- package/dist/{daemon-Cp7oNXth.js.map → daemon-w30PsdwV.js.map} +1 -1
- package/dist/{db-DBbKpjYX.js → db-DQZK9n9c.js} +52 -51
- package/dist/db-DQZK9n9c.js.map +1 -0
- package/dist/{derive-ae9UOoOB.js → derive-C3ezmY-p.js} +105 -133
- package/dist/derive-C3ezmY-p.js.map +1 -0
- package/dist/{dev-C93d4QIv.js → dev-PY5h4O6u.js} +142 -84
- package/dist/dev-PY5h4O6u.js.map +1 -0
- package/dist/dev-db/attver.d.ts +32 -0
- package/dist/dev-db/pull.d.ts +15 -1
- package/dist/{dev-preflight-Cxv3TiD1.js → dev-preflight-DjvcV6SK.js} +5 -5
- package/dist/dev-preflight-DjvcV6SK.js.map +1 -0
- package/dist/{dev-server-OJsUGZEB.js → dev-server-BLxCbQEP.js} +2 -2
- package/dist/{dev-server-OJsUGZEB.js.map → dev-server-BLxCbQEP.js.map} +1 -1
- package/dist/{doctor-BBPQUO2g.js → doctor-CnUu8kpM.js} +39 -62
- package/dist/doctor-CnUu8kpM.js.map +1 -0
- package/dist/doctor-environment.d.ts +6 -6
- package/dist/{eject-DABcDnPN.js → eject-Bhzd6hgb.js} +25 -16
- package/dist/eject-Bhzd6hgb.js.map +1 -0
- package/dist/{fold-static-BWzxNn06.js → fold-static-CKewnAPX.js} +5 -3
- package/dist/fold-static-CKewnAPX.js.map +1 -0
- package/dist/{generate-view-IFwCADvb.js → generate-view-CTOluXvH.js} +160 -89
- package/dist/generate-view-CTOluXvH.js.map +1 -0
- package/dist/{generate_sdk-DNmNuFuW.js → generate_sdk-De-aLC1L.js} +120 -137
- package/dist/generate_sdk-De-aLC1L.js.map +1 -0
- package/dist/import-schema-module-Df67TIWj.js +51 -0
- package/dist/import-schema-module-Df67TIWj.js.map +1 -0
- package/dist/index.es.js +64 -51
- package/dist/index.es.js.map +1 -1
- package/dist/{init-vL1DWOeC.js → init-Dtl-IcXf.js} +83 -80
- package/dist/init-Dtl-IcXf.js.map +1 -0
- package/dist/last-dev-database-Dc8cP01o.js +2 -0
- package/dist/{manifest-BtzDy7KQ.js → manifest-C3uLDrrJ.js} +115 -40
- package/dist/manifest-C3uLDrrJ.js.map +1 -0
- package/dist/manifest.d.ts +79 -24
- package/dist/migrate-VrKoi3nB.js +138 -0
- package/dist/migrate-VrKoi3nB.js.map +1 -0
- package/dist/{normalize-imports-Bd5Y4yLp.js → normalize-imports-DwxqEMYq.js} +3 -3
- package/dist/{normalize-imports-Bd5Y4yLp.js.map → normalize-imports-DwxqEMYq.js.map} +1 -1
- package/dist/path-flags-7O5uPBcQ.js +139 -0
- package/dist/path-flags-7O5uPBcQ.js.map +1 -0
- package/dist/{prepare-CTw9NEkh.js → prepare-Ccxspoj-.js} +4 -4
- package/dist/{prepare-CTw9NEkh.js.map → prepare-Ccxspoj-.js.map} +1 -1
- package/dist/project-CLcF5i8c.js +360 -0
- package/dist/project-CLcF5i8c.js.map +1 -0
- package/dist/project-schema-CsSOG2gE.js +30 -0
- package/dist/project-schema-CsSOG2gE.js.map +1 -0
- package/dist/{pull-DDMpsZ5r.js → pull-DRWqBZp5.js} +327 -4
- package/dist/pull-DRWqBZp5.js.map +1 -0
- package/dist/resolve-BY7bSFRT.js +2 -0
- package/dist/resources/derive.d.ts +19 -13
- package/dist/{resources-CPSC5Kcu.js → resources-Dpfs2y8P.js} +5 -4
- package/dist/{resources-CPSC5Kcu.js.map → resources-Dpfs2y8P.js.map} +1 -1
- package/dist/{schema-DtLPsXbT.js → schema-CdDjv5zI.js} +41 -39
- package/dist/schema-CdDjv5zI.js.map +1 -0
- package/dist/schema-dir-Cd1kvYbf.js +98 -0
- package/dist/schema-dir-Cd1kvYbf.js.map +1 -0
- package/dist/schema-reconcile-BAupXfkd.js +2 -0
- package/dist/schema-text-CpNrsuMe.js +73 -0
- package/dist/schema-text-CpNrsuMe.js.map +1 -0
- package/dist/{skills-CbwV6vw_.js → skills-CXjA9TWw.js} +54 -10
- package/dist/skills-CXjA9TWw.js.map +1 -0
- package/dist/{start-YOr3X5Zm.js → start-Bwbtt2W5.js} +7 -10
- package/dist/{start-YOr3X5Zm.js.map → start-Bwbtt2W5.js.map} +1 -1
- package/dist/{status-BREvtzJm.js → status-D7XCGHu2.js} +12 -12
- package/dist/status-D7XCGHu2.js.map +1 -0
- package/dist/{storage-CO9ouK76.js → storage-iTqj5-Av.js} +12 -11
- package/dist/storage-iTqj5-Av.js.map +1 -0
- package/dist/{telemetry-DwK5RQJl.js → telemetry-BP_1Cl9r.js} +4 -4
- package/dist/{telemetry-DwK5RQJl.js.map → telemetry-BP_1Cl9r.js.map} +1 -1
- package/dist/{telemetry-CgwJPVMO.js → telemetry-M3HjlyhZ.js} +2 -2
- package/dist/{telemetry-CgwJPVMO.js.map → telemetry-M3HjlyhZ.js.map} +1 -1
- package/dist/{upgrade-B7sVwL8S.js → upgrade-oZzJ13jM.js} +5 -4
- package/dist/{upgrade-B7sVwL8S.js.map → upgrade-oZzJ13jM.js.map} +1 -1
- package/dist/utils/backend-guard.d.ts +47 -0
- package/dist/utils/cms-directories.d.ts +6 -0
- package/dist/utils/dev-preflight.d.ts +2 -2
- package/dist/utils/import-schema-module.d.ts +16 -0
- package/dist/utils/path-flags.d.ts +35 -16
- package/dist/utils/project-schema.d.ts +40 -0
- package/dist/utils/project.d.ts +8 -2
- package/dist/utils/schema-dir.d.ts +32 -0
- package/dist/utils/schema-drift.d.ts +6 -0
- package/dist/utils/schema-text.d.ts +24 -0
- package/dist/verify-5p_vaUG2.js +1160 -0
- package/dist/verify-5p_vaUG2.js.map +1 -0
- package/package.json +11 -8
- package/runtime/dev-server.mjs +5 -1
- package/templates/eject/Dockerfile +1 -4
- package/templates/eject/backend/src/env.ts +1 -1
- package/templates/eject/backend/src/index.ts +53 -40
- package/templates/eject/docker-compose.custom.yml +1 -1
- package/templates/overlays/baas/README.md +39 -12
- package/templates/overlays/baas/ai-instructions.md +8 -8
- package/templates/overlays/baas/{config → backend}/storage.ts +3 -4
- package/templates/overlays/baas/backend/tsconfig.json +10 -12
- package/templates/overlays/baas/package.json +1 -2
- package/templates/overlays/baas/pnpm-workspace.yaml +0 -1
- package/templates/presets/blank/backend/schema/index.ts +19 -0
- package/templates/presets/blank/frontend/src/App.tsx +56 -0
- package/templates/presets/ecommerce/backend/schema/categories.ts +12 -0
- package/templates/presets/ecommerce/backend/schema/index.ts +23 -0
- package/templates/presets/ecommerce/backend/schema/orders.ts +13 -0
- package/templates/presets/ecommerce/backend/schema/products.ts +18 -0
- package/templates/presets/ecommerce/frontend/src/App.tsx +59 -0
- package/templates/presets/ecommerce/frontend/src/cms/categories.tsx +12 -0
- package/templates/presets/ecommerce/frontend/src/cms/orders.tsx +38 -0
- package/templates/presets/ecommerce/frontend/src/cms/products.tsx +27 -0
- package/templates/resource-graphs/blank.json +2 -2
- package/templates/resource-graphs/blog.json +5 -5
- package/templates/resource-graphs/ecommerce.json +5 -5
- package/templates/resource-graphs/headless.json +1 -1
- package/templates/template/.claude/hooks/post-edit-collection.sh +27 -23
- package/templates/template/.cursorrules +2 -2
- package/templates/template/.env.example +6 -17
- package/templates/template/.github/copilot-instructions.md +2 -2
- package/templates/template/.windsurfrules +2 -2
- package/templates/template/AGENTS.md +2 -2
- package/templates/template/CLAUDE.md +2 -2
- package/templates/template/README.md +47 -13
- package/templates/template/ai-instructions.md +15 -14
- package/templates/template/backend/functions/hello.ts +1 -1
- package/templates/template/backend/package.json +0 -2
- package/templates/template/{config → backend}/resources.ts +3 -3
- package/templates/template/backend/schema/authors.ts +11 -0
- package/templates/template/backend/schema/index.ts +29 -0
- package/templates/template/backend/schema/posts.ts +29 -0
- package/templates/template/backend/schema/tags.ts +9 -0
- package/templates/template/backend/schema/users.ts +32 -0
- package/templates/template/{config → backend}/storage.ts +4 -4
- package/templates/template/backend/tsconfig.json +15 -20
- package/templates/template/docker-compose.yml +3 -3
- package/templates/template/frontend/package.json +0 -2
- package/templates/template/frontend/src/App.tsx +10 -4
- package/templates/template/frontend/src/cms/authors.tsx +7 -0
- package/templates/template/frontend/src/cms/posts.tsx +27 -0
- package/templates/template/frontend/src/cms/tags.tsx +11 -0
- package/templates/template/frontend/src/cms/ui-config.json +3 -0
- package/templates/template/frontend/src/cms/users.tsx +54 -0
- package/templates/template/frontend/src/{virtual.d.ts → vite-env.d.ts} +0 -4
- package/templates/template/frontend/vite.config.ts +6 -2
- package/templates/template/gitignore +1 -1
- package/templates/template/package.json +1 -2
- package/templates/template/pnpm-workspace.yaml +0 -1
- package/templates/template/scripts/example.ts +3 -3
- package/templates/template/tsconfig.json +1 -1
- package/templates/views/AppView.tsx.tmpl +4 -4
- package/templates/views/EntityView.tsx.tmpl +3 -4
- package/dist/api-keys-Dfw5-9s1.js.map +0 -1
- package/dist/apps-MKQbgDtN.js.map +0 -1
- package/dist/build-BuKTnec8.js.map +0 -1
- package/dist/bundle-BAH4FCju.js.map +0 -1
- package/dist/cloud-Cj5ey3l_.js.map +0 -1
- package/dist/collection-drift-BKj_BoMq.js +0 -106
- package/dist/collection-drift-BKj_BoMq.js.map +0 -1
- package/dist/collections-dir-DlvDhime.js +0 -69
- package/dist/collections-dir-DlvDhime.js.map +0 -1
- package/dist/console-CdwIYOMV.js.map +0 -1
- package/dist/context-AXdAh-q8.js.map +0 -1
- package/dist/db-DBbKpjYX.js.map +0 -1
- package/dist/derive-ae9UOoOB.js.map +0 -1
- package/dist/dev-C93d4QIv.js.map +0 -1
- package/dist/dev-preflight-Cxv3TiD1.js.map +0 -1
- package/dist/doctor-BBPQUO2g.js.map +0 -1
- package/dist/eject-DABcDnPN.js.map +0 -1
- package/dist/fold-static-BWzxNn06.js.map +0 -1
- package/dist/generate-view-IFwCADvb.js.map +0 -1
- package/dist/generate_sdk-DNmNuFuW.js.map +0 -1
- package/dist/init-vL1DWOeC.js.map +0 -1
- package/dist/last-dev-database-DpW5dfoX.js +0 -2
- package/dist/manifest-BtzDy7KQ.js.map +0 -1
- package/dist/path-flags-DNvtEi2-.js +0 -92
- package/dist/path-flags-DNvtEi2-.js.map +0 -1
- package/dist/project-CasK56vN.js.map +0 -1
- package/dist/pull-DDMpsZ5r.js.map +0 -1
- package/dist/resolve-D647F1LA.js +0 -2
- package/dist/schema-DtLPsXbT.js.map +0 -1
- package/dist/schema-reconcile-DkArN9jF.js +0 -2
- package/dist/skills-CbwV6vw_.js.map +0 -1
- package/dist/status-BREvtzJm.js.map +0 -1
- package/dist/storage-CO9ouK76.js.map +0 -1
- package/dist/utils/collection-drift.d.ts +0 -27
- package/dist/utils/collections-dir.d.ts +0 -14
- package/dist/verify-Y3rWSgfA.js +0 -730
- package/dist/verify-Y3rWSgfA.js.map +0 -1
- package/templates/overlays/baas/config/index.ts +0 -24
- package/templates/overlays/baas/config/package.json +0 -30
- package/templates/template/config/cms.d.ts +0 -15
- package/templates/template/config/collections/authors.ts +0 -47
- package/templates/template/config/collections/index.ts +0 -44
- package/templates/template/config/collections/posts.ts +0 -94
- package/templates/template/config/collections/presets/blank/index.ts +0 -5
- package/templates/template/config/collections/presets/ecommerce/categories.ts +0 -42
- package/templates/template/config/collections/presets/ecommerce/index.ts +0 -31
- package/templates/template/config/collections/presets/ecommerce/orders.ts +0 -78
- package/templates/template/config/collections/presets/ecommerce/products.ts +0 -73
- package/templates/template/config/collections/tags.ts +0 -27
- package/templates/template/config/collections/users.ts +0 -149
- package/templates/template/config/frontend-assets.d.ts +0 -17
- package/templates/template/config/index.ts +0 -12
- package/templates/template/config/package.json +0 -30
- package/templates/template/config/tsconfig.json +0 -35
- /package/templates/eject/{config → backend}/resources.ts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineCollection } from "@rebasepro/cms-types";
|
|
2
|
-
|
|
3
|
-
const tagsCollection = defineCollection({
|
|
4
|
-
name: "Tags",
|
|
5
|
-
singularName: "Tag",
|
|
6
|
-
slug: "tags",
|
|
7
|
-
table: "tags",
|
|
8
|
-
properties: {
|
|
9
|
-
id: {
|
|
10
|
-
name: "ID",
|
|
11
|
-
type: "number",
|
|
12
|
-
isId: "increment"
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
name: "Tag Name",
|
|
16
|
-
type: "string",
|
|
17
|
-
validation: {
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
admin: {
|
|
23
|
-
icon: "Tag"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export default tagsCollection;
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { defineCollection } from "@rebasepro/cms-types";
|
|
2
|
-
|
|
3
|
-
const usersCollection = defineCollection({
|
|
4
|
-
name: "Users",
|
|
5
|
-
singularName: "User",
|
|
6
|
-
slug: "users",
|
|
7
|
-
auth: { enabled: true },
|
|
8
|
-
table: "users",
|
|
9
|
-
schema: "rebase",
|
|
10
|
-
securityRules: [
|
|
11
|
-
{
|
|
12
|
-
operation: "select",
|
|
13
|
-
roles: ["admin"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
operations: ["insert", "update", "delete"],
|
|
17
|
-
roles: ["admin"]
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
properties: {
|
|
21
|
-
id: {
|
|
22
|
-
name: "ID",
|
|
23
|
-
type: "string",
|
|
24
|
-
isId: "uuid",
|
|
25
|
-
admin: {
|
|
26
|
-
readOnly: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
email: {
|
|
30
|
-
name: "Email",
|
|
31
|
-
type: "string",
|
|
32
|
-
validation: {
|
|
33
|
-
required: true,
|
|
34
|
-
unique: true
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
displayName: {
|
|
38
|
-
name: "Name",
|
|
39
|
-
type: "string",
|
|
40
|
-
columnName: "display_name"
|
|
41
|
-
},
|
|
42
|
-
photoURL: {
|
|
43
|
-
name: "Photo URL",
|
|
44
|
-
type: "string",
|
|
45
|
-
columnName: "photo_url",
|
|
46
|
-
url: true,
|
|
47
|
-
admin: { urlPreview: "image" }
|
|
48
|
-
},
|
|
49
|
-
roles: {
|
|
50
|
-
name: "Roles",
|
|
51
|
-
type: "array",
|
|
52
|
-
columnType: "text[]",
|
|
53
|
-
of: {
|
|
54
|
-
name: "Role",
|
|
55
|
-
type: "string",
|
|
56
|
-
enum: {
|
|
57
|
-
admin: "Admin",
|
|
58
|
-
editor: "Editor",
|
|
59
|
-
viewer: "Viewer"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
passwordHash: {
|
|
64
|
-
name: "Password Hash",
|
|
65
|
-
type: "string",
|
|
66
|
-
columnName: "password_hash",
|
|
67
|
-
excludeFromApi: true,
|
|
68
|
-
admin: {
|
|
69
|
-
hideFromCollection: true,
|
|
70
|
-
disabled: { hidden: true }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
emailVerified: {
|
|
74
|
-
name: "Email Verified",
|
|
75
|
-
type: "boolean",
|
|
76
|
-
columnName: "email_verified",
|
|
77
|
-
defaultValue: false,
|
|
78
|
-
admin: {
|
|
79
|
-
hideFromCollection: true,
|
|
80
|
-
disabled: { hidden: true }
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
emailVerificationToken: {
|
|
84
|
-
name: "Email Verification Token",
|
|
85
|
-
type: "string",
|
|
86
|
-
columnName: "email_verification_token",
|
|
87
|
-
excludeFromApi: true,
|
|
88
|
-
admin: {
|
|
89
|
-
hideFromCollection: true,
|
|
90
|
-
disabled: { hidden: true }
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
emailVerificationSentAt: {
|
|
94
|
-
name: "Email Verification Sent At",
|
|
95
|
-
type: "date",
|
|
96
|
-
columnName: "email_verification_sent_at",
|
|
97
|
-
admin: {
|
|
98
|
-
hideFromCollection: true,
|
|
99
|
-
disabled: { hidden: true }
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
metadata: {
|
|
103
|
-
name: "Metadata",
|
|
104
|
-
type: "map",
|
|
105
|
-
keyValue: true,
|
|
106
|
-
properties: {},
|
|
107
|
-
defaultValue: {},
|
|
108
|
-
admin: {
|
|
109
|
-
hideFromCollection: true,
|
|
110
|
-
disabled: { hidden: true }
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
createdAt: {
|
|
114
|
-
name: "Created At",
|
|
115
|
-
type: "date",
|
|
116
|
-
columnName: "created_at",
|
|
117
|
-
autoValue: "on_create",
|
|
118
|
-
admin: {
|
|
119
|
-
readOnly: true
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
updatedAt: {
|
|
123
|
-
name: "Updated At",
|
|
124
|
-
type: "date",
|
|
125
|
-
columnName: "updated_at",
|
|
126
|
-
autoValue: "on_update",
|
|
127
|
-
admin: {
|
|
128
|
-
hideFromCollection: true,
|
|
129
|
-
disabled: { hidden: true }
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
admin: {
|
|
134
|
-
icon: "Users",
|
|
135
|
-
group: "Settings",
|
|
136
|
-
openEntityMode: "dialog",
|
|
137
|
-
disableDefaultActions: ["copy"],
|
|
138
|
-
sort: ["createdAt", "desc"],
|
|
139
|
-
propertiesOrder: [
|
|
140
|
-
"id",
|
|
141
|
-
"email",
|
|
142
|
-
"displayName",
|
|
143
|
-
"roles",
|
|
144
|
-
"createdAt"
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
export default usersCollection;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ambient declarations for the asset imports a frontend component makes.
|
|
3
|
-
*
|
|
4
|
-
* A collection that points at a custom `Field` or `Preview` with a lazy `import()`
|
|
5
|
-
* thunk gets that reference type-checked — which means TypeScript resolves the
|
|
6
|
-
* component's *own* imports too, including `import icon from "./icon.png"`. That
|
|
7
|
-
* import is Vite's doing and means nothing to `tsc`: the frontend gets away with it
|
|
8
|
-
* through `vite/client` types, but those belong to the frontend's program, not this
|
|
9
|
-
* one, and Vite is not a dependency here (nothing in `config/` runs in a browser).
|
|
10
|
-
*
|
|
11
|
-
* Without these three lines, adding your first custom component fails the config and
|
|
12
|
-
* backend builds with `Cannot find module './icon.png'` — pointing at a frontend file
|
|
13
|
-
* from a build that has no obvious business compiling it.
|
|
14
|
-
*/
|
|
15
|
-
declare module "*.png" { const src: string; export default src; }
|
|
16
|
-
declare module "*.svg" { const src: string; export default src; }
|
|
17
|
-
declare module "*.jpg" { const src: string; export default src; }
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared collections index file
|
|
3
|
-
* Collections defined here are used by both the frontend and backend
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export { collections } from "./collections/index";
|
|
7
|
-
|
|
8
|
-
// Who may read, write, delete and list files in storage. Exported from here
|
|
9
|
-
// because that is where the runtime and `rebase cloud deploy` look for it — the
|
|
10
|
-
// bundle manifest records whether this export exists, so a managed deploy can be
|
|
11
|
-
// refused with a readable message instead of turning into a boot crash-loop.
|
|
12
|
-
export { storageAuthorize } from "./storage";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{PROJECT_NAME}}-config",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Shared collections for frontend and backend",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"private": true,
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsc && rebase normalize-imports dist",
|
|
11
|
-
"dev": "tsc --watch",
|
|
12
|
-
"clean": "rm -rf dist"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@rebasepro/cms-types": "workspace:*",
|
|
16
|
-
"@rebasepro/types": "workspace:*"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/node": "^22.19.4",
|
|
20
|
-
"typescript": "^6.0.3"
|
|
21
|
-
},
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"import": "./dist/index.js",
|
|
25
|
-
"types": "./dist/index.d.ts",
|
|
26
|
-
"default": "./dist/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./package.json": "./package.json"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"allowSyntheticDefaultImports": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"allowJs": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"jsx": "react-jsx",
|
|
11
|
-
"noEmit": false,
|
|
12
|
-
"declaration": true,
|
|
13
|
-
"outDir": "./dist",
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
// Pin the ambient type libraries.
|
|
18
|
-
//
|
|
19
|
-
// Unset, TypeScript sweeps every `node_modules/@types` it can reach and
|
|
20
|
-
// treats each folder as an implicit type library. Under pnpm that reaches
|
|
21
|
-
// the virtual store, where packages hoisted for peer resolution live —
|
|
22
|
-
// `dompurify` among them, pulled in transitively by the admin editor. The
|
|
23
|
-
// backend has no dependency on it and cannot resolve its entry point, so
|
|
24
|
-
// `rebase build` failed the whole bundle with:
|
|
25
|
-
//
|
|
26
|
-
// error TS2688: Cannot find type definition file for 'dompurify'
|
|
27
|
-
//
|
|
28
|
-
// `frontend/tsconfig.json` has always pinned its own list, which is why the
|
|
29
|
-
// frontend never saw this. Naming what this program needs is both the fix
|
|
30
|
-
// and the faster compile.
|
|
31
|
-
"types": ["node"]
|
|
32
|
-
},
|
|
33
|
-
"include": ["**/*.ts"],
|
|
34
|
-
"exclude": ["node_modules", "dist"]
|
|
35
|
-
}
|
|
File without changes
|