Commit Graph

69 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
7e96e9d469 bugfix 2021-01-27 14:19:20 +08:00
chenos
11f5050fd5 bugfix 2021-01-26 17:12:31 +08:00
chenos
4ee4bed527 feat: add description field 2021-01-26 16:47:57 +08:00
chenos
3f7e8e9c2f feat: can set editable fields on tabs 2021-01-25 10:22:24 +08:00
chenos
1be960bebf feat: the details tab can choose which fields to display 2021-01-24 13:23:13 +08:00
chenos
e36415330f fix: can use markdown in field description 2021-01-23 14:15: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
5f5bb0a258 fix: form submission broken when using nested form 2021-01-16 17:25:19 +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
d321b95fb0 fix: remove max width style 2021-01-08 09:01:33 +08:00
chenos
07b982960d fix: shared form scopes 2021-01-07 14:58:44 +08:00
chenos
84e4df4086 fix: add target="_blank" to links 2021-01-07 09:54:31 +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
b6e41a6e45 fix: add hover style for table rows 2021-01-06 16:31:10 +08:00
chenos
eac7734f07 feat: align number columns text to right 2021-01-06 16:15:01 +08:00
chenos
8c679b0938 feat: support marked render for textarea field 2021-01-06 15:45:38 +08:00
chenos
0b6d54b3fc feat: pagination show total 2021-01-06 15:44:22 +08:00
chenos
8274fbad21 refactor: improve deep equals check 2021-01-06 15:40:27 +08:00
chenos
7a4e047910 feat: add prompt to save when closing the form 2021-01-06 13:08:00 +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
3e9f311c84 feat: add image lightbox for the attachment field 2021-01-05 17:31:41 +08:00
chenos
31edb3a1fe feat(app): add mobile responsive 2021-01-05 12:50:28 +08:00
chenos
63033d57c4 fix: adjust the view mode(temporary) 2021-01-04 23:27:38 +08:00
chenos
10c891d949 feat: add calendar view 2021-01-04 20:53:30 +08:00
chenos
34895d3843 fix: text field output up to 20 characters in the table 2021-01-02 09:23:02 +08:00
chenos
53212ee47d fix: default checkbox for row selection type 2021-01-01 17:42:24 +08:00
chenos
97136c62ba fix(app): filter merge 2021-01-01 17:35:28 +08:00
chenos
89650750b1 fix(app): unable to associate a record 2021-01-01 17:20:31 +08:00
chenos
4fc2843a05 feat(file-manager): add aliyun oss storage 2020-12-31 12:11:38 +08:00
chenos
52a1ce012c feat(app): image open in the modal 2020-12-30 23:20:37 +08:00
chenos
f70b229985 fix: sub table overflow 2020-12-30 22:43:47 +08:00
chenos
859bb18f97 feat(app): improve loading animation 2020-12-30 22:42:47 +08:00
chenos
d74eda3f23 feat: use icon for boolean field 2020-12-30 12:30:38 +08:00
chenos
2e35947dae fix: Show the number of filters 2020-12-30 12:02:02 +08:00
chenos
c20d3a91de fix: action buttons align right 2020-12-30 11:22:06 +08:00
chenos
41755a8af4 feat: improve ui details 2020-12-30 00:00:39 +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
76acd162e4 feat: add file icons 2020-12-24 08:35:40 +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
6f0cd54fd8 feat: add linkTo field component 2020-12-22 19:08:41 +08:00
chenos
4bc2df296d feat: add actionDefaultParams to views 2020-12-21 10:41:12 +08:00
chenos
85aee08260 feat: add remote select component 2020-12-20 17:27:33 +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