Commit Graph

2668 Commits

Author SHA1 Message Date
被雨水过滤的空气-Rain
eb9ee38a2b
feat: add built-in themes (#2284)
* feat: add built-in themes

* chore: add translation

* fix: should be optional in initial
2023-07-21 10:42:50 +08:00
被雨水过滤的空气-Rain
a4d8ef4b71
docs: add doc for Theme Editor (#2280)
* docs: add doc for Theme Editor

* chore: update src of img

* chore: increase image height

* chore: optimize img
2023-07-21 10:40:36 +08:00
被雨水过滤的空气-Rain
aab3fafd9b
fix: fix sorting of user menu (#2288) 2023-07-21 10:39:58 +08:00
被雨水过滤的空气-Rain
4f5ec0a581
feat(theme-editor): support to config Header's color and Settings button's color (#2263)
* feat: add color options to theme editor

* feat: add default theme

* refactor: optimize

* feat: support to change color of UI settings

* fix: fix menu background color

* fix: fix color of UI settings

* feat: support to set alpha

* refactor: migrate style to a file

* feat: support colorBgSettingsHover and colorBorderSettingsHover

* feat: adapt settings color

* fix: should be reset together

* feat: compat old theme
2023-07-21 10:38:56 +08:00
chenos
7c45663cd1 fix: user role not found 2023-07-20 15:57:11 +08:00
Junyi
d587599c8a
feat(plugin-workflow): add sql node (#2276)
* feat(plugin-workflow): add sql node

* fix(plugin-workflow): fix test cases
2023-07-19 20:04:41 -07:00
katherinehhh
d2a9e4acee
fix: the drop-down multiple selection fields are not displayed as title fields when inherited collection (#2257)
* fix: inherit field override association field option field

* fix: inherit field override association field option field
2023-07-20 10:56:26 +08:00
chenos
fa2de8e806 fix(theme-editor): remove db.sync 2023-07-20 10:34:09 +08:00
YANG QIA
4e979bc7b7
fix(bi): orderBy bug under MySQL (#2283)
* fix(bi): orderBy bug under MySQL

* fix: compatible with pgsql
2023-07-19 21:25:49 +08:00
被雨水过滤的空气-Rain
1f91ebc65e
test: make testing more stable (#2277) 2023-07-19 16:49:49 +08:00
YANG QIA
d80213be5e
fix(bi): eliminate redundancy queries (#2268)
* fix(bi): eliminate redundancy queries

* fix: reset data after close configure pane

* fix: enum transform bug

* fix: reset form after clicking cancel button

* fix: reset form when changing collection
2023-07-19 16:34:52 +08:00
chenos
2d8451f2dd fix(s3): missing endpoint 2023-07-19 12:30:40 +08:00
YANG QIA
4333972deb
fix(client): using component as action title (#2274) 2023-07-19 12:00:02 +08:00
Junyi
b3e34d7f92
fix(middleware): revert now variable back (#2267) 2023-07-19 10:16:03 +08:00
katherinehhh
d36b9e366a
fix: linkage failed with current date variable (#2272)
* fix: linkage failed with current date variable

* fix: linkage failed with current date variable
2023-07-19 10:13:20 +08:00
被雨水过滤的空气-Rain
a57b4a8359
fix: fix style of page tab (#2270) 2023-07-19 09:41:22 +08:00
katherinehhh
86749255ae
fix: collection select no options (#2271) 2023-07-19 09:39:13 +08:00
chenos
d8529e1d06
refactor: add locale plugin (#2261)
* refactor: add locale plugin

* fix: dayjs locale
2023-07-18 15:30:58 +08:00
Junyi
a17c1ad4e4
feat(plugin-workflow): allow manual form button to be configured with preset values (#2225)
* refactor(client): split to small components

* fix(client): fix component warning

* feat(plugin-workflow): allow form button to be configured more than one for each type

* test(plugin-workflow): add test cases

* chore(plugin-workflow): add modal tips

* fix(plugin-workflow): fix test bugs

* fix(plugin-workflow): fix manual button configuration and params

* test(plugin-workflow): fix test cases

* fix(plugin-workflow): fix manual form values

* refactor(plugin-workflow): adjust component

* fix(plugin-workflow): fix typo

* refactor(plugin-workflow): avoid one more load when manual node resume

* fix(plugin-workflow): fix currentUser to be plain object

* chore(plugin-workflow): clean code

* fix(plugin-workflow): fix typo
2023-07-17 21:50:24 -07:00
Junyi
9f8460ca22
feat(plugin-workflow): change to unlimited depth preloading associations in workflow (#2142)
* refactor(plugin-snapshot): move AppendsTreeSelect component into client package

* refactor(plugin-workflow): change all appends fields select to AppendsTreeSelect

* refactor(plugin-workflow): change appends and toJSON logic on server side

* fix(plugin-workflow): fix toJSON logic and build error

* fix(plugin-workflow): fix missing component injection

* fix(plugin-workflow): fix cycle association in variables

* refactor(client): change AppendsTreeSelect to lazy load

* fix(client): fix lazy load in option
2023-07-17 20:36:17 -07:00
YANG QIA
70d5b9e44b
feat: localization management (#2210)
* feat: init localization-management

* feat: resource api

* Merge branch 'main' into T-62

* chore: change name

* feat: basic feature

* feat: support filter & sync

* feat: support auto get texts afterSave

* Merge branch 'main' into T-62

* chore: upgrade

* fix: dependency

* fix: field type

* fix: type error

* chore: remove some translations

* feat: support extract text from menu

* chore: cache text keys

* chore: remove test key

* fix: issue of extracting menu titles

* feat: translate collections & fields name

* fix: remove unique of text

* refactor: improve cache

* chore: remove listeners after disable

* chore: translation

* fix: lang switch bug

* refactor: actions & filter

* fix: translation

* refactor: merge lang bundles at backend

* fix: style & field name

* fix: translate issues

* fix: cache bug

* fix: translation merge bug

* fix: translate issues

* fix: map translation

* fix: translation issues

* fix: card title bug

* feat: cover mobile client tabbar

* fix: menu title

* refactor: add locale plugin

* chore: merge locale plugin

* fix: map translation

* chore: remove no data

* style: change button style

* fix: sync bug

* docs: add README

* chore: change name

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-17 23:23:44 +08:00
Rain
4e84b14bc7 fix: avoid crash when field is deleted in Collapse 2023-07-17 15:27:48 +08:00
katherinehhh
62381e5953
refactor: linkage rules support datetime (#2260)
* refactor: linkage rules support datetime

* refactor: linkage rules support datetime
2023-07-17 09:55:51 +08:00
katherinehhh
aececf1952
fix: view inherited collection field reported error (#2249) 2023-07-16 16:59:03 +08:00
katherinehhh
1d942d9910
fix: loading did not disappear after submission failure (#2252) 2023-07-16 16:58:31 +08:00
被雨水过滤的空气-Rain
4812cc5692
feat: support custome themes (#2228)
* feat: create custom-theme plugin

* feat: add custom-theme

* chore: add plugin name and description

* chore: add deps

* chore: optimize deps

* refactor: rename

* chore: add antd-token-previewer

* chore: add deps in plugin

* feat: add theme-editor

* feat: add theme-editor

* feat: add settings

* feat: add theme collection

* refactor: migration to the components folder

* feat: add ThemeList

* refactor: be better

* feat: export createStyles

* feat: implement ThemeCard (T-723)

* style: optimize style

* feat: add ThemeEditorProvider

* feat: add ToEditTheme

* chore: add isBuiltIn field

* feat: implement WYSIWYG

* refactor: migrate i18n

* feat: support to save config

* feat: add validation rule

* refactor: remove useless code

* refactor: optimize GlobalThemeProvider

* feat: add CurrentUserSettingsMenuProvider

* feat: support switching themes

* refactor: migrate CurrentUserProvider to app root

* feat: add InitializeTheme

* fix: fix preview demo

* fix: filter themes

* fix: not valid when editing theme

* fix: should restore the previous theme when closing theme editor

* fix: fix algorithm

* fix: the theme that was just saved should be applied

* refactor: loacl antd-token-previewer

* fix: should be based on the current theme when editing themes

* feat: support to edit theme

* perf: reduce executions

* feat: add animation

* fix: fix the type error of useRequest

* feat: remove built-in themes

* chore: reinstall deps

* fix: fix version of deps

* fix: delete client.d.ts to fix build error

* chore: reinstall deps

* fix: fix build

* fix: fix build

* fix: avoid build errors

* fix: fix crashing

* fix: use value instead of defaultValue

* fix: avoid error

* fix: avoid closure

* fix: fix build

* fix: fix style of login page

* refactor(page): fix style

* fix: fix style of PageHeader

* refactor: fix style of Drawer

* refactor: add FormDialog to loacl

* refactor: fix style of SchemaSettings.ModalItem

* refactor: fix style of pm/Card

* fix: fix text color of pm/Marketplace

* fix: fix table error

* refactor: fix style of collection-manager/summary

* refactor: fix style of fields drawer

* chore: reinstall deps

* fix: fix build

* fix: fix build of custom-theme

* fix: should export Plugin

* refactor: fix style of GraphDrawPage

* chore: upgrade plugin version

* refactor: fix style of Modal by using antd App

* refactor: fix style of FormDialog by using local version

* refactor(workflow): refactor style using antd-style in workflow

* fix(workflow): fix style of workflow

* fix: fix size

* refactor: add --nb-header-height

* feat: remove theme configuration from system settings

* refactor: migrate useUpdateThemeSettings to a new file

* refactor: rename theme to themeId

* feat: add updateSystemThemeSettings

* refactor: migrate utils function

* feat: use localStorage to avoid theme invalid in login page

* fix: fix style of login page

* fix: fix style of Drawer

* feat: optimize style of theme card

* fix: should use a empty object to reset theme

* fix: fix test of Page

* fix: fix test of Application

* fix: change backgroundColor of login page

* fix: fix all style of modal

* fix: fix gap between blocks (T-896)

* fix: fix color of font (T-905)

* fix: fix build

* fix: fix can not scroll in Drawer (T-897)

* fix: fix width of built-in plugins page (T-900)

* fix: fix style of import Modal (T-907)

* fix: fix style of calendar (T-908)

* fix: fix style of kanban (T-909)

* fix: fix style of Gantt (T-910)

* fix: fix style of Collapse (T-915)

* fix: fix style of mobile (T-916)

* fix: fix style of PageHeader (T-958)

* fix: optimize background color of Drawer

* fix: fix style of notification

* fix: fix T-1000

* fix: fix style of LinkageHeader (T-1003)

* fix: fix T-1004

* fix: fix style of scroll bar of chart (T-911)

* fix: fix style of workflow drawer (T-997)

* fix: fix T-922

* fix: fix T-924

* refactor: rename custom-theme to theme-editor

* fix: fix T-999

* fix: fix T-1011

* fix: fix error

* fix: optimize dark mode (T-921)

* fix: fix style of markdown (T-1020)

* fix: fix style of data template (T-1025)

* fix: fix style of rich text (T-1026)

* fix: fix style of a

* fix: fix style of XButton (T-1028)

* fix: fix T-1027

* fix: fix color of variable tag (T-1030)

* chore: translation

* feat: add a modal before create new theme (T-1024)

* feat: highlight card when editing theme (T-1031)

* feat: support to change theme name (T-1023)

* fix: api.auth.getOption('theme')

* fix: fix T-1032

* fix: fix feedback in feishu group

* refactor: code review

* fix: fix test

* chore: rename

* fix: useNotificationMiddleware

* refactor: revert

* fix: fix build

* fix: notification

* refactor: migrate CurrentUserProvider from Application to NocoBaseBuildInPlugin

* fix: fix test

* refactor: fix code review

* chore: avoid test error

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-16 12:46:25 +08:00
Junyi
6e637dbb42
chore(plugin-workflow): fix breadcrumb warning (#2256) 2023-07-14 22:23:02 -07:00
chenos
f87cf982f1 fix(value-parser): option type is string 2023-07-14 18:56:58 +08:00
Junyi
5540a582f0
fix(plugin-workflow): fix request node error in loop (#2254) 2023-07-14 18:37:09 +08:00
ChengLei Shao
3510531182
feat(database): view collection support for add new, update and delete actions (#2119)
* feat: writeableView options in view collection

* refactor: view collection support edit

* refactor: view collection support edit

* refactor: view collection support edit

* refactor: view collection support edit

* test: insert into view with join table

* chore: typo

* chore: package.json

* chore: sql parser

* chore: query interface

* chore: test

* feat: update view collection

* chore: test

* chore: test

* chore: github action pg version

* fix: params in update and delete

* refactor: locale improve

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-07-14 14:49:12 +08:00
Junyi
b63012d85a
refactor(client): change isTitleField check to interface property titleUsable (#2250) 2023-07-14 14:16:44 +08:00
katherinehhh
9b5e923e91
fix: option field display value in workflow todo list (#2246)
* fix: option field display value in workflowtodo

* refactor: code improve

* refactor: code improve
2023-07-13 22:08:00 -07:00
Junyi
01db49a089
fix(plugin-workflow): fix dispatch bug (#2247) 2023-07-13 23:14:25 +08:00
Rain
67891d5721 fix: fix style of sub table 2023-07-13 22:45:27 +08:00
被雨水过滤的空气-Rain
623ffc9c57
fix: avoid crashes when emptying DatePicker's value (#2237)
* fix: avoid crashes when emptying DatePicker's value

* chore: better type
2023-07-13 14:12:53 +08:00
katherinehhh
11d127e3a4
fix: no template data requested during depulicating (#2240)
* fix: depulicate failed

* fix: depulicate failed to load template data
2023-07-13 14:12:17 +08:00
Junyi
5638a2fa2b
fix(plugin-workflow): fix job button style (#2243) 2023-07-12 22:32:00 -07:00
被雨水过滤的空气-Rain
0ba1c3d5c7
fix: avoid crashing when delete group menu (#2239) 2023-07-12 16:31:23 +08:00
被雨水过滤的空气-Rairn
57507b310e
fix: should auto focus in drop-down menu (#2234)
* fix: should auto focus in drop-down menu

* fix: fix error in console
2023-07-12 08:39:19 +08:00
Junyi
05058c04b6
fix(plugin-fm): adjust upload file size to 1G which same as default on server side (#2236)
Close #2215.
2023-07-11 08:47:57 -07:00
被雨水过滤的空气-Rairn
20a7e9a657
fix: should only show one scroll bar in drop-down menu (#2231) 2023-07-11 17:52:45 +08:00
katherinehhh
c20c68cc42
fix: failed to correctly respond to optional fields in the child collection in the parent collection table (#2207)
* refactor: process inherited field uischema in table

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve
2023-07-11 17:43:25 +08:00
Junyi
ff7b1aaf71
fix(core): fix batch update query logic (#2230) 2023-07-11 16:54:04 +08:00
被雨水过滤的空气-Rairn
1fb15de29a
fix: should limit submenu height (#2227) 2023-07-11 14:47:27 +08:00
被雨水过滤的空气-Rairn
2e8c14e0d6
fix(upload): fix style of attachement in Table (#2213)
* fix(upload): fix style of attachement in Table

* fix: make test pass
2023-07-08 14:49:26 +08:00
chenos
6aeb9b321e fix(cli): missing fs.existsSync 2023-07-08 09:54:23 +08:00
chenos
c0a59524ab chore(versions): 😊 publish v0.11.0-alpha.1 2023-07-08 08:29:33 +08:00
被雨水过滤的空气-Rairn
fd36c970bc
refactor(client)!: upgrade antd to v5 (#2078)
* refactor: change moment to dayjs

* refactor: remove antd css

* refactor: change @formily/antd to @formily/antd-v5

* chore: add dep

* chore: upgrade babel/core and typescript

* refactor: rename moment to dayjs

* fix(dayjs): add plugins

* refactor: fix type errors

* refactor: change default export to named export

* chore: upgrade ts-loader

* refactor: rename moment to dayjs

* refactor: fix type errors

* chore: upgrade deps for build

* fix: fix build errors

* fix: add antd reset css

* fix: fix build error

* chore: add __builtins__

* chore: optimize genStyleHook

* refactor(Calendar): less to css-in-js

* refactor(acl): less to css-in-js

* refactor(board): less to css-in-js

* chore: add antd-style

* refactor(acl): use antd-style

* refactor(board): use antd-style

* refactor: schema-initializer

* refactor: refactor genStyleHook

* refactor: kanban

* refactor: filter

* refactor: upload

* refactor: markdown

* refactor: rename className to componentCls

* refactor: rich-text

* style: fix style

* fix: fix merge error

* chore: update yarn.lock

* chore: upgrade formily

* style: fix pageHeader

* style: fix add button style

* style: fix header menu color

* chore: update yarn.lock

* chore: upgrade deps

* test: fix tests

* test: fix tests

* fix: fix build error

* fix: fix style of plugin doc

* fix: fix tests

* fix: fix drag bug

* refactor: remove useless code

* fix: fix Modal style (T-621)

* fix: fix box-shadow of subMenu (T-622)

* fix: fix style of linkage rules (T-623)

* fix: fix style of DataTemplate

* fix: fix style of variable (T-620)

* chore: update yarn.lock

* fix: avoid test failed

* test: fix error

* chore: update yarn.lock

* test: fix error

* test(dayjs): fix error

* fix: should delay show menu to avoid the menu not hidden

* test: skip failure test

* fix(mouseEnterDelay): change default value from 100 to 150

* test: avoid failed

* refactor: rename component names

* chore: optimize types

* chore: lock antd version

* fix: fix build

* fix: fix build

* fix: layout bg color use variable

* fix: fix style of buttons

* feat: remove theme config

* fix(calendar): fix style

* fix(mobile-client): fix dialog style

* fix: fix test

* refactor: make code gooder

* chore: change code

* fix: fix T-847

* fix: fix T-845

* fix: display block

* fix: danger button

* refactor: make tester better

* fix: change moment to dayjs

* fix: build error

* fix: import dayjs/plugin/isSameOrBefore

* refactor: downgrade @testing-library/react to fix warning

* fix: fix CI

* fix: upgrade deps to fix build

* fix: fix test

* fix: skip some filed tests to avoid error

* fix: fix build errors that maked by merge code

* refactor: remove moment

* fix: error

* feat: update doc

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-08 08:26:27 +08:00
Junyi
6b220c342c
fix(plugin-workflow): fix loop variable (#2211) 2023-07-07 07:51:44 -07:00
Junyi
687f3c214d
fix(db): fix .now variable (#2209) 2023-07-07 04:15:29 -07:00