diff --git a/commafeed-client/src/components/content/FeedEntryContextMenu.tsx b/commafeed-client/src/components/content/FeedEntryContextMenu.tsx index 07b5c1f4..9bf6a372 100644 --- a/commafeed-client/src/components/content/FeedEntryContextMenu.tsx +++ b/commafeed-client/src/components/content/FeedEntryContextMenu.tsx @@ -2,13 +2,14 @@ import { t, Trans } from "@lingui/macro" import { createStyles, Group } from "@mantine/core" import { Constants } from "app/constants" import { markEntriesUpToEntry, markEntry, starEntry } from "app/slices/entries" -import { useAppDispatch } from "app/store" +import { redirectToFeed } from "app/slices/redirect" +import { useAppDispatch, useAppSelector } from "app/store" import { Entry } from "app/types" import { openLinkInBackgroundTab } from "app/utils" -import { throttle } from "lodash" +import { throttle, truncate } from "lodash" import { useEffect } from "react" import { Item, Menu, Separator, useContextMenu } from "react-contexify" -import { TbArrowBarToDown, TbExternalLink, TbEyeCheck, TbEyeOff, TbStar, TbStarOff } from "react-icons/tb" +import { TbArrowBarToDown, TbExternalLink, TbEyeCheck, TbEyeOff, TbRss, TbStar, TbStarOff } from "react-icons/tb" interface FeedEntryContextMenuProps { entry: Entry @@ -30,6 +31,7 @@ const useStyles = createStyles(theme => ({ const menuId = (entry: Entry) => entry.id export function FeedEntryContextMenu(props: FeedEntryContextMenuProps) { const { classes, theme } = useStyles() + const sourceType = useAppSelector(state => state.entries.source.type) const dispatch = useAppDispatch() return ( @@ -59,27 +61,41 @@ export function FeedEntryContextMenu(props: FeedEntryContextMenuProps) { - dispatch(markEntry({ entry: props.entry, read: !props.entry.read }))}> - - {props.entry.read ? : } - {props.entry.read ? t`Keep unread` : t`Mark as read`} - - dispatch(starEntry({ entry: props.entry, starred: !props.entry.starred }))}> {props.entry.starred ? : } {props.entry.starred ? t`Unstar` : t`Star`} - - - + dispatch(markEntry({ entry: props.entry, read: !props.entry.read }))}> + + {props.entry.read ? : } + {props.entry.read ? t`Keep unread` : t`Mark as read`} + + dispatch(markEntriesUpToEntry(props.entry))}> Mark as read up to here + + {sourceType === "category" && ( + <> + + + { + dispatch(redirectToFeed(props.entry.feedId)) + }} + > + + + Go to {truncate(props.entry.feedName)} + + + + )} ) } diff --git a/commafeed-client/src/locales/ar/messages.po b/commafeed-client/src/locales/ar/messages.po index 28cd6b45..bf8f511c 100644 --- a/commafeed-client/src/locales/ar/messages.po +++ b/commafeed-client/src/locales/ar/messages.po @@ -324,6 +324,10 @@ msgstr "انتقل إلى وثائق API." msgid "Go to the All view" msgstr "اذهب إلى طريقة العرض \"الكل\"" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "الأشياء الجيدة" diff --git a/commafeed-client/src/locales/ca/messages.po b/commafeed-client/src/locales/ca/messages.po index 26ed5a22..d2239eb6 100644 --- a/commafeed-client/src/locales/ca/messages.po +++ b/commafeed-client/src/locales/ca/messages.po @@ -324,6 +324,10 @@ msgstr "Vés a la documentació de l'API." msgid "Go to the All view" msgstr "Vés a la vista Tot" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Bones" diff --git a/commafeed-client/src/locales/cs/messages.po b/commafeed-client/src/locales/cs/messages.po index d480f926..db784f06 100644 --- a/commafeed-client/src/locales/cs/messages.po +++ b/commafeed-client/src/locales/cs/messages.po @@ -324,6 +324,10 @@ msgstr "Přejděte na dokumentaci API." msgid "Go to the All view" msgstr "Přejděte do zobrazení Vše" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Dobroty" diff --git a/commafeed-client/src/locales/cy/messages.po b/commafeed-client/src/locales/cy/messages.po index b3a294ad..5e1a063c 100644 --- a/commafeed-client/src/locales/cy/messages.po +++ b/commafeed-client/src/locales/cy/messages.po @@ -324,6 +324,10 @@ msgstr "Ewch i'r ddogfennaeth API." msgid "Go to the All view" msgstr "Ewch i'r golwg Pawb" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "nwyddau" diff --git a/commafeed-client/src/locales/da/messages.po b/commafeed-client/src/locales/da/messages.po index 8edbe0d7..9be86935 100644 --- a/commafeed-client/src/locales/da/messages.po +++ b/commafeed-client/src/locales/da/messages.po @@ -324,6 +324,10 @@ msgstr "Gå til API-dokumentationen." msgid "Go to the All view" msgstr "Gå til visningen Alle" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Godbidder" diff --git a/commafeed-client/src/locales/de/messages.po b/commafeed-client/src/locales/de/messages.po index 0eab9224..8ab7a856 100644 --- a/commafeed-client/src/locales/de/messages.po +++ b/commafeed-client/src/locales/de/messages.po @@ -324,6 +324,10 @@ msgstr "Gehen Sie zur API-Dokumentation." msgid "Go to the All view" msgstr "Zur Ansicht Alle wechseln" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Gutes" diff --git a/commafeed-client/src/locales/en/messages.po b/commafeed-client/src/locales/en/messages.po index f09d5eae..f5aa09eb 100644 --- a/commafeed-client/src/locales/en/messages.po +++ b/commafeed-client/src/locales/en/messages.po @@ -324,6 +324,10 @@ msgstr "Go to the API documentation." msgid "Go to the All view" msgstr "Go to the All view" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "Go to {0}" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Goodies" diff --git a/commafeed-client/src/locales/es/messages.po b/commafeed-client/src/locales/es/messages.po index fb8337ae..e6f84722 100644 --- a/commafeed-client/src/locales/es/messages.po +++ b/commafeed-client/src/locales/es/messages.po @@ -324,6 +324,10 @@ msgstr "Ir a la documentación de la API." msgid "Go to the All view" msgstr "Ir a la vista Todo" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "golosinas" diff --git a/commafeed-client/src/locales/fa/messages.po b/commafeed-client/src/locales/fa/messages.po index 445b8bf5..5ffb1622 100644 --- a/commafeed-client/src/locales/fa/messages.po +++ b/commafeed-client/src/locales/fa/messages.po @@ -324,6 +324,10 @@ msgstr "به مستندات API بروید." msgid "Go to the All view" msgstr "به نمای All بروید" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "خوبی ها" diff --git a/commafeed-client/src/locales/fi/messages.po b/commafeed-client/src/locales/fi/messages.po index dc677ab8..2ac9b579 100644 --- a/commafeed-client/src/locales/fi/messages.po +++ b/commafeed-client/src/locales/fi/messages.po @@ -324,6 +324,10 @@ msgstr "Siirry API-dokumentaatioon." msgid "Go to the All view" msgstr "Siirry Kaikki-näkymään" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Hyvää" diff --git a/commafeed-client/src/locales/fr/messages.po b/commafeed-client/src/locales/fr/messages.po index 22d9c8bf..d6be8521 100644 --- a/commafeed-client/src/locales/fr/messages.po +++ b/commafeed-client/src/locales/fr/messages.po @@ -324,6 +324,10 @@ msgstr "Aller à la documentation de l'API." msgid "Go to the All view" msgstr "Aller à la catégorie Tout" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Extensions" diff --git a/commafeed-client/src/locales/gl/messages.po b/commafeed-client/src/locales/gl/messages.po index 685b5ea1..ff2983f0 100644 --- a/commafeed-client/src/locales/gl/messages.po +++ b/commafeed-client/src/locales/gl/messages.po @@ -324,6 +324,10 @@ msgstr "Ir á documentación da API." msgid "Go to the All view" msgstr "Ir á vista Todos" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "agasallos" diff --git a/commafeed-client/src/locales/hu/messages.po b/commafeed-client/src/locales/hu/messages.po index d0ad9fcd..ca56e8c0 100644 --- a/commafeed-client/src/locales/hu/messages.po +++ b/commafeed-client/src/locales/hu/messages.po @@ -324,6 +324,10 @@ msgstr "Nyissa meg az API dokumentációját." msgid "Go to the All view" msgstr "Lépjen az Összes nézetre" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Jók" diff --git a/commafeed-client/src/locales/id/messages.po b/commafeed-client/src/locales/id/messages.po index 33702a25..6d8f5de1 100644 --- a/commafeed-client/src/locales/id/messages.po +++ b/commafeed-client/src/locales/id/messages.po @@ -324,6 +324,10 @@ msgstr "Buka dokumentasi API." msgid "Go to the All view" msgstr "Pergi ke tampilan Semua" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Pernak-pernik" diff --git a/commafeed-client/src/locales/it/messages.po b/commafeed-client/src/locales/it/messages.po index 0e377aad..5beec93b 100644 --- a/commafeed-client/src/locales/it/messages.po +++ b/commafeed-client/src/locales/it/messages.po @@ -324,6 +324,10 @@ msgstr "Vai alla documentazione dell'API." msgid "Go to the All view" msgstr "Vai alla vista Tutto" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Chicche" diff --git a/commafeed-client/src/locales/ja/messages.po b/commafeed-client/src/locales/ja/messages.po index 551a398c..83bac183 100644 --- a/commafeed-client/src/locales/ja/messages.po +++ b/commafeed-client/src/locales/ja/messages.po @@ -324,6 +324,10 @@ msgstr "API ドキュメントに移動します。" msgid "Go to the All view" msgstr "すべてのビューに移動" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "グッディーズ" diff --git a/commafeed-client/src/locales/ko/messages.po b/commafeed-client/src/locales/ko/messages.po index c236d136..6bcabd1e 100644 --- a/commafeed-client/src/locales/ko/messages.po +++ b/commafeed-client/src/locales/ko/messages.po @@ -324,6 +324,10 @@ msgstr "API 문서로 이동합니다." msgid "Go to the All view" msgstr "전체 보기로 이동" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "굿즈" diff --git a/commafeed-client/src/locales/ms/messages.po b/commafeed-client/src/locales/ms/messages.po index 8c9521de..fc36404d 100644 --- a/commafeed-client/src/locales/ms/messages.po +++ b/commafeed-client/src/locales/ms/messages.po @@ -324,6 +324,10 @@ msgstr "Pergi ke dokumentasi API." msgid "Go to the All view" msgstr "Pergi ke paparan Semua" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "" diff --git a/commafeed-client/src/locales/nb/messages.po b/commafeed-client/src/locales/nb/messages.po index f1bfb94e..112eed84 100644 --- a/commafeed-client/src/locales/nb/messages.po +++ b/commafeed-client/src/locales/nb/messages.po @@ -324,6 +324,10 @@ msgstr "Gå til API-dokumentasjonen." msgid "Go to the All view" msgstr "Gå til visningen Alle" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Godbiter" diff --git a/commafeed-client/src/locales/nl/messages.po b/commafeed-client/src/locales/nl/messages.po index 81c7ec6c..19577c19 100644 --- a/commafeed-client/src/locales/nl/messages.po +++ b/commafeed-client/src/locales/nl/messages.po @@ -324,6 +324,10 @@ msgstr "Ga naar de API-documentatie." msgid "Go to the All view" msgstr "Ga naar de weergave Alles" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Goederen" diff --git a/commafeed-client/src/locales/nn/messages.po b/commafeed-client/src/locales/nn/messages.po index 325eb1a8..459be091 100644 --- a/commafeed-client/src/locales/nn/messages.po +++ b/commafeed-client/src/locales/nn/messages.po @@ -324,6 +324,10 @@ msgstr "Gå til API-dokumentasjonen." msgid "Go to the All view" msgstr "Gå til visningen Alle" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Godbiter" diff --git a/commafeed-client/src/locales/pl/messages.po b/commafeed-client/src/locales/pl/messages.po index 1b817d09..b589726c 100644 --- a/commafeed-client/src/locales/pl/messages.po +++ b/commafeed-client/src/locales/pl/messages.po @@ -324,6 +324,10 @@ msgstr "Przejdź do dokumentacji API." msgid "Go to the All view" msgstr "Przejdź do widoku Wszystkie" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Gadżety" diff --git a/commafeed-client/src/locales/pt/messages.po b/commafeed-client/src/locales/pt/messages.po index e923e3a0..58ceb0ab 100644 --- a/commafeed-client/src/locales/pt/messages.po +++ b/commafeed-client/src/locales/pt/messages.po @@ -324,6 +324,10 @@ msgstr "Vá para a documentação da API." msgid "Go to the All view" msgstr "Ir para a visualização Tudo" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Brindes" diff --git a/commafeed-client/src/locales/ru/messages.po b/commafeed-client/src/locales/ru/messages.po index 6b3158a0..c2e1cf22 100644 --- a/commafeed-client/src/locales/ru/messages.po +++ b/commafeed-client/src/locales/ru/messages.po @@ -324,6 +324,10 @@ msgstr "Перейдите к документации по API." msgid "Go to the All view" msgstr "Перейти к представлению «Все»" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Сладости" diff --git a/commafeed-client/src/locales/sk/messages.po b/commafeed-client/src/locales/sk/messages.po index 1f128f70..b0f1d961 100644 --- a/commafeed-client/src/locales/sk/messages.po +++ b/commafeed-client/src/locales/sk/messages.po @@ -324,6 +324,10 @@ msgstr "Prejdite na dokumentáciu API." msgid "Go to the All view" msgstr "Prejdite na zobrazenie Všetky" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Dobrôtky" diff --git a/commafeed-client/src/locales/sv/messages.po b/commafeed-client/src/locales/sv/messages.po index 128b60e3..86a6b413 100644 --- a/commafeed-client/src/locales/sv/messages.po +++ b/commafeed-client/src/locales/sv/messages.po @@ -324,6 +324,10 @@ msgstr "Gå till API-dokumentationen." msgid "Go to the All view" msgstr "Gå till vyn Alla" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "Godsaker" diff --git a/commafeed-client/src/locales/tr/messages.po b/commafeed-client/src/locales/tr/messages.po index 6b42dd69..2563d52d 100644 --- a/commafeed-client/src/locales/tr/messages.po +++ b/commafeed-client/src/locales/tr/messages.po @@ -324,6 +324,10 @@ msgstr "API belgelerine gidin." msgid "Go to the All view" msgstr "Tümü görünümüne git" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "İyilikler" diff --git a/commafeed-client/src/locales/zh/messages.po b/commafeed-client/src/locales/zh/messages.po index 1ce22f2a..78c1b8f9 100644 --- a/commafeed-client/src/locales/zh/messages.po +++ b/commafeed-client/src/locales/zh/messages.po @@ -324,6 +324,10 @@ msgstr "转到 API 文档。" msgid "Go to the All view" msgstr "转到全部视图" +#: src/components/content/FeedEntryContextMenu.tsx +msgid "Go to {0}" +msgstr "" + #: src/pages/app/AboutPage.tsx msgid "Goodies" msgstr "好东西"