Commit Graph

157 Commits

Author SHA1 Message Date
Chareice
feea1bef48 fix array field update 2021-12-07 15:29:32 +08:00
chenos
c56cd8674d feat: upgrade plugin-action-logs 2021-12-07 15:21:16 +08:00
chenos
732d31009e v0.6 2021-12-06 21:23:34 +08:00
chenos
11cded6153 chore: v0.5.0-alpha.34 2021-11-23 08:23:34 +08:00
chenos
3479b7ea27 chore: v0.5.0-alpha.33 2021-11-13 22:24:51 +08:00
chenos
7be6327458 chore: v0.5.0-alpha.32 2021-11-09 17:14:11 +08:00
chenos
7a35638eda chore: v0.5.0-alpha.31 2021-11-09 16:28:27 +08:00
chenos
829f969668 chore: v0.5.0-alpha.30 2021-11-09 13:07:41 +08:00
chenos
4ea7d74211 chore: v0.5.0-alpha.29 2021-11-08 23:06:31 +08:00
chenos
cce2253532 chore: v0.5.0-alpha.28 2021-11-08 22:54:19 +08:00
chenos
5cacee4e7f chore: v0.5.0-alpha.27 2021-11-08 20:47:20 +08:00
chenos
7611beea0f chore: v0.5.0-alpha.26 2021-11-08 20:27:59 +08:00
chenos
92f0a8265e fix: update dependencies 2021-11-08 20:17:46 +08:00
chenos
8376c6d1b2 chore: v0.5.0-alpha.25 2021-11-01 17:29:27 +08:00
chenos
b5c587fc94 chore: v0.5.0-alpha.24 2021-11-01 15:20:30 +08:00
chenos
41b023987b chore: v0.5.0-alpha.23 2021-10-28 22:59:51 +08:00
chenos
2253471670 chore: v0.5.0-alpha.22 2021-10-25 14:37:22 +08:00
chenos
181872cf07 chore: v0.5.0-alpha.21 2021-10-18 13:04:14 +08:00
ChengLei Shao
05ecb25d1b
feat: create nocobase app with simple & quickstart option (#87)
* feat: create nocobase app with simple & quickstart option

* chore: delete template file

* create-nocobase-app: add env API_PORT fallback

* chore: log

* env default fallback

* move config dir

* change has yarn

* chore: prettier

* fix: npm running issue

* database testing support sqlite

* once...

* chore: typo

* fix: sqlite test

* update readme

* feat: copy .env.example to .env at create-nocobase-app

* create-nocobase-app: change sqlite3 to github master

* create-nocobase-app: .env template

* create-nocobase-app: update .env

* chore: typo

* update README

* chore: Application constructor

* feat: sqlite demo data support

* fix test

* fix: application error

* chore: plugin-client run sql

* fix: application createCli

* fix: can choose whether to register actions

* chore: model compile error

* fix: support sqlite

* fix: demo data set index sequence on postgresql

* chore: code reduce

* fix: operators are compatible with sqlite

* add impor demo option to init command

* update env

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-10-18 12:49:37 +08:00
chenos
d80c875d5e chore: v0.5.0-alpha.20 2021-10-12 22:27:38 +08:00
chenos
fda20f83c3 chore: v0.5.0-alpha.19 2021-10-10 22:30:16 +08:00
chenos
516c1be50d chore: v0.5.0-alpha.18 2021-10-10 13:06:09 +08:00
chenos
3e04f81a41 chore: v0.5.0-alpha.17 2021-10-10 12:59:29 +08:00
chenos
dafe8f14d0 chore: v0.5.0-alpha.16 2021-10-08 23:16:46 +08:00
chenos
23bdada69c chore: update gitHead 2021-10-08 00:37:39 +08:00
chenos
e7df1f93c4 chore: v0.5.0-alpha.15 2021-10-08 00:33:40 +08:00
chenos
2fa8280803 chore: v0.5.0-alpha.14 2021-10-07 21:57:01 +08:00
chenos
8561502384 chore: v0.5.0-alpha.13 2021-10-07 21:33:32 +08:00
chenos
b2f3bd4894 chore: v0.5.0-alpha.12 2021-10-07 19:39:35 +08:00
chenos
4506271af5 chore: v0.5.0-alpha.11 2021-10-07 19:03:50 +08:00
chenos
9787bedb3c chore: 0.5.0-alpha.10 2021-10-07 18:02:32 +08:00
chenos
968fd2e656 chore: v0.5.0-alpha.9 2021-10-07 17:25:31 +08:00
chenos
f825e48d03 chore: v0.5.0-alpha.8 2021-10-07 16:39:18 +08:00
chenos
dd0d067c10 chore: v0.5.0-alpha.7 2021-10-07 16:32:22 +08:00
chenos
43f95e0a56 chore: v0.5.0-alpha.6 2021-10-07 15:27:02 +08:00
chenos
7ecb7c3a60 chore: v0.5.0-alpha.5 2021-10-07 15:25:20 +08:00
chenos
55f6564ea8 feat: improve code 2021-09-29 07:38:05 +08:00
chenos
897169a613 feat: add saas plugin 2021-09-28 00:18:09 +08:00
chenos
248d59f6ec feat: improve code 2021-09-14 11:09:26 +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
e8113f3809 feat: update action logs plugin 2021-09-08 14:36:18 +08:00
chenos
c182c29161 feat: improve code 2021-09-08 00:18:41 +08:00
chenos
a8cd70017b feat add event emitter support to database 2021-09-07 00:28:16 +08:00
chenos
5b014bc67e lots of updates 2021-08-04 12:38:08 +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
8df85e0b20 chore(versions): publish packages v0.4.0-alpha.7 2021-04-18 09:44:18 +08:00
chenos
9f91fc7fd0 v0.4.0-alpha.6 2021-04-18 09:35:49 +08:00
chenos
ef93a3c11c chore(versions): publish packages 0.4.0-alpha.5 2021-04-07 19:36:55 +08:00
chenos
a22efec65d chore(versions): publish packages 0.4.0-alpha.4 2021-04-07 17:48:47 +08:00
chenos
e72eebb8cd chore(versions): publish packages 0.4.0-alpha.3 2021-04-07 17:39:08 +08:00
chenos
c2f18763c9 chore(versions): publish packages 0.4.0-alpha.2 2021-04-07 17:12:31 +08:00
chenos
6906ccadb0 add gitHead 2021-04-07 10:41:06 +08:00
chenos
f0b335ac30 chore(versions): publish packages 0.4.0-alpha.1 2021-04-07 10:29:02 +08:00
chenos
49f71420ed chore: update npm packages 2021-04-07 09:50:00 +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
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
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
Junyi
9a27eac0e0
fix: ignore some typescript error (#59) 2021-01-23 17:12:09 +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
chenos
1242ba5aed feat: improve database.sync() 2021-01-14 10:35:15 +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
e51ee7d1e6 refactor: table.extend() method 2021-01-13 15:43:41 +08:00
chenos
b81b83d3f3 fix: do not change the field type 2021-01-08 15:49:37 +08:00
Junyi
62a7cc2b1f
test: skip bug test cases for ci passing (#52) 2021-01-05 15:19:36 +08:00
chenos
eafdddcd4d fix: allow set null with updateAssociations 2021-01-02 22:30:13 +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
6a9bf9572c fix: view filtering does not work 2020-12-31 21:04:03 +08:00
Junyi
435cd9a7c9
feat: date-only operators (#50)
* feat: date-only operators

* feat: add opposite operators

* fix: use moment to parse date string

* fix: remove additional moment dependency.

* modify date filter operators

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-30 14:05:28 +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
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
4d07ef5116 chore: allow specific build package 2020-12-24 07:35:53 +08:00
Junyi
57003c6c02
fix: toInclude bug with nested associations (#47) 2020-12-24 07:21:46 +08:00
chenos
40bcfb7edc fix: remove through.updateAssociations 2020-12-22 17:28:30 +08:00
chenos
93d8426c84 feat(database): add afterUpdateAssociations hook 2020-12-21 14:15:08 +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
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
67e18352b6 add hooks for database 2020-12-15 20:16:55 +08:00
chenos
a7c9461cc0 fix: remove required parameter from the field options 2020-12-13 17:16:54 +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
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
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
chenos
96510cc929 fix: after reinitialization, hooks are lost 2020-12-09 17:14:42 +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
chenos
fb7706094b feat: load the saved collection options 2020-12-07 17:21:14 +08:00
Junyi
05f815655f
Fix: change strategy from add to set for updateAssociations (#33)
* test: add belongsTo case

* fix: change update strategy from add to set
2020-12-06 14:28:23 +08:00
chenos
0a0d09119b
Test/ci (#31)
* 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>
2020-12-05 09:27:24 +08:00
Junyi
1980464f63
Fix/model update associations (#29)
* 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
2020-12-04 17:20:08 +08:00