diff --git a/oarepo_dashboard/i18n/semantic-ui/translations/messages/cs/LC_MESSAGES/translations.json b/oarepo_dashboard/i18n/semantic-ui/translations/messages/cs/LC_MESSAGES/translations.json index da5e681..652bdc6 100644 --- a/oarepo_dashboard/i18n/semantic-ui/translations/messages/cs/LC_MESSAGES/translations.json +++ b/oarepo_dashboard/i18n/semantic-ui/translations/messages/cs/LC_MESSAGES/translations.json @@ -1 +1 @@ -{"By Title":"Podle názvu","Best match":"Nejlepší shoda","Newest":"Nejnovější","Oldest":"Nejstarší","Records":"Nahráno","Communities":"Komunity","Requests":"Žádosti","profile":"profil","Search in my communities...":"Hledat v mých komunitách...","Restricted":"Omezený","Filter results":"Filtrovat výsledky","Edit":"Upravit","Uploaded on {{uploadDate}}":"Nahráno dne {{uploadDate}}","No creation date found.":"Nebylo nalezeno žádné datum vytvoření","No description":"Bez popisu","No title":"Bez názvu","Create new...":"Vytvořit nový...","Search in my uploads...":"Hledat v mých záznamech...","Expires at: {{- expiringDate}}":"Vyprší v: {{- expiringDate}}","Opened {{relativeTime}} by":"Otevřeno {{relativeTime}} uživatelem","Open":"Otevřeno","Closed":"Zavřeno","New request":"Nová žádost","My":"Moje","Others":"Ostatní","Search in my requests...":"Hledat v mých žádostech...","Opened by":"Otevřeno {{relativeTime}} uživatelem","Create new draft":"Vytvořit nový koncept","Edit record":"Úprava záznamu","Delete record":"Smazání záznamu","Publish record":"Vypublikování záznamů","Opened by {{creatorName}} on {{created}}.":"Otevřeno uživatelem {{creatorName}} na {{created}}.","Recepient: {{receiver}}.":"Příjemce: {{receiver}}","User Dashboard":"Nástěnka"} \ No newline at end of file +{"By Title":"Podle názvu","Best match":"Nejlepší shoda","Newest":"Nejnovější","Oldest":"Nejstarší","Records":"Nahráno","Communities":"Komunity","Requests":"Žádosti","profile":"profil","Search in my communities...":"Hledat v mých komunitách...","Restricted":"Omezený","Filter results":"Filtrovat výsledky","Edit":"Upravit","Uploaded on {{uploadDate}}":"Nahráno dne {{uploadDate}}","No creation date found.":"Nebylo nalezeno žádné datum vytvoření","No description":"Bez popisu","No title":"Bez názvu","Create new...":"Vytvořit nový...","Search in my uploads...":"Hledat v mých záznamech...","Expires at: {{- expiringDate}}":"Vyprší v: {{- expiringDate}}","Opened {{relativeTime}} by":"Otevřeno {{relativeTime}} uživatelem","Open":"Otevřeno","Closed":"Zavřeno","New request":"Nová žádost","My":"Moje","Others":"Ostatní","Search in my requests...":"Hledat v mých žádostech...","Opened by":"Otevřeno {{relativeTime}} uživatelem","Create new draft":"Vytvořit nový koncept","Edit record":"Úprava záznamu","Delete record":"Smazání záznamu","Publish record":"Vypublikování záznamů","Opened by {{creatorName}} on {{created}}.":"Otevřeno uživatelem {{creatorName}} na {{created}}.","Recepient: {{receiver}}.":"Příjemce: {{receiver}}","User Dashboard":"Nástěnka","Create new version of record":"Vytvořit novou verzi záznamu"} \ No newline at end of file diff --git a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo index a60d27c..249f940 100644 Binary files a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo and b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po index 708a33d..3dc8e7c 100644 --- a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po +++ b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po @@ -133,3 +133,6 @@ msgstr "" #: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58 msgid "User Dashboard" msgstr "Nástěnka" + +msgid "Create new version of record" +msgstr "Vytvořit novou verzi záznamu" diff --git a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo index 81ce69c..3bd5d20 100644 Binary files a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo and b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po index 379be3c..1225e08 100644 --- a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po +++ b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po @@ -142,3 +142,6 @@ msgstr "" #: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58 msgid "User Dashboard" msgstr "Dashboard" + +msgid "Create new version of record" +msgstr "" diff --git a/oarepo_dashboard/i18n/translations/messages.mo b/oarepo_dashboard/i18n/translations/messages.mo index 5212438..2c23ee1 100644 Binary files a/oarepo_dashboard/i18n/translations/messages.mo and b/oarepo_dashboard/i18n/translations/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/messages.pot b/oarepo_dashboard/i18n/translations/messages.pot index c59f40a..7f83d72 100644 --- a/oarepo_dashboard/i18n/translations/messages.pot +++ b/oarepo_dashboard/i18n/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-06-01 21:05+0200\n" +"POT-Creation-Date: 2024-09-10 10:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,19 +17,19 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.10.3\n" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_communities/__init__.py:42 +#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_communities/__init__.py:46 msgid "Communities" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:49 +#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:52 msgid "Records" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58 +#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:61 msgid "User Dashboard" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_requests/__init__.py:47 +#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_requests/__init__.py:50 msgid "Requests" msgstr "" @@ -80,3 +80,6 @@ msgstr "" msgid "Publish record" msgstr "" + +msgid "Create new version of record" +msgstr "" diff --git a/oarepo_dashboard/ui/dashboard_components/semantic-ui/less/oarepo_dashboard/themes/default/elements/container.overrides b/oarepo_dashboard/ui/dashboard_components/semantic-ui/less/oarepo_dashboard/themes/default/elements/container.overrides new file mode 100644 index 0000000..04cebc6 --- /dev/null +++ b/oarepo_dashboard/ui/dashboard_components/semantic-ui/less/oarepo_dashboard/themes/default/elements/container.overrides @@ -0,0 +1,3 @@ +#dashboard-user-header-container { + padding-bottom: 0; +} diff --git a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/RequestTypeSpecificComponents.jsx b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/RequestTypeSpecificComponents.jsx index 6de3d42..2f2f631 100644 --- a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/RequestTypeSpecificComponents.jsx +++ b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/RequestTypeSpecificComponents.jsx @@ -2,21 +2,25 @@ import { LabelTypeEditRecord, LabelTypeDeleteRecord, LabelTypePublishRecord, + LabelTypeRecordNewVersion, } from "./labels/TypeLabels"; import { PublishRecordIcon, DeleteRecordIcon, EditRecordIcon, + RecordNewVersionIcon, } from "./icons/TypeIcons"; export const requestTypeSpecificComponents = { - [`RequestTypeLabel.layout.documents_edit_record`]: LabelTypeEditRecord, - [`RequestTypeLabel.layout.documents_delete_record`]: LabelTypeDeleteRecord, - [`RequestTypeLabel.layout.documents_publish_draft`]: LabelTypePublishRecord, - [`InvenioRequests.RequestTypeIcon.layout.documents_edit_record`]: + [`RequestTypeLabel.layout.edit_published_record`]: LabelTypeEditRecord, + [`RequestTypeLabel.layout.delete_published_record`]: LabelTypeDeleteRecord, + [`RequestTypeLabel.layout.publish_draft`]: LabelTypePublishRecord, + [`RequestTypeLabel.layout.new_version`]: LabelTypeRecordNewVersion, + [`InvenioRequests.RequestTypeIcon.layout.edit_published_record`]: EditRecordIcon, - [`InvenioRequests.RequestTypeIcon.layout.documents_delete_record`]: + [`InvenioRequests.RequestTypeIcon.layout.delete_published_record`]: DeleteRecordIcon, - [`InvenioRequests.RequestTypeIcon.layout.documents_publish_draft`]: - PublishRecordIcon, + [`InvenioRequests.RequestTypeIcon.layout.publish_draft`]: PublishRecordIcon, + PublishRecordIcon, + [`InvenioRequests.RequestTypeIcon.layout.new_version`]: RecordNewVersionIcon, }; diff --git a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/icons/TypeIcons.jsx b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/icons/TypeIcons.jsx index 616dcdb..ca940f2 100644 --- a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/icons/TypeIcons.jsx +++ b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/icons/TypeIcons.jsx @@ -10,3 +10,7 @@ export const DeleteRecordIcon = () => ( export const PublishRecordIcon = () => ( ); + +export const RecordNewVersionIcon = () => ( + +); diff --git a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/labels/TypeLabels.jsx b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/labels/TypeLabels.jsx index fc352cc..2a2a238 100644 --- a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/labels/TypeLabels.jsx +++ b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/labels/TypeLabels.jsx @@ -19,3 +19,9 @@ export const LabelTypePublishRecord = (props) => ( {i18next.t("Publish record")} ); + +export const LabelTypeRecordNewVersion = (props) => ( + +); diff --git a/setup.cfg b/setup.cfg index ee4eae6..6075ed5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-dashboard -version = 1.0.9 +version = 1.0.10 description = Support for user dashboard (records, communities, requests) authors = Mirek Simek readme = README.md