@nocobase/plugin-map 0.11.1-alpha.2 → 0.11.1-alpha.4
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/lib/locale/fr-FR.d.ts +2 -0
- package/lib/locale/fr-FR.js +9 -0
- package/package.json +8 -8
- package/src/locale/fr-FR.ts +3 -0
- package/src/server/__tests__/fields.test.ts +15 -32
- /package/lib/{client/locale → locale}/en-US.d.ts +0 -0
- /package/lib/{client/locale → locale}/en-US.js +0 -0
- /package/lib/{client/locale → locale}/pt-BR.d.ts +0 -0
- /package/lib/{client/locale → locale}/pt-BR.js +0 -0
- /package/lib/{client/locale → locale}/zh-CN.d.ts +0 -0
- /package/lib/{client/locale → locale}/zh-CN.js +0 -0
- /package/src/{client/locale → locale}/en-US.ts +0 -0
- /package/src/{client/locale → locale}/pt-BR.ts +0 -0
- /package/src/{client/locale → locale}/zh-CN.ts +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/plugin-map",
|
|
3
3
|
"displayName": "Map",
|
|
4
4
|
"displayName.zh-CN": "地图",
|
|
5
|
-
"version": "0.11.1-alpha.
|
|
5
|
+
"version": "0.11.1-alpha.4",
|
|
6
6
|
"description": "Provide map fields and blocks",
|
|
7
7
|
"description.zh-CN": "提供地图字段和区块",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@formily/core": "2.2.26",
|
|
32
32
|
"@formily/react": "2.2.26",
|
|
33
33
|
"@formily/shared": "2.2.26",
|
|
34
|
-
"@nocobase/actions": "0.11.1-alpha.
|
|
35
|
-
"@nocobase/client": "0.11.1-alpha.
|
|
36
|
-
"@nocobase/database": "0.11.1-alpha.
|
|
37
|
-
"@nocobase/server": "0.11.1-alpha.
|
|
38
|
-
"@nocobase/test": "0.11.1-alpha.
|
|
39
|
-
"@nocobase/utils": "0.11.1-alpha.
|
|
34
|
+
"@nocobase/actions": "0.11.1-alpha.4",
|
|
35
|
+
"@nocobase/client": "0.11.1-alpha.4",
|
|
36
|
+
"@nocobase/database": "0.11.1-alpha.4",
|
|
37
|
+
"@nocobase/server": "0.11.1-alpha.4",
|
|
38
|
+
"@nocobase/test": "0.11.1-alpha.4",
|
|
39
|
+
"@nocobase/utils": "0.11.1-alpha.4",
|
|
40
40
|
"@types/react": "^17.0.0",
|
|
41
41
|
"@types/react-dom": "^17.0.0",
|
|
42
42
|
"antd": "^5.6.4",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react-i18next": "^11.15.1",
|
|
46
46
|
"react-router-dom": "^6.11.2"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "d9b5bde913013f1057e1aab49587eb0ad3dcb06e"
|
|
49
49
|
}
|
|
@@ -121,30 +121,15 @@ describe('fields', () => {
|
|
|
121
121
|
polygon: null,
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
expect(await findOne()).
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
114.047323,
|
|
134
|
-
22.534158,
|
|
135
|
-
],
|
|
136
|
-
Array [
|
|
137
|
-
114.120966,
|
|
138
|
-
22.544146,
|
|
139
|
-
],
|
|
140
|
-
],
|
|
141
|
-
"point": Array [
|
|
142
|
-
1,
|
|
143
|
-
2,
|
|
144
|
-
],
|
|
145
|
-
"polygon": null,
|
|
146
|
-
}
|
|
147
|
-
`);
|
|
124
|
+
expect(await findOne()).toMatchObject({
|
|
125
|
+
circle: [114.058996, 22.549695, 4171],
|
|
126
|
+
lineString: [
|
|
127
|
+
[114.047323, 22.534158],
|
|
128
|
+
[114.120966, 22.544146],
|
|
129
|
+
],
|
|
130
|
+
point: [1, 2],
|
|
131
|
+
polygon: null,
|
|
132
|
+
});
|
|
148
133
|
});
|
|
149
134
|
|
|
150
135
|
it('empty', async () => {
|
|
@@ -162,13 +147,11 @@ describe('fields', () => {
|
|
|
162
147
|
except: ['createdAt', 'updatedAt', 'id'],
|
|
163
148
|
});
|
|
164
149
|
|
|
165
|
-
expect(await findOne()).
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
`);
|
|
150
|
+
expect(await findOne()).toMatchObject({
|
|
151
|
+
circle: null,
|
|
152
|
+
lineString: null,
|
|
153
|
+
point: null,
|
|
154
|
+
polygon: null,
|
|
155
|
+
});
|
|
173
156
|
});
|
|
174
157
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|