Skip to content

Commit

Permalink
Merge pull request #183 from CSCfi/CSCFC4EMSCR-491_Implement-MSCR-cop…
Browse files Browse the repository at this point in the history
…y-in-UI

MSCR-491 Refactor content addition modals into one component
  • Loading branch information
konolak authored Jun 12, 2024
2 parents 0425214 + 52d86bc commit 076828f
Show file tree
Hide file tree
Showing 30 changed files with 1,280 additions and 1,635 deletions.
26 changes: 1 addition & 25 deletions mscr-ui/public/locales/en/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"add-file": "Add File",
"add-or-drag-a-new-file-here": "Add or drag a file here",
"allowed-file-formats": "Allowed file formats:",
"and": "and",
"association-missing-general": "Association is missing information",
"association-missing-identifier": "Association identifier is missing",
"association-missing-label": "Association name is missing",
"attribute-missing-general": "Attribute is missing information",
"attribute-missing-identifier": "Attribute identifier is missing",
"attribute-missing-label": "Attribute name is missing",
"cancel": "Cancel",
"cancel-variant": "Cancel",
"class-missing-general": "Class is missing information",
"class-missing-identifier": "Class identifier is undefined",
Expand Down Expand Up @@ -50,18 +48,6 @@
"content-language": "Content language",
"create-new-class": "Create new class",
"create-subclass-for-selected": "Create subclass for selected",
"crosswalk-form": {
"create": "Create Crosswalk",
"createTitle": "Create and register new crosswalk",
"file-required": "You must provide a crosswalk file to register",
"format-note": "NOTE: Public schemas in following formats are available for crosswalk creation: ",
"register": "Register Crosswalk",
"register-revision": "Register revision of crosswalk",
"registerTitle": "Register existing crosswalk",
"revision": "Register revision",
"supported-file-formats": "Supported crosswalk file formats are ",
"version-label": "Version label"
},
"data-model": "Data model",
"data-models-added-to-this-model": "Data models added to this model",
"delete-modal": {
Expand All @@ -82,7 +68,6 @@
"model-success": "Model {{targetName}} removed",
"model-title": "Remove model"
},
"description": "Description",
"download-failed": "",
"drag-files-to-upload": "Drag files to upload",
"edit-concept-error": {
Expand Down Expand Up @@ -119,18 +104,15 @@
"concept-import": ""
},
"import-incorrect-excel-file-link": "",
"information-description-languages": "Information description languages",
"information-description-languages-hint-text": "Select information description languages in which the content of the data model is described.",
"information-domain": "Information domain",
"information-domains-all": "All information domains",
"information-domains-available": "Information domains available",
"language-english-with-suffix": "English EN",
"language-finnish-with-suffix": "Finnish FI",
"language-input-text": "Crosswalk name",
"language-swedish-with-suffix": "Swedish SV",
"missing-description": "Description hasn't been set",
"missing-file": "You need to add file or URI of the file to register",
"missing-format": "",
"missing-format": "Format hasn't been selected",
"missing-general": "Model is missing information",
"missing-information-domain": "Information domain hasn't been set",
"missing-language-title": "Title is missing in language",
Expand All @@ -141,13 +123,8 @@
"missing-source-schema": "Source schema hasn't been selected",
"missing-target-schema": "Target schema hasn't been selected",
"modified": "Modified",
"optional": "optional",
"register-crosswalk-file-uri-reference": "Provide crosswalk file URI reference",
"register-schema": "Register Schema",
"register-schema-file-required": "You must provide a schema file to register a schema.",
"register-schema-file-uri-reference": "Provide schema file URI reference",
"register-schema-revision": "Register schema revision",
"register-schema-supported-file-formats": "Supported schema file formats are ",
"remove": "Remove",
"remove-modal": {
"collection-confirmation": "",
Expand All @@ -170,7 +147,6 @@
"terminology-warning": ""
},
"select-class": "Select class",
"select-information-description-languages": "Select languages for information description",
"site-open-link-new-window": "",
"status": "Status",
"status-all": "All statuses",
Expand Down
64 changes: 55 additions & 9 deletions mscr-ui/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"publish-schema": "Publish schema",
"revision": "Add new revision"
},
"and": "and",
"association": "",
"attribute": "",
"breadcrumb": "",
Expand Down Expand Up @@ -72,10 +73,55 @@
"save": "Are you sure you want to save changes?"
},
"confirm-page-leave": "Are you sure you want to leave the page? Changes you made won't be saved.",
"content-form": {
"button": {
"crosswalk-create": "Create Crosswalk",
"crosswalk-register": "Register Crosswalk",
"crosswalk-revision": "Register revision",
"mscr-copy": "Register MSCR Copy",
"schema-register": "Register Schema",
"schema-revision": "Register revision"
},
"description": "Description",
"format-label": "Format",
"format-placeholder": "Select file format",
"information-description-languages": "Information description languages",
"information-description-languages-hint-text": "Select information description languages in which the content of the data model is described.",
"information-description-languages-placeholder": "Select languages for information description",
"optional": "optional",
"state": "State",
"state-select": "Select state",
"title": {
"crosswalk-create": "Create and register new crosswalk",
"crosswalk-mscr-copy": "Register MSCR copy of crosswalk",
"crosswalk-register": "Register existing crosswalk",
"crosswalk-revision": "Register revision of crosswalk",
"schema-mscr-copy": "Register MSCR copy of schema",
"schema-register": "Register schema",
"schema-revision": "Register revision of schema"
},
"version-label": "Version label"
},
"crosswalk-editor": {
"search-from-source-schema": "Search from source schema",
"search-from-target-schema": "Search from target schema"
},
"crosswalk-form": {
"all": "All",
"clear-selection": "Clear selection",
"file-required": "You must provide a crosswalk file to register.",
"format-note": "NOTE: Public schemas in following formats are available for crosswalk creation: ",
"group-workspace": "Group workspace",
"name": "Crosswalk name (required)",
"no-items": "No items",
"option-available": "option available",
"options-available": "options available",
"personal-workspace": "Personal workspace",
"search-or-select": "Search or select",
"source-schema-workspace": "Source schema workspace",
"supported-file-formats": "Supported crosswalk file formats are ",
"target-schema-workspace": "Target schema workspace"
},
"datamodel-title": "",
"datamodels-all": "",
"download": "Download",
Expand All @@ -89,6 +135,7 @@
"not-found": "Not found"
},
"error-occured": "",
"error-unauthenticated": "An error occured with login information verification. Please login to the service again.",
"feedback-terminologies": "",
"filter-by-language": "",
"filter-character-not-allowed": "",
Expand Down Expand Up @@ -124,6 +171,7 @@
"title": "Metadata Schema and Crosswalk Registry (MSCR)",
"what-can-do": "What can you do in MSCR?"
},
"language-english-with-suffix": "English EN",
"languages": {
"en": "English",
"fi": "Finnish",
Expand Down Expand Up @@ -186,8 +234,12 @@
},
"not-recommended-synonym": "",
"notifications": {
"add-crosswalk": "New crosswalk added",
"add-crosswalk-revision": "New crosswalk version added",
"add-schema": "New schema added",
"add-schema-revision": "New schema version added",
"copy-crosswalk": "MSCR copy of crosswalk added",
"copy-schema": "MSCR copy of schema added",
"crosswalk-deleted": "Crosswalk was removed",
"crosswalk-deprecated": "Crosswalk deprecated",
"crosswalk-invalidated": "Crosswalk invalidated",
Expand Down Expand Up @@ -231,15 +283,9 @@
"terminology-editor": ""
},
"schema-form": {
"description": "Description",
"format-label": "Format",
"format-placeholder": "Select file format",
"information-description-languages": "Languages",
"information-description-languages-hint-text": "Select languages in which the content of the schema is described",
"name": "Name (required)",
"status": "Status",
"status-select": "Select status",
"version-label": "Version label"
"file-required": "You must provide a schema file to register.",
"name": "Schema name (required)",
"supported-file-formats": "Supported schema file formats are "
},
"schema-tree": {
"clear": "Clear",
Expand Down
24 changes: 0 additions & 24 deletions mscr-ui/public/locales/fi/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"add-file": "",
"add-or-drag-a-new-file-here": "",
"allowed-file-formats": "",
"and": "",
"association-missing-general": "Assosisaation kaikkia tietoja ei ole määritelty",
"association-missing-identifier": "Assosisaation yksilöivää tunnusta ei ole määritelty",
"association-missing-label": "Assosisaation nimeä ei ole määritelty",
"attribute-missing-general": "Attribuutin kaikkia tietoja ei ole määritelty",
"attribute-missing-identifier": "Attribuutin yksilöivää tunnusta ei ole määritelty",
"attribute-missing-label": "Attribuutin nimeä ei ole määritelty",
"cancel": "Keskeytä",
"cancel-variant": "Peruuta",
"class-missing-general": "Luokan kaikkia tietoja ei ole määritelty",
"class-missing-identifier": "Luokan tunnusta ei ole määritetty",
Expand Down Expand Up @@ -50,18 +48,6 @@
"content-language": "Sisällön kieli",
"create-new-class": "Luo uusi luokka",
"create-subclass-for-selected": "Luo valitulle alaluokka",
"crosswalk-form": {
"create": "",
"createTitle": "",
"file-required": "",
"format-note": "",
"register": "",
"register-revision": "",
"registerTitle": "",
"revision": "",
"supported-file-formats": "",
"version-label": ""
},
"data-model": "Tietomalli",
"data-models-added-to-this-model": "Tähän tietomalliin lisätyt tietomallit",
"delete-modal": {
Expand All @@ -82,7 +68,6 @@
"model-success": "Tietomalli {{targetName}} poistettu",
"model-title": "Poista tietomalli"
},
"description": "Kuvaus",
"download-failed": "",
"drag-files-to-upload": "",
"edit-concept-error": {
Expand Down Expand Up @@ -119,14 +104,11 @@
"concept-import": ""
},
"import-incorrect-excel-file-link": "",
"information-description-languages": "Tietosisällön kielet",
"information-description-languages-hint-text": "Valitse tietomallille kielet, joilla tietomallin sisältö on kuvattu.",
"information-domain": "Tietoalue",
"information-domains-all": "Kaikki tietoalueet",
"information-domains-available": "Saatavilla olevat tietoalueet",
"language-english-with-suffix": "englanti EN",
"language-finnish-with-suffix": "suomi FI",
"language-input-text": "Tietomallin nimi",
"language-swedish-with-suffix": "ruotsi SV",
"missing-description": "Kuvausta ei ole määritelty",
"missing-file": "",
Expand All @@ -141,13 +123,8 @@
"missing-source-schema": "Lähdeskeemaa ei ole määritelty",
"missing-target-schema": "Kohdeskeemaa ei ole määritelty",
"modified": "Muokattu",
"optional": "valinnainen",
"register-crosswalk-file-uri-reference": "",
"register-schema": "",
"register-schema-file-required": "",
"register-schema-file-uri-reference": "",
"register-schema-revision": "",
"register-schema-supported-file-formats": "",
"remove": "Poista",
"remove-modal": {
"collection-confirmation": "",
Expand All @@ -170,7 +147,6 @@
"terminology-warning": ""
},
"select-class": "Valitse luokka",
"select-information-description-languages": "Valitse tietomallin kielet",
"site-open-link-new-window": "",
"status": "Tila",
"status-all": "Kaikki tilat",
Expand Down
62 changes: 54 additions & 8 deletions mscr-ui/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"publish-schema": "",
"revision": ""
},
"and": "",
"association": "",
"attribute": "",
"breadcrumb": "",
Expand Down Expand Up @@ -72,10 +73,55 @@
"save": ""
},
"confirm-page-leave": "",
"content-form": {
"button": {
"crosswalk-create": "",
"crosswalk-register": "",
"crosswalk-revision": "",
"mscr-copy": "",
"schema-register": "",
"schema-revision": ""
},
"description": "",
"format-label": "",
"format-placeholder": "",
"information-description-languages": "",
"information-description-languages-hint-text": "",
"information-description-languages-placeholder": "",
"optional": "",
"state": "",
"state-select": "",
"title": {
"crosswalk-create": "",
"crosswalk-mscr-copy": "",
"crosswalk-register": "",
"crosswalk-revision": "",
"schema-mscr-copy": "",
"schema-register": "",
"schema-revision": ""
},
"version-label": ""
},
"crosswalk-editor": {
"search-from-source-schema": "",
"search-from-target-schema": ""
},
"crosswalk-form": {
"all": "",
"clear-selection": "",
"file-required": "",
"format-note": "",
"group-workspace": "",
"name": "",
"no-items": "",
"option-available": "",
"options-available": "",
"personal-workspace": "",
"search-or-select": "",
"source-schema-workspace": "",
"supported-file-formats": "",
"target-schema-workspace": ""
},
"datamodel-title": "",
"datamodels-all": "",
"download": "",
Expand All @@ -89,6 +135,7 @@
"not-found": ""
},
"error-occured": "",
"error-unauthenticated": "",
"feedback-terminologies": "",
"filter-by-language": "",
"filter-character-not-allowed": "",
Expand Down Expand Up @@ -124,6 +171,7 @@
"title": "",
"what-can-do": ""
},
"language-english-with-suffix": "",
"languages": {
"en": "",
"fi": "",
Expand Down Expand Up @@ -186,8 +234,12 @@
},
"not-recommended-synonym": "",
"notifications": {
"add-crosswalk": "",
"add-crosswalk-revision": "",
"add-schema": "",
"add-schema-revision": "",
"copy-crosswalk": "",
"copy-schema": "",
"crosswalk-deleted": "",
"crosswalk-deprecated": "",
"crosswalk-invalidated": "",
Expand Down Expand Up @@ -231,15 +283,9 @@
"terminology-editor": ""
},
"schema-form": {
"description": "",
"format-label": "",
"format-placeholder": "",
"information-description-languages": "",
"information-description-languages-hint-text": "",
"file-required": "",
"name": "",
"status": "",
"status-select": "",
"version-label": ""
"supported-file-formats": ""
},
"schema-tree": {
"clear": "",
Expand Down
Loading

0 comments on commit 076828f

Please sign in to comment.