@nocobase/plugin-data-visualization 0.14.0-alpha.7 → 0.14.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/block/transformers.d.ts +2 -1
- package/dist/client/chart/antd/statistic.d.ts +2 -12
- package/dist/client/chart/chart.d.ts +6 -4
- package/dist/client/chart/configs.d.ts +33 -0
- package/dist/client/chart/g2plot/bar.d.ts +2 -12
- package/dist/client/chart/g2plot/configs.d.ts +0 -33
- package/dist/client/chart/g2plot/dualAxes.d.ts +2 -12
- package/dist/client/chart/g2plot/g2plot.d.ts +2 -10
- package/dist/client/chart/g2plot/index.d.ts +1 -4
- package/dist/client/chart/g2plot/pie.d.ts +2 -11
- package/dist/client/index.d.ts +4 -1
- package/dist/client/index.js +28 -28
- package/dist/externalVersion.js +8 -8
- package/dist/node_modules/koa-compose/package.json +1 -1
- package/dist/server/actions/query.js +3 -6
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.14.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.14.0-alpha.8",
|
|
3
3
|
"react": "18.2.0",
|
|
4
4
|
"@formily/react": "2.2.27",
|
|
5
5
|
"@formily/shared": "2.2.27",
|
|
6
|
-
"@nocobase/cache": "0.14.0-alpha.
|
|
7
|
-
"@nocobase/server": "0.14.0-alpha.
|
|
6
|
+
"@nocobase/cache": "0.14.0-alpha.8",
|
|
7
|
+
"@nocobase/server": "0.14.0-alpha.8",
|
|
8
8
|
"@ant-design/icons": "5.1.4",
|
|
9
9
|
"dayjs": "1.11.9",
|
|
10
|
-
"@formily/antd-v5": "1.1.
|
|
10
|
+
"@formily/antd-v5": "1.1.7",
|
|
11
11
|
"@formily/core": "2.2.27",
|
|
12
12
|
"antd": "5.8.6",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
+
"@emotion/css": "11.11.2",
|
|
14
15
|
"react-i18next": "11.18.6",
|
|
15
16
|
"ahooks": "3.7.8",
|
|
16
|
-
"@
|
|
17
|
-
"@nocobase/
|
|
18
|
-
"@nocobase/
|
|
19
|
-
"@nocobase/utils": "0.14.0-alpha.7"
|
|
17
|
+
"@nocobase/actions": "0.14.0-alpha.8",
|
|
18
|
+
"@nocobase/database": "0.14.0-alpha.8",
|
|
19
|
+
"@nocobase/utils": "0.14.0-alpha.8"
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
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":"2023-
|
|
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":"2023-11-01T02:12:00.125Z"}
|
|
@@ -133,7 +133,8 @@ const parseBuilder = async (ctx, next) => {
|
|
|
133
133
|
include,
|
|
134
134
|
group,
|
|
135
135
|
order,
|
|
136
|
-
limit: limit
|
|
136
|
+
limit: limit || 2e3,
|
|
137
|
+
subQuery: false,
|
|
137
138
|
raw: true
|
|
138
139
|
},
|
|
139
140
|
fieldMap
|
|
@@ -272,9 +273,7 @@ const cacheMiddleware = async (ctx, next) => {
|
|
|
272
273
|
}
|
|
273
274
|
await next();
|
|
274
275
|
if (useCache) {
|
|
275
|
-
console.log(uid, ctx.body);
|
|
276
276
|
await cache.set(uid, ctx.body, (cacheConfig == null ? void 0 : cacheConfig.ttl) || 30);
|
|
277
|
-
console.log(cache.get(uid));
|
|
278
277
|
}
|
|
279
278
|
};
|
|
280
279
|
const checkPermission = (ctx, next) => {
|
|
@@ -296,13 +295,11 @@ const query = async (ctx, next) => {
|
|
|
296
295
|
parseBuilder,
|
|
297
296
|
queryData,
|
|
298
297
|
postProcess
|
|
299
|
-
])(ctx,
|
|
300
|
-
});
|
|
298
|
+
])(ctx, next);
|
|
301
299
|
} catch (err) {
|
|
302
300
|
ctx.app.logger.error("charts query: ", err);
|
|
303
301
|
ctx.throw(500, err);
|
|
304
302
|
}
|
|
305
|
-
await next();
|
|
306
303
|
};
|
|
307
304
|
// Annotate the CommonJS export names for ESM import in node:
|
|
308
305
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-visualization",
|
|
3
|
-
"version": "0.14.0-alpha.
|
|
3
|
+
"version": "0.14.0-alpha.8",
|
|
4
4
|
"displayName": "Data Visualization",
|
|
5
5
|
"displayName.zh-CN": "数据可视化",
|
|
6
6
|
"description": "Provides business intelligence and data visualization features",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@nocobase/test": "0.x",
|
|
34
34
|
"@nocobase/utils": "0.x"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "59c82fef6e34707802b5841f5ec4d9b3b6b68abb"
|
|
37
37
|
}
|