163 Commits

Author SHA1 Message Date
gchust
607773075a
feat: implement on-demand loading for frontend components (#5647)
* fix: missing less loader while building client

* fix: correct regex for .less file handling and resolve less-loader path

* feat: dynamic import big react components for core plugins

* chore: revert lerna.json

* chore: remove global deps duplications [skip ci]

* chore: optimization

* feat: dynamic import for markdown  vditor plugin

* chore: optimization

* chore: more optimization

* feat: code split for plugins with some ui components

* fix: incorrect submodule commit

* fix: test cases failure

* chore: refactor hook lazy import

* chore: improve lazy component loading

* chore:  lazy load vditor lib's js files [skip ci]

* chore: add bundle analyze option for client bundle

* chore: update loading sytle

* fix: add spinner when loading umi js files

* chore: clean

* chore: resolve develop branch confliction

* chore: refactor helper function name

* fix: error of lazy duplication [skip ci]

* fix: replace useImported with uselazyhook

* chore: rename

* chore: add comments for the helper function

* chore: update  comment

* fix: keep suspense into component level

* fix: improve code

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-11-26 20:58:55 +08:00
mytharcher
601dd7217c Merge branch 'T-4910' into develop 2024-11-15 14:34:28 +08:00
mytharcher
5824f1fb15 Merge branch 'next' into T-4910 2024-11-15 11:03:16 +08:00
nocobase[bot]
73438d505c Merge branch 'main' into next 2024-11-14 08:54:14 +00:00
YANG QIA
b1fcfe0b21
fix(data-vi): issue where data transformations do not work on tooltip in dual-axies charts (#5649) 2024-11-14 16:53:50 +08:00
Katherine
6badfd8983
style: optimize mobile styling for reduced field spacing and a more compact display (#5605)
* style: mobile style improve

* style: action penal style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve
2024-11-12 15:05:00 +08:00
ChengLei Shao
f81b942967
fix: start sub app in cluster (#5530)
* fix: start sub app

* fix: test

* fix: test

* fix: test

---------

Co-authored-by: CHENGLEI SHAO <Chareice>
2024-11-03 22:31:12 +08:00
YANG QIA
b36586f324
fix(data-vi): fix issues when using external oracle data source for data visualization (#5436)
* fix(data-vi): fix issues when using external oracle data source for data visualization

* fix: bug

* fix: bug

* fix: oracle group by

* fix: oracle formatter
2024-10-23 10:18:58 +08:00
mahuan
09b86bf18b refactor: standardize localization file name 2024-10-22 23:02:52 +08:00
xilesun
b9d5ad5645 Merge branch 'main' into develop 2024-10-15 09:59:52 +08:00
mytharcher
2ac5457583 Merge branch 'next' into T-4910 2024-10-14 17:23:56 +08:00
nocobase[bot]
6bd15fb558 Merge branch 'main' into next 2024-10-13 08:58:51 +00:00
Zeke Zhang
30febb30be
fix(dateVariable): fix default value issue in chart filter block (#5405)
* fix(dateVariable): fix default value issue in chart filter block

* test: add e2e test

* chore: update unit test
2024-10-13 16:58:32 +08:00
mytharcher
5406d6fa22 Merge branch 'next' into develop 2024-10-12 11:18:46 +08:00
YANG QIA
ce74a77e96
feat(data-vi): optimize (#5299)
* refactor(data-vi): add echarts

* fix: echart

* feat: echarts

* chore: add migration

* feat: update

* feat: dark theme

* feat: add configuration

* chore: update

* chore: update

* fix: bug

* chore: update

* chore: update

* fix: test

* fix: build

* chore: update

* chore: locale
2024-10-08 20:15:00 +08:00
mytharcher
ca214dff10 Merge branch 'main' into next 2024-09-25 20:34:52 +08:00
mahuantest
2bde4a3176
feat(locale): update and improve Japanese translations in ja_JP files (#5292)
* feat(locale): update and improve Japanese translations in ja_JP files

* fix(locale): correct japanese translations in ja_JP files

---------

Co-authored-by: mahuan <1007409254@qq.com>
2024-09-24 14:50:13 +08:00
xilesun
9db63710bb Merge branch 'main' into next 2024-09-23 13:06:52 +08:00
YANG QIA
6fc8993ff0
fix(data-vi): fix incorrect styles when using themes with dark mode (#5302) 2024-09-23 10:49:21 +08:00
YANG QIA
8992bb6a99
fix(data-vi): support for formatting dateOnly, datetimeNoTz, unixTimestamp fields in chart dimension configuration (#5261)
* fix(data-vi): support for formatting dateOnly, unixTimestamp fields in chart dimension configuration

* fix: test

* fix: timezone

* fix: test

* fix: test
2024-09-13 13:24:29 +08:00
YANG QIA
a04aeb17e6
feat(data-vi): support for adding chart blocks in popups/drawers/sub-pages (#5248) 2024-09-11 10:17:01 +08:00
GitHub Actions Bot
50e6dc296e Merge branch 'main' into next 2024-09-09 16:02:27 +00:00
YANG QIA
011bba4529
fix(data-vi): fix incorrect data source context when multiple data sources exist (#5237) 2024-09-09 23:24:57 +08:00
GitHub Actions Bot
c6e00e0404 Merge branch 'main' into next 2024-09-06 01:36:43 +00:00
YANG QIA
bd0a123cd6
fix(data-vi): issue of getting wrong value when aggregating select fields (#5214)
* fix(data-vi): issue of getting wrong value when aggregating select fields

* test: add test case
2024-09-06 09:28:13 +08:00
chenos
65bf22c68a Merge branch 'next' into develop 2024-09-04 10:48:46 +08:00
YANG QIA
61f95f78c2
feat(data-vi): allow to add refresh button and set auto refresh interval (#5112)
* feat(data-vi): allow to set auto refresh interval for charts

* feat(data-vi): allow to add refresh button and set auto refresh interval

* fix: build

* fix: bug

* chore: optimize global auto refresh

* chore: remove console.log

* fix: remove console log
2024-09-03 14:46:43 +08:00
YANG QIA
afcb64ad23
fix(data-vi): issue of parsing variables in filter block (#5157) 2024-08-30 13:18:39 +08:00
YANG QIA
c1bcad666c
fix(data-vi): transform the values of decimal fields from type string to number (#5155) 2024-08-30 11:24:31 +08:00
Zeke Zhang
f03ac173d0 Merge branch 'next' into develop 2024-08-28 14:57:46 +08:00
Junyi
02c3a2be25
feat(server): add lock manager to server (for testing on dev) (#5144)
* feat: pub/sub manager

* fix: test case

* fix: test error

* fix: test error

* feat: skip self

* feat: debounce

* feat: improve code

* fix: test error

* feat: test cases

* feat: test cases

* fix: improve code

* fix: improve code

* feat: improve code

* fix: improve code

* fix: test case

* fix: typo

* fix: createPubSubManager

* fix: delete messageHandlers

* fix: test case

* feat: improve code

* fix: test error

* fix: test error

* refactor(server): adapt to new api and fix test

* fix(plugin-data-source-main): fix changed api

* fix: test error

* fix: remove sync-manager test case

* chore(server): remove legacy code

* fix(plugin-workflow): fix send sync message with transaction

* chore(server): remove legacy code

* chore(server): remove legacy code

* fix(plugin-workflow): fix test case

* fix(plugin-workflow): fix test case

* test(server): test skip-install parameter in cluster

* test(server): avoid multiple installation in cluster

* test(server): installation in cluster

* feat: sync collection using sync manager (#4920)

* chore: sync collection message

* chore: sync acl

* fix: typo

* chore: sync data source

* chore: remove collection

* fix: typo

* fix: test

* chore: sync sub app event

* chore: sync collection test

* chore: collection test

* chore: test

* chore: data source sync message

* chore: sync multi app

* chore: test

* chore: test

* chore: test

* chore: test

* chore: test

* chore: error message

* fix(server): add type and remove log

* fix(server): not to publish when adpater is not connected

* refactor(server): refine types

* chore: timeout

* fix(server): fix pubSubManager options

* test(ci): test ci checkout

* feat(server): add lock manager to server

* feat: update ci

* feat: pub/sub manager (#4933)

* feat: pub/sub manager

* fix: test case

* fix: test error

* fix: test error

* feat: skip self

* feat: debounce

* feat: improve code

* fix: test error

* feat: test cases

* feat: test cases

* fix: improve code

* fix: improve code

* feat: improve code

* fix: improve code

* fix: test case

* fix: typo

* fix: createPubSubManager

* fix: delete messageHandlers

* fix: test case

* feat: improve code

* fix: test error

* fix: test error

* refactor(server): adapt to new api and fix test

* fix(plugin-data-source-main): fix changed api

* fix: test error

* fix: remove sync-manager test case

* chore(server): remove legacy code

* fix(plugin-workflow): fix send sync message with transaction

* chore(server): remove legacy code

* chore(server): remove legacy code

* fix(plugin-workflow): fix test case

* fix(plugin-workflow): fix test case

* test(server): test skip-install parameter in cluster

* test(server): avoid multiple installation in cluster

* test(server): installation in cluster

* feat: sync collection using sync manager (#4920)

* chore: sync collection message

* chore: sync acl

* fix: typo

* chore: sync data source

* chore: remove collection

* fix: typo

* fix: test

* chore: sync sub app event

* chore: sync collection test

* chore: collection test

* chore: test

* chore: data source sync message

* chore: sync multi app

* chore: test

* chore: test

* chore: test

* chore: test

* chore: test

* chore: error message

* fix(server): add type and remove log

* fix(server): not to publish when adpater is not connected

* refactor(server): refine types

* chore: timeout

* fix(server): fix pubSubManager options

* test(ci): test ci checkout

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>

* refactor(server): refactor api and local lock

* refactor(server): change variable names and use singleton for local lock

* fix: lockManager.close

* refactor(server): adjust types

* feat(server): add  api

* refactor(core): move lock-manager to independent package to be used in db

* refactor(plugins): change to new lock manager to use locks

* fix(auth): fix test case

* chore: ttl of sort field lock

* fix: ttl

* fix(plugins): revert lock usage back for some plugins

* refactor(plugin-field-sort): move sort field to plugin

* chore: update build ci

* fix(server): fix build errors

* fix(plugin-field-sort): fix test case

* fix(plugin-field-sort): fix register move action

* fix(plugin-field-sort): fix load logic

* fix(plugin-data-source-main): fix lock usage

* chore(plugin-data-source-main): remove unused import

* fix(server): fix import crypto in pub sub manager (#5111)

* fix(plugin-field-sort): fix build and test cases

* fix(plugin-user-data-sync): fix test with sort field

* fix(plugin-users): fix test with sort field

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2024-08-28 14:41:45 +08:00
Zeke Zhang
67d2f85a99
fix(defaultValue): ignores variable values that do not match the current field (#5122)
* refactor(variable): refactor parseVariable to support return more context

* fix(defaultValue): ignore no matching value

* fix: make unit tests pass

* chore: fix unit test
2024-08-28 11:53:52 +08:00
mytharcher
d0dc0428fb fix(plugin-field-sort): fix build and test cases 2024-08-26 23:28:58 +08:00
GitHub Actions Bot
c167435583 Merge branch 'main' into next 2024-08-23 08:16:16 +00:00
YANG QIA
94aa8df382
fix(data-vi): allow to map integer enum value (#5115) 2024-08-23 15:47:11 +08:00
YANG QIA
be2b7faa1a
fix(data-vi): add size settings for pie, bar and dualAxes (#5113) 2024-08-23 10:55:10 +08:00
YANG QIA
ba95bfafe2
feat: allow to set distinct for query measures (#5091) 2024-08-20 16:47:03 +08:00
YANG QIA
b9d1604eb8
feat(data-vi): allow to set link for statistic chart (#5073) 2024-08-16 15:50:02 +08:00
YANG QIA
157d9f03e3
fix(data-vi): issue of fixed height setting has no effect (#4960) 2024-07-29 10:57:53 +08:00
YANG QIA
de1994521a
feat(data-vi): optimize style settings for chart blocks (#4940)
* feat(data-vi): adapt styles to mobile client

* fix: style

* chore: update

* fix: bug

* fix: bug
2024-07-24 21:34:52 +08:00
jack zhang
61e9dd5cc1
feat: plugin mobile v2 (#4777)
* feat: init

* fix: mobile layout

* feat: more code

* feat: improve navigate bar

* fix: mobile title

* feat: improve code

* fix: add settings and initailzer

* fix: settings

* fix: tabbar items settings

* feat: tabbar initializer

* fix: api

* fix: styles

* feat: navbar

* feat: navigate bar tabs initializer

* feat: navigate bar tab settings

* feat: navigation bar actions

* fix: bug

* fix: bug

* fix: bug

* fix: tabbar active

* fix: bug

* fix: mobile login and layout

* fix: update version

* fix: build error

* feat: plugin settings support link

* fix: add mobile meta

* fix: desktop mode

* fix: remove old code and change collection name and mobile path

* fix: tabbar and tabs initialer layout

* fix: initializer style

* fix: adjust schema position

* fix: mobile style

* fix: delete relation resource and home page bug

* fix: support multi app

* fix: not found page

* fix: js bridge

* fix: bug

* fix: navigation bar schema flat

* fix: navigation bar action style

* fix: change version

* fix: mobile meta and real mobile test

* refactor: folder and name

* fix: navigation bar sticky and zIndex

* fix: full mobile schema

* fix: mobile readme and package.json

* fix: e2e bug

* fix: bug

* fix: tabbar style on productino

* fix: bug

* fix: rename MobileTabBar.Page

* fix: support tabbar sort

* fix: support  page tabs sort

* fix: i18n

* fix: settings utils import bug

* docs: api doc

* fix: qrcode refresh

* test: unit tests

* fix: bug

* fix: unit test

* fix: build bug

* fix: e2e test

* fix: overflow scroll

* fix: bug

* fix: scroll and overflow

* fix: bug

* fix: e2e expect await

* fix: e2e bug

* fix: bug

* fix: change name

* fix: add more e2e

* fix: page header

* fix: tab support icon

* fix: bug

* fix: bug

* fix: docs

* fix(T-4811): scroll bar too long

* fix(T-4810): desktop mode

* fix: e2e

* fix(T-4812): title empty

* fix: unit test

* feat: hide Open mode option in mobile mode

* feat: change default value of Open mode on mobile

* feat: add OpenModeProvider

* feat: support page mode

* fix: fix build

* test: update unit tests

* chore: remove pro-plugins

* fix: bug

* fix(T-4812): title is required

* fix: bug

* fix: bug

* fix: bug

* fix: bug

* refactor: remove z-index

* refactor: make better for subpages

* fix: drag bug

* fix: bug

* fix: theme bug

* fix(T-4859): create tab bar title empty

* fix(T-4857): action too long

* fix: e2e bug

* fix: remove comment

* fix: bug

* fix: theme bug

* fix: should provider modal component

* fix: bug

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Zeke Zhang <958414905@qq.com>
2024-07-22 14:06:36 +08:00
xilesun
6f982ccec4 Merge branch 'main' into next 2024-07-11 13:55:50 +08:00
YANG QIA
b161599749
fix(data-vi): fix the permission issue when using external data sources in data-vi plugin (#4864)
* fix(data-vi): fix the permission issue when using external data sources in data-vi plugin

* test: add test
2024-07-11 13:55:05 +08:00
YANG QIA
e0b5128c9d
feat(database): new field type many to many (array) (#4708)
* feat: recordSet field

* fix: record set field

* test: add tests

* fix: tests

* fix: build

* feat: front end

* refactor: belongs to array field

* fix: tests

* fix: version

* fix: version

* fix: build

* chore: update

* chore: add error

* chore: remove only

* feat: add locales

* fix: version

* fix: e2e

* fix: fix T-4661

* fix: fix T-4663

* fix: fix T-4665

* fix: fix T-4670

* fix: fix T-4666

* fix: fix T-4664

* fix: fix T-4668

* fix: test

* fix: fix T-4669

* fix: fix T-4667

* fix: bug

* fix: fix T-4670

* chore: add transaction

* feat: beforeAddDataSource hook

* feat: support external database sources, fix T-4717

* fix: bug

* fix: fix T-4671

* fix: fix T-4769

* fix: version

* fix: fix T-4762

* fix: array type interface

* fix: fix T-4742

* fix: fix T-4661

* fix: bug

* fix: bug

* feat: check association keys in backend

* fix: bug

* fix: bug

* fix: bug

* fix: test

* fix: bug

* fix: e2e

---------

Co-authored-by: Chareice <chareice@live.com>
2024-07-10 15:04:24 +08:00
Zeke Zhang
c2260c76c0
feat(variable): add a new variable named 'API token' (#4850)
* feat(variable): add a variable named 'Current token'

* refactor: rename to 'API Token'

* test: add e2e tests

* chore: update unit test
2024-07-09 14:42:12 +08:00
YANG QIA
88519c9c8f
fix: bug (#4816) 2024-07-04 18:23:48 +08:00
chenos
4517dc1105
fix: full height (#4759)
* fix: full height

* fix: useFormHeight

* fix: useFormHeight

* fix: bug

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2024-06-26 21:21:24 +08:00
ke
d7733ed363
chore(data-vi): remove addMigrations (#4713) 2024-06-22 14:21:07 +08:00
YANG QIA
de0fb26609
fix(data-vi): custom filter conditions are not applied (#4671)
* fix(data-vi): custom filter conditions are not applied

* fix: default value
2024-06-15 13:35:27 +08:00
Katherine
d2b2ac69e6
fix: chart block actionBar style (#4666) 2024-06-14 20:27:34 +08:00