Skip to content

Commit 4c9f463

Browse files
author
Alessio Fabiani
authored
Merge pull request #56 from GeoNode/2.0.4
- Bump to version 2.0.4
2 parents c71cc9f + 01b8dab commit 4c9f463

File tree

77 files changed

+36175
-9717
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+36175
-9717
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Change Log
22

3+
## 2.0.3 [2020-04-20]
4+
5+
### Main features
6+
7+
- Install `pip install django-mapstore-adapter>=2.0.2` instructions [Here](https://pypi.org/project/django-mapstore-adapter/)
8+
- Install `pip install django-geonode-mapstore-client==2.0.4` instructions [Here](https://pypi.org/project/django-geonode-mapstore-client/2.0.4/)
9+
- Based on [GeoNode MapStore Adapter v2.0.3](https://github.com/GeoNode/django-mapstore-adapter/releases/tag/2.0.3)
10+
- Based on [MapStore2 - v2020.02.00](https://github.com/geosolutions-it/MapStore2/releases/tag/v2020.02.00)
11+
12+
[GeoNode MapStore Client](https://github.com/GeoNode/geonode-mapstore-client/issues?q=is%3Aissue+is%3Aclosed+milestone%3A2.0.4) the list of issues solved.
13+
14+
[MapStore2](https://github.com/geosolutions-it/MapStore2/milestone/23?closed=1) the list of MapStore2 issues solved.
15+
16+
[Full Changelog](https://github.com/GeoNode/geonode-mapstore-client/compare/2.0.3...2.0.4)
17+
18+
<li> 2020-04-17: Lorenzo Natali <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/84674d5f533268f8ff99e866df12a1e54a1301d1" target="blank"> fixed style of dialogs</a></li>
19+
<li> 2020-04-17: Lorenzo Natali <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/f579244ee8b849074a73caec08aa78375c66cc3d" target="blank"> updated to latest master</a></li>
20+
<li> 2020-04-17: Lorenzo Natali <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/9bd2608df6428f0ec9228a761cb71edfa66ac8ef" target="blank"> Updated Configurations for new plugins</a></li>
21+
<li> 2020-04-17: Lorenzo Natali <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/78b2370ecd67b0f86136787dece3b9c975d3a838" target="blank"> Updated plugins</a></li>
22+
<li> 2020-04-17: afabiani <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/53586daaf93ccddc93054bd147e4c4aaa0865fa6" target="blank"> Update MapStore2 to v. 2020.01.02</a></li>
23+
<li> 2020-04-02: afabiani <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/c71cc9fe0790af2d20a0291eed47252b7a9af8bf" target="blank"> - Bump to version 2.0.3</a></li>
24+
<li> 2020-04-02: afabiani <a href="http://github.com/GeoNode/geonode-mapstore-client/commit/ee05425320590750ab15c3dde55cebdf2afbf139" target="blank"> - Bump to version 2.0.3</a></li>
25+
326
## 2.0.3 [2020-04-02]
427

528
### Main features

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ if 'geonode_mapstore_client' not in INSTALLED_APPS:
5252
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY = 'mapstore' # DEPRECATED use HOOKSET instead
5353
GEONODE_CLIENT_HOOKSET = "geonode_mapstore_client.hooksets.MapStoreHookSet"
5454
55-
MAPSTORE_DEBUG = False
56-
5755
def get_geonode_catalogue_service():
5856
if PYCSW:
5957
pycsw_config = PYCSW["CONFIGURATION"]

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.3
1+
2.0.4

geonode_mapstore_client/client/.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
/**
173173
* JSX style
174174
*/
175+
"react/jsx-no-duplicate-props": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
175176
"react/display-name": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
176177
"react/jsx-boolean-value": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
177178
"react/jsx-quotes": [2, "double"], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-quotes.md
Submodule MapStore2 updated 917 files

geonode_mapstore_client/client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
"widgetsConfig": {}
217217
}
218218
,
219-
proxy: "http://localhost:8081/proxy/?url=",
219+
proxy: "{{ PROXY_URL }}",
220220
printingEnabled: true,
221221
localConfig: {
222222
translations: '',

geonode_mapstore_client/client/js/plugins.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const epics = require("./epics");
1010

1111
module.exports = {
1212
plugins: {
13+
AddGroupPlugin: require('../MapStore2/web/client/plugins/AddGroup').default,
1314
IdentifyPlugin: require('../MapStore2/web/client/plugins/Identify'),
1415
TOCPlugin: require('../MapStore2/web/client/plugins/TOC'),
1516
MapPlugin: require('../MapStore2/web/client/plugins/Map'),
@@ -30,12 +31,13 @@ module.exports = {
3031
MapFooterPlugin: require('../MapStore2/web/client/plugins/MapFooter'),
3132
PrintPlugin: require('../MapStore2/web/client/plugins/Print'),
3233
MeasurePlugin: require('../MapStore2/web/client/plugins/Measure'),
33-
TOCItemsSettingsPlugin: require('../MapStore2/web/client/plugins/TOCItemsSettings'),
34-
WidgetsPlugin: require('../MapStore2/web/client/plugins/Widgets'),
35-
WidgetsBuilderPlugin: require('../MapStore2/web/client/plugins/WidgetsBuilder'),
36-
WidgetsTrayPlugin: require('../MapStore2/web/client/plugins/WidgetsTray'),
34+
FilterLayerPlugin: require('../MapStore2/web/client/plugins/FilterLayer').default,
35+
TOCItemsSettingsPlugin: require('../MapStore2/web/client/plugins/TOCItemsSettings').default,
36+
WidgetsPlugin: require('../MapStore2/web/client/plugins/Widgets').default,
37+
WidgetsBuilderPlugin: require('../MapStore2/web/client/plugins/WidgetsBuilder').default,
38+
WidgetsTrayPlugin: require('../MapStore2/web/client/plugins/WidgetsTray').default,
3739
NotificationsPlugin: require('../MapStore2/web/client/plugins/Notifications'),
38-
FeatureEditorPlugin: require('../MapStore2/web/client/plugins/FeatureEditor'),
40+
FeatureEditorPlugin: require('../MapStore2/web/client/plugins/FeatureEditor').default,
3941
QueryPanelPlugin: require('../MapStore2/web/client/plugins/QueryPanel'),
4042
SavePlugin: require('../MapStore2/web/client/plugins/Save').default,
4143
SaveAsPlugin: require('../MapStore2/web/client/plugins/SaveAs').default,

geonode_mapstore_client/client/package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ms2-geonode-api",
3-
"version": "2.0.2",
3+
"version": "2.0.4",
44
"description": "MapStore 2 Api bundle specific to geonode framework",
55
"main": "api.js",
66
"scripts": {
@@ -16,11 +16,11 @@
1616
"author": "GeoSolutions",
1717
"license": "BSD-2-Clause",
1818
"devDependencies": {
19-
"@babel/core": "7.5.5",
20-
"@babel/plugin-proposal-class-properties": "7.5.5",
21-
"@babel/plugin-syntax-dynamic-import": "7.2.0",
22-
"@babel/preset-env": "7.5.5",
23-
"@babel/preset-react": "7.0.0",
19+
"@babel/core": "7.8.7",
20+
"@babel/plugin-proposal-class-properties": "7.8.3",
21+
"@babel/plugin-syntax-dynamic-import": "7.8.3",
22+
"@babel/preset-env": "7.8.7",
23+
"@babel/preset-react": "7.8.3",
2424
"@geosolutions/acorn-jsx": "4.0.2",
2525
"@geosolutions/jsdoc": "3.4.4",
2626
"@geosolutions/mocha": "6.2.1-3",
@@ -84,13 +84,11 @@
8484
"style-loader": "0.12.4",
8585
"url-loader": "0.5.7",
8686
"vusion-webfonts-generator": "0.4.1",
87-
"webpack": "4.36.0",
87+
"webpack": "4.41.5",
8888
"webpack-bundle-size-analyzer": "2.0.2",
8989
"webpack-cli": "3.3.6",
90-
"webpack-dev-server": "3.7.2",
91-
"webpack-parallel-uglify-plugin": "1.1.2"
90+
"webpack-dev-server": "^3.10.3"
9291
},
93-
"//": "replace react-sortable-items with official on npm when it will support React 15",
9492
"dependencies": {
9593
"@boundlessgeo/jsonix": "2.4.3",
9694
"@carnesen/redux-add-action-listener-enhancer": "0.0.1",
@@ -149,6 +147,7 @@
149147
"istanbul-instrumenter-loader": "3.0.1",
150148
"json-2-csv": "2.1.2",
151149
"json-loader": "0.5.7",
150+
"jsonlint-mod": "1.7.5",
152151
"jszip": "3.1.5",
153152
"keymirror": "0.1.1",
154153
"leaflet": "1.3.1",
@@ -171,11 +170,12 @@
171170
"pdfviewer": "0.3.2",
172171
"prop-types": "15.7.2",
173172
"qrcode.react": "0.9.3",
173+
"query-string": "6.9.0",
174174
"react": "16.10.1",
175175
"react-addons-css-transition-group": "15.6.2",
176176
"react-addons-shallow-compare": "15.6.2",
177177
"react-bootstrap": "0.31.0",
178-
"react-checkbox-tree": "1.5.1",
178+
"react-checkbox-tree": "^1.5.1",
179179
"react-codemirror2": "4.0.0",
180180
"react-color": "2.17.0",
181181
"react-confirm-button": "0.0.2",
@@ -210,12 +210,13 @@
210210
"react-router": "4.1.1",
211211
"react-router-dom": "4.2.2",
212212
"react-scroll-up": "1.3.0",
213-
"react-select": "1.0.0-rc.4",
213+
"react-select": "1.3.0",
214214
"react-selectize": "3.0.1",
215215
"react-share": "1.15.1",
216216
"react-side-effect": "1.1.0",
217217
"react-sidebar": "2.3.2",
218218
"react-spinkit": "2.1.2",
219+
"react-swipeable": "5.5.1",
219220
"react-swipeable-views": "0.12.2",
220221
"react-textfit": "1.1.0",
221222
"react-twitter-widgets": "1.3.0",

geonode_mapstore_client/client/themes/default/less/geonode.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
z-index: 100000 !important;
1010
}
1111
.gfi-t {
12-
float: left;
12+
float: left;
1313
padding: 1px
1414
}
1515
.fill:not(:-webkit-full-screen){
@@ -71,3 +71,5 @@
7171
width: 98%;
7272
}
7373
}
74+
75+

geonode_mapstore_client/client/webpack.config.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const extractThemesPlugin = require('./MapStore2/build/themes.js').extractThemes
1010
const envJson = require('./env.json');
1111

1212
const DEV_SERVER_HOST = envJson.DEV_SERVER_HOST || 'ERROR:INSERT_DEV_SERVER_HOST_IN_ENV_JSON_CONFIG! eg: my-geonode-host.org';
13+
const protocol = envJson.DEV_SERVER_HOST_PROTOCOL || 'http';
1314

1415
module.exports = assign({}, require('./MapStore2/build/buildConfig')(
1516
{
@@ -24,24 +25,24 @@ module.exports = assign({}, require('./MapStore2/build/buildConfig')(
2425
},
2526
extractThemesPlugin,
2627
false,
27-
'/static/mapstore/dist/',
28+
`/static/mapstore/dist/`,
2829
'.msgapi'
2930
), {
3031
devServer: {
31-
https: true,
32+
https: protocol === 'https' ? true : false,
3233
headers: {
3334
'Access-Control-Allow-Origin': '*'
3435
},
3536
contentBase: [
3637
path.join(__dirname),
3738
path.join(__dirname, '..', 'static')
3839
],
39-
before: function(app) {
40+
before: function (app) {
4041
const hashRegex = /\.[a-zA-Z0-9]{1,}\.js/;
41-
app.use(function(req, res, next) {
42+
app.use(function (req, res, next) {
4243
// remove hash from requests to use the local js
4344
if (req.url.indexOf('/static/geonode/js/ms2/utils/') !== -1
44-
|| req.url.indexOf('/ms2-geonode-api') !== -1) {
45+
|| req.url.indexOf('/ms2-geonode-api') !== -1) {
4546
req.url = req.url.replace(hashRegex, '.js');
4647
req.path = req.path.replace(hashRegex, '.js');
4748
req.originalUrl = req.originalUrl.replace(hashRegex, '.js');
@@ -59,25 +60,25 @@ module.exports = assign({}, require('./MapStore2/build/buildConfig')(
5960
'!**/MapStore2/**',
6061
'!**/node_modules/**'
6162
],
62-
target: `https://${DEV_SERVER_HOST}`,
63+
target: `${protocol}://${DEV_SERVER_HOST}`,
6364
headers: {
6465
Host: DEV_SERVER_HOST,
65-
Referer: `https://${DEV_SERVER_HOST}/`
66+
Referer: `${protocol}://${DEV_SERVER_HOST}/`
6667
}
6768
},
6869
{
6970
context: [
70-
'/static/mapstore/MapStore2/web/client/translations/**',
71+
'/static/mapstore/MapStore2/web/client/**',
7172
'/static/geonode/js/ms2/utils/**'
7273
],
73-
target: 'https://localhost:8081',
74+
target: `${protocol}://localhost:8081`,
7475
secure: false,
7576
changeOrigin: true,
7677
pathRewrite: {
77-
'/static/mapstore/MapStore2/web/client/translations/': '/MapStore2/web/client/translations/',
78+
'/static/mapstore/MapStore2/web/client/': '/MapStore2/web/client/translations/',
7879
'/static/geonode/js/ms2/utils/': '/geonode/js/ms2/utils/'
7980
}
8081
}
8182
]
8283
}
83-
});
84+
});

0 commit comments

Comments
 (0)