chore(versions): 😊 publish v0.7.2-alpha.7 (#611)
* fix(cli): db sync error * fix(cli): upgrade error * feat: update docker image version
This commit is contained in:
parent
689a793593
commit
451d6ae974
@ -4,7 +4,7 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nocobase/nocobase:0.7.2-alpha.3
|
image: nocobase/nocobase:0.7.2-alpha.7
|
||||||
networks:
|
networks:
|
||||||
- nocobase
|
- nocobase
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -4,7 +4,7 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nocobase/nocobase:0.7.2-alpha.3
|
image: nocobase/nocobase:0.7.2-alpha.7
|
||||||
networks:
|
networks:
|
||||||
- nocobase
|
- nocobase
|
||||||
environment:
|
environment:
|
||||||
|
@ -4,7 +4,7 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nocobase/nocobase:0.7.2-alpha.3
|
image: nocobase/nocobase:0.7.2-alpha.7
|
||||||
networks:
|
networks:
|
||||||
- nocobase
|
- nocobase
|
||||||
environment:
|
environment:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true,
|
"useWorkspaces": true,
|
||||||
"npmClientArgs": [
|
"npmClientArgs": [
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/app-client",
|
"name": "@nocobase/app-client",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/client": "0.7.2-alpha.3"
|
"@nocobase/client": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/app-server",
|
"name": "@nocobase/app-server",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/preset-nocobase": "0.7.2-alpha.3"
|
"@nocobase/preset-nocobase": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/acl",
|
"name": "@nocobase/acl",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -12,7 +12,7 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/resourcer": "0.7.2-alpha.3",
|
"@nocobase/resourcer": "0.7.2-alpha.7",
|
||||||
"json-templates": "^4.2.0"
|
"json-templates": "^4.2.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/actions",
|
"name": "@nocobase/actions",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -12,8 +12,8 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/database": "0.7.2-alpha.3",
|
"@nocobase/database": "0.7.2-alpha.7",
|
||||||
"@nocobase/resourcer": "0.7.2-alpha.3"
|
"@nocobase/resourcer": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/build",
|
"name": "@nocobase/build",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "Library build tool based on rollup.",
|
"description": "Library build tool based on rollup.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/cli",
|
"name": "@nocobase/cli",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -23,7 +23,7 @@
|
|||||||
"serve": "^13.0.2"
|
"serve": "^13.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/devtools": "0.7.2-alpha.3"
|
"@nocobase/devtools": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/client",
|
"name": "@nocobase/client",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
@ -19,8 +19,8 @@
|
|||||||
"@formily/antd": "2.0.20",
|
"@formily/antd": "2.0.20",
|
||||||
"@formily/core": "2.0.20",
|
"@formily/core": "2.0.20",
|
||||||
"@formily/react": "2.0.20",
|
"@formily/react": "2.0.20",
|
||||||
"@nocobase/sdk": "0.7.2-alpha.3",
|
"@nocobase/sdk": "0.7.2-alpha.7",
|
||||||
"@nocobase/utils": "0.7.2-alpha.3",
|
"@nocobase/utils": "0.7.2-alpha.7",
|
||||||
"ahooks": "^3.0.5",
|
"ahooks": "^3.0.5",
|
||||||
"antd": "~4.19.5",
|
"antd": "~4.19.5",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "create-nocobase-app",
|
"name": "create-nocobase-app",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/database",
|
"name": "@nocobase/database",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/utils": "0.7.2-alpha.3",
|
"@nocobase/utils": "0.7.2-alpha.7",
|
||||||
"async-mutex": "^0.3.2",
|
"async-mutex": "^0.3.2",
|
||||||
"deepmerge": "^4.2.2",
|
"deepmerge": "^4.2.2",
|
||||||
"flat": "^5.0.2",
|
"flat": "^5.0.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/devtools",
|
"name": "@nocobase/devtools",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/build": "0.7.2-alpha.3",
|
"@nocobase/build": "0.7.2-alpha.7",
|
||||||
"@testing-library/react": "^12.1.2",
|
"@testing-library/react": "^12.1.2",
|
||||||
"@types/jest": "^26.0.0",
|
"@types/jest": "^26.0.0",
|
||||||
"@types/koa": "^2.13.4",
|
"@types/koa": "^2.13.4",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dumi-theme-nocobase",
|
"name": "dumi-theme-nocobase",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/resourcer",
|
"name": "@nocobase/resourcer",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/sdk",
|
"name": "@nocobase/sdk",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/server",
|
"name": "@nocobase/server",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
@ -13,10 +13,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@koa/cors": "^3.1.0",
|
"@koa/cors": "^3.1.0",
|
||||||
"@koa/router": "^9.4.0",
|
"@koa/router": "^9.4.0",
|
||||||
"@nocobase/acl": "0.7.2-alpha.3",
|
"@nocobase/acl": "0.7.2-alpha.7",
|
||||||
"@nocobase/actions": "0.7.2-alpha.3",
|
"@nocobase/actions": "0.7.2-alpha.7",
|
||||||
"@nocobase/database": "0.7.2-alpha.3",
|
"@nocobase/database": "0.7.2-alpha.7",
|
||||||
"@nocobase/resourcer": "0.7.2-alpha.3",
|
"@nocobase/resourcer": "0.7.2-alpha.7",
|
||||||
"chalk": "^4.1.1",
|
"chalk": "^4.1.1",
|
||||||
"commander": "^9.2.0",
|
"commander": "^9.2.0",
|
||||||
"find-package-json": "^1.2.0",
|
"find-package-json": "^1.2.0",
|
||||||
|
@ -116,8 +116,11 @@ export class ApplicationVersion {
|
|||||||
|
|
||||||
async satisfies(range: string) {
|
async satisfies(range: string) {
|
||||||
if (await this.app.db.collectionExistsInDb('applicationVersion')) {
|
if (await this.app.db.collectionExistsInDb('applicationVersion')) {
|
||||||
const model = await this.collection.model.findOne();
|
const model: any = await this.collection.model.findOne();
|
||||||
const version = model.get('value') as any;
|
const version = model?.value as any;
|
||||||
|
if (!version) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return semver.satisfies(version, range);
|
return semver.satisfies(version, range);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -346,6 +349,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
async upgrade(options: any = {}) {
|
async upgrade(options: any = {}) {
|
||||||
|
await this.emitAsync('beforeUpgrade', this, options);
|
||||||
const force = false;
|
const force = false;
|
||||||
await this.db.migrator.up();
|
await this.db.migrator.up();
|
||||||
await this.db.sync({
|
await this.db.sync({
|
||||||
@ -355,6 +359,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
await this.version.update();
|
await this.version.update();
|
||||||
|
await this.emitAsync('afterUpgrade', this, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
declare emitAsync: (event: string | symbol, ...args: any[]) => Promise<boolean>;
|
declare emitAsync: (event: string | symbol, ...args: any[]) => Promise<boolean>;
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
import Application from '../application';
|
import Application from '../application';
|
||||||
|
|
||||||
export default (app: Application) => {
|
export default (app: Application) => {
|
||||||
app
|
app.command('db:sync').action(async (...cliArgs) => {
|
||||||
.command('db:sync')
|
|
||||||
.action(async (...cliArgs) => {
|
|
||||||
const [opts] = cliArgs;
|
const [opts] = cliArgs;
|
||||||
console.log('db sync...');
|
console.log('db sync...');
|
||||||
|
await app.emitAsync('cli.beforeDbSync', ...cliArgs);
|
||||||
const force = false;
|
const force = false;
|
||||||
await app.start();
|
|
||||||
await app.db.sync({
|
await app.db.sync({
|
||||||
force,
|
force,
|
||||||
alter: {
|
alter: {
|
||||||
|
@ -4,8 +4,8 @@ export default (app: Application) => {
|
|||||||
app
|
app
|
||||||
.command('migrator')
|
.command('migrator')
|
||||||
.action(async (opts) => {
|
.action(async (opts) => {
|
||||||
await app.start();
|
|
||||||
console.log('migrating...');
|
console.log('migrating...');
|
||||||
|
await app.emitAsync('cli.beforeMigrator', opts);
|
||||||
await app.db.migrator.runAsCLI(process.argv.slice(3));
|
await app.db.migrator.runAsCLI(process.argv.slice(3));
|
||||||
await app.stop();
|
await app.stop();
|
||||||
});
|
});
|
||||||
|
@ -10,7 +10,6 @@ export default (app: Application) => {
|
|||||||
.action(async (...cliArgs) => {
|
.action(async (...cliArgs) => {
|
||||||
const [opts] = cliArgs;
|
const [opts] = cliArgs;
|
||||||
console.log('upgrading...');
|
console.log('upgrading...');
|
||||||
await app.start();
|
|
||||||
await app.upgrade();
|
await app.upgrade();
|
||||||
await app.stop({
|
await app.stop({
|
||||||
cliArgs,
|
cliArgs,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/test",
|
"name": "@nocobase/test",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/server": "0.7.2-alpha.3",
|
"@nocobase/server": "0.7.2-alpha.7",
|
||||||
"@types/supertest": "^2.0.11",
|
"@types/supertest": "^2.0.11",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"mysql2": "^2.3.3",
|
"mysql2": "^2.3.3",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/utils",
|
"name": "@nocobase/utils",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-acl",
|
"name": "@nocobase/plugin-acl",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -12,9 +12,9 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/acl": "0.7.2-alpha.3",
|
"@nocobase/acl": "0.7.2-alpha.7",
|
||||||
"@nocobase/database": "0.7.2-alpha.3",
|
"@nocobase/database": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-audit-logs",
|
"name": "@nocobase/plugin-audit-logs",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "./lib/server/index.js",
|
"main": "./lib/server/index.js",
|
||||||
"types": "./lib/server/index.d.ts",
|
"types": "./lib/server/index.d.ts",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
@ -11,11 +11,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/client": "0.7.2-alpha.3",
|
"@nocobase/client": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "40d079ceb4dadfd6a021ab44a42ef7f52f241745"
|
"gitHead": "40d079ceb4dadfd6a021ab44a42ef7f52f241745"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-china-region",
|
"name": "@nocobase/plugin-china-region",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,12 +10,12 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/client": "0.7.2-alpha.3",
|
"@nocobase/client": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3",
|
"@nocobase/server": "0.7.2-alpha.7",
|
||||||
"china-division": "^2.4.0"
|
"china-division": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "40d079ceb4dadfd6a021ab44a42ef7f52f241745"
|
"gitHead": "40d079ceb4dadfd6a021ab44a42ef7f52f241745"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-client",
|
"name": "@nocobase/plugin-client",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,10 +10,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-collection-manager",
|
"name": "@nocobase/plugin-collection-manager",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -88,6 +88,24 @@ export class CollectionManagerPlugin extends Plugin {
|
|||||||
await this.app.db.getRepository<CollectionRepository>('collections').load();
|
await this.app.db.getRepository<CollectionRepository>('collections').load();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.app.on('beforeUpgrade', async () => {
|
||||||
|
await this.app.db.getRepository<CollectionRepository>('collections').load();
|
||||||
|
});
|
||||||
|
|
||||||
|
this.app.on('cli.beforeMigrator', async () => {
|
||||||
|
const exists = await this.app.db.collectionExistsInDb('collections');
|
||||||
|
if (exists) {
|
||||||
|
await this.app.db.getRepository<CollectionRepository>('collections').load();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.app.on('cli.beforeDbSync', async () => {
|
||||||
|
const exists = await this.app.db.collectionExistsInDb('collections');
|
||||||
|
if (exists) {
|
||||||
|
await this.app.db.getRepository<CollectionRepository>('collections').load();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.app.resourcer.use(async (ctx, next) => {
|
this.app.resourcer.use(async (ctx, next) => {
|
||||||
const { resourceName, actionName } = ctx.action;
|
const { resourceName, actionName } = ctx.action;
|
||||||
if (resourceName === 'collections.fields' && actionName === 'update') {
|
if (resourceName === 'collections.fields' && actionName === 'update') {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-error-handler",
|
"name": "@nocobase/plugin-error-handler",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@formily/json-schema": "^2.0.15",
|
"@formily/json-schema": "^2.0.15",
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-export",
|
"name": "@nocobase/plugin-export",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/server/index.js",
|
"main": "lib/server/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/client": "0.7.2-alpha.3",
|
"@nocobase/client": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3",
|
"@nocobase/server": "0.7.2-alpha.7",
|
||||||
"node-xlsx": "^0.16.1"
|
"node-xlsx": "^0.16.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-file-manager",
|
"name": "@nocobase/plugin-file-manager",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@koa/multer": "^3.0.0",
|
"@koa/multer": "^3.0.0",
|
||||||
"@nocobase/server": "0.7.2-alpha.3",
|
"@nocobase/server": "0.7.2-alpha.7",
|
||||||
"aws-sdk": "^2.2.32",
|
"aws-sdk": "^2.2.32",
|
||||||
"koa-static": "^5.0.0",
|
"koa-static": "^5.0.0",
|
||||||
"mime-match": "^1.0.2",
|
"mime-match": "^1.0.2",
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"multer-s3": "^2.10.0"
|
"multer-s3": "^2.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3",
|
"@nocobase/test": "0.7.2-alpha.7",
|
||||||
"@types/koa-multer": "^1.0.1",
|
"@types/koa-multer": "^1.0.1",
|
||||||
"@types/multer": "^1.4.5"
|
"@types/multer": "^1.4.5"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-multi-app-manager",
|
"name": "@nocobase/plugin-multi-app-manager",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-notifications",
|
"name": "@nocobase/plugin-notifications",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"nodemailer": "^6.6.1"
|
"nodemailer": "^6.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3",
|
"@nocobase/test": "0.7.2-alpha.7",
|
||||||
"@types/nodemailer": "6.4.4",
|
"@types/nodemailer": "6.4.4",
|
||||||
"nodemailer-mock": "^1.5.11"
|
"nodemailer-mock": "^1.5.11"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-system-settings",
|
"name": "@nocobase/plugin-system-settings",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-ui-routes-storage",
|
"name": "@nocobase/plugin-ui-routes-storage",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"flat-to-nested": "^1.1.1"
|
"flat-to-nested": "^1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-ui-schema-storage",
|
"name": "@nocobase/plugin-ui-schema-storage",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@formily/json-schema": "2.0.20",
|
"@formily/json-schema": "2.0.20",
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-users",
|
"name": "@nocobase/plugin-users",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"jsonwebtoken": "^8.5.1"
|
"jsonwebtoken": "^8.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3",
|
"@nocobase/test": "0.7.2-alpha.7",
|
||||||
"@types/jsonwebtoken": "^8.5.8",
|
"@types/jsonwebtoken": "^8.5.8",
|
||||||
"json-templates": "^4.2.0"
|
"json-templates": "^4.2.0"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/plugin-workflow",
|
"name": "@nocobase/plugin-workflow",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
@ -10,17 +10,17 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/actions": "0.7.2-alpha.3",
|
"@nocobase/actions": "0.7.2-alpha.7",
|
||||||
"@nocobase/client": "0.7.2-alpha.3",
|
"@nocobase/client": "0.7.2-alpha.7",
|
||||||
"@nocobase/database": "0.7.2-alpha.3",
|
"@nocobase/database": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3",
|
"@nocobase/server": "0.7.2-alpha.7",
|
||||||
"@nocobase/utils": "0.7.2-alpha.3",
|
"@nocobase/utils": "0.7.2-alpha.7",
|
||||||
"cron-parser": "4.4.0",
|
"cron-parser": "4.4.0",
|
||||||
"json-templates": "^4.2.0",
|
"json-templates": "^4.2.0",
|
||||||
"react-js-cron": "^1.4.0"
|
"react-js-cron": "^1.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nocobase/test": "0.7.2-alpha.3"
|
"@nocobase/test": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
"gitHead": "7e9556e489007577fc0ed89063b3a9ce2f9aae53"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nocobase/preset-nocobase",
|
"name": "@nocobase/preset-nocobase",
|
||||||
"version": "0.7.2-alpha.3",
|
"version": "0.7.2-alpha.7",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
@ -11,20 +11,20 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nocobase/plugin-acl": "0.7.2-alpha.3",
|
"@nocobase/plugin-acl": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-audit-logs": "0.7.2-alpha.3",
|
"@nocobase/plugin-audit-logs": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-china-region": "0.7.2-alpha.3",
|
"@nocobase/plugin-china-region": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-client": "0.7.2-alpha.3",
|
"@nocobase/plugin-client": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-collection-manager": "0.7.2-alpha.3",
|
"@nocobase/plugin-collection-manager": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-error-handler": "0.7.2-alpha.3",
|
"@nocobase/plugin-error-handler": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-export": "0.7.2-alpha.3",
|
"@nocobase/plugin-export": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-file-manager": "0.7.2-alpha.3",
|
"@nocobase/plugin-file-manager": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-system-settings": "0.7.2-alpha.3",
|
"@nocobase/plugin-system-settings": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-ui-routes-storage": "0.7.2-alpha.3",
|
"@nocobase/plugin-ui-routes-storage": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-ui-schema-storage": "0.7.2-alpha.3",
|
"@nocobase/plugin-ui-schema-storage": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-users": "0.7.2-alpha.3",
|
"@nocobase/plugin-users": "0.7.2-alpha.7",
|
||||||
"@nocobase/plugin-workflow": "0.7.2-alpha.3",
|
"@nocobase/plugin-workflow": "0.7.2-alpha.7",
|
||||||
"@nocobase/server": "0.7.2-alpha.3"
|
"@nocobase/server": "0.7.2-alpha.7"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user