Skip to content

Commit 950b7d1

Browse files
author
潘卓然ParnDeedlit
committed
【SDK】【服务】【使用promise-polyfill替换原来的commonjs的方式】
1 parent e7da018 commit 950b7d1

19 files changed

+389
-320
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapgis/webclient",
3-
"version": "10.5.5",
3+
"version": "10.5.6",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/mapboxgl/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@mapgis/webclient-es6-mapboxgl",
3-
"version": "10.5.5-2",
3+
"version": "10.5.7",
44
"description": "",
55
"main": "dist-libs/webclient-mapboxgl-plugin.min.js",
6-
"module": "index.js",
6+
"module1": "index.js",
77
"scripts": {
88
"build": "npm run build-debug && npm run build-release",
99
"build-debug": "webpack --config webpack/mapbox-es6-debug-config.js",
@@ -19,7 +19,7 @@
1919
"license": "Apache-2.0",
2020
"dependencies": {
2121
"@mapgis/mapbox-gl": "^1.9.9",
22-
"@mapgis/webclient-es6-service": "10.5.5-3",
22+
"@mapgis/webclient-es6-service": "^10.5.7",
2323
"core-js": "3.15.0",
2424
"echarts": "^4.8.0",
2525
"mapv": "^2.0.56"

src/service/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ MapGIS Client for JavaScript - Service:是增强的MapGIS Web开发平台,
1212

1313
[在线文档](http://develop.smaryun.com/docs/mapboxgl/index.html)
1414

15+
## 环境
16+
> 由于core-js2和core-js3的在vue-cli4的不同的前置依赖导致了在vue2的环境下core-js不能把对应的依赖版本加入到package.json中,但是实际上package.json中引用的是core-js3的版本,一旦显示的描述会导致所有引用webclient-vue-ui的库的库都会强行自动升级core-js3,导致整个环境冲突问题。这个问题只能通过升级vue3来解决。
1517
## 目录
1618
针对MapGIS提供的IGServer/IGServer-X/IGServer-S/DataStore/ArcGIS等多种服务进行封装
1719
``` js

src/service/baseserver/FetchRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import "./PromisePolyfill";
1+
import 'promise-polyfill/dist/polyfill';
22
import 'fetch-ie8';
33

44
var fetch = window.fetch;

src/service/baseserver/PromisePolyfill.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/service/baseserver/promise-polyfill.js

Lines changed: 0 additions & 233 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/app"]
3+
};
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"name": "@mapgis/webclient-vue-mapboxgl",
3+
"version": "10.5.8",
4+
"description": "中地数码webclient-vue-mapboxgl",
5+
"main": "dist-libs/webclient-vue-mapboxgl.umd.min.js",
6+
"module1": "src/main.js",
7+
"scripts": {
8+
"build": "node --max_old_space_size=8196 ./node_modules/@vue/cli-service/bin/vue-cli-service build --target lib --name webclient-vue-mapboxgl src/main.js",
9+
"serve": "vue-cli-service build --target lib --name webclient-vue-mapboxgl src/index.js --watch",
10+
"lint": "vue-cli-service lint",
11+
"docs:serve": "vuepress dev docs",
12+
"docs:build": "vuepress build docs"
13+
},
14+
"husky": {
15+
"hooks": {
16+
"pre-commit": "lint-staged"
17+
}
18+
},
19+
"lint-staged": {
20+
"*.{js,json,css,md}": [
21+
"prettier --write",
22+
"git add"
23+
]
24+
},
25+
"dependencies": {
26+
"@mapbox/mapbox-gl-draw": "^1.3.0",
27+
"@mapbox/mapbox-gl-draw-static-mode": "^1.0.1",
28+
"@mapgis/mapbox-gl": "^1.9.12",
29+
"@mapgis/mapbox-gl-compare": "^0.4.0",
30+
"@mapgis/mapbox-gl-draw-circle": "^10.5.5",
31+
"@mapgis/mapbox-gl-draw-radius": "^1.0.0",
32+
"@mapgis/mapbox-gl-inspect": "^10.5.6",
33+
"@mapgis/webclient-es6-service": "^10.5.8",
34+
"@mapgis/webclient-store": "^10.5.5",
35+
"@mapgis/webclient-vue-ui": "^10.5.8",
36+
"@turf/turf": "^6.5.0",
37+
"echarts": "^5.3.0",
38+
"file-saver": "^2.0.5",
39+
"html2canvas": "^1.4.1",
40+
"map-promisified": "^0.4.0",
41+
"mapbox-gl-draw-circle": "^1.1.2",
42+
"mapbox-gl-draw-rectangle-mode": "^1.0.4",
43+
"mapv": "^2.0.62",
44+
"moment": "^2.29.1",
45+
"node-sql-parser": "^4.1.1",
46+
"postcss-inline-svg": "4.1.0",
47+
"resize-detector": "^0.3.0",
48+
"v-contextmenu": "^2.9.0",
49+
"v-jsoneditor": "^1.4.5",
50+
"vcolorpicker": "^1.1.0",
51+
"vue-runtime-helpers": "^1.1.2",
52+
"vuepress": "^1.9.7"
53+
},
54+
"devDependencies": {
55+
"@vue/cli-plugin-babel": "^3.2.0",
56+
"@vue/cli-plugin-eslint": "^3.2.1",
57+
"@vue/cli-service": "^3.2.0",
58+
"@vue/eslint-config-prettier": "^4.0.1",
59+
"babel-eslint": "^10.0.1",
60+
"eslint": "^5.10.0",
61+
"eslint-loader": "2.1.1",
62+
"eslint-plugin-prettier": "^3.1.2",
63+
"eslint-plugin-vue": "^6.1.2",
64+
"husky": "^1.2.0",
65+
"less": "3.12.2",
66+
"less-loader": "7.0.2",
67+
"lint-staged": "^8.1.0",
68+
"node-sass": "^4.14.1",
69+
"sass-loader": "10.1.1",
70+
"vue": "^2.6.6",
71+
"vue-cli-plugin-webpack-bundle-analyzer": "^4.0.0",
72+
"vue-template-compiler": "^2.6.6",
73+
"webpack-bundle-analyzer": "^4.4.2"
74+
},
75+
"keywords": [
76+
"vue",
77+
"mapbox"
78+
],
79+
"author": "Wuhan Zondy Cyber Science&Technology Co.Ltd.",
80+
"license": "Apache2"
81+
}

0 commit comments

Comments
 (0)