chenos
2a2d67e38b
feat: improve mock server agent
2022-01-23 15:04:50 +08:00
chenos
f0eb2eee20
feat: improve the params of the ctx.action
2022-01-23 12:42:35 +08:00
ChengLei Shao
fd32705954
feat: acl ( #153 )
...
* feat: getRepository
* getRepository return type
* export action
* add: acl
* feat: setResourceAction
* feat: action alias
* chore: code struct
* feat: removeResourceAction
* chore: file name
* ignorecase
* remove ACL
* feat: ACL
* feat: role toJSON
* using emit
Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-18 16:38:03 +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
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
732d31009e
v0.6
2021-12-06 21:23:34 +08:00
chenos
c1b560e928
feat: rename resourceKey & associatedKey to resourceIndex & associatedIndex ( #126 )
...
* resourceIndex & associatedIndex
* resourceIndex & associatedIndex
2021-12-04 16:28:52 +08:00
chenos
479f64f197
feat: support i18n ( #99 )
...
* feat: i18next
* multi language data
* feat(client): locale support
* en-US for collections
* us-EN for routes
* en-US for routes
* en-US for attachments
* feat: partial translations
* translation
* add AntdConfigProvider
* translation
* translation
* feat: translation
* feat: add translation
* fix: improve translation
* feat: improve translation
* fix: SyntaxError: Unexpected token ) in JSON at position
* typo
* feat: improve translation
* feat: improve translation
* feat: language settings can be saved on the server
* feat: lang option of init cli
* demo translation
* typo
* change address field to textarea
* address data
* feat: chart translation
* feat: chart translation
* improve translation
* signin,signup,signout...
Co-authored-by: Zhou <zhou.working@gmail.com>
2021-11-08 19:32:59 +08:00
chenos
248d59f6ec
feat: improve code
2021-09-14 11:09:26 +08:00
chenos
99d33a0241
refactor: improve action unit test cases
2021-09-09 22:38:39 +08:00
chenos
0ef730d7e4
fix: call rollback in catch
2021-08-26 22:03:16 +08:00
chenos
057dc8406a
lots of updates
2021-07-17 22:35:50 +08:00
chenos
b6cd540f72
chore: remove console.log
2021-04-06 19:52:01 +08:00
Junyi
9495917e97
fix: minor problems ( #72 )
2021-04-04 23:33:06 +08:00
chenos
b1c1a5cee8
refactor: data wrapping middleware
2021-04-01 23:51:00 +08:00
chenos
ce4a22fbb9
style: code formatting
2021-03-28 13:34:51 +08:00
chenos
c865c63f14
fix: update model associations
2021-03-27 15:50:55 +08:00
chenos
eba121b998
fix: add sticky parameter to sort action
2021-03-25 16:03:43 +08:00
chenos
17ae461163
fix: Property 'rows' does not exist on type 'unknown'.
2021-03-16 16:58:57 +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
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
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
365513909a
fix: can not disassociate before destroy data
2021-02-01 19:05:37 +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
Junyi
62a7cc2b1f
test: skip bug test cases for ci passing ( #52 )
2021-01-05 15:19:36 +08:00
chenos
10b2199e54
fix: remove through.updateAssociations
2021-01-03 10:55:25 +08:00
Junyi
b2fe087fc2
Feature: custom operators for querying ( #48 )
...
* feat: add some custom operators for querying
* feat: add some custom operators for querying
* test: fix cases
* improve custom operator function
* improve filter field component
Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-28 21:08:13 +08:00
chenos
04e9393dea
fix: association find and count
2020-12-27 21:08:06 +08:00
chenos
32774657d7
fix: get association model by field target
2020-12-25 16:13:33 +08:00
chenos
a494185dd7
fix: belongsTo's associatedKey is Model.primaryKeyAttribute
2020-12-22 19:02:05 +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
1aa7ee65ab
fix: association destroy with individualHooks
2020-12-15 22:45:35 +08:00
Junyi
7fcce0943a
fix: use wrapped and logic for merging filters ( #42 )
2020-12-14 22:07:23 +08:00
Junyi
b6bce5a2dc
fix: filterByFields should return same value when input == null (close 0) ( #41 )
2020-12-13 17:12: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
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
4f4064ad11
fix: model destroy with individualHooks
2020-12-11 14:36:12 +08:00
chenos
437c49d211
refactor: change the field type names to uppercase
2020-12-10 14:47:13 +08:00
Junyi
32a8483336
feat: add filter and transaction for destroy action ( #35 )
...
* feat: add filter and transaction for destroy action
* fix: batch destroy in to-many relactionship
2020-12-08 21:20:30 +08:00
Junyi
7467441276
fix: field filter logic for create/update ( #34 )
...
* fix: field filter logic for create/update
* fix: add test cases
2020-12-08 14:27:51 +08:00
Junyi
4e41e630ac
Feature: action fields options for create/update ( #32 )
...
* feat: add fields options for create/update actions
* test: add test case for json
* fix: minor update for reviews
* fix: test case
* fix: change fields filter strategy for create/update
* feat: add transaction for create/update
2020-12-07 11:54:23 +08:00
chenos
868dd1aaaa
refactor: change registerHandler to registerActionHandler
2020-12-02 13:48:19 +08:00
chenos
b5ddd6a6ba
feat: collection options & hooks ( #21 )
...
* 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>
2020-12-01 20:11:39 +08:00
Junyi
3da40bd35b
feat: add sort action ( #22 )
2020-11-26 15:01:22 +08:00
Junyi
cd0b357887
Test/list ( #19 )
...
* 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.
2020-11-23 16:49:46 +08:00
Junyi
85e42f95a5
test: refactor test in database and add more ( #17 )
2020-11-19 23:30:30 +08:00
Junyi
b0ba1472bb
Test cases for database ( #16 )
...
* fix: remove unused import
* fix: use env instead of hard code for create database instance
* refactor: change most "all" hook to "each" hook
* refactor: split test suits into files
* add: use DB_LOG_SQL in env to control SQL in log
* add: test for logical operator and fixes
2020-11-18 10:35:37 +08:00
Junyi
53729e188a
Refactor: change global injection of test for actions package. ( #15 )
...
* Refactor: change global injection to index.ts to simplify all test files.
* Fix: typo.
2020-11-16 20:38:56 +08:00