Skip to content

Commit

Permalink
Fix #1886 Impreovements to the new upload and replace UI (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Oct 17, 2024
1 parent a591c2c commit 3267519
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "geonode_mapstore_client/client/MapStore2"]
path = geonode_mapstore_client/client/MapStore2
url = https://github.com/geosolutions-it/MapStore2.git
branch = 2024.02.xx
branch = master
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/MapStore2
Submodule MapStore2 updated 296 files
4 changes: 2 additions & 2 deletions geonode_mapstore_client/client/js/api/geonode/v2/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let endpoints = {
'groups': '/api/v2/groups',
'executionrequest': '/api/v2/executionrequest',
'facets': '/api/v2/facets',
'upload': '/uploads/upload'
'uploads': '/api/v2/uploads'
};

export const RESOURCES = 'resources';
Expand All @@ -41,7 +41,7 @@ export const RESOURCE_TYPES = 'resource_types';
export const GROUPS = 'groups';
export const EXECUTION_REQUEST = 'executionrequest';
export const FACETS = 'facets';
export const UPLOADS_UPLOAD = 'upload';
export const UPLOADS = 'uploads';

export const setEndpoints = (data) => {
endpoints = { ...endpoints, ...data };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import Message from '@mapstore/framework/components/I18N/Message';
* "source": "upload",
* "api": {
* "upload": {
* "url": "{context.getEndpointUrl('upload')}",
* "url": "{context.getEndpointUrl('uploads', '/upload')}",
* "maxParallelUploads": 1,
* "enableRemoteUploads": false,
* "supportedFiles": "{context.getSupportedFilesByResourceType('dataset', { source: ['upload'] })}",
Expand Down
4 changes: 2 additions & 2 deletions geonode_mapstore_client/client/js/routes/UploadDataset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from '@js/utils/UploadUtils';
import {
getEndpointUrl,
UPLOADS_UPLOAD,
UPLOADS,
EXECUTION_REQUEST
} from '@js/api/geonode/v2/constants';

Expand All @@ -33,7 +33,7 @@ function UploadDataset({

const api = {
upload: {
url: getEndpointUrl(UPLOADS_UPLOAD),
url: getEndpointUrl(UPLOADS, '/upload'),
body: {
file: {
'base_file': getUploadMainFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
border-bottom-color: #555555;
}
.table > tbody > tr > td {
border-top-color: #555555
border-top-color: #555555;
background-color: transparent;
border-top-width: 1px;
}
.table > tbody > tr.danger > td {
background-color: rgba(187, 73, 64, 0.2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
}
}
}
.gn-upload-processing {
.table > tbody > tr > td {
.background-color-var(@theme-vars[main-bg]);
.border-top-color-var(@theme-vars[main-variant-bg]);
}
}
}

// **************
Expand Down Expand Up @@ -289,6 +295,7 @@
font-weight: normal;
vertical-align: middle;
word-break: break-word;
border-top-width: 0.25rem;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@
"source": "resource_file_upload",
"api": {
"upload": {
"url": "{context.getEndpointUrl('upload')}",
"url": "{context.getEndpointUrl('uploads', '/upload')}",
"maxParallelUploads": 1,
"body": {
"file": {
Expand Down Expand Up @@ -1270,7 +1270,7 @@
"source": "resource_file_upload",
"api": {
"upload": {
"url": "{context.getEndpointUrl('upload')}",
"url": "{context.getEndpointUrl('uploads', '/upload')}",
"maxParallelUploads": 1,
"body": {
"file": {
Expand Down Expand Up @@ -1311,7 +1311,7 @@
"pageReload": true,
"api": {
"upload": {
"url": "{context.getEndpointUrl('upload')}",
"url": "{context.getEndpointUrl('uploads', '/upload')}",
"maxParallelUploads": 1,
"body": {
"file": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
"uploadDatasetMetadata": "Datensatzmetadaten hochladen",
"uploadName": "Name",
"uploadCreated": "Erstellt",
"replaceDataset": "Ersetzen",
"replaceDataset": "Datensatz Ersetzen",
"replaceDatasetTitle": "Datensatz ersetzen"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
"uploadDatasetMetadata": "Metadatos del conjunto de datos de carga",
"uploadName": "Nombre",
"uploadCreated": "Creado",
"replaceDataset": "Reemplazar",
"replaceDataset": "Reemplazar Conjunto De Datos",
"replaceDatasetTitle": "Reemplazar conjunto de datos"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
"uploadDatasetMetadata": "Télécharger les métadonnées du jeu de données",
"uploadName": "Nom",
"uploadCreated": "Créé",
"replaceDataset": "Remplacer",
"replaceDataset": "Remplacer L'Ensemble De Données",
"replaceDatasetTitle": "Remplacer l'ensemble de données"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"uploadDatasetMetadata": "Carica i metadati del dataset",
"uploadName": "Nome",
"uploadCreated": "Data creazione",
"replaceDataset": "Sostituisci",
"replaceDataset": "Sostituisci Dataset",
"replaceDatasetTitle": "Sostituisci dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"uploadDatasetMetadata": "Upload dataset metadata",
"uploadName": "Name",
"uploadCreated": "Created",
"replaceDataset": "Replace",
"replaceDataset": "Replace Dataset",
"replaceDatasetTitle": "Replace dataset"
}
}
Expand Down

0 comments on commit 3267519

Please sign in to comment.