@tachybase/plugin-block-map 1.5.1 → 1.6.1
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/externalVersion.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "1.
|
|
4
|
-
"@tego/server": "1.
|
|
5
|
-
"@tachybase/schema": "1.
|
|
3
|
+
"@tachybase/client": "1.6.1",
|
|
4
|
+
"@tego/server": "1.6.0-alpha.9",
|
|
5
|
+
"@tachybase/schema": "1.6.0-alpha.9",
|
|
6
6
|
"lodash": "4.17.21",
|
|
7
|
-
"@ant-design/icons": "
|
|
8
|
-
"@tego/client": "1.
|
|
7
|
+
"@ant-design/icons": "6.1.0",
|
|
8
|
+
"@tego/client": "1.6.0-alpha.9",
|
|
9
9
|
"ahooks": "3.9.0",
|
|
10
10
|
"antd": "5.22.5",
|
|
11
11
|
"react-router-dom": "6.28.1"
|
|
@@ -33,7 +33,7 @@ const getConfiguration = async (ctx, next) => {
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
const body = record ? record.toJSON() : {};
|
|
36
|
-
ctx.body = isRaw === true || isRaw === "true" ? body : ctx.
|
|
36
|
+
ctx.body = isRaw === true || isRaw === "true" ? body : ctx.tego.environment.renderJsonTemplate(body);
|
|
37
37
|
return next();
|
|
38
38
|
};
|
|
39
39
|
const setConfiguration = async (ctx, next) => {
|
package/dist/server/plugin.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
var plugin_exports = {};
|
|
29
19
|
__export(plugin_exports, {
|
|
@@ -31,7 +21,6 @@ __export(plugin_exports, {
|
|
|
31
21
|
default: () => plugin_default
|
|
32
22
|
});
|
|
33
23
|
module.exports = __toCommonJS(plugin_exports);
|
|
34
|
-
var import_node_path = __toESM(require("node:path"));
|
|
35
24
|
var import_server = require("@tego/server");
|
|
36
25
|
var import_actions = require("./actions");
|
|
37
26
|
var import_fields = require("./fields");
|
|
@@ -55,8 +44,7 @@ class MapPlugin extends import_server.Plugin {
|
|
|
55
44
|
});
|
|
56
45
|
}
|
|
57
46
|
async load() {
|
|
58
|
-
|
|
59
|
-
this.app.resource({
|
|
47
|
+
this.app.resourcer.define({
|
|
60
48
|
name: "map-configuration",
|
|
61
49
|
actions: {
|
|
62
50
|
get: import_actions.getConfiguration,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-block-map",
|
|
3
3
|
"displayName": "Block: Map",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"description": "Map block, support Gaode map and Google map, you can also extend more map types.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Blocks"
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
14
14
|
"@amap/amap-jsapi-types": "^0.0.10",
|
|
15
|
-
"@ant-design/icons": "^
|
|
15
|
+
"@ant-design/icons": "^6.1.0",
|
|
16
16
|
"@googlemaps/js-api-loader": "^1.16.8",
|
|
17
|
-
"@tachybase/schema": "1.
|
|
18
|
-
"@tachybase/test": "1.
|
|
19
|
-
"@tego/client": "1.
|
|
20
|
-
"@tego/server": "1.
|
|
17
|
+
"@tachybase/schema": "1.6.0-alpha.9",
|
|
18
|
+
"@tachybase/test": "1.6.0-alpha.9",
|
|
19
|
+
"@tego/client": "1.6.0-alpha.9",
|
|
20
|
+
"@tego/server": "1.6.0-alpha.9",
|
|
21
21
|
"@types/google.maps": "^3.58.1",
|
|
22
22
|
"@types/react": "18.3.23",
|
|
23
23
|
"@types/react-dom": "18.3.7",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-dom": "18.3.1",
|
|
29
29
|
"react-i18next": "16.2.1",
|
|
30
30
|
"react-router-dom": "6.28.1",
|
|
31
|
-
"@tachybase/client": "1.
|
|
31
|
+
"@tachybase/client": "1.6.1"
|
|
32
32
|
},
|
|
33
33
|
"description.zh-CN": "地图卡片,支持高德地图和 Google 地图,你也可以扩展更多地图类型。",
|
|
34
34
|
"displayName.zh-CN": "卡片:地图",
|