Skip to content

Commit

Permalink
Update MapStore2 to v. 2020.01.02
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Apr 17, 2020
1 parent c71cc9f commit 53586da
Show file tree
Hide file tree
Showing 71 changed files with 29,456 additions and 3,164 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ if 'geonode_mapstore_client' not in INSTALLED_APPS:
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY = 'mapstore' # DEPRECATED use HOOKSET instead
GEONODE_CLIENT_HOOKSET = "geonode_mapstore_client.hooksets.MapStoreHookSet"
MAPSTORE_DEBUG = False
def get_geonode_catalogue_service():
if PYCSW:
pycsw_config = PYCSW["CONFIGURATION"]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.3
2.0.4
1 change: 1 addition & 0 deletions geonode_mapstore_client/client/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
/**
* JSX style
*/
"react/jsx-no-duplicate-props": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
"react/display-name": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
"react/jsx-boolean-value": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
"react/jsx-quotes": [2, "double"], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-quotes.md
Expand Down
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/MapStore2
Submodule MapStore2 updated 911 files
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"widgetsConfig": {}
}
,
proxy: "http://localhost:8081/proxy/?url=",
proxy: "{{ PROXY_URL }}",
printingEnabled: true,
localConfig: {
translations: '',
Expand Down
25 changes: 13 additions & 12 deletions geonode_mapstore_client/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ms2-geonode-api",
"version": "2.0.2",
"version": "2.0.4",
"description": "MapStore 2 Api bundle specific to geonode framework",
"main": "api.js",
"scripts": {
Expand All @@ -16,11 +16,11 @@
"author": "GeoSolutions",
"license": "BSD-2-Clause",
"devDependencies": {
"@babel/core": "7.5.5",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/preset-env": "7.5.5",
"@babel/preset-react": "7.0.0",
"@babel/core": "7.8.7",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.8.7",
"@babel/preset-react": "7.8.3",
"@geosolutions/acorn-jsx": "4.0.2",
"@geosolutions/jsdoc": "3.4.4",
"@geosolutions/mocha": "6.2.1-3",
Expand Down Expand Up @@ -84,13 +84,11 @@
"style-loader": "0.12.4",
"url-loader": "0.5.7",
"vusion-webfonts-generator": "0.4.1",
"webpack": "4.36.0",
"webpack": "4.41.5",
"webpack-bundle-size-analyzer": "2.0.2",
"webpack-cli": "3.3.6",
"webpack-dev-server": "3.7.2",
"webpack-parallel-uglify-plugin": "1.1.2"
"webpack-dev-server": "^3.10.3"
},
"//": "replace react-sortable-items with official on npm when it will support React 15",
"dependencies": {
"@boundlessgeo/jsonix": "2.4.3",
"@carnesen/redux-add-action-listener-enhancer": "0.0.1",
Expand Down Expand Up @@ -149,6 +147,7 @@
"istanbul-instrumenter-loader": "3.0.1",
"json-2-csv": "2.1.2",
"json-loader": "0.5.7",
"jsonlint-mod": "1.7.5",
"jszip": "3.1.5",
"keymirror": "0.1.1",
"leaflet": "1.3.1",
Expand All @@ -171,11 +170,12 @@
"pdfviewer": "0.3.2",
"prop-types": "15.7.2",
"qrcode.react": "0.9.3",
"query-string": "6.9.0",
"react": "16.10.1",
"react-addons-css-transition-group": "15.6.2",
"react-addons-shallow-compare": "15.6.2",
"react-bootstrap": "0.31.0",
"react-checkbox-tree": "1.5.1",
"react-checkbox-tree": "^1.5.1",
"react-codemirror2": "4.0.0",
"react-color": "2.17.0",
"react-confirm-button": "0.0.2",
Expand Down Expand Up @@ -210,12 +210,13 @@
"react-router": "4.1.1",
"react-router-dom": "4.2.2",
"react-scroll-up": "1.3.0",
"react-select": "1.0.0-rc.4",
"react-select": "1.3.0",
"react-selectize": "3.0.1",
"react-share": "1.15.1",
"react-side-effect": "1.1.0",
"react-sidebar": "2.3.2",
"react-spinkit": "2.1.2",
"react-swipeable": "5.5.1",
"react-swipeable-views": "0.12.2",
"react-textfit": "1.1.0",
"react-twitter-widgets": "1.3.0",
Expand Down
23 changes: 12 additions & 11 deletions geonode_mapstore_client/client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const extractThemesPlugin = require('./MapStore2/build/themes.js').extractThemes
const envJson = require('./env.json');

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

module.exports = assign({}, require('./MapStore2/build/buildConfig')(
{
Expand All @@ -24,24 +25,24 @@ module.exports = assign({}, require('./MapStore2/build/buildConfig')(
},
extractThemesPlugin,
false,
'/static/mapstore/dist/',
`/static/mapstore/dist/`,
'.msgapi'
), {
devServer: {
https: true,
https: protocol === 'https' ? true : false,
headers: {
'Access-Control-Allow-Origin': '*'
},
contentBase: [
path.join(__dirname),
path.join(__dirname, '..', 'static')
],
before: function(app) {
before: function (app) {
const hashRegex = /\.[a-zA-Z0-9]{1,}\.js/;
app.use(function(req, res, next) {
app.use(function (req, res, next) {
// remove hash from requests to use the local js
if (req.url.indexOf('/static/geonode/js/ms2/utils/') !== -1
|| req.url.indexOf('/ms2-geonode-api') !== -1) {
|| req.url.indexOf('/ms2-geonode-api') !== -1) {
req.url = req.url.replace(hashRegex, '.js');
req.path = req.path.replace(hashRegex, '.js');
req.originalUrl = req.originalUrl.replace(hashRegex, '.js');
Expand All @@ -59,25 +60,25 @@ module.exports = assign({}, require('./MapStore2/build/buildConfig')(
'!**/MapStore2/**',
'!**/node_modules/**'
],
target: `https://${DEV_SERVER_HOST}`,
target: `${protocol}://${DEV_SERVER_HOST}`,
headers: {
Host: DEV_SERVER_HOST,
Referer: `https://${DEV_SERVER_HOST}/`
Referer: `${protocol}://${DEV_SERVER_HOST}/`
}
},
{
context: [
'/static/mapstore/MapStore2/web/client/translations/**',
'/static/mapstore/MapStore2/web/client/**',
'/static/geonode/js/ms2/utils/**'
],
target: 'https://localhost:8081',
target: `${protocol}://localhost:8081`,
secure: false,
changeOrigin: true,
pathRewrite: {
'/static/mapstore/MapStore2/web/client/translations/': '/MapStore2/web/client/translations/',
'/static/mapstore/MapStore2/web/client/': '/MapStore2/web/client/translations/',
'/static/geonode/js/ms2/utils/': '/geonode/js/ms2/utils/'
}
}
]
}
});
});
Loading

0 comments on commit 53586da

Please sign in to comment.