Commit Graph

114 Commits

Author SHA1 Message Date
chenos
f791d43716
feat: acl provider (#279)
* feat: acl provider

* feat: menu server hook

* feat: improve code

* fix: fields filter
2022-04-10 19:22:39 +08:00
chenos
c6f1454ae8 feat: jwt service 2022-04-09 15:30:43 +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
54ad1535d6 fix: destroy token on signout 2022-03-30 13:26:41 +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
ChengLei Shao
264a1e6c21
fix: user current role (#232) 2022-03-11 15:51:46 +08:00
ChengLei Shao
d98714d9fd
featEnable permission (#229)
* feat: acl skip

* feat: skip-manager

* feat: root user permission skip

* fix: test

* feat: set user role

* fix: code review

* feat: setDefaultRole for users
2022-03-11 10:10:57 +08:00
chenos
271111902f feat: improve code 2022-03-02 20:08:11 +08:00
chenos
afab15327e feat: improve code 2022-03-02 18:35:49 +08:00
ChengLei Shao
86065fa208
feat: error handle middleware (#214)
* feat: error handle middleware

* feat: application error handler

* feat: handle with sequelizeValidationError

* fix: test

* fix: test
2022-03-02 12:50:15 +08:00
chenos
9704f8a342 feat: improve acl module 2022-02-28 22:10:04 +08:00
ChengLei Shao
5e51973b21
feat: plugin install (#211)
* feat: plugin install

* fix: install options
2022-02-28 21:49:50 +08:00
chenos
78f75f5a2f feat: improve users module 2022-02-28 14:25:50 +08:00
chenos
872ee79146 refactor(database): model toJSON without the hidden fields 2022-02-23 18:18:38 +08:00
ChengLei Shao
99bfd75776
fix: test with database (#193)
* fix: ui schema test

* fix: sqlite array query

* fix: acl test

* fix: plugin-users test

* fix: database test with postgres

* fix: test with db.getTablePrefix

* fix: test with mysql database

* fix: test with sqlite database

* fix: test with  mysql

* fix: test order with mysql

* chore: test clean database

* chore: mockServer clean

* chore: app cleanDb

* chore: plugin-users cleanDb
2022-02-15 22:32:02 +08:00
chenos
a507267b72 feat: code cleanup 2022-02-11 18:13:14 +08:00
chenos
7e76c54012 feat: using crypto.scrypt instead of bcrypt 2022-02-10 19:53:18 +08:00
ChengLei Shao
8e4336cbe1
feat(server): improve application (#177)
* feat: getRepository

* getRepository return type

* export action

* refactor(plugin-acl): plugin

* refactor(plugin-action-logs): plugin class

* refactor(plugin-china-region): plugin class

* refactor: plugin class

* fix: cli start command

* feat: pass install-command options into app.install

* fix: cli args

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-02-07 01:14:00 +08:00
ChengLei Shao
7a7ab2ef41
feat: add acl plugin (#169)
* 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

* add acl association field test

* feat(plugin-acl): grant association field actions

* chore(plugin-acl): type name

* feat(plugin-acl): regrant actions on resource action update

* feat(plugin-acl): regrant action on field destroy

* fix(plugin-acl): test

* fix(plugin-acl): test run

* feat(plugin-acl): set default role

* feat(plugin-users): set user default role

* test(plugin-users): create user with role

* feat(plugin-users): create user with role

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-01-30 10:37:27 +08:00
ChengLei Shao
246737906d
Feat/GitHub actions (#148)
* test github actions

* mod: github actions

* mod: github actions

* fix: yarn build

* fix: database pk key error

* fix: test

* skip failed tests

* github test with sqlite && mysql

* fix: mysql query error
2022-01-08 17:16:11 +08:00
chenos
f09991d932 feat: upgrade plugin-users 2021-12-08 09:10:44 +08:00
chenos
732d31009e v0.6 2021-12-06 21:23:34 +08:00
chenos
c1b560e928
feat: rename resourceKey & associatedKey to resourceIndex & associatedIndex (#126)
* resourceIndex & associatedIndex

* resourceIndex & associatedIndex
2021-12-04 16:28:52 +08:00
chenos
d817ec4c7b fix: missing parameters 2021-11-30 16:43:44 +08:00
SemmyWong
64283fcb0e
feat: allow user to change password (#109)
* feat: allow user to change password

* docs: update api doc

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-11-25 22:36:52 +08:00
chenos
11cded6153 chore: v0.5.0-alpha.34 2021-11-23 08:23:34 +08:00
chenos
3e53584768 fix: remove state property 2021-11-23 08:21:38 +08:00
chenos
e6fa6f9a8e feat(plugin-users): multiple roles 2021-11-18 19:26:39 +08:00
chenos
a702f534ba feat: add roles field to users collection 2021-11-17 18:54:02 +08:00
chenos
d8c7a0f1c3 feat: add roles field to users collection 2021-11-16 18:28:07 +08:00
chenos
3479b7ea27 chore: v0.5.0-alpha.33 2021-11-13 22:24:51 +08:00
chenos
7be6327458 chore: v0.5.0-alpha.32 2021-11-09 17:14:11 +08:00
chenos
7a35638eda chore: v0.5.0-alpha.31 2021-11-09 16:28:27 +08:00
chenos
829f969668 chore: v0.5.0-alpha.30 2021-11-09 13:07:41 +08:00
chenos
4ea7d74211 chore: v0.5.0-alpha.29 2021-11-08 23:06:31 +08:00
chenos
cce2253532 chore: v0.5.0-alpha.28 2021-11-08 22:54:19 +08:00
chenos
5cacee4e7f chore: v0.5.0-alpha.27 2021-11-08 20:47:20 +08:00
chenos
7611beea0f chore: v0.5.0-alpha.26 2021-11-08 20:27:59 +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
8376c6d1b2 chore: v0.5.0-alpha.25 2021-11-01 17:29:27 +08:00
chenos
b5c587fc94 chore: v0.5.0-alpha.24 2021-11-01 15:20:30 +08:00
semmywong
14f492f414
fix: add sort field to the users table
* [Fixed]
1、初始化数据表时,没有配置sort
2、增加sort接口类型

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR

* [Fixed]
1、重新提交PR
2021-10-30 10:55:43 +08:00
chenos
41b023987b chore: v0.5.0-alpha.23 2021-10-28 22:59:51 +08:00
chenos
2253471670 chore: v0.5.0-alpha.22 2021-10-25 14:37:22 +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
f199df96aa chore: add prettier config 2021-10-14 00:08:16 +08:00
chenos
d80c875d5e chore: v0.5.0-alpha.20 2021-10-12 22:27:38 +08:00
chenos
d94606ab30 fix(plugin-users): user's password should not be leaked to the client 2021-10-12 22:17:11 +08:00
chenos
fda20f83c3 chore: v0.5.0-alpha.19 2021-10-10 22:30:16 +08:00