Commit Graph

151 Commits

Author SHA1 Message Date
chenos
5fdbc1b10d feat: improve field components 2020-12-19 15:48:06 +08:00
Junyi
8bdbd804f0
feature: add file manager base architecture (#44)
* feature: add file manager base architecture

* 修改 action 注册方式

* put upload action and middleware together

* bugfix

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-19 08:45:19 +08:00
chenos
6ffa3b53e8 refactor: add plugin manager 2020-12-18 19:54:53 +08:00
chenos
7e9b4a8f45 fix: add createdAt/updatedAt/createdBy/updatedBy options to the collections table for developer mode 2020-12-18 19:41:40 +08:00
chenos
afce1142d9 fix: improve field options 2020-12-18 18:25:06 +08:00
chenos
184adb924d fix: use database hook to trigger add createdBy/updatedBy fields 2020-12-18 15:50:03 +08:00
chenos
272b64b81b feat: add relation field component for table and detail 2020-12-18 15:36:38 +08:00
chenos
d755558009 feat: add user check middleware 2020-12-18 15:33:34 +08:00
chenos
a351d52226 fix: improve createdBy/updatedBy default options 2020-12-18 15:32:45 +08:00
Junyi
110d5bcc9c
feat: add createdBy/updatedBy field config for table managed by collections (#43)
* feat: add createdBy/updatedBy field config for table managed by collections

* fix: update by different users and field initialization

* fix: function argument

* add: test cases

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-18 09:04:40 +08:00
chenos
59db7a34dc fix: model is not null 2020-12-17 21:47:23 +08:00
chenos
aef6b85736 fix: allow custom sort value 2020-12-16 20:47:10 +08:00
chenos
1006b1a9a5 feat: add sub fields for the relation field 2020-12-16 10:17:30 +08:00
chenos
50a081c861 fix: page menu sort 2020-12-16 08:43:09 +08:00
chenos
866549ce26 fix: do not clear data when migrating data 2020-12-16 08:42:37 +08:00
chenos
1aa7ee65ab fix: association destroy with individualHooks 2020-12-15 22:45:35 +08:00
chenos
b2801a00dc fix: view can be displayed in data menu 2020-12-15 22:44:20 +08:00
chenos
67e18352b6 add hooks for database 2020-12-15 20:16:55 +08:00
chenos
8739ea79d2 fix: add view filter to action params 2020-12-15 14:32:56 +08:00
chenos
a342c30175 fix: dynamic action params 2020-12-15 09:58:42 +08:00
Junyi
7fcce0943a
fix: use wrapped and logic for merging filters (#42) 2020-12-14 22:07:23 +08:00
chenos
a687e1e1e3 chore: add app container 2020-12-14 17:06:05 +08:00
chenos
d45d37cabf feat: add field renderer 2020-12-13 20:48:48 +08:00
chenos
ab90b15ffc feat: add icon field 2020-12-13 20:46:40 +08:00
chenos
71b2d9bfeb feat: improve field options 2020-12-13 17:20:54 +08:00
chenos
d03f927bc1 refactor: collections test cases 2020-12-13 17:17:41 +08:00
chenos
a7c9461cc0 fix: remove required parameter from the field options 2020-12-13 17:16:54 +08:00
chenos
a3107721c2 fix: page showInMenu=true 2020-12-13 17:15:02 +08:00
Junyi
b6bce5a2dc
fix: filterByFields should return same value when input == null (close 0) (#41) 2020-12-13 17:12:44 +08:00
chenos
5fd8139767 improve filter & sort... 2020-12-13 00:09:25 +08:00
Junyi
787d2b611f
fix: Symbol property could not be iterated in for-in (#39) 2020-12-12 22:10:44 +08:00
Junyi
5662509f4c
Feature/sort (#38)
* refactor: change sort strategy from offset to targetId

* fix: remove unnecessary query to optimize performance

* refactor: change sort api to allow object

* refactor: change function member positions

* fix: test case names

* fix: static to instance
2020-12-12 16:38:08 +08:00
chenos
4decab86be feat: pages actions & tabs 2020-12-12 16:36:02 +08:00
chenos
2dbbe29223 feat: improve filter action 2020-12-12 16:32:18 +08:00
chenos
c776229540 feat: remove view options from collections 2020-12-12 16:31:05 +08:00
Junyi
d1372e273a
refactor: change sort strategy from offset to targetId (#37)
* refactor: change sort strategy from offset to targetId

* fix: remove unnecessary query to optimize performance
2020-12-11 22:36:02 +08:00
Junyi
841249f58c
Feature/sort (#36)
* feat: add sort value initialization via beforeCreate hook

* fix: after reinitialization, hooks are lost

* test: temp test for hook

* fix: hooks defined in the table options does not work

* refactor: change sort config into sort type field and fix updateAssociations to create with foreignKey

* refactor: abstract utility functions

* fix: type definition

* fix: type and where value type

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-11 15:41:03 +08:00
chenos
6b84446697 feat: add onTrigger to Actions component 2020-12-11 15:11:45 +08:00
chenos
2fd4e2fa61 fix: JSON.stringify for filter 2020-12-11 15:09:39 +08:00
chenos
eb501e3461 fix: get pageTitle with first string field 2020-12-11 15:00:33 +08:00
chenos
4f4064ad11 fix: model destroy with individualHooks 2020-12-11 14:36:12 +08:00
chenos
a604eed44d refactor: menu component 2020-12-11 12:34:50 +08:00
chenos
5bb0d9f336 feat: add default icon 2020-12-11 12:22:54 +08:00
chenos
3571f357cd when the field migrate, load the collection options if is not in the database 2020-12-11 10:37:43 +08:00
chenos
880737c5c8 feat: add internal parameter to collection options 2020-12-11 10:31:00 +08:00
chenos
f12c619603 use createFormActions instead of createSyncFormActions 2020-12-10 20:39:15 +08:00
chenos
f8e8b2b9c7 feat: add registerable icon component 2020-12-10 20:32:44 +08:00
chenos
437c49d211 refactor: change the field type names to uppercase 2020-12-10 14:47:13 +08:00
chenos
e86b573296 fix: hooks defined in the table options does not work 2020-12-10 11:18:44 +08:00
chenos
a96bf09316 test: add hook test cases 2020-12-10 10:12:27 +08:00