chenos
f7a30e4103
fix(database): export uid field options
2022-02-19 17:16:12 +08:00
chenos
9c422b7879
fix(database): typings
2022-02-17 16:16:05 +08:00
chenos
695b953a8f
fix(sort-field): the value of the scopeKey attribute is null
2022-02-11 14:50:53 +08:00
chenos
7e76c54012
feat: using crypto.scrypt instead of bcrypt
2022-02-10 19:53:18 +08:00
ChengLei Shao
f67658129f
Feat/plugin UI schema v0.6 ( #143 )
...
* v0.6
* plugin-ui-schema: insert && getJsonSchema
* plugin-ui-schema: insert schema with sort
* plugin-ui-schema: node with x-index
* insert adjacent method
* chore: insert
* typo
* insert with x-uid
* fix: getSchema by subtree
* add ui-schema actions
* fix: mysql compatibility
* remove ui-schema when remove node tree
* ui schema patch
* ui_schemas.create
* test cases
* test cases
* fix(database): reset changed before update
* feat: insert ui schema node after created
* feat: patch ui schema node after updated
* fix: sqlite error
* uid
* cleanup
* test cases
* feat: ui_schema items type support
* fix: insert items node
* fix: get inner type
* change items struct
* add insert return value
* add insert return value
Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-19 10:09:30 +08:00
chenos
380b5e8c7a
Feat/plugin collection manager ( #147 )
...
* refactor: collection manager plugin
* feat(database): magic attribute model
* MagicAttributeModel
* load collections & fields options
* collections filterTargetKey
2022-01-19 10:02:52 +08:00
ChengLei Shao
246737906d
Feat/GitHub actions ( #148 )
...
* test github actions
* mod: github actions
* mod: github actions
* fix: yarn build
* fix: database pk key error
* fix: test
* skip failed tests
* github test with sqlite && mysql
* fix: mysql query error
2022-01-08 17:16:11 +08:00
ChengLei Shao
2bf09bf9bb
feat: filter by target key ( #146 )
...
* feat: filter by target key
* fix: repository test
* change type name
* chore: test
* change PrimaryKey type to TargetKey
* rename filterTargetKey
* rename variables
* change option parser constructor
* add option parser targetKey
* change filter parser constructor
* fix: custom model
Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-07 20:08:01 +08:00
ChengLei Shao
79ba391aee
refactor: actions ( #137 )
...
* db test
* associated list action
* associated list action
* fix belongs to many repository test
* create action
* update action
* add update & destroy has one
* get action
* add action
* set action
* remove action
* toggle action
* chore: code import
* add sort field mutex
* change field mutex position
* feat: handle sort field scope change
* feat: sort actions
* fix: add action
* rename sort action to move action
* more actions params
* feat: repository destroy with filter and filterByPK
* feat: hasmany repository destroy with filter and filterByPK
* feat: belongsToMany repository destroy with filter and filterByPK
* fix: actions tests lock error
* feat: code cleanup
Co-authored-by: chenos <chenlinxh@gmail.com>
2021-12-16 16:46:54 +08:00
chenos
f09991d932
feat: upgrade plugin-users
2021-12-08 09:10:44 +08:00
chenos
bf2840b089
feat: context field type support ( #131 )
...
* feat: context field type support
* fix: missing options
2021-12-07 21:19:28 +08:00
Chareice
30e31a2e79
update options
2021-12-07 15:43:14 +08:00
Chareice
feea1bef48
fix array field update
2021-12-07 15:29:32 +08:00
chenos
732d31009e
v0.6
2021-12-06 21:23:34 +08:00
chenos
336e0b17b8
feat: improve code
2021-09-09 23:57:01 +08:00
chenos
5847c9eeab
fix: compatible jsonb for MySQL
2021-09-09 12:40:46 +08:00
chenos
c182c29161
feat: improve code
2021-09-08 00:18:41 +08:00
chenos
8bfb5cf85c
updates
2021-07-27 10:34:52 +08:00
chenos
af02a895c3
lots of updates
2021-07-11 22:20:54 +08:00
chenos
17b258e3cc
fix: password was hashed twice
2021-03-31 10:56:39 +08:00
chenos
18825af43d
fix: async mode recommended over sync mode
2021-03-30 06:12:08 +08:00
chenos
ce4a22fbb9
style: code formatting
2021-03-28 13:34:51 +08:00
chenos
eba121b998
fix: add sticky parameter to sort action
2021-03-25 16:03:43 +08:00
chenos
b81b83d3f3
fix: do not change the field type
2021-01-08 15:49:37 +08:00
Junyi
9fcf6fbd59
fix: avoid bug when update other field ( #51 )
...
* fix: avoid bug when update other field
* fix: optimize logic
2021-01-01 11:42:45 +08:00
chenos
519f8de40b
fix: improve filters
2020-12-29 14:53:39 +08:00
Junyi
3e75bbe6c3
Feature field for set default ( #49 )
...
* feat: add AsDefault field type
* fix: association definition in test case
* fix: logic of field as default in bulkCreate
* fix: change to asDefault field
* refactor: rename to radio and move unit test cases back to database package
* change to radio
Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-28 23:13:17 +08:00
Junyi
57003c6c02
fix: toInclude bug with nested associations ( #47 )
2020-12-24 07:21:46 +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
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
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
a7c9461cc0
fix: remove required parameter from the field options
2020-12-13 17:16:54 +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
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
437c49d211
refactor: change the field type names to uppercase
2020-12-10 14:47:13 +08:00
chen
e5d30b30ba
first commit
2020-10-24 15:34:43 +08:00