Commit Graph

1448 Commits

Author SHA1 Message Date
Sun668
0d9b43206c
feat: load vditor dep from local (#4190)
* feat: load vditor dep from local

* fix: plugin-field-markdown-vditor build config

* Revert "fix: plugin-field-markdown-vditor build config"

This reverts commit 60d344d340.

* feat: plugin-field-markdown-vditor: use NODE_ENV

* fix: plugin-field-markdown-vdtor dep preload

* fix: plugin-field-markdown-vdtor dep preload

* fix: plugin-field-markdown-vdtor dep preload

* feat: plugin-field-markdown-vditor set default valut for edit

* fix: cdn

* fix: set vditor editor value after create

* fix: cdn

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-28 11:23:14 +08:00
Junyi
5711b1a77b
fix(plugin-workflow): refine experience (#4195) 2024-04-27 20:48:23 +08:00
YANG QIA
fec979e190
chore: optimize warning wordings of import & export (#4196)
* chore: optimize warning wordings of import & export

* chore: remove pro links
2024-04-27 19:58:19 +08:00
katherinehhh
c5d8a7e251
refactor: external data source collection manager (#4193)
* refactor: data source collection manager

* refactor: data source collection manager
2024-04-27 17:07:20 +08:00
ChengLei Shao
69baf99b66
fix: empty operator with association field (#4189)
* test: empty operator with association field

* fix: test

* fix: test
2024-04-27 14:40:05 +08:00
Zeke Zhang
def7530d14
chore: add e2e (#4184)
* test: schemaInitializer of map

* test: settings of map block

* refactor: extract common options

* chore: test filter blocks in page

* chore: test filter block in popup

* chore: add e2e for inherit fields

* chore: attachement field

* chore: file block

* chore: should use beforEach instead of beforAll

* chore: make e2e pass

* chore: only run map e2e

* Revert "chore: only run map e2e"

This reverts commit fbdae1a573.
2024-04-27 14:06:42 +08:00
ChengLei Shao
71e8d07f15
test: add automated testing (#4098)
* test: string includes operator

* chore: operator test coverage

* chore: database utils test

* chore: acl test

* chore: no permission error

* chore: code

* fix: run coverage test

* chore: datasource test

* chore: datasource test

* chore: datasource test

* chore: datasource test

* chore: datasource test

* chore: datasource

* fix: build

* chore: plugin data source manager test

* chore: acl test

* chore: query interface test

* chore: ui schema storage test

* chore: save template test

* chore: ui schema insert position action

* chore: ignore migration

* chore: plugin acl test

* chore: ignore command in coverage

* chore: ignore

* chore: remove db2resource

* chore: ignore migration

* chore: ipc server test

* chore: database test

* chore: database api comments

* chore: value parser test

* chore: build

* chore: backup & restore test

* chore: plugin manager test

* chore: pm

* chore: pm ignore

* chore: skip migration

* chore: remove unused code

* fix: import

* chore: remove unused code

* chore: remove unused code

* fix: action test

* chore: data wrapping middleware

* fix: build

* fix: build

* fix: build

* test: fix T-4105

* chore: test

* fix: data-source-manager test

* fix: sql collection test

* fix: test

* fix: test

* fix: test

* fix: typo

* chore: datasource manager test

* chore: console.log

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2024-04-26 17:44:59 +08:00
ChengLei Shao
7849bbd889
chore: data source logger instance (#4181) 2024-04-26 15:53:57 +08:00
Zeke Zhang
ccd2ade2aa
chore: add e2e for variables (#4152)
* chore: optimize e2e

* chore: test default value

* chore: data scope

* chore: test Assign field values

* chore: fix e2e

* refactor: extract

* chore: skip failed e2e

* chore: fix failed e2e

* chore: fix T-4133

* chore: fix e2e
2024-04-26 14:26:02 +08:00
ChengLei Shao
7748a33138
chore: unsupportedFields in view collection (#4155)
* chore: unsupportedFields in view collection

* refactor: view display unsupportedFields

* refactor: locale improve

* chore: test

* chore: test

* fix: bug

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-04-26 10:11:47 +08:00
Sun668
4165d8baae
feat: add plugin-field-markdown-vditor (#4065)
* feat: create vditor field type, use Vditor as Markdown Editor

* feat: clear Markdown Vditor value when set props.value to null

* feat: add plugin-field-markdown-field to preset local plugin

* fix: fix the plugin-field-markdown-vditor name in preset

* fix: fix the plugin-field-markdown-vditor version in preset

* feat: set vditor disable if props.disable is true after init

* feat: use data from localstorage as vditor upload request headers

* fix: plugin-field-markdown-vditor version to 0.21.0-alpha.11

* feat: when fileCollection is not defined, remove upload from vditor toolbar

* feat: add temp function to reset vditor value

* fix: temp function to reset vditor value may include reset tag

* feat: update plugin-field-markdown-vditor i18n

* fix: i18n

* feat: temp disable fullscreen

* fix: remove useless file

* fix: plugin description

* fix: plugin description

* fix: plugin-field-markdown-vditor componentCls

* fix: plugin-field-markdown-vditadd default toobar config

* fix: use long text to save mardkwon

* fix: vditor fullscreen style

* feat: change vditor field datatype

* fix: code review

* fix: code review

* feat: change import method of katex in plugin-field-markdown-vditor

* fix: version

* fix: resize will cause blur

* fix: vditor base font-size

* fix: vditor base font-size

* feat: use style config from token as vditor base size

* fix: plugin-field-markdown-vditor i18n

* fix: toobar config tooltip can not be seen

* fix: vditor toobar default config

* feat: plugin-field-markdown-vditor doc url

* feat: move cursor to end when reset vditor value

* fix: value change will not set vditor

* feat: support getHeaders

* fix: improve component

* fix: enhance vditor init

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-26 08:42:01 +08:00
katherinehhh
3a0ade464a
fix: bulk edit form acl action error (#4166) 2024-04-25 20:14:37 +08:00
ChengLei Shao
6300ccae23
fix: auto create uuid foreign key in relation field (#4160)
* chore: test

* fix: auto create uuid foreign key in relation field
2024-04-25 19:06:15 +08:00
YANG QIA
5da0d4e75b
fix(users): improve users:updateProfile (#4162)
* chore(users): improve `users:updateProfile`

* chore: use lodash.pick
2024-04-25 16:54:53 +08:00
chenos
333fe8d8f4
feat: remove plugin-ui-routes-storage (#4140)
* feat: remove plugin-ui-routes-storage

* fix: skip test
2024-04-25 15:50:04 +08:00
katherinehhh
2d66f4d44b
refactor: collection template support presetFieldsDisabled (#4159)
* refactor: collection template support presetFieldsDisabled

* refactor: code improve
2024-04-25 13:17:45 +08:00
jack zhang
229e5d1a40
client unit test (#4150)
* fix: add more unit test
2024-04-24 20:33:14 +08:00
chenos
d5ed2d5037
fix(custom-request): support configuring content type (#4144) 2024-04-23 21:43:45 +08:00
Zeke Zhang
fd4c9cb288
chore: deprecate the current record variable from the form (#4063)
* chore: remove the current record variable from the form

* chore: fix failed e2e

* refactor(VariableInput): support for setting the react node for label

* feat: support to show tooltip

* chore: stash

* chore: add translation

* chore: add translation

* chore: fix expresion

* test: add e2e for deprecated variables

* refactor: migrate file

* chore: make e2e pass

* chore: make e2e pass

* chore: make e2e pass

* chore: adjust

* chore: natch

* chore: revert match
2024-04-23 21:18:27 +08:00
Zeke Zhang
785cc525c4
feat(Theme): add some tokens (#4137)
* chore: use token better

* chore: use rgba

* feat: add some custom tokens

* Revert "chore: use rgba"

This reverts commit dac660f693.

* feat: adaptor tokens

* chore: adjust details

* chore: fix unit tests

* chore: remove box shadow from buttons in the upper right corner of the page

* fix: font size
2024-04-23 21:17:20 +08:00
Junyi
8a2bcd9a74
fix(plugin-workflow-manual): allow pass node when no assignee (#4139) 2024-04-23 13:42:58 +08:00
chenos
05504b5678 chore(versions): 😊 publish v0.21.0-alpha.15 2024-04-23 11:18:20 +08:00
chenos
4b51a43786 fix(ui-schema-storage): allow uiSchemas:getParentJsonSchema 2024-04-23 09:02:51 +08:00
Junyi
3413c6c6d4
fix(plugin-workflow-manual): fix assignees parsing bug (#4125) 2024-04-22 17:00:16 +08:00
chenos
7e4ad0daae chore(versions): 😊 publish v0.21.0-alpha.14 2024-04-22 11:26:15 +08:00
ChengLei Shao
e8cf01a99d
fix: load association field in collection (#4122)
* fix: load association field in collection

* chore: test
2024-04-22 10:28:34 +08:00
Zeke Zhang
15325101d6
perf: remove all Skeleton animation (#4113)
* perf: remove Skeleton

* chore: add lazy render

* chore: remove all animation
2024-04-22 09:03:20 +08:00
YANG QIA
b12fe0981f
chore(data-vi): adjust api (#4116) 2024-04-21 21:14:26 +08:00
hongboji
c43a6e98d5
fix: scheduleEventTrigger (#4114)
* fix: scheduleEventTrigger

* fix: delete pro-plugins
2024-04-21 19:35:30 +08:00
Junyi
5bcaa9d11f
feat(plugin-workflow): add checker for intervally dispatching (#4119) 2024-04-21 14:23:13 +08:00
chenos
9b20b04e98 chore(versions): 😊 publish v0.21.0-alpha.13 2024-04-21 12:04:14 +08:00
chenos
65b1e7c5a5 test: add test case 2024-04-20 19:36:35 +08:00
chenos
8f829546c5
fix: improve sort field migration (#4112) 2024-04-20 19:18:44 +08:00
chenos
a8eb2b719c chore(versions): 😊 publish v0.21.0-alpha.12 2024-04-19 22:53:42 +08:00
ChengLei Shao
c8454ab006
fix: createdBy & updatedBy target option (#4109) 2024-04-19 21:06:33 +08:00
chenos
cb91f7dbd4
feat: improve form block (#4099)
* feat: improve form block

* fix: remove RenderChildrenWithAssociationFilter

* fix: improve form block
2024-04-19 16:15:03 +08:00
ChengLei Shao
252bb14ae4
chore: migrate sortable options to sort field (#4011)
* chore: migrate sortable options to sort field

* chore: association sortable field
2024-04-19 11:58:43 +08:00
YANG QIA
067042ac3a
feat(data-vi): allows pie chart to accept negative numbers, fix T-4075 (#4094) 2024-04-18 23:44:14 +08:00
YANG QIA
2d9ed8d1ff
fix(data-vi): number becomes string after precision transformation (#4092) 2024-04-18 20:07:26 +08:00
Junyi
52d00aef58
test(plugin-workflow): add test case for duplicated triggering schedule workflow (#3817) 2024-04-18 17:15:14 +08:00
Zeke Zhang
8f17456d93
fix(subTable): should not display Allow add new data option (#4086)
* fix(subTable): should not display Allow add new data option

* chore: make e2e more stable
2024-04-18 15:07:59 +08:00
chenos
651af7d741
fix: missing fields (#4083)
* fix: missing fields

* fix: typo

* chore: add migration

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2024-04-18 12:23:44 +08:00
chenos
438a059c7b chore(versions): 😊 publish v0.21.0-alpha.11 2024-04-17 23:47:44 +08:00
jack zhang
c9171a7117
fix: custom request role list (#4074)
* fix: custom request role list

* fix: custom request body users

* fix: support external data sources

* fix: record data

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-17 21:15:04 +05:30
ChengLei Shao
0291eb4ba4
fix: load with source field (#4075)
* test: belongs to a view collection

* fix: load with source field
2024-04-17 19:26:43 +08:00
ChengLei Shao
164359171d
fix: sync default value in view (#4067) 2024-04-17 15:36:29 +08:00
katherinehhh
d25670f29f
refactor: gantt block (#4059)
* refactor: gantt block

* style: style improve

* fix: bug

* fix: bug
2024-04-17 11:21:03 +08:00
Zeke Zhang
39f8bd529a
chore(Theme): set the default font size of the Compact theme to 16 (#4064)
* chore(Theme): set the default font size of the Compact theme to 16

* chore: compact dark
2024-04-17 10:49:22 +08:00
chenos
d76d657622 chore(versions): 😊 publish v0.21.0-alpha.10 2024-04-16 23:51:49 +08:00
YANG QIA
9b0c22fda9
chore: adjust import & export warnings (#4060)
* chore: adjust import & export warnings

* fix: add limit

* chore: adjust warnings
2024-04-16 23:51:03 +08:00
chenos
64e12bb08b chore(versions): 😊 publish v0.21.0-alpha.9 2024-04-16 22:53:12 +08:00
Zeke Zhang
3d857d2e69
fix(variable): missing variables and invalid translations (#4054)
* fix(variable):  missing variables and invalid translations

* refactor: better

* fix: should display current record variable

* fix: template

* chore: add deps

* chore: add e2e for table view

* fix: current record variable

* chore: avoid error

* fix: bugs

* chore: fix failed e2e

* chore: fix e2e

* fix: colection name
2024-04-16 22:50:52 +08:00
YANG QIA
8b88b29b5e
test: add backend unit tests (#4000)
* test: add backend unit tests

* test: cas

* test: oidc & saml

* test: sql collection

* fix: test files

* test: data-visualization

* test: localization

* fix: test
2024-04-16 17:56:48 +08:00
chenos
8c779b4cf6 chore(versions): 😊 publish v0.21.0-alpha.8 2024-04-16 00:26:13 +08:00
ChengLei Shao
57449bb2df
chore(acl): disable register association fields actions (#4014)
* chore: disable register association fields actions

* chore: test

* chore: association field acl

* fix: snippet test

* fix: pm.data-source-manager

* fix: acl roles snippets

* chore: update snippet migration

* fix: bug (#4035)

Co-authored-by: katherinehhh <katherine_15995@163.com>

* fix: save role strategy

* fix: x-acl-action

* fix: acl snippet

* fix: bug

* fix: graph

* fix: association permission

* chore: data source manager snippet

* fix: test

* chore: test

* test: e2e test

* fix: undefined list

* fix: useApp

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-04-16 00:25:35 +08:00
Zeke Zhang
fe4be822b9 feat: add to more blocks 2024-04-15 19:46:13 +08:00
Zeke Zhang
0ed17af122
test(e2e): add assertions on field values (#4034)
* chore: optimize e2e

* test(e2e): add assertions on field values

* chore: fix e2e
2024-04-15 17:50:18 +08:00
Zeke Zhang
0274e65cec
feat(Variable): add a new variable (#4025)
* feat: add DeclareVariable

* feat: add a new variable

* test: add e2e

* fix: current form variable

* chore: rename '弹窗记录' to 'Current popup record'

* fix(Details): fix data scope error

* fix(Calendar): fix data scope

* fix: varaible's data souce

* fix: data souce
2024-04-15 14:50:38 +08:00
chenos
31d68f91e8
feat: run e2e with pro plugins (#3890)
* feat: run e2e with pro plugins

* fix: name

* chore: fix typo

* fix: make e2e pass

* chore: only run pro e2e

* Revert "chore: only run pro e2e"

This reverts commit 9beff480c1.

* chore: increase timeout

* feat: support to set maxDepth

* chore: set default maxDepth to 1

* chore: fix e2e to make pass

* chore: add test for BlockSchemaToolbar

* chore: split files to avoid slowing down testing

* chore: make e2e more stable

* chore: make e2e more stable

* refactor: e2e

---------

Co-authored-by: Zeke Zhang <958414905@qq.com>
2024-04-15 12:40:53 +08:00
Zeke Zhang
a00f4ac69b test: fix e2e to make pass 2024-04-13 12:53:25 +08:00
xilesun
d66c2baa53 chore(versions): 😊 publish v0.21.0-alpha.7 2024-04-13 09:37:59 +08:00
katherinehhh
3fd5b05940
fix: scopeKeyOptions should be obtained in real-time (#4029)
* fix: formula field caluation error

* fix: scopeKeyOptions

* fix: bug

* fix: bug
2024-04-13 09:28:24 +08:00
Zeke Zhang
f36bc41a11
fix(addText): should use FormItemSchemaToolbar instead of BlockSchema… (#3963)
* fix(addText): should use FormItemSchemaToolbar instead of BlockSchemaToolbar

* chore: unskip

* fix: add component Slider
2024-04-13 09:14:46 +08:00
ChengLei Shao
7f936832b9
feat: register once hook in datasource manager (#4024)
* chore: datasource hook

* feat: register once hook in datasource manager

* chore: api name

* chore: test
2024-04-13 08:24:10 +08:00
xilesun
1f0acfc2a3 fix(data-vi): set default bordered as false 2024-04-12 22:49:00 +08:00
ChengLei Shao
0fcef2f837
fix: snippets (#4030) 2024-04-12 22:40:06 +08:00
YANG QIA
91fdd84ea1
feat(data-vi): improved user experiences (refer to pr) (#4013)
* feat(data-vi): improved user experiences (refer to pr)

* feat: enhance transformers

* fix: transformer

* fix: test

* fix: tooltips

* feat: add format

* chore: add locales and tip
2024-04-12 22:21:15 +08:00
jack zhang
91254bdf55
test: add frontend unit test (#3991)
* test: add unit test

* fix: build error

* fix: exclude requirejs

* fix: e2e bug

* fix: block delete refresh(T-3936)

* fix: add test utils

* fix: build bug

* fix: remove test only

* fix: kanban bug

* fix: add more unit tests

* fix: coverage bug

* fix: update

* fix: refactor

* fix: add more tests

* fix: unit test bug

* fix: refactor code

* fix: refactor nocobase test

* test: add test case

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-12 21:55:37 +08:00
Zeke Zhang
17793c2ab9
feat: support Others option in popup (#4015)
* feat: support Others option in popup

* chore: hide Other records in popup for edit form

* chore: rename 'Others' to 'Other records'

* fix: in other records, the data table does not need to filter itself

* feat: optimize title for association block

* fix: template

* fix: block title

* chore: fix e2e

* fix: should use compile

* fix: remove useVisible

* test: add e2e
2024-04-12 19:14:18 +08:00
katherinehhh
1658415402
fix(collection-manager): no refresh after override the field (#4022)
* refactor: code improve

* fix: bug
2024-04-12 17:57:38 +08:00
YANG QIA
a18dab363a
chore: add export & import warnings (#4027)
* chore: add export & import warnings

* chore: update
2024-04-12 16:22:18 +08:00
katherinehhh
bfbec4c004
refactor: third party data source support sort field grouped sorting edit (#4023)
* fix: formula field caluation error

* refactor: third party data souce support sort field grouped sorting configure
2024-04-12 16:09:05 +08:00
ChengLei Shao
2a31de8ce6
fix(plugin-acl): pm.acl.roles snippet (#4026) 2024-04-12 16:03:09 +08:00
chenos
e1533ec800
fix: get api url (#4020) 2024-04-11 23:02:34 +08:00
Zeke Zhang
beab81818f
fix(Sub-details): the initializer button is not displayed when the field value is empty (#4019)
* test: add e2e

* fix: remove return
2024-04-11 23:02:04 +08:00
katherinehhh
0f0ccfa9da
fix: initializer use useAassociationName (#4018) 2024-04-11 21:56:34 +08:00
chenos
3b6e7929b6 fix: api base url 2024-04-11 21:29:27 +08:00
Chiming
0cb7820f6f
fix(auth): cas login bug when use subdirectory deployment (#4017)
Co-authored-by: ChimingLiu <chinmingcock@gmail.com>
2024-04-11 20:42:20 +08:00
ChengLei Shao
fd2becd650
fix(plugin-acl): datasource roles snippet (#4016) 2024-04-11 15:41:24 +08:00
katherinehhh
4c3dc89f66
fix: after selecting all, bulk update prompts for unselected data (#4010) 2024-04-11 14:56:37 +08:00
katherinehhh
82df150c30
refactor: tree table is not enabled by default (#4001)
* refactor: table block do not enable trees by default

* fix: bug

* fix: bug

* fix: bug
2024-04-11 14:10:30 +08:00
Junyi
de935d54b6
feat(plugin-workflow-action-trigger): support association actions to trigger (#4007) 2024-04-11 10:57:14 +08:00
YANG QIA
127e2b332b
fix(users): remove phone validation due to incorrect check of foreign phone numebrs (#4005) 2024-04-10 17:14:44 +08:00
katherinehhh
ca49cc9dbd
fix: association block action permission verification failed (#3994)
* fix: association block action permission verification failed

* test: association block action permission test

* fix: useDataBlockProps

* fix: useDataBlockProps

* fix: useResourceName

* fix: bug

* fix: bug

* fix: bug

* fix: bug

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-10 16:38:37 +08:00
Junyi
a38ce654af
fix(plugin-workflow): adjust locale (#3993) 2024-04-10 15:20:43 +08:00
YANG QIA
f12952de1f
fix(auth): sign up page not found when entering with url directly (#4002) 2024-04-10 11:08:08 +08:00
ChengLei Shao
320005843a
chore(error-handler): display message cause the error (#3996) 2024-04-09 19:52:08 +08:00
ChengLei Shao
1e0501cd96
fix: restore with table name in camel case (#3995) 2024-04-09 19:10:29 +08:00
Junyi
773b7aef52
refactor(plugin-workflow): adjust comments (#3990) 2024-04-09 17:29:11 +08:00
katherinehhh
8eee6756d4
fix: gantt collapse & expand (#3982) 2024-04-09 16:37:02 +08:00
Zeke Zhang
de7b75fea7
fix(BulkForm): should be required when switching to 'Changed to' (#3965)
* fix(BulkForm): should be required when switching to 'Changed to'

* fix: clear error on value is empty

* chore: optimize unit test log
2024-04-09 16:07:14 +08:00
Zeke Zhang
71366e3dea chore: update docs of Theme editor 2024-04-09 14:57:40 +08:00
YANG QIA
19f905d34c
chore: update class names of plugins (#3981)
* chore: update class names of plugins

* fix: build

* chore: add back sample-hello

* fix: test
2024-04-09 12:12:24 +08:00
Junyi
b69b0caab5
feat(plugin-workflow-sync): add sync when multi-app-share-collection enabled (#3969) 2024-04-09 07:34:38 +08:00
YANG QIA
a82e8a1ed6
fix(localization): incorrect locale when first entering (#3968) 2024-04-08 21:47:45 +08:00
katherinehhh
c735664ea9
refactor: only numerical formula fields support format (#3962) 2024-04-08 14:30:50 +08:00
Junyi
9f72b4e1ef
chore(plugin-workflow): add comments (#3959) 2024-04-08 12:18:08 +08:00
Junyi
d14f8d23d7
chore: remove legacy formula plugins (#3939)
* chore: remove legacy formula plugins

* fix(plugin-formula-field): fix readme
2024-04-08 08:44:10 +08:00
chenos
6017c01f02 chore(versions): 😊 publish v0.21.0-alpha.6 2024-04-07 21:52:45 +08:00
katherinehhh
e81cfcbe98
refactor: nanoid &uuid autoFill (#3955) 2024-04-07 13:55:21 +08:00