Commit Graph

413 Commits

Author SHA1 Message Date
chenos
38e9b2c96c fix: subTable 2021-03-26 12:14:16 +08:00
chenos
47f4cb4d13 style 2021-03-26 10:27:53 +08:00
chenos
489d7c27dd fix: modify text 2021-03-26 10:14:53 +08:00
chenos
281c1b3f1d fix: add database pool options 2021-03-26 10:06:36 +08:00
chenos
07af1ca08d fix: form expression scope 2021-03-26 10:05:55 +08:00
chenos
122f6bfdb7 feat: markdown field 2021-03-26 10:03:54 +08:00
chenos
ed296cfc5f fix: drawer title 2021-03-25 20:38:11 +08:00
chenos
2aa04323ff fix: auto get filter fields 2021-03-25 16:54:11 +08:00
chenos
330d08ab35 feat: kanban view 2021-03-25 16:11:45 +08:00
chenos
eba121b998 fix: add sticky parameter to sort action 2021-03-25 16:03:43 +08:00
chenos
b101760092 feat: add calendar view 2021-03-25 08:14:19 +08:00
chenos
964b5f70ba feat: field extensions for login/register forms 2021-03-24 19:13:44 +08:00
chenos
859e1e0a04 fix: form submission error 2021-03-24 16:55:08 +08:00
chenos
bb5aa17106 feat: drawer close with confirm 2021-03-24 10:28:01 +08:00
chenos
388dbc5ef4 feat: quick create view for page 2021-03-24 10:21:38 +08:00
chenos
d3fa4d3d1a feat: add api package 2021-03-23 10:53:11 +08:00
chenos
e4840f9b76 style: fix some responsive styling 2021-03-22 22:28:07 +08:00
chenos
349c9030d2 fix: add color for action log type options 2021-03-22 16:56:40 +08:00
chenos
55543fb46e fix: improve menu/view configuration 2021-03-22 16:45:32 +08:00
chenos
e443857309 fix: move page templates to pages/index 2021-03-22 14:12:11 +08:00
chenos
bd1449e87a feat(users): add reset password for users 2021-03-22 13:41:00 +08:00
chenos
b95e2da129 chore: adjust parameters 2021-03-22 13:33:57 +08:00
chenos
6c76d27cd3 fix: login & register 2021-03-22 08:56:58 +08:00
chenos
81399f6037 fix: clean up code and fix tests 2021-03-19 21:27:42 +08:00
chenos
53c62e922d fix: when the details are empty, the table rows are not clickable 2021-03-18 22:37:47 +08:00
chenos
baae04a6dd feat: add create/update/destroy action logs views 2021-03-18 22:36:05 +08:00
chenos
808e3657e0 improve collection/field import 2021-03-18 22:33:57 +08:00
chenos
092d705d3d adjust the text of the menu permission view 2021-03-18 22:32:07 +08:00
chenos
ea07c2de32 organize the code 2021-03-18 20:58:59 +08:00
chenos
fcf7b367ac fix: when there are too many menu items in a row, hide some of them 2021-03-17 17:41:43 +08:00
chenos
2e4bf25923 fix: view form type field linkages 2021-03-17 17:14:38 +08:00
chenos
e56d9b8573 fix: document title of the login page 2021-03-17 09:53:25 +08:00
chenos
d18ec0be84 max-width: 1000px 2021-03-17 09:47:29 +08:00
chenos
cef2161972 feat: support for configuration after successful draft submission 2021-03-16 23:32:59 +08:00
chenos
d94cf316e8 drawer max width 800px 2021-03-16 23:05:08 +08:00
chenos
6c24978601 fix: logo height 2021-03-16 23:00:18 +08:00
chenos
62164c907c feat: view support quick edit 2021-03-16 18:06:43 +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
c6caa7aade fix: show site title in document title 2021-03-16 14:37:24 +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
chenos
544e5c22dc fix: upgrade marked 2021-02-22 15:12:57 +08:00
Junyi
662619b91c
Feature: plugin-china-region (#66)
* feat: add core function for china region cascade select

* fix: test case

* refactor: use belongsToMany for region field and fix component

* fix: data import

* fix: remove sort field

* fix: clear on changeOnSelect is false
2021-02-22 15:08:35 +08:00
chenos
ce5690e25c fix: error TS2339: Property 'rows' does not exist on type 'unknown'. 2021-02-22 11:20:27 +08:00
chenos
837865b880 fix: Property 'rows' does not exist on type '{}'. 2021-02-22 11:11:49 +08:00
chenos
e980791796 fix: skip non-existent collection 2021-02-19 22:33:47 +08:00
chenos
5000affc26 fix: skip non-existent collection 2021-02-18 12:15:09 +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
Junyi
cef64bb7f5
fix: make default view/tab cannot be destroyed (#63)
* fix: make default view/tab cannot be destroyed

* refactor: return count for destroy action
2021-02-08 15:13:07 +08:00
chenos
eb5581646c
Feature/plugin automations (#65)
* feat: add automations plugin

* feat: support users views as submenu

* fix: reload users collection options on initialization

* 表单细节

* 细节更新

* filterable

* fix: can not disassociate before destroy data

* 暂存

* 表单联动细节

* 补充细节

* 补充测试和细节改进

* 补充细节和测试

* 再来一波更新
2021-02-07 17:39:47 +08:00
chenos
9bd79cf082 fix: add associatedKey support for drawerSelect component 2021-02-05 20:10:31 +08:00
chenos
b050e4ce5d feat: add associatedKey property to filter field component 2021-02-03 17:03:22 +08:00
chenos
511ba90d99 feat: add defaultFilter property to table view 2021-02-03 16:53:31 +08:00
chenos
365513909a fix: can not disassociate before destroy data 2021-02-01 19:05:37 +08:00
Junyi
f9c4fb9df0
Feature/action logs (#62)
* feat: add hasMany field for action logs

* fix: add scope to log field

* test: add cases

* test: remove console.log

* test: add expects

* refactor: use constants for hook types

* fix: missing pageInfo

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-02-01 13:32:02 +08:00
chenos
134f72f6e8 fix: missing pageInfo 2021-02-01 13:30:32 +08:00
chenos
d83cebac56 fix: multi-level nesting 2021-01-30 19:06:01 +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
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
598584447f fix(plugin-permissions): perPage = -1 2021-01-27 16:32:31 +08:00
chenos
7e96e9d469 bugfix 2021-01-27 14:19:20 +08:00
chenos
18e7d5ba77 fix: reload users collection options on initialization 2021-01-27 14:08:26 +08:00
chenos
c6e1fd2d5f fix: set onDelete CASCADE 2021-01-27 11:24:23 +08:00
chenos
47bd72fa49 fix: jest.setTimeout 300000 2021-01-26 22:44:21 +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
613c4a14ad style: update form description style 2021-01-26 22:14:48 +08:00
chenos
11f5050fd5 bugfix 2021-01-26 17:12:31 +08:00
chenos
25d9ae8fcc fix: update field 2021-01-26 17:00:50 +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
22ce4c60e7 scroll y 300 2021-01-25 10:36:37 +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
a98f5af183 feat: support users views as submenu 2021-01-24 09:27:24 +08:00
Junyi
9a27eac0e0
fix: ignore some typescript error (#59) 2021-01-23 17:12:09 +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
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
1d8de0bc4e fix: default template for views 2021-01-22 14:54:08 +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
Junyi
ae257567bf
fix: updatedBy foreignKey (#56) 2021-01-17 10:45:37 +08:00
chenos
3a3f6fa6ca feat: add action scopes for permissions 2021-01-16 17:26:21 +08:00
chenos
5f5bb0a258 fix: form submission broken when using nested form 2021-01-16 17:25:19 +08:00
chenos
dba1f1fbc6 fix: delete collection load middleware 2021-01-15 23:54:50 +08:00
chenos
9d95a27a7f feat: add collection permissions tab 2021-01-14 10:52:20 +08:00
chenos
1242ba5aed feat: improve database.sync() 2021-01-14 10:35:15 +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
e51ee7d1e6 refactor: table.extend() method 2021-01-13 15:43:41 +08:00
chenos
b9f74197d3 fix: add mode to view options 2021-01-12 23:00:44 +08:00
chenos
30b006bb45 fix: ids not empty 2021-01-10 09:40:29 +08:00
chenos
b81b83d3f3 fix: do not change the field type 2021-01-08 15:49:37 +08:00
chenos
772d83cf78 style: logo 2021-01-08 10:15:10 +08:00
chenos
cd6d444a3f fix: filter failed files 2021-01-08 09:23:51 +08:00
chenos
d321b95fb0 fix: remove max width style 2021-01-08 09:01:33 +08:00
chenos
014f9128a5 fix: sorting of sub table fields 2021-01-08 08:52:55 +08:00
chenos
747e743df8 fix: use $isFalsy to filter developerMode 2021-01-08 00:11:50 +08:00
chenos
6b3bbefb2a fix: typo 2021-01-07 23:57:33 +08:00
chenos
2096ee84c4 fix: password autocomplete=new-password 2021-01-07 23:42:31 +08:00
chenos
1dbfe14379 fix: get collection with transaction 2021-01-07 23:23:36 +08:00
chenos
ef7cc13ae1 autoComplete=off 2021-01-07 23:21:17 +08:00
chenos
07b982960d fix: shared form scopes 2021-01-07 14:58:44 +08:00
chenos
b878b214d4 add collectionSync parameter for database options 2021-01-07 14:54:01 +08:00
Junyi
8289f96dd5
fix: updatedBy field in bulkUpdate hook (#54)
* fix: updatedBy field in bulkUpdate hook

* fix: test cases

* add db.sync() after each test case

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-01-07 14:49:39 +08:00
chenos
80acf5f199 fix: update users collection config 2021-01-07 12:51:48 +08:00
chenos
54fdb7ab46 fix: set to null when password field is empty 2021-01-07 12:48:51 +08:00
chenos
285cf34c6a fix: set to null when text field is empty 2021-01-07 12:48:24 +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
ee6cc5a665 fix: table section checkbox can not be selected 2021-01-07 09:25:27 +08:00
chenos
8b1bd64034 feat: support for image preview on image upload 2021-01-07 08:57:44 +08:00
chenos
6194009d41 style: change scrollbar style 2021-01-06 19:57:12 +08:00
chenos
988b265bb8 feat: demo env disable create/update/destroy actions 2021-01-06 17:38:08 +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
cbb95bfb6f fix: add default color 2021-01-06 10:46:37 +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
778fb648ca fix(app): maxRows=12 2021-01-05 20:39:21 +08:00
chenos
c622f2ad21 fix: set logical operator default value 2021-01-05 20:35:55 +08:00
chenos
3e9f311c84 feat: add image lightbox for the attachment field 2021-01-05 17:31:41 +08:00
Junyi
62a7cc2b1f
test: skip bug test cases for ci passing (#52) 2021-01-05 15:19:36 +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
65c7ec9060 feat(app): adjust sub menu spacing 2021-01-04 23:26:51 +08:00
chenos
1db4fbb8ee fix: logical operator value 2021-01-04 20:58:11 +08:00
chenos
10c891d949 feat: add calendar view 2021-01-04 20:53:30 +08:00
chenos
5237b14dc0 feat: improve migrate cli 2021-01-04 13:17:16 +08:00
chenos
74600f0eb5 fix: filter developer mode with isTruly/isFalsy 2021-01-04 13:14:45 +08:00
chenos
10b2199e54 fix: remove through.updateAssociations 2021-01-03 10:55:25 +08:00
chenos
ad4eabd569 fix: set to null, not undefined 2021-01-02 22:43:37 +08:00
chenos
090394145a fix: drawer select allow clear 2021-01-02 22:31:35 +08:00
chenos
eafdddcd4d fix: allow set null with updateAssociations 2021-01-02 22:30:13 +08:00
chenos
752de2b58a fix(app): can not open modal when only allow linking to one record 2021-01-02 09:31:33 +08:00
chenos
34895d3843 fix: text field output up to 20 characters in the table 2021-01-02 09:23:02 +08:00
chenos
2689e070f1 fix: action buttons align right 2021-01-02 09:21:07 +08:00
chenos
7ce22d7267 fix: input control can not input chinese 2021-01-02 09:18:55 +08:00
chenos
f28a56ea77 fix: button ordering 2021-01-01 20:16:40 +08:00
chenos
76e02f8ad9 fix: improve sub table action button style 2021-01-01 19:53:54 +08:00
chenos
ba6f3f7f7d fix: appends/except only use to get/list actions 2021-01-01 19:12:53 +08:00
chenos
53212ee47d fix: default checkbox for row selection type 2021-01-01 17:42:24 +08:00