Skip to content

Commit

Permalink
Merge pull request #13 from oarepo/stojanovic/ep-92-community-landing…
Browse files Browse the repository at this point in the history
…-page

Stojanovic/ep 92 community landing page
  • Loading branch information
mirekys authored Sep 11, 2024
2 parents b2d428d + 29b9ff4 commit 8977c5e
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
Binary file modified oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo
Binary file not shown.
3 changes: 3 additions & 0 deletions oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Binary file modified oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo
Binary file not shown.
3 changes: 3 additions & 0 deletions oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Binary file modified oarepo_dashboard/i18n/translations/messages.mo
Binary file not shown.
13 changes: 8 additions & 5 deletions oarepo_dashboard/i18n/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -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 ""

Expand Down Expand Up @@ -80,3 +80,6 @@ msgstr ""

msgid "Publish record"
msgstr ""

msgid "Create new version of record"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#dashboard-user-header-container {
padding-bottom: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ export const DeleteRecordIcon = () => (
export const PublishRecordIcon = () => (
<Icon name="upload" className="neutral" />
);

export const RecordNewVersionIcon = () => (
<Icon name="plus" className="neutral" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ export const LabelTypePublishRecord = (props) => (
{i18next.t("Publish record")}
</Label>
);

export const LabelTypeRecordNewVersion = (props) => (
<Label horizontal size="small">
{i18next.t("Create new version of record")}
</Label>
);
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
readme = README.md
Expand Down

0 comments on commit 8977c5e

Please sign in to comment.