Commit Graph

47 Commits

Author SHA1 Message Date
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
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
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
18e7d5ba77 fix: reload users collection options on initialization 2021-01-27 14:08:26 +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
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
1d5c39e0e8 feat: add permissions migration 2021-01-18 19:06:31 +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
747e743df8 fix: use $isFalsy to filter developerMode 2021-01-08 00:11:50 +08:00
chenos
551f8bad8d feat: improve view mode 2021-01-07 09:31:26 +08:00
chenos
988b265bb8 feat: demo env disable create/update/destroy actions 2021-01-06 17:38:08 +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
ba6f3f7f7d fix: appends/except only use to get/list actions 2021-01-01 19:12:53 +08:00
chenos
6a9bf9572c fix: view filtering does not work 2020-12-31 21:04:03 +08:00
chenos
f7f8e12ac9 fix: multiple files upload bugs 2020-12-31 14:12:25 +08:00
chenos
4fc2843a05 feat(file-manager): add aliyun oss storage 2020-12-31 12:11:38 +08:00
chenos
8861e282cb fix: show the relationship fields of the sub table 2020-12-30 15:01:28 +08:00
chenos
c20d3a91de fix: action buttons align right 2020-12-30 11:22:06 +08:00
chenos
976bc5d66e feat: generate linkTo pair field 2020-12-28 11:12:33 +08:00
chenos
cf47b9f282 add examples 2020-12-27 21:53:44 +08:00
chenos
629a4de173 feat: add association tab 2020-12-25 16:15:58 +08:00
Junyi
eb7d5c594e
feat: make single file upload to attachment available (#46)
* feat: make single file upload to attachment available

* fix: change file name case

* feat: refactor structure and make local server work

* test: skip bug case temporarily

* fix: use middleware to load storage static server

* fix: change meta from values to request.body back and refactor local server middleware

* adjust details

* http:

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-23 12:46:13 +08:00
chenos
ecab106c3c
feat: support subTable field
* feat: add linkTo and subTable fields

* add subTable field component

* improve sub table

* bugfix
2020-12-20 12:52:15 +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
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
chenos
866549ce26 fix: do not clear data when migrating data 2020-12-16 08:42:37 +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
chenos
a3107721c2 fix: page showInMenu=true 2020-12-13 17:15:02 +08:00
chenos
4decab86be feat: pages actions & tabs 2020-12-12 16:36:02 +08:00
chenos
5bb0d9f336 feat: add default icon 2020-12-11 12:22:54 +08:00
chenos
cbc81f1173 add example collection options for app 2020-12-09 20:47:58 +08:00
chenos
276d218357 feat: add ctx.state.developerMode 2020-12-08 14:33:28 +08:00
chenos
caa98f6d08 feat: improve developer mode support 2020-12-08 10:02:41 +08:00
chenos
190fc6b37a feat: add db-migrate for app 2020-12-07 08:51:50 +08:00
chenos
3e3cb416b6
feat: improve collection hooks/fields/actions/views... (#30)
* feat: add onFinish callback

* fix: update json attribute unsaved after query

* refactor: collection hooks

* feat: add migrate options
2020-12-04 21:09:39 +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
chenos
d9e6d2e614
feat(users): add users module (#26)
* feat(users): add users module
* user check
2020-11-29 16:26:53 +08:00
chenos
eb93f0734f
feat: actions & views (#18)
* feat: 视图新增支持 associated 的情况

* fix: 解决关系数据的视图问题

* 表单数据初始化

* feat: sortable table

* 排序

* 表格细节调整

* feat: field actions
2020-11-19 21:12:15 +08:00
chenos
9daae13c68
feat: improve plugins (#14)
* feat: delete defined resources

* feat: api client

* feat: view fields & tab field options & page info...

* fix: view type
2020-11-13 22:01:14 +08:00
chen
bf2e315c9e refactor: code cleanup 2020-11-11 20:57:18 +08:00
chenos
dcdb21d398
发布核心框架 (#6)
* api/ui 改名为 server/client

* 微调

* 继续完善 pages

* Fix env file and file mode. (#1)

* Fix: ignore .env file and environment variable names.

* Fix: correct file mode.

* fix: put environment variables together

* fix: separate data and ui resourcer

* feat: collection loader

* feat: redirectTo

* feat: fields & actions & views

* feat: fields & actions

* feat: app & pages & collections...

* feat: collections & pages & permissions...

* Doc: add readme (#2)

* Doc: add README.md.

* Util: add .editorconfig.

* Fix: use glob ignore option instead of additional checking. (#3)

* Fix: typo. (#4)

* feat: permissions

* feat: getCollection & getView actions

* refactor: code cleanup

Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
2020-11-11 15:23:39 +08:00