Commit Graph

1450 Commits

Author SHA1 Message Date
ChengLei Shao
5c92d3ba46
feat: uiSchema clearAncestor (#241)
* feat: uiSchema clearAncestor

* chore: uiSchema action methods

* chore: insertSingleNode
2022-03-16 18:45:20 +08:00
ChengLei Shao
4c0af45105
feat: init sort field values (#236)
* feat: init sort field values

* feat: handle sequelize afterSync hook
2022-03-14 13:24:00 +08:00
ChengLei Shao
cf279409b4
fix: move action without alter updatedAt (#235)
* fix: move action without alter updatedAt

* fix: touch updatedAt on scope change

* fix: mysql test
2022-03-13 19:38:27 +08:00
ChengLei Shao
9e27e50595
feat: role check action (#234) 2022-03-13 19:36:37 +08:00
ChengLei Shao
fe8c2576d0
feat: ne operator (#233) 2022-03-13 19:34:24 +08:00
chenos
627e2a9f4c fix: appends 2022-03-12 00:38:11 +08:00
chenos
db26c64aa2 fix: appends 2022-03-12 00:06:12 +08:00
chenos
9036eee80b feat: improve code 2022-03-11 23:33:22 +08:00
chenos
982c7a3038 feat: improve code 2022-03-11 21:31:34 +08:00
chenos
08fcee6d90 feat: improve code 2022-03-11 18:41:56 +08:00
ChengLei Shao
264a1e6c21
fix: user current role (#232) 2022-03-11 15:51:46 +08:00
ChengLei Shao
d98714d9fd
featEnable permission (#229)
* feat: acl skip

* feat: skip-manager

* feat: root user permission skip

* fix: test

* feat: set user role

* fix: code review

* feat: setDefaultRole for users
2022-03-11 10:10:57 +08:00
ChengLei Shao
accb2a59b9
test: update reverseField (#231)
* test: update reverseField

* fix: reverseField test

* feat: throw error when reverseField exists
2022-03-11 10:08:58 +08:00
chenos
a28b69326b feat: improve kanban initializer 2022-03-11 09:19:53 +08:00
chenos
3d5817e0b3
feat: kanban (#230)
* feat: kanban

* feat(client): improve kanban

* fix: unknown group
2022-03-10 23:52:44 +08:00
chenos
ffe3463dc2 fix: auto generate reverseField uiSchema title 2022-03-10 15:57:14 +08:00
chenos
683b63826a fix(client): form item required 2022-03-10 13:53:42 +08:00
chenos
fa16fe6fec fix: set default sorting rules 2022-03-10 13:43:33 +08:00
chenos
345080f92e fix(client): collection field does not exist 2022-03-10 12:01:30 +08:00
chenos
91ae780e4f feat(client): improve code 2022-03-09 22:18:52 +08:00
chenos
28e96ed5b0 fix(client): upload styling 2022-03-09 22:13:43 +08:00
chenos
97ad82fcdc feat(client): menu styling 2022-03-09 21:11:40 +08:00
chenos
4faf19d8eb fix: improve code 2022-03-09 20:58:11 +08:00
chenos
35c3d47ba1 feat: move to for menu schema settings 2022-03-09 17:20:39 +08:00
chenos
ac4ce800bc fix: ui routes 2022-03-09 16:11:22 +08:00
chenos
3cd0ea3d01 fix(client): initialize values in drawer form 2022-03-09 15:24:22 +08:00
chenos
9175ddc90e fix(client): request collections after login 2022-03-09 11:21:11 +08:00
SemmyWong
36ae278302
Nocobase next kanban (#223)
* feat: add kanban component

* feat: add kanban designer

* feat: kanban  completed

* refactor: modify kanban

* feat: kanban card

* feat: modify kanban

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-03-09 09:31:51 +08:00
chenos
60a915b50c fix(client): ellipsis with tooltip 2022-03-08 16:56:57 +08:00
chenos
d7a9608663 chore: update docker-compose.yml 2022-03-07 15:29:51 +08:00
chenos
e1e91bbe20 fix: enable drag and drop sorting 2022-03-07 11:40:03 +08:00
chenos
9ff0361336 feat: table supports row drag and drop sorting 2022-03-07 11:31:40 +08:00
chenos
b1aee77d10 feat: improve tab schema designer 2022-03-06 20:38:02 +08:00
ChengLei Shao
e76eb1edac
add: test (#224)
* add: test

* feat: updateAssociation Skip reverseAssociationPair

* feat: reverseAssociationPair with HasMany && HasOne
2022-03-06 19:12:44 +08:00
chenos
4ce41cf7b2 fix(client): sub table does not work 2022-03-06 19:04:02 +08:00
chenos
5164f85484 chore: env 2022-03-06 17:29:20 +08:00
chenos
c410c188a3 feat: improve code 2022-03-06 16:19:18 +08:00
ChengLei Shao
ad700c61b8
Plugin error handler (#222)
* feat: validation error with i18n

* feat: plugin-error-handler

* del: error-handle.test.ts

* feat: field name with i18n

* fix: yarn build
2022-03-06 12:07:56 +08:00
chenos
f9018cabda feat: table and calendar schema settings 2022-03-06 12:06:50 +08:00
chenos
b05cfe4b02 feat(client): menu schema insert 2022-03-06 08:50:06 +08:00
chenos
e2f4fa32a7 feat(client): menu schema settings 2022-03-06 00:13:54 +08:00
chenos
0c48463e53 feat(client): action schema settings 2022-03-05 23:47:44 +08:00
chenos
c9957dadab feat(client): FormItem.Designer & TableColumn. Designer 2022-03-05 22:51:23 +08:00
chenos
2c38bf139f fix: move draggable 2022-03-05 17:38:05 +08:00
chenos
ea27fbdea9 feat: improve code 2022-03-05 16:42:29 +08:00
chenos
f47ec3ec25 fix: cleanup 2022-03-05 15:04:05 +08:00
chenos
5cbbfcf428 feat: add drag handle for table row component 2022-03-05 14:43:19 +08:00
chenos
bf2ea2a6e1 fix(plugin-collection-manager): set the default value of sourceKey & targetKey 2022-03-04 23:17:28 +08:00
chenos
72d2699769 feat: improve code 2022-03-04 20:45:21 +08:00
ChengLei Shao
534a6e43ee
fix: array $noneOf with null (#220)
* fix: array $noneOf with null

* fix: mysql test
2022-03-04 18:13:48 +08:00
chenos
5233d00373 fix(client): cannot find module 2022-03-04 17:03:17 +08:00
chenos
46873d5b1e feat: improve code 2022-03-04 15:56:08 +08:00
chenos
ac4c8f031d feat: improve schema initializer 2022-03-04 11:59:38 +08:00
chenos
590ca267b2 feat: improve view action schema initializer 2022-03-03 23:02:55 +08:00
ChengLei Shao
b4dc7f6199
fix: filter parser with number in key (#219)
* fix: filter parser with number in key

* fix:test
2022-03-03 22:02:15 +08:00
ChengLei Shao
2efbe84fa6
feat: ui-schema-tree-path descendant index (#218) 2022-03-03 21:12:18 +08:00
chenos
3c55ac7474 fix: array field 2022-03-03 16:40:24 +08:00
chenos
93d521b134 fix(client): dynamic component 2022-03-03 15:28:43 +08:00
chenos
3ff16e70c0 feat: improve field interface filterable parameter 2022-03-03 15:21:27 +08:00
chenos
d4bd033917 feat: improve code 2022-03-03 12:15:17 +08:00
ChengLei Shao
4e9baf3957
fix: array operator query error (#217) 2022-03-03 12:09:25 +08:00
chenos
18b4feb104 fix: custom error handler 2022-03-02 22:50:07 +08:00
chenos
5785f30075 feat(client): improve sub table 2022-03-02 22:49:10 +08:00
ChengLei Shao
b354313c0e
fix: operator query value (#216)
* fix: operator query value

* fix: operator query value
2022-03-02 22:01:32 +08:00
chenos
78ada4d6ec feat: improve code 2022-03-02 21:53:13 +08:00
chenos
271111902f feat: improve code 2022-03-02 20:08:11 +08:00
chenos
afab15327e feat: improve code 2022-03-02 18:35:49 +08:00
ChengLei Shao
aa1c84e72a
feat: string operators (#215)
* feat: string operators

* fix: remove filter

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-03-02 15:13:06 +08:00
chenos
a96f76b87a feat(client): error handler 2022-03-02 13:22:59 +08:00
chenos
9db654047a feat(client): improve linkTo field Initializer 2022-03-02 13:22:30 +08:00
ChengLei Shao
86065fa208
feat: error handle middleware (#214)
* feat: error handle middleware

* feat: application error handler

* feat: handle with sequelizeValidationError

* fix: test

* fix: test
2022-03-02 12:50:15 +08:00
chenos
1c6289dd88 feat: improve filter action initializer 2022-03-01 22:17:58 +08:00
chenos
bc27359637
refactor: filter schema component (#213)
* refactor: filter schema component

* feat: improve filter schema component

* fix: cannot find module
2022-03-01 18:06:06 +08:00
ChengLei Shao
5d974d7e32
fix: empty operator with $or filter (#212) 2022-02-28 22:29:18 +08:00
chenos
9704f8a342 feat: improve acl module 2022-02-28 22:10:04 +08:00
ChengLei Shao
5e51973b21
feat: plugin install (#211)
* feat: plugin install

* fix: install options
2022-02-28 21:49:50 +08:00
chenos
78f75f5a2f feat: improve users module 2022-02-28 14:25:50 +08:00
ChengLei Shao
1db71b166d
feat: sortBy through table value (#209) 2022-02-27 23:02:26 +08:00
Junyi
344057ccee
Feat: plugin workflow (#210)
* feat(plugin-workflow): refactor calculator and some api

* fix(plugin-workflow): comments
2022-02-27 22:58:41 +08:00
chenos
8d4a519e4a feat(client): improve system settings module 2022-02-27 22:56:02 +08:00
ChengLei Shao
730a5e5735
fix: collection fields sort (#208) 2022-02-27 21:53:28 +08:00
Semmy
29d31b0451 Merge branch 'nocobase-next' of https://github.com/nocobase/nocobase into nocobase-next 2022-02-27 01:50:25 +08:00
Semmy
968a7ec80f feat: filter component finish 2022-02-27 01:49:56 +08:00
chenos
d1ac62ddaf feat(client): improve acl module 2022-02-26 23:03:58 +08:00
Semmy
6f2069e918 Merge branch 'nocobase-next' of https://github.com/nocobase/nocobase into nocobase-next 2022-02-26 16:40:24 +08:00
Semmy
5e472796c6 fix: fix judge an empty object 2022-02-26 16:40:07 +08:00
ChengLei Shao
3be12644ed
feat: sort in collection fields (#207)
* feat: sort in collection fields

* fix: sort should call before hidden

* mov: test file

* refactor: toJSON with traverseJSON

* fix: toJSON test

* fix: sortBy with hidden field
2022-02-26 15:12:18 +08:00
chenos
c28a1e34ec feat: menu item permissions 2022-02-26 14:32:37 +08:00
chenos
8c3e30df52 feat: improve table schema initializer 2022-02-26 14:31:08 +08:00
Semmy
0125ae8df9 fix: remove debugger 2022-02-26 14:16:40 +08:00
Semmy
f6e5a900d1 refactor: refactor calendar demo 2022-02-26 13:46:29 +08:00
chenos
f06a4497f0 fix: serialize params with qs 2022-02-25 23:41:33 +08:00
chenos
bcc42a9455 feat: improve code 2022-02-25 23:09:42 +08:00
chenos
585d9dd580 feat(client): improve the sub table field 2022-02-25 16:24:50 +08:00
chenos
6d0978f2c2 feat: improve sub table 2022-02-25 00:08:32 +08:00
chenos
f5b2600640 feat: improve code 2022-02-24 16:52:35 +08:00
chenos
dc21859d55 feat: improve code 2022-02-24 15:16:21 +08:00
chenos
1f8c5f510b feat: improve code 2022-02-24 00:04:41 +08:00
chenos
449c307eb9 fix(database): add test cases 2022-02-23 22:27:08 +08:00
chenos
4f420c670f fix(plugin-workflow): ts errors 2022-02-23 18:39:36 +08:00
chenos
37be46aacb feat(client): improve the collection manager module 2022-02-23 18:22:37 +08:00
chenos
57c9524f34 feat(client): add the setBearerToken method to the APIClient 2022-02-23 18:20:45 +08:00
chenos
872ee79146 refactor(database): model toJSON without the hidden fields 2022-02-23 18:18:38 +08:00
chenos
e140227798 fix: schema Initializer demos 2022-02-22 23:53:51 +08:00
chenos
98076d628d feat: improve collection manager module 2022-02-22 23:41:19 +08:00
chenos
f121999568 feat: improve schema initializer 2022-02-22 23:40:08 +08:00
ChengLei Shao
9dd590c459
fix Collection rest api (#205)
* test: collections rest api

* test: add more test cases

* fix: test case

* fix: Error: src/schema-component/antd/array-table/TableRecordActionDesigner.tsx(3,38): error TS2307: Cannot find module '@nocobase/client' or its corresponding type declarations.

* fix: belongsToMany create with empty value

* fix: relation query  test

* test: appends + sort

* fix: belongsToMany find error

* fix: add cleanDb to fix database test

* fix: mysql test

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-02-22 23:38:13 +08:00
chenos
2caec7a271 fix: Error: src/schema-component/antd/array-table/TableRecordActionDesigner.tsx(3,38): error TS2307: Cannot find module '@nocobase/client' or its corresponding type declarations. 2022-02-22 18:35:12 +08:00
chenos
4657c22ef3 fix(database): create collections with field via http api 2022-02-22 16:11:19 +08:00
chenos
acb2e02c11 fix(database) unique for collectionName + fieldName 2022-02-22 15:42:12 +08:00
chenos
cf89f4f428 fix: app install with clean option 2022-02-22 15:14:32 +08:00
chenos
f45b08af38 refactor(client): schema initializer 2022-02-22 11:17:24 +08:00
ChengLei Shao
d486768eda
feat: non paged list (#204) 2022-02-21 20:14:41 +08:00
chenos
a7c4abb485 feat: add calendar block 2022-02-21 19:20:35 +08:00
SemmyWong
1e3cdf9572
feat: finish calendar component develop (#199)
* feat: add Calendar component into schema components

* feat: add Calendar component into schema components

* feat: modify calendar get data async

* refactor: remove toolbar

* fix: modify calendar

* feat: modify fieldName

* feat: add new task in calendar

* fix: modify calendar component

* feat: add Calendar component into schema components

* feat: modify calendar get data async

* feat: add Calendar component into schema components

* refactor: remove toolbar

* fix: modify calendar

* feat: modify fieldName

* feat: add new task in calendar

* fix: modify calendar component

* fix: modify "useFormItemInitializerFields"

* fix: add data to calendar

* fix: add data to calendar

* fix: add data to calendar

* feat: add remove and edit in calendar

* fix: modify edit and remove in calendar component

* fix: modify edit and remove in calendar component

* fix: modify edit and remove in calendar component

* refactor: refactor event

* feat: add Calendar component into schema components

* feat: modify calendar get data async

* feat: add Calendar component into schema components

* refactor: remove toolbar

* fix: modify calendar

* feat: modify fieldName

* feat: add new task in calendar

* fix: modify calendar component

* feat: add Calendar component into schema components

* feat: modify calendar get data async

* feat: add Calendar component into schema components

* refactor: remove toolbar

* fix: modify calendar

* feat: add new task in calendar

* fix: modify calendar component

* fix: modify "useFormItemInitializerFields"

* fix: add data to calendar

* fix: add data to calendar

* fix: add data to calendar

* feat: add remove and edit in calendar

* fix: modify edit and remove in calendar component

* fix: modify edit and remove in calendar component

* fix: modify edit and remove in calendar component

* refactor: refactor event

* fix: modify conflict

* refactor: change new initializer

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-02-21 15:31:31 +08:00
Junyi
f925922a73
fix(dependencies): move json-template into original sub packages (#203) 2022-02-21 15:23:42 +08:00
chenos
24aa18515b feat: improve code 2022-02-21 15:08:45 +08:00
Junyi
46afc05898
Feat(plugin workflow): add more instructions (#201)
* test(plugin-workflow): add getter cases

* feat(plugin-workflow): add query type for node instruction

* feat(plugin-workflow): add crud instructions for node type

* fix(plugin-workflow): fix transaction

* fix(plugin-workflow): fix context data of model trigger
2022-02-20 21:23:39 +08:00
chenos
a0ebd36e5a fix: createdAt 2022-02-20 20:27:13 +08:00
ChengLei Shao
093b731783
fix: getJsonSchema with properties (#202)
* fix: getJsonSchema with properties

* fix: mysql uiSchema remove error
2022-02-20 20:01:07 +08:00
chenos
44a4893630 feat: improve code 2022-02-20 20:00:15 +08:00
chenos
de2b7cab75 feat: improve code 2022-02-20 17:58:46 +08:00
chenos
257488ebad feat: improve code 2022-02-20 13:09:33 +08:00
ChengLei Shao
351bb88245
fix: postgres array operator (#200) 2022-02-20 10:33:26 +08:00
chenos
e56b2b7bf6 feat(client): improve code 2022-02-20 10:21:22 +08:00
chenos
ab78655004 fix(client): update action initializer 2022-02-20 01:37:47 +08:00
ChengLei Shao
000587380b
fix: postgres sort with appends issue (#198)
* fix: postgres sort with appends issue

* fix: role menus api error

* feat: add exists params in roles.collections api

* refactor: remove uid field on uiSchemas table

* test: toggle role menus

* fix: plugin-acl test

* feat: sync data to acl before app start

* fix: mysql ui-schema sql compatibility

* feat: writeRolesToACL in plugin-acl
2022-02-20 01:23:04 +08:00
chenos
7be30b5b95 feat: improve schema designer 2022-02-20 01:22:10 +08:00
chenos
991345d988 feat(client): improve code 2022-02-19 21:25:39 +08:00
chenos
118abe1de5 fix(plugin-acl): roles.resources target key is the resource name 2022-02-19 18:29:34 +08:00
chenos
014bb7ab3f feat(client): improve acl module 2022-02-19 17:19:32 +08:00
chenos
f7a30e4103 fix(database): export uid field options 2022-02-19 17:16:12 +08:00
chenos
72b66a028c fix(plugin-acl): adjust roles collection options 2022-02-19 17:15:42 +08:00
chenos
407f9d2d85 fix(acl): availableActions 2022-02-19 17:14:43 +08:00
chenos
ad38b001c5 feat(client): improve actionbar/form/markdown/space... 2022-02-18 20:31:05 +08:00
chenos
702c391bc2 feat(client): improve collection-manager module 2022-02-18 20:30:27 +08:00
chenos
77d9228ea2 feat(client): improve acl module 2022-02-18 20:30:03 +08:00
chenos
2c38b63f18 feat(client): x-designer 2022-02-18 20:29:24 +08:00
chenos
992befe89e fix(plugin-acl): display roleName 2022-02-18 20:26:50 +08:00
chenos
b06260d13d fix: field uiSchema is not updated 2022-02-18 20:26:11 +08:00
ChengLei Shao
b9bbbc8516
feat: uiSchema remove api (#196)
* feat: recursiveRemoveIfNoChildren

* feat: remove with removeParents

* refactor: removeSchema server hook

* fix: server hook test

* feat: insertInner with remove parent

* feat: onSelfMove server hook

* feat: removeParentsIfNoChildren server hook method

* refactor: ui_schema_tree_path to uiSchemaTreePath

* feat: insertAdjacent api params
2022-02-18 12:29:03 +08:00
ChengLei Shao
6c381313cb
refactor: perPage to pageSize (#197) 2022-02-18 09:46:10 +08:00
chenos
acf459d5df feat: improve code 2022-02-18 02:05:42 +08:00
chenos
b656f69565 feat: improve schema Initializer 2022-02-17 23:56:39 +08:00
ChengLei Shao
78e89b76ef
fix: option parser test (#195) 2022-02-17 17:41:30 +08:00
chenos
9c422b7879 fix(database): typings 2022-02-17 16:16:05 +08:00
ChengLei Shao
86e0f071e4
fix: nest append (#194) 2022-02-17 12:56:52 +08:00
chenos
8b4d59ee97 feat(client): improve code 2022-02-17 01:06:42 +08:00
chenos
0ee81dc221 feat: skip permission 2022-02-16 23:15:24 +08:00
chenos
fc1a65a2fb feat(client): improve the collection manager module 2022-02-16 22:48:24 +08:00
chenos
451f706b46 feat(client): add Space schema component 2022-02-16 22:45:49 +08:00
chenos
f8863959b5 feat(client): add Action.Link schema component 2022-02-16 22:45:03 +08:00
chenos
022c173f7e feat(client): improve code 2022-02-16 15:11:24 +08:00
chenos
054a73d576 fix(app): postinstall with umi.cli.js 2022-02-16 14:57:33 +08:00
chenos
6036189063 feat(client): example of CollectionProvider + ResourceActionProvider 2022-02-16 09:27:13 +08:00
chenos
0440591868 feat: rename ui_schemas to uiSchemas 2022-02-16 00:22:47 +08:00
ChengLei Shao
99bfd75776
fix: test with database (#193)
* fix: ui schema test

* fix: sqlite array query

* fix: acl test

* fix: plugin-users test

* fix: database test with postgres

* fix: test with db.getTablePrefix

* fix: test with mysql database

* fix: test with sqlite database

* fix: test with  mysql

* fix: test order with mysql

* chore: test clean database

* chore: mockServer clean

* chore: app cleanDb

* chore: plugin-users cleanDb
2022-02-15 22:32:02 +08:00
chenos
adfac15aba fix(database): parse sort 2022-02-15 17:36:32 +08:00
chenos
e36e3283a2 feat: add more demos for the void table 2022-02-15 17:13:47 +08:00
chenos
d81d1979b0 fix(jest): custom cli options not working 2022-02-15 09:54:57 +08:00
chenos
6bf416d5c4 fix(database): remove dropAllTables 2022-02-15 09:09:13 +08:00
Junyi
405ff75c1b
fix(plugin-workflow): fix dependencies in package (#192) 2022-02-15 00:48:12 +08:00
chenos
7e59e275e0 fix: do not drop all tables 2022-02-15 00:36:08 +08:00
chenos
c5f639338f refactor: mockDatabase 2022-02-15 00:20:25 +08:00
mytharcher
0d2a93f386 FIX(plugin-workflow): fix query option in test case 2022-02-15 00:15:08 +08:00
chenos
6fa6756356 fix(plugin-collection-manager): Cannot read properties of undefined (reading 'model') 2022-02-14 21:57:13 +08:00
chenos
c538fdf73a fix(database): the options.where object is empty 2022-02-14 21:27:50 +08:00
chenos
620b2b463e feat(client): give more reasonable names 2022-02-14 18:26:16 +08:00
chenos
441a7aecf2 fix: the parent cannot be moved to the child schema 2022-02-14 16:39:22 +08:00
chenos
1a7f638f85 feat(client): add designable test cases 2022-02-14 15:50:19 +08:00
Junyi
be489996c3
Merge pull request #190 from nocobase/plugin-workflow
Refactor(plugin-workflow): upgrade plugin to use abstract plugin class and fix types
2022-02-13 22:56:48 +08:00
chenos
ae43b1e99c fix: errors in tests 2022-02-13 20:36:53 +08:00
mytharcher
4553d25d0c refactor(plugin-workflow): upgrade plugin to use abstract plugin class and fix types 2022-02-13 20:29:19 +08:00
chenos
ce3daba61d docs(client): add useValues demo for form schema 2022-02-13 17:32:01 +08:00
chenos
db3285d452 fix(database): mock db 2022-02-13 13:41:17 +08:00
chenos
01e5e1cbac feat: improve code 2022-02-13 11:23:40 +08:00
ChengLei Shao
8a791f37aa
fix: ui schema storage (#188)
* fix: test

* chore: root schema x-index

* fix: getJsonSchema & getProperties empty response
2022-02-13 10:36:25 +08:00
ChengLei Shao
2e2b5cd938
fix: ui schema storage (#187)
* fix: test

* chore: root schema x-index
2022-02-13 09:38:41 +08:00
chenos
51ca12cc87 feat(plugin-china-region): improve code 2022-02-12 12:38:57 +08:00
ChengLei Shao
785077a6f3
fix: update guard with Model instance (#186) 2022-02-12 12:36:22 +08:00
chenos
ffbf4ecb66 feat: app.acl support 2022-02-11 23:59:03 +08:00
Chareice
a2037d90c9 feat: revokeResource when roleResource deleted 2022-02-11 23:24:10 +08:00
Chareice
e92a21f072 feat: add new fields when role has action permission 2022-02-11 23:24:10 +08:00
chenos
ac7abedbb8 feat: acl middleware support 2022-02-11 19:31:53 +08:00
chenos
a507267b72 feat: code cleanup 2022-02-11 18:13:14 +08:00
chenos
ad648431e9 feat: add @nocobase/plugin-ui-routes-storage 2022-02-11 15:16:00 +08:00
chenos
c2725ac9ca fix(database): remove the setUpHooks method 2022-02-11 14:52:04 +08:00
chenos
695b953a8f fix(sort-field): the value of the scopeKey attribute is null 2022-02-11 14:50:53 +08:00
chenos
16d07e9b4a feat: add sortable parameter to collection options 2022-02-11 14:34:33 +08:00
ChengLei Shao
e12b8f44d1
fix: getProperties with order (#183) 2022-02-11 12:55:30 +08:00
Chareice
45453afa0a fix: add menu role 2022-02-11 09:43:45 +08:00
Chareice
ac2b05f04c fix: typo 2022-02-11 09:43:45 +08:00
Chareice
c9643ac2b7 feat: bind new menu to role 2022-02-11 09:43:45 +08:00
Chareice
f167bf90b4 test: removeSchema breakComponent 2022-02-11 09:43:45 +08:00
Chareice
0667efefb4 feat: removeSchema Hook with params 2022-02-11 09:43:45 +08:00
Chareice
34f33844d5 feat: removeSchema Hook with params 2022-02-11 09:43:45 +08:00
Chareice
6013b4d274 feat: remove method 2022-02-11 09:43:45 +08:00
Chareice
05fe32fcf1 feat: register default hooks 2022-02-11 09:43:45 +08:00
Chareice
4607e0da49 feat: removeEmptyParents server hook 2022-02-11 09:43:45 +08:00
Chareice
85ab936c4c chore: server hooks 2022-02-11 09:43:45 +08:00
Chareice
0526e4ff1f fix: server hook args 2022-02-11 09:43:45 +08:00
Chareice
61522a48fb feat: onAnyCollectionFieldDestroy 2022-02-11 09:43:45 +08:00
Chareice
159775ff54 refactor: server hooks 2022-02-11 09:43:45 +08:00
Chareice
fca6977ad1 fix: getListenServerHooks 2022-02-11 09:43:45 +08:00
Chareice
672c44e376 fix: hookFunc args 2022-02-11 09:43:45 +08:00
Chareice
41456b562e feat: server hooks afterDestroyCollection && afterCreateSelf 2022-02-11 09:43:45 +08:00
Chareice
3e1cad643b feat: server hooks model 2022-02-11 09:43:45 +08:00
Chareice
af02e80b6f feat: uiSchema with attributes 2022-02-11 09:43:45 +08:00
chenos
95f4406ba9 fix: do not display the page title 2022-02-11 09:42:15 +08:00
chenos
7e76c54012 feat: using crypto.scrypt instead of bcrypt 2022-02-10 19:53:18 +08:00
chenos
47fa83032c fix: build error 2022-02-10 18:38:05 +08:00
chenos
34f5c87a1e feat: add @nocobase/app 2022-02-10 18:37:16 +08:00
chenos
ab457ade22 feat: improve code 2022-02-10 17:07:53 +08:00
chenos
43393b4d44 feat: improve action schema component 2022-02-10 12:06:48 +08:00
chenos
0c83c16391 feat(client): add settings form 2022-02-09 23:37:12 +08:00
chenos
6608901596 fix(client): improve code 2022-02-09 23:36:21 +08:00
chenos
faf0977a0b fix(client): missing layout size and disabled props 2022-02-09 23:35:08 +08:00
chenos
6990347013 feat(client): improve schema Initializer 2022-02-09 00:13:42 +08:00
chenos
4baded4702 feat(client): improve demo 2022-02-08 19:51:30 +08:00
chenos
dd783f6554 fix(client): improve form schema component 2022-02-08 13:43:40 +08:00
chenos
01d172e5c4 feat(client): improve schema Initializer demos 2022-02-08 12:17:06 +08:00
chenos
39e80fad61 feat(client): add x-initializer parameter to schema 2022-02-07 23:30:24 +08:00
chenos
7cc821c06f feat: add plugin-client 2022-02-07 21:54:35 +08:00
chenos
ab28a2be4c fix: missing app command args 2022-02-07 21:54:07 +08:00
chenos
ce52361ac4 feat(client): improve schema Initializer 2022-02-07 21:52:51 +08:00
chenos
3b5f43ea09 feat: improve dnd 2022-02-07 21:51:29 +08:00
semmy
8a2ab9f86b refactor: move sortable-item into common 2022-02-07 11:33:04 +08:00
semmy
345c802d2b refactor: reimport dnd-context 2022-02-07 11:25:24 +08:00
semmy
02ede08a5d refactor: rename sort-item 2022-02-07 11:23:43 +08:00
semmy
aa78a7faf1 refactor: move DndCtext into common dir 2022-02-07 11:16:54 +08:00
semmy
37c01614f2 refactor: rename components to core 2022-02-07 11:14:07 +08:00
chenos
851c97b52a fix(server): adjust the position of beforeInstall 2022-02-07 10:07:39 +08:00
ChengLei Shao
8e4336cbe1
feat(server): improve application (#177)
* feat: getRepository

* getRepository return type

* export action

* refactor(plugin-acl): plugin

* refactor(plugin-action-logs): plugin class

* refactor(plugin-china-region): plugin class

* refactor: plugin class

* fix: cli start command

* feat: pass install-command options into app.install

* fix: cli args

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-02-07 01:14:00 +08:00
chenos
de25f56a79 feat: improve draggable api 2022-02-05 23:59:33 +08:00
chenos
5b4dd1800e feat: improve the user module 2022-02-05 17:06:33 +08:00
chenos
ef24f7cfea feat: improve the system settings module 2022-02-04 23:21:36 +08:00
chenos
7ed5054c41 feat: collection configuration interface 2022-02-03 22:27:26 +08:00
Junyi
2924418800
Merge pull request #171 from nocobase/feat/plugin-workflow
Feature: plugin-workflow MVP
2022-02-02 20:34:38 +08:00
Junyi
d24c5629d4
fix(root): fix dependencies in packages to avoid building errors (#178) 2022-02-02 19:08:33 +08:00
mytharcher
2f584b40bd feat(plugin-workflow): add parallel branch and mixed test cases 2022-02-01 12:04:08 +08:00
chenos
218eb5ced3 feat(client): improve code 2022-01-30 19:31:00 +08:00
chenos
fd130901be feat: add acl components 2022-01-30 19:28:42 +08:00
ChengLei Shao
15950ece05
Application (#175)
* 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

* chore: test

* feat: plugin-acl

* feat: acl with predicate

* grant universal action test

* grant action test

* update resource action test

* revoke resource action

* usingActionsConfig switch

* plugin-ui-schema-storage

* remove global acl instance

* fix: collection manager with sqlite

* add own action listener

* add acl middleware

* add acl allowConfigure strategy option

* add plugin-acl allowConfigure

* change acl resourceName

* add acl middleware merge params

* bugfix

* append fields on acl action params

* acl middleware parse template

* fix: collection-manager migrate

* add acl association field test

* feat(plugin-acl): grant association field actions

* chore(plugin-acl): type name

* feat(plugin-acl): regrant actions on resource action update

* feat(plugin-acl): regrant action on field destroy

* fix(plugin-acl): test

* fix(plugin-acl): test run

* feat(plugin-acl): set default role

* feat(plugin-users): set user default role

* test(plugin-users): create user with role

* feat(plugin-users): create user with role

* feat(application): application hook

* feat(database): reconnect

* feat(database): application life cycle

* feat(database): sync with option

* feat(database): hook position

* feat(database): hook position

* feat(database): remove load in start

* fix(application): get plugin

* feat(test): loadAndInstall

* feat: improve code

* feat: improve code

* fix: listen options

* fix: bug

* test(database): add test case

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-30 11:11:36 +08:00
ChengLei Shao
7a7ab2ef41
feat: add acl plugin (#169)
* 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

* chore: test

* feat: plugin-acl

* feat: acl with predicate

* grant universal action test

* grant action test

* update resource action test

* revoke resource action

* usingActionsConfig switch

* plugin-ui-schema-storage

* remove global acl instance

* fix: collection manager with sqlite

* add own action listener

* add acl middleware

* add acl allowConfigure strategy option

* add plugin-acl allowConfigure

* change acl resourceName

* add acl middleware merge params

* bugfix

* append fields on acl action params

* acl middleware parse template

* fix: collection-manager migrate

* add acl association field test

* feat(plugin-acl): grant association field actions

* chore(plugin-acl): type name

* feat(plugin-acl): regrant actions on resource action update

* feat(plugin-acl): regrant action on field destroy

* fix(plugin-acl): test

* fix(plugin-acl): test run

* feat(plugin-acl): set default role

* feat(plugin-users): set user default role

* test(plugin-users): create user with role

* feat(plugin-users): create user with role

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-30 10:37:27 +08:00
SemmyWong
8e1543269f
add Filter component into schema componens (#176)
* feat: add next Filter component into schema component

* fix: bugfix

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-29 23:07:05 +08:00
chenos
2929c77775 docs(api-client): update doc 2022-01-29 17:31:40 +08:00
chenos
8da98d8c2b feat(client): add board component 2022-01-29 17:30:40 +08:00
chenos
05e2cf3b8d feat: add some other components 2022-01-29 01:02:18 +08:00
mytharcher
f9182c4004 feat(plugin-workflow): use toggle instead of mount and unmount 2022-01-28 21:03:30 +08:00
chenos
5acac725f9 feat(client): improve the form component and add more examples 2022-01-28 15:23:52 +08:00
SemmyWong
dfa28983d7
feat: add Markdown component into schema components (#173)
* feat: markdown  migrate

* feat: markdown  migrate

* feat: add Markdown component into schema components

* refactor: modifty Markdown.Void component

* refactor: modifty Markdown.Void component

* refactor: modifty Markdown.Void component

* refactor: modify Markdown.Void component

* refactor: modify Markdown.Void component

* fix: x-editable=false

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-28 13:20:01 +08:00
chenos
145940fc6f fix(client): cannot read properties of undefined (reading 'onSuccess') 2022-01-28 12:17:22 +08:00
chenos
f9a18863ad
feat: table related components (#172)
* table-related components

* feat: ArrayTable & VoidTable & RowSelection

* update

* fix: missing request params

* fix(client): get sideMenuRef from context

* void table

* fix: use request params merge

* demo

* void table demo

* feat: improve code

* feat: improve code

* feat: row select table

* feat: record picker
2022-01-28 09:28:01 +08:00
mytharcher
e592d03f18 chore(plugin-workflow): migrate from 0.5 to 0.6 2022-01-28 00:25:26 +08:00
mytharcher
4249047318 fix(plugin-workflow): test for error job 2022-01-26 23:32:18 +08:00
mytharcher
6018013195 feat(plugin-workflow): execution life cycle with branch and join 2022-01-26 23:32:17 +08:00
mytharcher
1cce3bf164 feat: server mvp for configurable workflow with nodes 2022-01-26 23:32:17 +08:00
chenos
d0b6efaaf5 feat: api service support 2022-01-26 18:20:31 +08:00
SemmyWong
c5220ce09b
feat: add select component into schema component (#168)
* feat: select migrate

* feat: select migrate

* feat: add Select component into schema components

* refactor

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-26 10:43:29 +08:00
chenos
6e95278ce4 fix(database): missing context in hook 2022-01-25 17:08:35 +08:00
SemmyWong
a648adace8
feat: add TreeSelect component into schema components (#167)
* feat: migrate TreeSelect into schema components

* fix: modify enum to tredata

* fix: options replace treeData

* feat: migrate TreeSelect into schema components

* fix: modify enum to tredata

* fix: options replace treeData
2022-01-25 10:50:44 +08:00
chenos
9684e55f1a feat: memoized schema component 2022-01-25 09:21:41 +08:00
chenos
3c54393073 refactor(client): improve schema component 2022-01-25 00:18:34 +08:00
chenos
6ba2d6b5e5 fix(client): get sideMenuRef from context 2022-01-24 15:50:46 +08:00
chenos
1238f1ee8c fix(plugin-collection-manager): missing transaction 2022-01-24 14:57:04 +08:00
chenos
003745681b fix(plugin-collection-manager): filter out the fields 2022-01-24 14:41:27 +08:00
semmy
9c6ad9967f optimize: remove unused import 2022-01-24 14:32:32 +08:00
ChengLei Shao
bd285e0ba9
Plugin acl (#166)
* 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

* chore: test

* feat: plugin-acl

* feat: acl with predicate

* grant universal action test

* grant action test

* update resource action test

* revoke resource action

* usingActionsConfig switch

* plugin-ui-schema-storage

* remove global acl instance

* fix: collection manager with sqlite

* add own action listener

* add acl middleware

* add acl allowConfigure strategy option

* add plugin-acl allowConfigure

* change acl resourceName

* add acl middleware merge params

* bugfix

* append fields on acl action params

* acl middleware parse template

* fix: collection-manager migrate

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-24 14:10:35 +08:00
chenos
a2f3e1904e fix(client): adjust the order of props 2022-01-24 14:03:18 +08:00
chenos
b398e65c9c fix(plugin-collection-manager): test error 2022-01-24 11:46:10 +08:00
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
chenos
2b078a28be docs: add more examples 2022-01-23 00:46:21 +08:00
Chareice
1d11a3e793 fix: collection manager with sqlite 2022-01-22 21:20:46 +08:00
SemmyWong
be1192531c
add upload component into schema components (#165)
* feat: add Upload component into schema components

* docx file

* upload with customRequest

* action

* optimize: remove downloadFile instead of saveAs

* fix: direct download of non-image files

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-22 21:05:06 +08:00
chenos
5e7e3c2c46 fix(plugin-collection-manager): cannot destructure property 'skipExist' of 'loadOptions' as it is undefined. 2022-01-22 16:42:25 +08:00
chenos
31340f4773 fix: missing request params 2022-01-22 16:36:37 +08:00
chenos
11bbec7fd4 add tsconfig-paths/register 2022-01-22 16:34:31 +08:00
chenos
4715ba8d22 feat: improve code 2022-01-21 14:04:15 +08:00
chenos
84f3ed1564 feat: improve demo 2022-01-21 09:38:34 +08:00
SemmyWong
48722c7c99
feat: cacader component
* feat: add Cacader component into schema component

* docs: change document language

* Nocobase next color select (#157)

* feat: add useCompile hook

* feat: add ColorSelect component into schema component

* optimize: rename checkbox component file (#155)

* optimize: rename checkbox component file

* optimize: rename checkbox component file

* feat: optimize antd-config-orovider

* feat: move admin-layout and auth-layout to route-switch

* feat: add application demo

* feat: add radio into schema component (#154)

* feat: add radio to schema component

* docs: add Radio  demos into schema component

* rafactor: change import path

* docs: change demo language

* fix: add title and description to demos

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: add input into schema component (#158)

* feat: add Input Component to schema compoennt

* code cleanup

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: add RemoteSchemaComponent

* feat: add admin layout

* feat: add menu into schema component

* fix: remove antd/dist/antd.css

* feat: improve application demo

* feat: add DatePicker into schema components (#161)

* feat: add DatePicker into schema components

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>

* feature/nocobase next password (#159)

* feat: add Password Component into schema components

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: add InputNumber Component into schema component (#160)

* feat: add InputNumber Component into schema component

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat(client-menu): improve code

* 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>

* Acl (#162)

* 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

* chore: test

Co-authored-by: chenos <chenlinxh@gmail.com>

* Feat/plugin collection manager (#147)

* refactor: collection manager plugin

* feat(database): magic attribute model

* MagicAttributeModel

* load collections & fields options

* collections filterTargetKey

* 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>

* update yarn.lock

* rename

* feat(client): plugin manager toolbar

* feat: add demo for plugin manager toolbar

* feat: improve the toolbar of the plugin manager

* feat: improve document title and page title support

* feat: add IconPicker component into schema components

* feat: improve icon component

* migrate TimePicker component into schema components (#164)

* feat: add TimePicker component into schema components

* improve

* TimePicker.RangePicker

Co-authored-by: chenos <chenlinxh@gmail.com>

* Load Options Lazily

* feat: extract read pretty

* fix: useEffect only on update

* feat: add Cacader component into schema component

* docs: change document language

* feat: extract read pretty

* Load Options Lazily

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2022-01-21 09:32:13 +08:00
chenos
f882ab42c5 fix: useEffect only on update 2022-01-20 23:48:35 +08:00
SemmyWong
b0b79b7d9d
migrate TimePicker component into schema components (#164)
* feat: add TimePicker component into schema components

* improve

* TimePicker.RangePicker

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-20 20:33:46 +08:00
chenos
091fb7f5ee feat: improve icon component 2022-01-20 18:19:59 +08:00
semmy
d04d3d0639 feat: add IconPicker component into schema components 2022-01-20 15:16:12 +08:00
chenos
d94874d345 feat: improve document title and page title support 2022-01-20 12:06:09 +08:00
chenos
a1ccc82fa1 feat: improve the toolbar of the plugin manager 2022-01-20 10:45:00 +08:00
chenos
b49440da00 feat: add demo for plugin manager toolbar 2022-01-19 22:21:20 +08:00
chenos
d1f9d3e25d feat(client): plugin manager toolbar 2022-01-19 15:14:00 +08:00
chenos
e7918b7887 rename 2022-01-19 10:18:53 +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
43f33044ea
Acl (#162)
* 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

* chore: test

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-18 20:29:41 +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
chenos
c9742c1710 feat(client-menu): improve code 2022-01-18 15:19:54 +08:00
SemmyWong
e48e70e82a
feat: add InputNumber Component into schema component (#160)
* feat: add InputNumber Component into schema component

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-18 10:08:56 +08:00
SemmyWong
206b37edc1
feature/nocobase next password (#159)
* feat: add Password Component into schema components

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-18 09:52:29 +08:00
SemmyWong
637b3165ca
feat: add DatePicker into schema components (#161)
* feat: add DatePicker into schema components

* improve code

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-18 09:21:55 +08:00
chenos
f8c0a7ac69 feat: improve application demo 2022-01-17 23:05:27 +08:00
chenos
06a75d31a5 fix: remove antd/dist/antd.css 2022-01-17 23:04:55 +08:00
chenos
cb3e171b31 feat: add menu into schema component 2022-01-17 23:04:33 +08:00
chenos
d0f677a6e9 feat: add admin layout 2022-01-17 23:03:51 +08:00
chenos
dde48fc775 feat: add RemoteSchemaComponent 2022-01-17 23:02:35 +08:00
SemmyWong
150deb28c1
feat: add input into schema component (#158)
* feat: add Input Component to schema compoennt

* code cleanup

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-17 16:14:09 +08:00
SemmyWong
e40565e90a
feat: add radio into schema component (#154)
* feat: add radio to schema component

* docs: add Radio  demos into schema component

* rafactor: change import path

* docs: change demo language

* fix: add title and description to demos

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-17 15:39:52 +08:00
chenos
50e13fe93a feat: add application demo 2022-01-17 15:28:28 +08:00
chenos
29cf274a52 feat: move admin-layout and auth-layout to route-switch 2022-01-17 12:25:10 +08:00
chenos
224a08c057 feat: optimize antd-config-orovider 2022-01-17 12:23:32 +08:00
SemmyWong
a5393e52c7
optimize: rename checkbox component file (#155)
* optimize: rename checkbox component file

* optimize: rename checkbox component file
2022-01-15 18:45:04 +08:00
SemmyWong
6ef6dd7717
Nocobase next color select (#157)
* feat: add useCompile hook

* feat: add ColorSelect component into schema component
2022-01-15 18:43:50 +08:00
chenos
58683a7657 feat: change the schema component directory 2022-01-13 14:53:13 +08:00
chenos
f8181cbf74
feat: add async-data-provider component (#151) 2022-01-13 14:25:42 +08:00
chenos
eff76fb0a2 feat: add checkbox component 2022-01-11 18:13:15 +08:00
chenos
a87a089acf
feat: client v0.6 (#150)
* v0.6

* update...

* feat: improve code

* improve code

* action & form

* update...

* improve code

* improve code

* improve code

* designable

* update

* update...

* api client

* RecordProvider

* collection manager

* update...

* update api client

* update use request

* update

* update doc

* test cases for compose

* docs: improve documentation
2022-01-10 19:22:21 +08:00
chenos
72a968b29d fix: Module '"@nocobase/database"' has no exported member 'uid'. 2022-01-08 18:04:55 +08:00
chenos
4bb4886ddb feat: add uid 2022-01-08 18:02:42 +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
chenos
10d520c22a feat: customizable magicAttribute 2022-01-07 22:06:31 +08:00
chenos
103a170917 add test case for magic-attribute-model 2022-01-07 21:47:10 +08:00
chenos
ef6e2dd378 feat(database): magic attribute model 2022-01-07 20:26:23 +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
Chareice
8f0a71a1cf feat: collection autoGenId option 2021-12-16 10:58:51 +08:00
Chareice
9ff6575cff feat: filter with filterByPK 2021-12-12 19:57:20 +08:00
Chareice
90846686ac fix: update association value 2021-12-08 13:00:09 +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
chenos
54f351af9d fix: plugin packages dependencies 2021-12-07 19:40:30 +08:00
chenos
17b5839f51 feat: upgrade plugin-notifications 2021-12-07 19:24:26 +08:00
Chareice
30e31a2e79 update options 2021-12-07 15:43:14 +08:00
Chareice
f6f8f041f1 Merge remote-tracking branch 'origin/nocobase-next' into nocobase-next 2021-12-07 15:29:50 +08:00
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
c2ff7882bc
feat: database next (#130)
* FIX: database test with sqlite

* more types

* filter test

* split filter parser

* filter test

* filter test: hasMany

* define inverse association for belongsTo & hasMany

* chore: console.log

* repository count method

* chore: Collection

* repository filter & appends & fields & expect

* repository: sort option

* chore: test

* add: test

* find & findAndCount

* chore: test

* database-next: update guard

* database-next: update guard associationKeysToBeUpdate

* chore: comment

* update-guard OneToOne Association

* has one repository

* support through table value

* belongs to many repository

* has many repository

* has many repository find

* fix: has many find and count

* clean code

* add count method

* chore: multiple relation

* chore: single relation

* repository find

* relation repository builder

* repository count

* repository count test

* fix test

* close db afterEach test

* sort with associations

* repository update

* has many repository: destroy

* belongs to many repository: destroy

* add transaction decorator

* belongs to many with transaction

* has many with transaction

* clean types

* clean types

* clean types

* repository transaction

* fix test

* single relation repository with transaction

* single relation repository with transaction

* fix: test

* fix: option parser fields append

* fix: typo

* fix: string type

* fix: import

* collection field methods

* cleanup

* collection sync

* fix: import

* fix: test

* collection update field

* collection update options

* database hook

* database test

* database event test

* update database event

* add async emmit mixin

* async model event

* database import

* fix: model hook type

* fix: collection event

* recall model.init on collection update

* skip redefine collection test

* skip collection model update

* add model hook class

* global model event support

* chore

* chore

* change utils import

* add field types

* database import

* more import test

* test case

* fix: through model init...

* bugfix

* fix

* update database import

* collection sync by foreachModel

* fix collection model sync

* update

* add field types

* custom operator

* sqlite array field

* postgresql array field

* array query escape

* mysql array operators

* date operators

* array field sqlite fix

* association operator

* date operator empty & notEmpty

* fix: fields import

* fix array field nested association

* filter parse prepare

* fix test

* string field empty

* add date operator test

* field option types

* fix typo

* fix: operator name conflict

* rename function

Co-authored-by: Chareice <chareice@live.com>
2021-12-06 21:12:54 +08:00
chenos
c1b560e928
feat: rename resourceKey & associatedKey to resourceIndex & associatedIndex (#126)
* resourceIndex & associatedIndex

* resourceIndex & associatedIndex
2021-12-04 16:28:52 +08:00
SemmyWong
62796f136c
refactor: table cell text overflow that show ellipsis (#125)
* fix: table column text overflow auto hidden

* refactor: table column text overflow auto hidden

* refactor: table column text overflow auto hidden

* fix: popover text overflow handle

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-12-04 15:36:59 +08:00
Junyi
5dfa57581a
Add S3 storage and refactors (#124)
* add s3 storage and refactors

* fix env and dependencies
2021-12-04 07:58:31 +08:00
chenos
c177ebb8e3 fix: ci failed 2021-12-03 12:30:55 +08:00
semmy
399135c1a9 fix: import wrong React 2021-12-03 10:18:22 +08:00
semmy
f089cacf1d fix: 修复Table.Column.DesignableBar遗漏 2021-12-03 10:05:14 +08:00
Junyi
60b966f59e
Fix: plugin-file-manager (#111)
* fix: test cases

* fix env used by file manager

* default value of process.env.LOCAL_STORAGE_BASE_URL

* use workspace dependencies

* refactor some env to adapt more scenario

* fix reviewing issues

* fix env default value

* update umi config

* bugfix

* fix shared cache

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-12-03 07:31:22 +08:00
SemmyWong
12f58effad
refactor: code splitting of the table component (#121)
* refactor: 表格拆分模块化

* refactor: 表格拆分模块化

* refactor: code splitting of the table component (#120)

* missing TableIndex

* refactor: 表格拆分模块化

* code format

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-12-02 22:56:16 +08:00
chenos
1072e03c5a Revert "refactor: code splitting of the table component (#120)"
This reverts commit 0f9eb4e7f2.
2021-12-02 17:56:05 +08:00
SemmyWong
0f9eb4e7f2
refactor: code splitting of the table component (#120) 2021-12-02 15:26:28 +08:00
chenos
82ad5de8cb fix: development environment client does not need to be compiled 2021-12-02 14:11:19 +08:00
chenos
d817ec4c7b fix: missing parameters 2021-11-30 16:43:44 +08:00
semmy
61dcd45a83 fix: add allowSignUp default value as true 2021-11-30 08:51:27 +08:00
semmy
e058c509ea Merge branch 'develop' of https://github.com/nocobase/nocobase into develop 2021-11-29 20:59:45 +08:00
semmy
e435fe0ff3 feat: allow user to sign up 2021-11-29 20:59:31 +08:00
chenos
e43da7d0ca fix(client): cannot find namespace 'Formily' 2021-11-29 11:36:36 +08:00
chenos
9fe9790a19 fix(client): markdown parse 2021-11-29 11:20:11 +08:00
SemmyWong
8cf1efb21f
feat: add reset button in the filter panel (#110) 2021-11-25 22:42:05 +08:00
SemmyWong
64283fcb0e
feat: allow user to change password (#109)
* feat: allow user to change password

* docs: update api doc

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-11-25 22:36:52 +08:00
chenos
11cded6153 chore: v0.5.0-alpha.34 2021-11-23 08:23:34 +08:00
chenos
3e53584768 fix: remove state property 2021-11-23 08:21:38 +08:00
chenos
18089eb56c fix(client): invalid hook call 2021-11-20 13:55:50 +08:00
chenos
372a0c372c feat(docs): update doc 2021-11-19 15:40:29 +08:00
chenos
e6fa6f9a8e feat(plugin-users): multiple roles 2021-11-18 19:26:39 +08:00
chenos
a702f534ba feat: add roles field to users collection 2021-11-17 18:54:02 +08:00
chenos
d8c7a0f1c3 feat: add roles field to users collection 2021-11-16 18:28:07 +08:00
chenos
3479b7ea27 chore: v0.5.0-alpha.33 2021-11-13 22:24:51 +08:00
chenos
50baa9363c fix: field update with migrate 2021-11-13 22:22:59 +08:00
chenos
bad753cd46 feat(docs): update model api doc 2021-11-12 18:38:58 +08:00
SemmyWong
686474cb38
fix: upgrade formily & side menu render with createPortal & use deep compare effect (#103)
* [Fixed]
1. ts升级4.4.4
2. 解决升级formily类型不兼容问题

* [Fixed]
1. 修复菜单混合渲染问题

* [Fixed]
1. 修复useEffect对象深度依赖比较(订单表死循环)

* [update]去掉debugger
2021-11-11 22:07:13 +08:00
twinkle77
f34920df5b
fix: SchemaRenderer get schema value (#102)
Co-authored-by: Shuogui Lin <shuogui.lin@shopee.com>
2021-11-11 11:07:02 +08:00
chenos
be03b7579d fix: formily back to 2.0.0-rc.3 2021-11-10 23:44:39 +08:00
SemmyWong
6c345cb64a
fix: upgrade formily and form.setValues uses overwrite strategy (#101)
1、formily从2.0.0-rc.3升级到2.0.0-rc.19
2、重置form没有生效,setValues参数设为override
2021-11-10 23:23:57 +08:00
chenos
06a67479c8 fix: do not clear the attachment records 2021-11-10 21:01:35 +08:00
chenos
3cdff1adc8 fix: opts null 2021-11-10 20:32:47 +08:00
chenos
f555a64a2d feat(plugin-multi-apps): expiration prompt 2021-11-10 20:32:16 +08:00
chenos
7be6327458 chore: v0.5.0-alpha.32 2021-11-09 17:14:11 +08:00
chenos
749ea00058 fix(client): TypeError: Cannot read properties of null (reading 'setSelectedRows') 2021-11-09 17:10:36 +08:00
chenos
7a35638eda chore: v0.5.0-alpha.31 2021-11-09 16:28:27 +08:00
chenos
327562f320 fix: disable koa-static in production environment 2021-11-09 16:20:17 +08:00
chenos
829f969668 chore: v0.5.0-alpha.30 2021-11-09 13:07:41 +08:00
chenos
ca2bee7d9a fix: If it is already installed, skip the installation process 2021-11-09 13:04:10 +08:00
chenos
aff76b2d85 fix: refresh the page after updating the popup type 2021-11-09 12:59:28 +08:00
chenos
1056a4dbe8 fix: improve translation 2021-11-09 12:57:42 +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
053b0fec89 feat(plugin-client): update demo data 2021-11-08 22:53:25 +08:00
chenos
5e079d38f2 fix(client): compile menu title 2021-11-08 20:59:07 +08:00
chenos
5cacee4e7f chore: v0.5.0-alpha.27 2021-11-08 20:47:20 +08:00
chenos
c93d22ec27 fix(client): i18n.t in schema 2021-11-08 20:46:45 +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
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
8376c6d1b2 chore: v0.5.0-alpha.25 2021-11-01 17:29:27 +08:00
chenos
5a7f3e1709 fix(create-nocobase-app): process.env.API_URL='/api/' 2021-11-01 17:25:29 +08:00
chenos
b5c587fc94 chore: v0.5.0-alpha.24 2021-11-01 15:20:30 +08:00
chenos
55a1263887 fix: update doc 2021-11-01 15:20:11 +08:00
chenos
afdca3af48 fix: missing process.env.API_URL 2021-11-01 14:57:32 +08:00
chenos
f7f5689f5a fix: update doc 2021-10-31 11:37:16 +08:00
chenos
ee8a1ea187 feat: component documentation 2021-10-31 11:35:11 +08:00
chenos
08ef78ae8b feat: document translation 2021-10-31 09:44:52 +08:00
semmywong
14f492f414
fix: add sort field to the users table
* [Fixed]
1、初始化数据表时,没有配置sort
2、增加sort接口类型

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR
2021-10-30 10:55:43 +08:00
chenos
41b023987b chore: v0.5.0-alpha.23 2021-10-28 22:59:51 +08:00
chenos
85acc268fd fix(create-nocobase-app): cannot find module 'sqlite3' 2021-10-28 22:58:50 +08:00
chenos
1408de55d2 feat(client): tooltip for designable button 2021-10-25 23:15:25 +08:00
chenos
2253471670 chore: v0.5.0-alpha.22 2021-10-25 14:37:22 +08:00
chenos
73d439eb1f feat(create-nocobase-app): simplify the process 2021-10-25 14:24:24 +08:00
chenos
2a696eeb7a fix: process.env.PWD is not set on win10 2021-10-25 13:40:02 +08:00
ChengLei Shao
90b7c9fc94
option-tag style (#92) 2021-10-25 09:58:02 +08:00
chenos
4b586148b1 feat: supports filling in the collection name and field name 2021-10-21 12:18:21 +08:00
ChengLei Shao
58d89068af
create-nocobase-app: favicon (#91) 2021-10-21 11:25:40 +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
12b3590845 feat: database next 2021-10-16 10:53:09 +08:00
chenos
e4043bdfc2 fix: lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function 2021-10-14 14:37:41 +08:00
chenos
f199df96aa chore: add prettier config 2021-10-14 00:08:16 +08:00
chenos
d80c875d5e chore: v0.5.0-alpha.20 2021-10-12 22:27:38 +08:00
chenos
d94606ab30 fix(plugin-users): user's password should not be leaked to the client 2021-10-12 22:17:11 +08:00
chenos
5b9a24cba1 fix(client): cannot read properties of undefined (reading 'interface') 2021-10-12 22:01:18 +08:00
chenos
fda20f83c3 chore: v0.5.0-alpha.19 2021-10-10 22:30:16 +08:00
chenos
2ce3b9d21b fix(client): auto jump to the first menu item after login 2021-10-10 22:24:30 +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
d2c534243e fix: pageSize to perPage 2021-10-10 12:54:48 +08:00
chenos
effedd77a7 fix: disable sub table field 2021-10-10 12:51:14 +08:00
chenos
ccfdb02801 fix: empty values after form submission 2021-10-10 12:50:26 +08:00
chenos
8472d9e6b0 fix: cannot start the project 2021-10-10 12:16:28 +08:00
chenos
dafe8f14d0 chore: v0.5.0-alpha.16 2021-10-08 23:16:46 +08:00
chenos
996f752007 feat: improve plugin-multi-apps 2021-10-08 23:14:55 +08:00
chenos
4ab7c71f49 feat: add @nocobase/plugin-notifications 2021-10-08 23:12:39 +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
04cdaae31c docs: update doc 2021-10-08 00:32:40 +08:00
chenos
2fa8280803 chore: v0.5.0-alpha.14 2021-10-07 21:57:01 +08:00
chenos
681d940fa2 fix: typo 2021-10-07 21:54:10 +08:00
chenos
8561502384 chore: v0.5.0-alpha.13 2021-10-07 21:33:32 +08:00
chenos
ce2102bf61 fix: importData: true 2021-10-07 21:32:45 +08:00
chenos
b2f3bd4894 chore: v0.5.0-alpha.12 2021-10-07 19:39:35 +08:00
chenos
7432a485eb feat: add importDemo option for plugin-client 2021-10-07 19:35:53 +08:00
chenos
a2006fdc6a chore: code cleanup 2021-10-07 19:32:55 +08:00
chenos
4506271af5 chore: v0.5.0-alpha.11 2021-10-07 19:03:50 +08:00
chenos
8196c099cd fix: api port 2021-10-07 19:02:52 +08:00
chenos
9787bedb3c chore: 0.5.0-alpha.10 2021-10-07 18:02:32 +08:00
chenos
4a1c381a24 docs: update readme 2021-10-07 18:01:45 +08:00
chenos
968fd2e656 chore: v0.5.0-alpha.9 2021-10-07 17:25:31 +08:00
chenos
23f4ec2681 feat: improve nocobase app template 2021-10-07 17:24: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
b5e24fa091 feat: initialize demo data 2021-10-07 16:31:19 +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
597c6484fb feat: add @nocobase/create-nocobase-app package 2021-10-07 15:19:42 +08:00
chenos
143ff2568c feat: initialization data for roles & permissions 2021-10-03 21:05:07 +08:00
chenos
ff7757bf99 fix: remove compress middleware 2021-10-02 23:21:00 +08:00
chenos
29d386a63d feat: improve code 2021-10-01 23:31:49 +08:00