Commit Graph

40 Commits

Author SHA1 Message Date
chenos
d817ec4c7b fix: missing parameters 2021-11-30 16:43:44 +08:00
chenos
3e53584768 fix: remove state property 2021-11-23 08:21:38 +08:00
chenos
a702f534ba feat: add roles field to users collection 2021-11-17 18:54:02 +08:00
chenos
d8c7a0f1c3 feat: add roles field to users collection 2021-11-16 18:28:07 +08:00
chenos
27f6bde775 feat: improve code 2021-09-23 00:16:04 +08:00
chenos
23db248743 feat: menu permissions 2021-08-11 14:27:45 +08:00
chenos
66549dc4bf feat: improve code 2021-08-11 11:18:10 +08:00
chenos
fe12c67ba6 refactor: permissions plugin 2021-08-11 00:02:37 +08:00
Junyi
f6dcfae28c
refactor: use boolean value instead of null (#74) 2021-04-12 18:10:59 +08:00
chenos
b6cd540f72 chore: remove console.log 2021-04-06 19:52:01 +08:00
chenos
c812d97527 fix: sub-table field permissions 2021-03-31 00:01:30 +08:00
chenos
20be2d7115 fix: change logs order by desc 2021-03-29 10:19:42 +08:00
chenos
ce4a22fbb9 style: code formatting 2021-03-28 13:34:51 +08:00
chenos
81399f6037 fix: clean up code and fix tests 2021-03-19 21:27:42 +08:00
chenos
092d705d3d adjust the text of the menu permission view 2021-03-18 22:32:07 +08:00
chenos
17ae461163 fix: Property 'rows' does not exist on type 'unknown'. 2021-03-16 16:58:57 +08:00
chenos
fdc1ab03e7 fix: Property 'rows' does not exist on type 'unknown'. 2021-03-16 14:43:55 +08:00
chenos
bfdb45a1ef fix isRoot error & add getCollections api 2021-03-16 14:40:47 +08:00
chenos
6c39ac3538
Develop (#68)
* refactor: fields/views/pages...

* update

* update

* update

* updates

* updates

* add yarn.lock

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* updates

* developerMode

* 一大波更新

* bugfix

* fix: hide the sorting settings

* fix: reload menu when menu is updated

* 页面重构

* modify text

* 补充细节

* system settings

* 继续更新补充

* fix: 多级菜单支持

* 无限嵌套

* fix: icon

* 省市区参数调整

* 表单描述、文案调整

* 支持草稿

* 邮箱登录

* 细节补充

* 菜单页面权限初步

* 详情页打开方式

* 菜单父级、草稿问题

* 描述文字

* 详情分组显示

* 状态改为 radio

* 菜单权限

* 跳过省市区 api

* 修复权限数据范围

* onDraft

* 页面跳转

* 修改文案

* 注册、登录

* fix: 权限过滤问题

* 微调上传组件样式

* 0.4.0-alpha.0

* father-build

* remove father-build

* 细节调整
2021-03-16 14:31:54 +08:00
Junyi
df2137da79
Feature: filter for linkTo field (#64)
* feat: add scope select for relation field

* fix: add associatedKey support for drawerSelect component

* refactor: use 'component.x-component-props.filter' as filter type

* fix: remove user group field

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-02-18 08:55:46 +08:00
chenos
1ea08e62b6
Feature/action logs (#61)
* feat: add action logs plugin

* feat: add afterUpdate/afterDestroy hooks for logs

* 子表格细节改进

* fix: subtable

* activity

* bugfix

Co-authored-by: mytharcher <mytharcher@gmail.com>
2021-01-29 23:53:50 +08:00
chenos
c6e1fd2d5f fix: set onDelete CASCADE 2021-01-27 11:24:23 +08:00
Junyi
db3a8a7499
Feature/destroy lock (#60)
* feat: load collection actions for custom options

* fix: test case

* optimization

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-01-26 22:16:22 +08:00
chenos
82355e1422 fix: scopes 2021-01-23 17:09:33 +08:00
chenos
f1c0503916 fix: SequelizeForeignKeyConstraintError: insert or update on table "actions_scopes" violates foreign key constraint "actions_scopes_collection_name_fkey" 2021-01-23 11:17:36 +08:00
chenos
d50d5a6da3 fix: users roles field showInTable 2021-01-22 10:29:41 +08:00
chenos
301229ef88
feat: route permissions (#58)
* feat: routes permissions

* fix: try to fix roles.pages action

* 多态关联

* bugfix

* fix: auto generate when option value is undefined or null

* feat: add pages' permissions saving/listing

* feat: add permission filter for getRoutes

* roles description

* feat: get root permissions all true and create user with default role

* feat: roles.collections list output with permission

* add permissions description

* fix: add context to parseApiJson

* fix: typo

* 小细节补充

Co-authored-by: mytharcher <mytharcher@gmail.com>
2021-01-22 10:18:02 +08:00
Junyi
bd756a6a5c
Feature: add permission plugin api (#57)
* fix: update method of permission

* 页面访问权限

* feat: add tabs update in role

* refactor: change main action permission check into single file

* feat: add pluginLoaded event listener for init page permissions

* refactor: change to can api

* refactor: use constants for role types

* refactor: can api

* 只处理 actions 表里的权限,其余跳过

* 注释掉 fields

* bugfix

* add: 详情模块编辑按钮权限判断

* test: add cases

* fix: add association permission judgment

* fix: add disabled property to drawer select

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-01-20 08:33:47 +08:00
chenos
eff2353954 fix: update collections.roles actions 2021-01-18 19:21:58 +08:00
chenos
1d5c39e0e8 feat: add permissions migration 2021-01-18 19:06:31 +08:00
chenos
95be672222 feat: add scope hook 2021-01-17 21:51:24 +08:00
chenos
3a3f6fa6ca feat: add action scopes for permissions 2021-01-16 17:26:21 +08:00
chenos
9d95a27a7f feat: add collection permissions tab 2021-01-14 10:52:20 +08:00
Junyi
c5f089d7b7
feat: add permissions plugin (#53)
* test: skip bug test cases for ci passing

* feat: add base structure of plugin-permissions

* fix: user token parsing

* Refactor action parameter for better mergeParams (#55)

* refactor: add parameter types to handle parameters in action [WIP]

* fix: action parameter

* fix: test cases

* test: try to fix build error

* remove unused packages

* fix: revert compatibility back

Co-authored-by: chenos <chenlinxh@gmail.com>

* 补充权限界面相关功能

* bugfix

* fix: developer mode does not work

* feat: add action scope and fields limitation in permission

* 改进权限配置表单

* feat: get/update action for role.collection

* add scope select component

* add role users tabs

* typings

* test: temp skip

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-01-13 16:23:15 +08:00
chenos
0a2912fe6e docs: change 创建 to 新增 2020-12-23 19:55:25 +08:00
chenos
578454d07f
feat: pagination options (#20)
* feat: pagination options

* fix: data: {list, total}
2020-11-21 23:49:59 +08:00
chenos
9daae13c68
feat: improve plugins (#14)
* feat: delete defined resources

* feat: api client

* feat: view fields & tab field options & page info...

* fix: view type
2020-11-13 22:01:14 +08:00
chen
bf2e315c9e refactor: code cleanup 2020-11-11 20:57:18 +08:00
chenos
dcdb21d398
发布核心框架 (#6)
* api/ui 改名为 server/client

* 微调

* 继续完善 pages

* Fix env file and file mode. (#1)

* Fix: ignore .env file and environment variable names.

* Fix: correct file mode.

* fix: put environment variables together

* fix: separate data and ui resourcer

* feat: collection loader

* feat: redirectTo

* feat: fields & actions & views

* feat: fields & actions

* feat: app & pages & collections...

* feat: collections & pages & permissions...

* Doc: add readme (#2)

* Doc: add README.md.

* Util: add .editorconfig.

* Fix: use glob ignore option instead of additional checking. (#3)

* Fix: typo. (#4)

* feat: permissions

* feat: getCollection & getView actions

* refactor: code cleanup

Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
2020-11-11 15:23:39 +08:00
chen
e5d30b30ba first commit 2020-10-24 15:34:43 +08:00