Commit Graph

63 Commits

Author SHA1 Message Date
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
4ed21682ac fix: defaultTab 2021-01-27 16:58:36 +08:00
chenos
8ec40d32e2 fix: tab permissions does not work 2021-01-27 16:46:31 +08:00
chenos
18e7d5ba77 fix: reload users collection options on initialization 2021-01-27 14:08:26 +08:00
chenos
4ee4bed527 feat: add description field 2021-01-26 16:47:57 +08:00
chenos
4fb1ff6c33 fix: skip developer mode and internal collection permissions 2021-01-26 15:18:07 +08:00
chenos
3f7e8e9c2f feat: can set editable fields on tabs 2021-01-25 10:22:24 +08:00
chenos
a98f5af183 feat: support users views as submenu 2021-01-24 09:27:24 +08:00
chenos
82355e1422 fix: scopes 2021-01-23 17:09:33 +08:00
chenos
e36415330f fix: can use markdown in field description 2021-01-23 14:15:41 +08:00
chenos
1d8de0bc4e fix: default template for views 2021-01-22 14:54:08 +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
95be672222 feat: add scope hook 2021-01-17 21:51:24 +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
014f9128a5 fix: sorting of sub table fields 2021-01-08 08:52:55 +08:00
chenos
551f8bad8d feat: improve view mode 2021-01-07 09:31:26 +08:00
chenos
8b1bd64034 feat: support for image preview on image upload 2021-01-07 08:57:44 +08:00
chenos
988b265bb8 feat: demo env disable create/update/destroy actions 2021-01-06 17:38:08 +08:00
chenos
65326a242a refactor: can configure the color of the option label for option type fields 2021-01-06 10:23:40 +08:00
chenos
74600f0eb5 fix: filter developer mode with isTruly/isFalsy 2021-01-04 13:14:45 +08:00
chenos
6a9bf9572c fix: view filtering does not work 2020-12-31 21:04:03 +08:00
chenos
8861e282cb fix: show the relationship fields of the sub table 2020-12-30 15:01:28 +08:00
chenos
e692d7bb5f fix: menu sort 2020-12-29 11:31:19 +08:00
chenos
0754c5979a fix: hide the paired linkTo field in the table/form view 2020-12-28 11:38:23 +08:00
chenos
94c386e7aa fix: use simple table for the association tab view 2020-12-28 11:11:49 +08:00
chenos
629a4de173 feat: add association tab 2020-12-25 16:15:58 +08:00
chenos
56c9f131a1 refactor: improve action default params 2020-12-24 08:16:18 +08:00
chenos
4b3d07d51c fix: improves collections load 2020-12-23 20:29:11 +08:00
chenos
8f5ebb846c fix: menu filter showInMenu=true 2020-12-23 20:12:50 +08:00
chenos
0a2912fe6e docs: change 创建 to 新增 2020-12-23 19:55:25 +08:00
chenos
5f69f0d9e1 feat: improves upload and attachment components 2020-12-23 16:03:37 +08:00
chenos
0edb148db2 feat: add drawerSelect component for linkTo 2020-12-22 19:12:30 +08:00
chenos
98ae8a62a1 fix: fields appends by view type 2020-12-21 14:19:31 +08:00
chenos
4bc2df296d feat: add actionDefaultParams to views 2020-12-21 10:41:12 +08:00
chenos
d408cd4c1f feat: improve icon field 2020-12-21 09:22:05 +08:00
chenos
ecab106c3c
feat: support subTable field
* feat: add linkTo and subTable fields

* add subTable field component

* improve sub table

* bugfix
2020-12-20 12:52:15 +08:00
chenos
afce1142d9 fix: improve field options 2020-12-18 18:25:06 +08:00
chenos
50a081c861 fix: page menu sort 2020-12-16 08:43:09 +08:00
chenos
b2801a00dc fix: view can be displayed in data menu 2020-12-15 22:44:20 +08:00
chenos
d45d37cabf feat: add field renderer 2020-12-13 20:48:48 +08:00
chenos
71b2d9bfeb feat: improve field options 2020-12-13 17:20:54 +08:00
chenos
5fd8139767 improve filter & sort... 2020-12-13 00:09:25 +08:00
chenos
4decab86be feat: pages actions & tabs 2020-12-12 16:36:02 +08:00
chenos
eb501e3461 fix: get pageTitle with first string field 2020-12-11 15:00:33 +08:00
chenos
880737c5c8 feat: add internal parameter to collection options 2020-12-11 10:31:00 +08:00
chenos
f8e8b2b9c7 feat: add registerable icon component 2020-12-10 20:32:44 +08:00
chenos
9b73e2a7d3 feat: improve fields & views tables options 2020-12-09 20:46:57 +08:00
chenos
0d3d30e0c2 feat: add support for filter action 2020-12-08 21:19:39 +08:00