Skip to content

Commit

Permalink
Added global extensions folder (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Apr 5, 2022
1 parent e53a028 commit 2edb781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"author": "GeoSolutions",
"license": "BSD-2-Clause",
"devDependencies": {
"@mapstore/project": "1.0.20",
"@mapstore/project": "1.0.21",
"dotenv": "10.0.0",
"jsdoc-to-markdown": "7.1.0"
},
Expand Down
1 change: 1 addition & 0 deletions geonode_mapstore_client/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def resource_urls(request):
'TRANSLATIONS_PATH': getattr(settings, "MAPSTORE_TRANSLATIONS_PATH", ['/static/mapstore/ms-translations', '/static/mapstore/gn-translations']),
'PROJECTION_DEFS': getattr(settings, "MAPSTORE_PROJECTION_DEFS", []),
'PLUGINS_CONFIG_PATCH_RULES': getattr(settings, "MAPSTORE_PLUGINS_CONFIG_PATCH_RULES", []),
'EXTENSIONS_FOLDER_PATH': getattr(settings, "MAPSTORE_EXTENSIONS_FOLDER_PATH", '/static/mapstore/extensions/'),
'TIME_ENABLED': getattr(
settings,
'UPLOADER',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
const projectionDefs = geoNodeSettings.PROJECTION_DEFS || [];
const pluginsConfigPatchRules = geoNodeSettings.PLUGINS_CONFIG_PATCH_RULES || [];
const translationsPath = geoNodeSettings.TRANSLATIONS_PATH;
const extensionsFolder = geoNodeSettings.EXTENSIONS_FOLDER_PATH;

const isEmbed = checkBoolean('{{ is_embed }}') || false;
const pluginsConfigKey = '{{ plugins_config_key }}';
Expand All @@ -76,6 +77,7 @@
url: '{{ PROXY_URL|default:"/proxy/?url=" }}',
useCORS: []
},
extensionsFolder: extensionsFolder,
printUrl: geoServerPublicLocation + 'pdf/info.json',
bingApiKey: '{% bing_api_key %}',
geoNodeApi: {
Expand Down

0 comments on commit 2edb781

Please sign in to comment.