* 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>
* 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>
* 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>
* 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
* 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>
* Create node.js.yml
* fix: npm install command
* fix: try to fix github action fail by use same react version
* fix: try to fix github action fail by use same react version
* fix: try to fix github action fail by use same react version
* fix: try to fix github action fail by use same react version
* fix: try to fix github action fail by build dependencies
* fix: try to fix ci fail by types resolution
* fix: try to fix ci fail by types resolution
* fix: try to fix ci fail by types resolution
* fix: try to fix ci fail by types resolution
* fix: try to fix ci fail by types resolution
* fix: try to fix ci fail by set env
* fix: try to fix ci fail by pg version
* fix: try to fix ci fail by fix types
* fix(test): Type '""' is not assignable to type 'IndexType'.
* fix(test): Type '""' is not assignable to type 'IndexType'
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
Co-authored-by: mytharcher <mytharcher@gmail.com>
* refactor: change updateAssociations from set null to small grouped handling
* feat: add transaction for updateAssociations
* test: add more basic cases
* fix: pick options for different model methods
* fix: adjust options picking strategy
* feat: collection hooks
* export action middlewares
* add associated middleware
* cleanup
* add field interface options
* 调整配置参数
* 补充字段类型 options
* 继续调整配置参数
* 支持排序
* filterable & sortable & draggable
* feat: add random name for creating table (#23)
* feat: add random name for creating table
* fix: random number
* Feature: collections field (#24)
* feat: add random name for field and update table options
* fix: make field name required
* fix: this declaration
* showInXX 参数调整
* showInXX 放 component 里
* 继续调整参数
* 字段分组、pages 表配置参数等
* change date to datetime
* 选择类型字段的 options 改为 dataSource
* feat: refactor hooks initialization and add field options by interface (#25)
* feat: refactor hooks initialization and add field options by interface
* refactor: use model.set to build input values
* refactor: extend setter/getter to adapt field options
* fix: try to fix virtual field
* refactor: setter/getter of FieldModel
* 改进自定义 model 等细节
* 补充注释
* bugfix
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
* test: add more case for list
* feat: allow order by associations in sorting
* fix: add more utils test in resourcer and fix except usage
* test: fix cases
* fix: page default value and max page size
* fix: page params and cases
* fix: list params
* fix: constants in list action
* fix: count when include, attributes when except and cases
* test: add case for hasMany.