Skip to content

Commit 8bbf854

Browse files
committed
client build
2 parents 186289f + c43b66d commit 8bbf854

File tree

14 files changed

+669
-10
lines changed

14 files changed

+669
-10
lines changed
Submodule MapStore2 updated 137 files
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright 2025, GeoSolutions Sas.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
export const RULE_EXPIRED = 'GEONODE_SECURITY:RULE_EXPIRED';
10+
11+
export function ruleExpired() {
12+
return {
13+
type: RULE_EXPIRED
14+
};
15+
}

geonode_mapstore_client/client/js/api/geonode/security/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import axios from '@mapstore/framework/libs/ajax';
1010
import WKT from 'ol/format/WKT';
1111
import GeoJSON from 'ol/format/GeoJSON';
1212
import uuid from 'uuid';
13+
import { getEndpointUrl, RULES } from '../v2/constants';
1314

1415
const wktFormat = new WKT();
1516
const geoJSONFormat = new GeoJSON();
@@ -78,3 +79,8 @@ export const deleteGeoLimits = (resourceId, id, type = 'user') => {
7879
return axios.delete(`/security/geolimits/${resourceId}?${type}_id=${id}`)
7980
.then(({ data }) => data);
8081
};
82+
83+
export const getRequestRules = () => {
84+
return axios.get(getEndpointUrl(RULES))
85+
.then(({ data }) => data);
86+
};

geonode_mapstore_client/client/js/api/geonode/v2/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ let endpoints = {
3535
'facets': '/api/v2/facets',
3636
'uploads': '/api/v2/uploads',
3737
'metadata': '/api/v2/metadata',
38-
'assets': '/api/v2/assets'
38+
'assets': '/api/v2/assets',
39+
'rules': '/api/v2/reqrules'
3940
};
4041

4142
export const RESOURCES = 'resources';
@@ -51,6 +52,7 @@ export const FACETS = 'facets';
5152
export const UPLOADS = 'uploads';
5253
export const METADATA = 'metadata';
5354
export const ASSETS = 'assets';
55+
export const RULES = 'rules';
5456

5557
export const setEndpoints = (data) => {
5658
endpoints = { ...endpoints, ...data };

geonode_mapstore_client/client/js/apps/gn-catalogue.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import {
7272

7373
import timelineEpics from '@mapstore/framework/epics/timeline';
7474
import gnresourceEpics from '@js/epics/gnresource';
75+
import securityEpics from '@js/epics/security';
7576
import resourceServiceEpics from '@js/epics/resourceservice';
7677
import maplayout from '@mapstore/framework/reducers/maplayout';
7778

@@ -149,7 +150,8 @@ getEndpoints()
149150
...resourceServiceEpics,
150151
updateMapLayoutEpic,
151152
// needed to initialize the correct time range
152-
...timelineEpics
153+
...timelineEpics,
154+
...securityEpics
153155
});
154156

155157
storeEpicsNamesToExclude(appEpics);

geonode_mapstore_client/client/js/apps/gn-components.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { updateGeoNodeSettings } from '@js/actions/gnsettings';
3030
import { COMPONENTS_ROUTES, appRouteComponentTypes } from '@js/utils/AppRoutesUtils';
3131
import gnresourceEpics from '@js/epics/gnresource';
3232
import resourceServiceEpics from '@js/epics/resourceservice';
33+
import securityEpics from '@js/epics/security';
3334

3435
import gnresource from '@js/reducers/gnresource';
3536
import resourceservice from '@js/reducers/resourceservice';
@@ -73,7 +74,8 @@ document.addEventListener('DOMContentLoaded', function() {
7374
const appEpics = cleanEpics({
7475
...configEpics,
7576
...gnresourceEpics,
76-
...resourceServiceEpics
77+
...resourceServiceEpics,
78+
...securityEpics
7779
});
7880

7981
storeEpicsNamesToExclude(appEpics);

geonode_mapstore_client/client/js/apps/gn-dashboard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import ReactSwipe from 'react-swipeable-views';
3737
import SwipeHeader from '@mapstore/framework/components/data/identify/SwipeHeader';
3838
import { requestResourceConfig } from '@js/actions/gnresource';
3939
import gnresourceEpics from '@js/epics/gnresource';
40+
import securityEpics from '@js/epics/security';
4041
const requires = {
4142
ReactSwipe,
4243
SwipeHeader
@@ -81,7 +82,8 @@ document.addEventListener('DOMContentLoaded', function() {
8182

8283
const appEpics = cleanEpics({
8384
...configEpics,
84-
...gnresourceEpics
85+
...gnresourceEpics,
86+
...securityEpics
8587
});
8688

8789
storeEpicsNamesToExclude(appEpics);

geonode_mapstore_client/client/js/apps/gn-document.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import ReactSwipe from 'react-swipeable-views';
3333
import SwipeHeader from '@mapstore/framework/components/data/identify/SwipeHeader';
3434
import { requestResourceConfig } from '@js/actions/gnresource';
3535
import gnresourceEpics from '@js/epics/gnresource';
36+
import securityEpics from '@js/epics/security';
3637
const requires = {
3738
ReactSwipe,
3839
SwipeHeader
@@ -76,7 +77,8 @@ document.addEventListener('DOMContentLoaded', function() {
7677

7778
const appEpics = cleanEpics({
7879
...configEpics,
79-
...gnresourceEpics
80+
...gnresourceEpics,
81+
...securityEpics
8082
});
8183

8284
storeEpicsNamesToExclude(appEpics);

geonode_mapstore_client/client/js/apps/gn-geostory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
import { updateGeoNodeSettings } from '@js/actions/gnsettings';
2727
import { requestResourceConfig } from '@js/actions/gnresource';
2828
import gnresourceEpics from '@js/epics/gnresource';
29+
import securityEpics from '@js/epics/security';
2930
import {
3031
setupConfiguration,
3132
initializeApp,
@@ -84,7 +85,8 @@ document.addEventListener('DOMContentLoaded', function() {
8485

8586
const appEpics = cleanEpics({
8687
...configEpics,
87-
...gnresourceEpics
88+
...gnresourceEpics,
89+
...securityEpics
8890
});
8991

9092
storeEpicsNamesToExclude(appEpics);

geonode_mapstore_client/client/js/apps/gn-map.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {
6464

6565
import timelineEpics from '@mapstore/framework/epics/timeline';
6666
import gnresourceEpics from '@js/epics/gnresource';
67+
import securityEpics from '@js/epics/security';
6768
import maplayout from '@mapstore/framework/reducers/maplayout';
6869
import 'react-widgets/dist/css/react-widgets.css';
6970
import 'react-select/dist/react-select.css';
@@ -130,7 +131,8 @@ document.addEventListener('DOMContentLoaded', function() {
130131
...gnresourceEpics,
131132
...pluginsDefinition.epics,
132133
// needed to initialize the correct time range
133-
...timelineEpics
134+
...timelineEpics,
135+
...securityEpics
134136
});
135137

136138
storeEpicsNamesToExclude(appEpics);

0 commit comments

Comments
 (0)