Commit Graph

84 Commits

Author SHA1 Message Date
ChengLei Shao
fd7e77fcf9
fix: create-nocobase-app compatibility (#323) 2022-04-26 12:56:10 +08:00
chenos
733c7048ed fix: antd use ~v4.19.5 2022-04-25 14:37:10 +08:00
chenos
fcfde7ed0a fix: update yarn.lock 2022-04-17 17:21:45 +08:00
ChengLei Shao
24ea83f0ff
Feat/create nocobase app (#273)
* create-nocobase-app template from [develop]

* change create-nocobase-app package.json config

* feat: load configuration from directory

* feat: configuration repository toObject

* feat: create application from configuration dir

* feat: application factory with plugins options

* export type

* feat: read application config &  application with plugins options

* feat: release command

* fix: database release

* chore: workflow package.json

* feat: nocobase cli package

* feat: console command

* chore: load application in command

* fix: load packages from process.cwd

* feat: cli load env file

* feat: create-nocobase-app

* fix: gitignore create-nocobase-app lib

* fix: sqlite path

* feat: create plugin

* chore: plugin files template

* chore: move cli into application

* chore: create-nocobase-app

* fix: create plugin

* chore: app-client && app-server

* chore: package.json

* feat: create-nocobase-app download template from npm

* chore: create-nocobase-app template

* fix: config of plugin-users

* fix: yarn.lock

* fix: database build error

* fix: yarn.lock

* fix: resourcer config

* chore: cross-env

* chore: app-client dependents

* fix: env

* chore: v0.6.0-alpha.1

* chore: verdaccio

* chore(versions): 😊 publish v0.6.0

* chore(versions): 😊 publish v0.6.1-alpha.0

* chore(versions): 😊 publish v0.6.2-alpha.0

* chore(versions): 😊 publish v0.6.2-alpha.1

* chore: 0.6.2-alpha.2

* feat: workspaces

* chore(versions): 😊 publish v0.6.2-alpha.3

* chore(versions): 😊 publish v0.6.2-alpha.4

* chore: create-nocobase-app

* chore: create-nocobase-app lib

* fix: update tsconfig.jest.json

* chore: .env

* chore(versions): 😊 publish v0.6.2-alpha.5

* chore(versions): 😊 publish v0.6.2-alpha.6

* feat: improve code

* chore(versions): 😊 publish v0.6.2-alpha.7

* fix: cleanup

* chore(versions): 😊 publish v0.6.2-alpha.8

* chore: tsconfig for app server package

* fix: move files

* fix: move files

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-04-17 10:00:42 +08:00
chenos
8ca945210c chore: update yarn.lock 2022-04-14 23:26:50 +08:00
SemmyWong
3f3e9b5373
feat: add Slate component (#272)
* feat: add Slate component

* feat: add slate Read Pretty

* fix: remove unused code

* fix: demo

* feat: rich text field interface

* fix: editor normalize

* fix: modify slate style

* fix: remove debug info

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-04-10 09:10:25 +08:00
ChengLei Shao
7e4b60c410
Feat/plugin users with jwt (#258)
* feat: plugin users with jwt

* update github actions env

* feat: get jwt config from options

* feat: jwtService

* fix: type

* fix: build error

* fix: yarn repository

* fix: yarn build

* fix: yarn build
2022-04-09 14:54:46 +08:00
chenos
74779a0d46
feat: block provider (#261)
* feat: block schema

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: styling for kanban

* feat: improve code

* feat: improve code

* fix(client): auto collapse menu items when overflow

* feat: improve code

* fix: fieldNames prop for calendar

* fix: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* feat: improve code

* fix: list the sub-table data source

* fix: useFilterByTk

* feat: improve code

* feat: improve code

* feat: improve code
2022-04-04 00:30:40 +08:00
ChengLei Shao
81978711e4
featPlugin multiple apps (#248)
* feat: multiple apps plugin

* feat: multipleAppManager in Application

* stage

* fix: export error

* test: multiple app

* application model

* feat: create application with plugins

* load and install after sub application created

* create subApp database beforeInstall

* sub apps listen to main app start & stop events

* refactor: getPluginName as package name

* feat: load apps on mainApp starts

* fix: test

* feat: beforeGetApplication event

* fix: test

* fix: test with sqlite memory database

* test: lazyLoad application

* fix: test with sqlite memory

* chore: clone database collection & promise.all
2022-03-28 22:01:10 +08:00
chenos
019d182af2 feat: upgrade formily 2022-03-18 21:38:12 +08:00
chenos
5cbbfcf428 feat: add drag handle for table row component 2022-03-05 14:43:19 +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
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
chenos
790d40371a chore: yarn start 2022-02-20 20:11:58 +08:00
chenos
7e76c54012 feat: using crypto.scrypt instead of bcrypt 2022-02-10 19:53:18 +08:00
chenos
34f5c87a1e feat: add @nocobase/app 2022-02-10 18:37:16 +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
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
765bf9daa9 chore: commitlint 2022-01-26 12:07:47 +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
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
2b078a28be docs: add more examples 2022-01-23 00:46:21 +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
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
d94874d345 feat: improve document title and page title support 2022-01-20 12:06:09 +08:00
chenos
becff7d55c update yarn.lock 2022-01-19 10:11:53 +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
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
chenos
f09991d932 feat: upgrade plugin-users 2021-12-08 09:10:44 +08:00
chenos
17b5839f51 feat: upgrade plugin-notifications 2021-12-07 19:24:26 +08:00
Chareice
8765df13ac yarn install 2021-12-07 15:11:18 +08:00
chenos
732d31009e v0.6 2021-12-06 21:23:34 +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
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
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
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
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
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
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
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
c829ae00d0 fix: update yarn.lock 2021-10-12 09:33:03 +08:00
chenos
8472d9e6b0 fix: cannot start the project 2021-10-10 12:16:28 +08:00
chenos
4ab7c71f49 feat: add @nocobase/plugin-notifications 2021-10-08 23:12:39 +08:00
chenos
7ecb7c3a60 chore: v0.5.0-alpha.5 2021-10-07 15:25:20 +08:00