Skip to content

Commit f5c6a9d

Browse files
authored
Merge pull request #2279 from terrestris/client-data-upload
Allow uploading multiple file formats to the client
2 parents bad3a36 + 8fba359 commit f5c6a9d

39 files changed

Lines changed: 3335 additions & 554 deletions

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ Several global settings for the client can be configured via the [`gis-client-co
4242
| plugin.name | The name of the plugin | undefined |
4343
| plugin.exposedPaths | The list of exposed paths | undefined |
4444
| plugin.resourcePath | The resource path | undefined |
45-
| geoserver.base | The base url of the GeoServer | '/geoserver' |
46-
| geoserver.upload.workspace | The workspace the uploads should be placed in | 'SHOGUN' |
47-
| geoserver.upload.limit | The upload size limit in bytes (note: this is the client evaluation only!) | 200000000 (= 200MB) |
48-
| geoserver.upload.authorizedRoles | The list of role names the upload should be allowed/visible to (note: this is the client evaluation only!) | ['admin'] |
4945
| featureEditRoles.authorizedRolesForCreate | The list of role names the feature editing tools including the create options should be allowed/visible to (note: this is the client evaluation only!). String and regular expressions are supported. | [] |
5046
| featureEditRoles.authorizedRolesForUpdate | The list of role names the feature editing tools including the update options should be allowed/visible to (note: this is the client evaluation only!). String and regular expressions are supported. | [] |
5147
| featureEditRoles.authorizedRolesForDelete | The list of role names the feature editing tools including the delete options should be allowed/visible to (note: this is the client evaluation only!). String and regular expressions are supported. | [] |

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
testEnvironment: './jest/CustomTestEnvironment.js',
2727
transformIgnorePatterns: [
2828
'<rootDir>/node_modules/(?!(ol|antd|keycloak-js|@babel|jest-runtime|(rc-*[a-z]*)|@ant-design|@terrestris|color-*[a-z]*|@camptocamp|d3-*[a-z]*|' +
29-
'query-string|decode-uri-component|strict-uri-encode|split-on-first|filter-obj|shpjs|geostyler|pbf|quickselect|lodash-es))'
29+
'query-string|decode-uri-component|strict-uri-encode|split-on-first|filter-obj|shpjs|geostyler|pbf|quickselect|lodash-es|quick-lru))'
3030
],
3131
moduleNameMapper: {
3232
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':

jest.setup.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import 'jest-canvas-mock';
33
import {
44
TextDecoder,
55
TextEncoder
6-
} from 'util';
6+
} from 'node:util';
7+
import {
8+
DecompressionStream
9+
} from 'node:stream/web';
710

811
Object.assign(global, {
912
TextDecoder,
10-
TextEncoder
13+
TextEncoder,
14+
DecompressionStream
1115
});
1216

1317
jest.mock('react-i18next', () => ({
@@ -20,4 +24,3 @@ jest.mock('react-i18next', () => ({
2024
init: jest.fn()
2125
}
2226
}));
23-

0 commit comments

Comments
 (0)