Commit Graph

1686 Commits

Author SHA1 Message Date
katherinehhh
a436b59268
refactor: view collection support json field (#3125) 2023-12-01 15:36:32 +08:00
Zeke Zhang
6fc644d506 feat(e2e): support for custom data when using mockRecords 2023-12-01 14:58:45 +08:00
Chareice
1efedee68c
fix: test params 2023-12-01 12:46:51 +08:00
katherinehhh
4f9696035a
refactor: collection template support configureActions (#3123) 2023-12-01 11:27:38 +08:00
katherinehhh
1d01a66193
fix: onTemplateSuccess undefined (#3119) 2023-11-30 17:32:42 +08:00
chenos
8977420eec chore(versions): 😊 publish v0.16.0-alpha.5 2023-11-30 12:41:50 +08:00
jack zhang
d973ed8dba
fix(pm): create plugin bug (#3117)
* fix: build bug

* fix: app template package.json add workspaces

* fix: plugin manager packageName

* fix: remove template tsconfig  paths
2023-11-30 12:41:15 +08:00
katherinehhh
cb22d0f2ed
fix: fields options undefined (#3116) 2023-11-30 11:47:16 +08:00
Rain
f3c6f066ec fix(linkageRules): remove throttle to prevent unexpected behavior 2023-11-29 17:53:33 +08:00
Zeke Zhang
357a081199
fix(linkageRules): fix autorun (#3105)
* fix(linkageRules): avoid accidentally triggering autorun

* fix(linkageRules): fix the order of autorun triggers

* fix: avoid crashing

* fix: fix variable of expression

* perf: use throttle to improve performance

* chore: reduce wait time from 1000 to 500

* fix: fix init state

* Revert "fix: fix init state"

This reverts commit 3f46973177.

* refactor: rename

* fix: fix init state
2023-11-29 14:57:03 +08:00
Junyi
f62134a4ed
fix(client): adjust error message (#3108) 2023-11-28 17:38:24 -08:00
Junyi
bd6fbcd319
fix(plugin-workflow): fix form event parse variables (#3106) 2023-11-28 04:58:15 -08:00
ChengLei Shao
9ed6993130
fix: query view collection with primaryKey (#3104) 2023-11-28 14:59:43 +08:00
katherinehhh
0cf045d142
fix: association data params missing appends (#3103)
* fix: association data params missing appends

* refactor: code improve
2023-11-28 11:12:42 +08:00
Chareice
f5dc8cebf8
chore: field type map 2023-11-28 09:38:21 +08:00
被雨水过滤的空气-Rain
723cc45d0f
fix(linkageRules): avoid infinite loop (#3095)
* Revert "refactor: avoid errors (#3091)"

This reverts commit 85be616f35.

* fix(linkageRules): avoid infinite loop

* chore: remove console.log

* chore: remove useless code
2023-11-27 19:27:35 +08:00
ChengLei Shao
cbcf70e587
chore: cache effective snippets results in acl role (#3102) 2023-11-27 15:49:50 +08:00
chenos
5ebd5d5c62 fix(cli): unsafe shell command constructed from library input 2023-11-27 09:07:16 +08:00
ChengLei Shao
c7ef9618a9
feat(database): support find with filter and where (#3097) 2023-11-26 21:41:40 +08:00
ChengLei Shao
2dff989f70
fix: test db creator types (#3094) 2023-11-25 19:53:13 +08:00
chenos
ffb300d357 chore(versions): 😊 publish v0.16.0-alpha.4 2023-11-24 23:15:10 +08:00
被雨水过滤的空气-Rain
85be616f35
refactor: avoid errors (#3091)
* refactor: avoid errors

* refactor: remove useless code
2023-11-24 21:46:19 +08:00
被雨水过滤的空气-Rain
e5f711ec66
fix: avoid infinite loop (#3089) 2023-11-24 17:35:45 +08:00
katherinehhh
641d59421d
refactor: import interface getOptions (#3088) 2023-11-24 17:01:16 +08:00
chenos
992f2d442d fix: dev plugins path 2023-11-24 15:49:37 +08:00
YANG QIA
039deac92b
fix: sql collection creation issue (#3087) 2023-11-24 15:43:04 +08:00
被雨水过滤的空气-Rain
771ebaaaec
fix: should load association data in subform (#3083) 2023-11-23 21:05:07 +08:00
katherinehhh
78bd78ca3d
fix: view collection json field rendering error (#3077) 2023-11-23 11:50:34 +08:00
Rain
e2ed6be305 fix: avoid crashing 2023-11-23 11:22:25 +08:00
katherinehhh
b3dfc939f3
fix: m2o association field should support pattern configure (#3074)
* fix: m2o association field should support pattern configure

* fix: setInitialValueundefined
2023-11-22 21:12:08 +08:00
被雨水过滤的空气-Rain
ea136ab6bc
fix: subform disappears (#3073) 2023-11-22 17:22:09 +08:00
Junyi
e0c7d09cab
fix(client): fix variable input style when disabled (#3071) 2023-11-21 18:42:05 -08:00
ChengLei Shao
c81fb46071
fix: update inherited collection performance issue (#3070) 2023-11-21 21:36:08 +08:00
被雨水过滤的空气-Rain
19bad669af
fix(linkage): avoid infinite loop (#3069) 2023-11-21 17:28:37 +08:00
chenos
45dcdab083
fix: add i18n resources after server app load (#3068)
* fix: add i18n resources after server app load

* fix: skip cache
2023-11-21 11:39:19 +08:00
katherinehhh
78c4334e19
fix: linkage rule in action set both disable and enable (#3065) 2023-11-21 10:31:07 +08:00
chenos
cba967933e chore(versions): 😊 publish v0.16.0-alpha.3 2023-11-20 19:36:12 +08:00
chenos
dfb940e091
feat: node >= 18 (#3066)
* feat: node >= 18

* fix: release version

* chore(versions): test publish packages xxx

* fix: gitignore
2023-11-20 19:35:30 +08:00
chenos
91053b31ef chore(versions): 😊 publish v0.16.0-alpha.1 2023-11-20 17:19:09 +08:00
YANG QIA
daac2ae0db
refactor(cache): improve cache (#3004)
* feat: improve cache

* fix: bug

* fix: test

* fix: test

* fix: test

* chore: add cache test

* feat: add wrapWithCondition

* fix: test

* refactor: improve api

* fix: test

* fix: test

* fix: test

* fix: improve code

* fix: test

* feat: register redis store

* fix: tst

* fix: test

* fix: bug

* chore: update

* fix: ttl unit

* chore: cachemanager constructor

* chore: remove code

* feat: support close connection

* chore: add close options for redis store
2023-11-20 17:14:20 +08:00
ChengLei Shao
57d6a82fcc
feat: show table definition (#3061)
* feat: show table definition

* chore: test
2023-11-20 09:58:28 +08:00
ChengLei Shao
d7d2eb634e
feat: mariadb support (#3052)
* feat: mariadb support

* feat: mariadb test

* chore: mariadb test

* chore: test

* fix: sort field test

* fix: sort field test

* fix: test

* fix: test

* fix(bi): chart query support mariadb

* chore: test timeout

* chore: test

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2023-11-20 08:54:40 +08:00
Junyi
fbe3d2d9a5
fix(plugin-workflow): client minor fixes (#3062) 2023-11-19 03:24:34 -08:00
ChengLei Shao
eac8559104
chore: view inference (#3060) 2023-11-18 22:35:20 +08:00
ChengLei Shao
0acd7b6dd3
fix: sort by association collection (#3058)
* fix: sort by association collection

* fix: test

* chore: test

* chore: create sortfield if hasmany sortable set true

* fix: drag sort

* chore: update sort by options

* chore: sync collection after update sortBy

* chore: test

* chore: test

* chore: test

* fix: sort by

* fix: model.syncSortByField

* fix: hasmany only

* fix: sortBy

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-18 22:02:21 +08:00
chenos
ef1b9db2a9 chore(versions): 😊 publish v0.15.0-alpha.4 2023-11-18 21:22:03 +08:00
chenos
4a26b9b208 fix: import @nocobase/utils/client 2023-11-18 21:20:30 +08:00
Dunqing
2c688dba43
fix(calendar): cannot switch week in week mode (#3057) 2023-11-17 23:17:30 +08:00
被雨水过滤的空气-Rain
3c98966169
feat(e2e): add mockCollections (#3054)
* feat(e2e): add mockCollections

* fix: fix tests

* fix: make tests passing

* fix: fix tests

* fix: fix test

* chore: restart

* chore: skip some test
2023-11-17 16:54:04 +08:00
katherinehhh
36043be130
fix: association table block overwirtten by default values in popver action (#3056) 2023-11-17 16:11:30 +08:00
ChengLei Shao
76a225e354
feat: register collection sync logic (#3055) 2023-11-17 11:22:46 +08:00
katherinehhh
cd76ae7e63
fix: tableoid should pointed to target collection in assciation field data scope config (#3053) 2023-11-16 18:15:10 +08:00
chenos
60112aae62 chore(versions): 😊 publish v0.15.0-alpha.3 2023-11-16 15:03:40 +08:00
chenos
03062a2b05
feat: e2e commands (#3042) 2023-11-16 12:33:56 +08:00
被雨水过滤的空气-Rain
14a21882e8
Revert "chore: hide linkage rule option in some buttons (#3046)" (#3051)
* Revert "chore: hide linkage rule option in some buttons (#3046)"

This reverts commit f0db975c1d.

* refactor: remove concole log
2023-11-16 11:52:22 +08:00
被雨水过滤的空气-Rain
f0db975c1d
chore: hide linkage rule option in some buttons (#3046) 2023-11-15 16:32:28 +08:00
ChengLei Shao
b497ef125e
feat: collection factory (#3047) 2023-11-15 16:22:48 +08:00
katherinehhh
3aca9e05d9
fix: association block filter params (#3039) 2023-11-14 17:24:59 +08:00
Junyi
52c3f28c04
fix(plugin-fm): fix error log (#3038) 2023-11-14 16:54:19 +08:00
katherinehhh
57c7450e16
refactor: findSchema should omit AssociationField.Viewer (#3037) 2023-11-14 14:43:31 +08:00
被雨水过滤的空气-Rain
c25f51d99b
fix: fix display association fields with subform (#3036)
* fix: fix display association fields with subform

* fix: transformVariableValue

* fix: should also to request data when value is null

* fix: better way to fix
2023-11-14 14:15:47 +08:00
被雨水过滤的空气-Rain
887ddf0ed1
test: optimize command (#3030)
* test: optimize command

* chore: add force options

* chore: kill child process
2023-11-14 10:04:09 +08:00
katherinehhh
4d4b73767f
fix: attachment field in m2m association field report error whwen setting required (#3031) 2023-11-14 09:36:00 +08:00
chenos
b597aec1dc chore(versions): 😊 publish v0.15.0-alpha.2 2023-11-13 18:28:48 +08:00
jack zhang
4209babb47
fix: antd table ref bug (#3029) 2023-11-13 17:49:24 +08:00
jack zhang
647c8ccdaa
fix: improve plugin settings code (#3028) 2023-11-13 17:10:01 +08:00
jack zhang
34d1406ede
fix: plugin settings manager Component optional & delete isBookmark (#3027) 2023-11-13 12:21:40 +08:00
Junyi
83245a406b
fix(plugin-workflow): fix workflow title in binding workflow configuration not showing (#3026) 2023-11-12 20:13:54 -08:00
chenos
29457cb2bc chore(versions): 😊 publish v0.15.0-alpha.1 2023-11-13 11:02:35 +08:00
jack zhang
35b06cbfa0
refactor: plugin settings manager (#2712)
* feat: add settingsCenter

* fix: style bug

* chore: optimized code

* refactor: settingCenter Auth

* feat: add aclSnippet option

* refactor: all plugin's setting center api

* feat: add plugin with name

* docs: add settings-center doc

* fix: settings center menu sort by name

* fix: change setting center layout

* fix: change hello sort

* test: add SettingsCenter.ts test case

* fix: bug

* fix: acl bug

* fix: bug

* fix: bug and 404 page

* fix: test bug

* fix: test bug

* fix: bug

* fix: locale

* fix: styling

* fix: rename settingsCenter to pluginSettingsManager

* fix: styling

* fix: e2e bug

* fix: e2e bug

* fix: locale

* feat: update docs

* fix: update

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-13 11:01:18 +08:00
被雨水过滤的空气-Rain
454db91827
fix: fix regular of variable (#3024)
* fix: fix regular of variable

* refactor: the better way
2023-11-11 11:23:34 +08:00
被雨水过滤的空气-Rain
b92e9d1b69
fix: should load association data in subform (#3020)
* fix: should load association data in subform

* fix: make test passing

* fix: avoid error
2023-11-10 22:28:05 +08:00
katherinehhh
b11c22798a
fix: association field in reference block failed to append (#2998)
* fix: reference block association data failed to append

* feat: default value should not set in edit form

* chore: block template provider
2023-11-10 15:54:55 +08:00
被雨水过滤的空气-Rain
d9e7ba6e8d
fix: relational data should be loaded correctly on first render (#3016)
* fix: subform should lazy load data

* fix: relational data should be loaded correctly on first render
2023-11-10 15:27:53 +08:00
chenos
3b5b732a1a
feat: plugin-mock-collections (#2988)
* feat: plugin-mock-collections

* fix: mock bug

* feat: field interfaces

* fix: field interface

* fix: formula

* fix: file collection

* fix: map

* refactor: change api path from :create to :mock

* fix: avoid test failed

* chore: remove useless code

* fix: mock records

* fix: association

* feat: custom data

* fix: mockAttachment

* fix: count

---------

Co-authored-by: Rain <958414905@qq.com>
2023-11-10 11:32:03 +08:00
被雨水过滤的空气-Rain
d72a64976e
fix: should lazy load association data in subform (#3012) 2023-11-10 11:00:14 +08:00
chenos
3d0b42e72e
fix(import): remove commas from numbers (#3011) 2023-11-10 10:00:21 +08:00
chenos
4ed6d50400
fix(static-server): directoryListing: false (#3010) 2023-11-10 09:26:30 +08:00
被雨水过滤的空气-Rain
3f5704421d
fix(theme): text color of page header right side (#3008) 2023-11-10 08:02:30 +08:00
katherinehhh
c3c648d28c
fix: menu failed to design while menu title is empty string (#2999)
* fix: menu failed to desgin while menu title is empty string

* style: menu group style improve
2023-11-09 20:57:29 +08:00
被雨水过滤的空气-Rain
e73ad1b98b
fix: detail block has no data (#3003)
* chore: add comments

* fix: detail block has no data
2023-11-09 12:55:06 +08:00
被雨水过滤的空气-Rain
5b9695e720
fix: select item can not be selected in connecting data blocks (#2993) 2023-11-08 09:17:40 +08:00
被雨水过滤的空气-Rain
76940c5454
chore: optimize error message (#2992)
* Revert "chore: optimize error message (#2985)"

This reverts commit 3802ca38f8.

* chore: optimize error message
2023-11-08 00:23:53 +08:00
Junyi
00cabc5e23
refactor(plugin-workflow): change to function (#2991) 2023-11-07 07:30:53 -08:00
被雨水过滤的空气-Rain
3802ca38f8
chore: optimize error message (#2985) 2023-11-07 21:21:49 +08:00
katherinehhh
ee3d5af04d
fix: association select should not clearing after config data scope (#2984) 2023-11-07 16:05:59 +08:00
Junyi
2747e7640f
fix(plugin-workflow): fix node form values when closed (#2978)
* fix(plugin-workflow): fix node form values when closed

* fix(plugin-workflow): fix manual schema config refresh
2023-11-06 07:50:25 -08:00
被雨水过滤的空气-Rain
10a1f65284
fix: button of details is not refresh when updating record (#2977) 2023-11-06 21:18:55 +08:00
被雨水过滤的空气-Rain
f1e387e65e
fix: avoid infinite loop (#2974)
* fix: avoid infinite loop

* perf: avoid infinite loop

* fix: build errors
2023-11-06 14:21:28 +08:00
ChengLei Shao
ac3f63b110
feat: drop table with cascade option (#2973)
* refactor: delete collection support cascade

* chore: remove collection from database

* feat: remove collection with cascade option

* chore: test

* chore: test

* chore: delete collection support cascade

* refactor: code improve

* refactor: locale improve

* style: delete collection modal style improve

* revert: filemanger-plugin

* revert: code improve

* revert: code improve

* revert: fix: bluk dele collection

* fix: cascade === true && cascade === 'true'

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-06 11:50:37 +08:00
chenos
05040a1c5f
fix: client docs (#2965)
* fix: application bug

* fix: test error

* feat: client doc

* fix: delete it.only

* fix: demos

* fix: ci

* fix: create index.md

---------

Co-authored-by: dream2023 <1098626505@qq.com>
2023-11-06 11:50:13 +08:00
被雨水过滤的空气-Rain
bafb03a228
fix(variable): compat $date (#2971)
* fix(variable): compat $date

* chore: update tests
2023-11-06 07:10:41 +08:00
katherinehhh
b109a5751b
fix: add child action should omit children data (#2969)
* refactor: expand action locale

* fix: add child action should omit children data
2023-11-05 19:55:51 +08:00
jack zhang
9249dcb896
fix: application bug (#2958)
* fix: application bug
2023-11-05 19:22:41 +08:00
被雨水过滤的空气-Rain
bce02ad1d7
perf: avoid page lag or stuttering (#2964)
* perf: avoid page lag or stuttering

* perf: improve performance of data scope

* chore: remove console.log

* perf: avoid crashing

* fix: make tests passing

* fix: fix title of dialog
2023-11-05 17:59:22 +08:00
katherinehhh
a42ee95e03
fix: percent field component should support decimal point (#2966) 2023-11-05 16:51:59 +08:00
被雨水过滤的空气-Rain
59854085b2
refactor: remove useless code (#2961) 2023-11-04 14:30:46 +08:00
katherinehhh
9a730a8fec
test: client ui test (#2736)
* test: add menu group test

* test: add menu link  test

* test: insert befort page test

* test(e2e): better locators for designer buttons

* fix: make test passing

* test: esit menu title

* test: move menu

* test: move menu

* test: move menu

* test: menu insert page before

* test: menu insert page before

* test: menu test

* test: menu test

* test: menu test

* test: menu test

* test: menu test

* test: menu test

* test: insert page after

* test: insert page after

* test: create new page

* test: menu test refactor

* test: page test

* test: page header

* test: page title

* test: edit page title

* refactor: remove DesignerControl

* test: page test

* test: page test

* test: page tab test

* test: page tab move test

* test: page tab move test

* test: block test

* chore: better locators

* test: add block test

* test: block test

* test: action & field test

* fix: should not disable add-menu-item

* chore: better test id for block

* chore: optimize Action

* chore: remove role in BlockItem

* test: block test

* test: edit block title

* test: edit block title

* test: plugin manager ui test

* test: plugin manager remove ui test

* test: plugin manager remove ui test

* test: plugin manager remove ui test

* test: plugin manager enable ui test

* feat: improve locators

* test: menu test

* test: menu test

* test: menu test

* test: page  test

* test: page test

* test: block test

* test: block test

* test: block test

* test: field test

* test: field test

* test: field test

* test: field test

* test: field test

* test: field test

* chore: menu & add block

* test: action test

* chore: initializer

* chore: testid -> aria label

* chore: tabs

* test: action test

* test: action test

* test: action test

* chore: designers

* refactor: optimize schemaInitializer

* refactor: rename

* chore: add collectionName

* chore: block item

* chore: action

* fix: avoid crashting

* chore(e2e): add __E2E__

* chore: all dialog

* test: action test

* test: action test

* test: field test

* test: field test

* test: field test

* test: field test

* test: page test

* chore: add aria-label for block menu

* Revert "chore: add aria-label for block menu"

This reverts commit 6a840ef816.

* test: action test

* test: page test

* chore: optimize aria-label of Action

* test:  pm test

* chore: schema-initializer

* test:  pm test

* chore(e2e): increase timeout

* chore: schema settings

* chore: optimize table

* chore: workflow

* chore: plugin manager

* chore: collection manager and workflow

* chore: details of workflow

* chore: remove testid of Select

* test: fix unit-tests

* test: fix unit-tests

* test: menu test

* test: page test

* test(e2e): passing tests

* test: page test

* test: block test

* test: field test

* test: fix unit test

* chore: should use hover

* test: field test

* test: passing tests

* chore: passing tests

* test: action test

* chore: fix CI

* chore: fix CI

* test: pm test

* chore: increase timeout in CI

* test: blcok test

* revert: plugin card

* test: pm test

* test: pm test

* chore: remove testid for Modal

* refactor: rename testid

* fix: __E2E__ should be true in CI

* fix(buildPlugin): __E2E__ should be true in CI

* fix: __E2E__

* Revert "fix: __E2E__"

This reverts commit c899a33761.

* fix: __E2E__

* fix: passing tests

* test: action test optimize

* test: menu page pm test

* test: menu page pm test

---------

Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-04 12:39:44 +08:00
katherinehhh
9ec2b50990
fix: import action should not visible when view collection not editable (#2957)
* fix: import action should not visible when view collection not editable

* refactor: action in view collection block
2023-11-04 08:29:59 +08:00
Junyi
1f9dae6ebd
fix(plugin-workflow): fix variables and form changed (#2955) 2023-11-03 05:08:11 -07:00