From a702f534bad26a814f332954ca234cfba3d458fe Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 17 Nov 2021 18:54:02 +0800 Subject: [PATCH] feat: add roles field to users collection --- .../admin-layout/Collections/index.tsx | 6 ++ .../database-field/interfaces/linkTo.ts | 6 +- packages/client/src/schemas/select/index.tsx | 11 +- .../src/db/en-US/part1/01-ui_schemas.sql | 2 +- .../src/db/en-US/part1/02-collections.sql | 6 +- .../src/db/en-US/part1/03-fields.sql | 2 +- .../src/db/en-US/part2/06-t_2uhu4szs1kq.sql | 0 .../src/db/en-US/part2/07-t_fsveob6p269.sql | 0 .../src/db/en-US/part2/08-t_geso7fru7a9.sql | 0 .../src/db/en-US/part2/09-t_bphcojtl8bx.sql | 0 .../src/db/en-US/part2/10-t_jh7a28dsfzi.sql | 0 .../src/db/en-US/part2/12-roles.sql | 6 +- .../db/en-US/part2/13-action_permissions.sql | 34 +++--- .../db/en-US/part2/14-field_permissions.sql | 0 .../db/en-US/part2/15-roles_ui_schemas.sql | 102 +++++++++--------- .../src/db/zh-CN/part1/01-ui_schemas.sql | 2 +- .../src/db/zh-CN/part1/02-collections.sql | 6 +- .../src/db/zh-CN/part1/03-fields.sql | 2 +- .../src/db/zh-CN/part2/06-t_2uhu4szs1kq.sql | 0 .../src/db/zh-CN/part2/07-t_fsveob6p269.sql | 0 .../src/db/zh-CN/part2/08-t_geso7fru7a9.sql | 0 .../src/db/zh-CN/part2/09-t_bphcojtl8bx.sql | 0 .../src/db/zh-CN/part2/10-t_jh7a28dsfzi.sql | 0 .../src/db/zh-CN/part2/11-t_p13gbi31uux.sql | 0 .../src/db/zh-CN/part2/12-roles.sql | 6 +- .../db/zh-CN/part2/13-action_permissions.sql | 34 +++--- .../db/zh-CN/part2/14-field_permissions.sql | 0 .../db/zh-CN/part2/15-roles_ui_schemas.sql | 102 +++++++++--------- .../src/collections/roles.ts | 4 +- .../plugin-users/src/collections/users.ts | 11 +- 30 files changed, 179 insertions(+), 163 deletions(-) mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/06-t_2uhu4szs1kq.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/07-t_fsveob6p269.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/08-t_geso7fru7a9.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/09-t_bphcojtl8bx.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/10-t_jh7a28dsfzi.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/12-roles.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/13-action_permissions.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/14-field_permissions.sql mode change 100644 => 100755 packages/plugin-client/src/db/en-US/part2/15-roles_ui_schemas.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/06-t_2uhu4szs1kq.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/07-t_fsveob6p269.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/08-t_geso7fru7a9.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/09-t_bphcojtl8bx.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/10-t_jh7a28dsfzi.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/11-t_p13gbi31uux.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/12-roles.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/13-action_permissions.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/14-field_permissions.sql mode change 100644 => 100755 packages/plugin-client/src/db/zh-CN/part2/15-roles_ui_schemas.sql diff --git a/packages/client/src/components/admin-layout/Collections/index.tsx b/packages/client/src/components/admin-layout/Collections/index.tsx index f7dc01f61..6addd80ab 100644 --- a/packages/client/src/components/admin-layout/Collections/index.tsx +++ b/packages/client/src/components/admin-layout/Collections/index.tsx @@ -652,6 +652,7 @@ function CreateFieldButton() {