@nocobase/plugin-data-visualization
Advanced tools
Comparing version 0.18.0-alpha.9 to 0.19.0-alpha.1
import { SchemaInitializer } from '@nocobase/client'; | ||
import React from 'react'; | ||
export declare const chartInitializers: SchemaInitializer<import("antd").ButtonProps, {}>; | ||
export declare const chartInitializers: SchemaInitializer; | ||
export declare const ChartV2BlockInitializer: React.FC; |
@@ -15,2 +15,2 @@ import { SchemaInitializer } from '@nocobase/client'; | ||
export declare const ChartFilterActionDesigner: React.FC; | ||
export declare const chartFilterActionInitializers: SchemaInitializer<import("antd").ButtonProps, {}>; | ||
export declare const chartFilterActionInitializers: SchemaInitializer; |
@@ -7,2 +7,2 @@ import { SchemaInitializer } from '@nocobase/client'; | ||
}>; | ||
export declare const chartFilterItemInitializers: SchemaInitializer<import("antd").ButtonProps, {}>; | ||
export declare const chartFilterItemInitializers: SchemaInitializer; |
module.exports = { | ||
"@nocobase/client": "0.18.0-alpha.9", | ||
"@nocobase/client": "0.19.0-alpha.1", | ||
"@formily/react": "2.3.0", | ||
"@formily/shared": "2.3.0", | ||
"lodash": "4.17.21", | ||
"@nocobase/cache": "0.18.0-alpha.9", | ||
"@nocobase/server": "0.18.0-alpha.9", | ||
"@nocobase/cache": "0.19.0-alpha.1", | ||
"@nocobase/server": "0.19.0-alpha.1", | ||
"react": "18.2.0", | ||
@@ -13,9 +13,9 @@ "@ant-design/icons": "5.2.6", | ||
"@emotion/css": "11.11.2", | ||
"antd": "5.12.2", | ||
"antd": "5.12.8", | ||
"@formily/antd-v5": "1.1.9", | ||
"@formily/core": "2.3.0", | ||
"@nocobase/utils": "0.18.0-alpha.9", | ||
"@nocobase/database": "0.18.0-alpha.9", | ||
"@nocobase/utils": "0.19.0-alpha.1", | ||
"@nocobase/database": "0.19.0-alpha.1", | ||
"react-i18next": "11.18.6", | ||
"@nocobase/actions": "0.18.0-alpha.9" | ||
"@nocobase/actions": "0.19.0-alpha.1" | ||
}; |
@@ -1,1 +0,1 @@ | ||
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-01-03T02:07:57.641Z"} | ||
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-01-08T11:40:34.033Z"} |
@@ -44,27 +44,19 @@ var __create = Object.create; | ||
const postProcess = async (ctx, next) => { | ||
const { sequelize } = ctx.db; | ||
const dialect = sequelize.getDialect(); | ||
const { data, fieldMap } = ctx.action.params.values; | ||
switch (dialect) { | ||
case "postgres": | ||
ctx.body = data.map((record) => { | ||
const result = {}; | ||
Object.entries(record).forEach(([key, value]) => { | ||
const { type } = fieldMap[key] || {}; | ||
switch (type) { | ||
case "bigInt": | ||
case "integer": | ||
case "float": | ||
case "double": | ||
value = Number(value); | ||
break; | ||
} | ||
result[key] = value; | ||
}); | ||
return result; | ||
}); | ||
break; | ||
default: | ||
ctx.body = data; | ||
} | ||
ctx.body = data.map((record) => { | ||
const result = {}; | ||
Object.entries(record).forEach(([key, value]) => { | ||
const { type } = fieldMap[key] || {}; | ||
switch (type) { | ||
case "bigInt": | ||
case "integer": | ||
case "float": | ||
case "double": | ||
value = Number(value); | ||
break; | ||
} | ||
result[key] = value; | ||
}); | ||
return result; | ||
}); | ||
await next(); | ||
@@ -71,0 +63,0 @@ }; |
import { Migration } from '@nocobase/server'; | ||
export default class RenameChartTypeMigration extends Migration { | ||
appVersion: string; | ||
up(): Promise<void>; | ||
} |
@@ -25,2 +25,3 @@ var __defProp = Object.defineProperty; | ||
class RenameChartTypeMigration extends import_server.Migration { | ||
appVersion = "<0.14.0-alpha.7"; | ||
async up() { | ||
@@ -27,0 +28,0 @@ const result = await this.app.version.satisfies("<=0.14.0-alpha.7"); |
{ | ||
"name": "@nocobase/plugin-data-visualization", | ||
"version": "0.18.0-alpha.9", | ||
"version": "0.19.0-alpha.1", | ||
"displayName": "Data Visualization", | ||
@@ -34,3 +34,3 @@ "displayName.zh-CN": "数据可视化", | ||
}, | ||
"gitHead": "34ca0df4eede2e83fc86297b0fe19eba970e2b1b" | ||
"gitHead": "64601944412fc4d2e2bd05f4b982118dd28247dc" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1162261
6032