diff --git a/language/message/de.po b/language/message/de.po index 311c3cde0..eb6d24c41 100644 --- a/language/message/de.po +++ b/language/message/de.po @@ -1844,3 +1844,6 @@ msgstr "Mehr erfahren" msgid "Zero waste source poi details" msgstr "Eine Verkaufsart, die Abfall und Verpackungsabfall begrenzt." + +msgid "cookies_management" +msgstr "Verwaltung von Cookies" \ No newline at end of file diff --git a/language/message/en.po b/language/message/en.po index 99edd01e2..bba827d1a 100644 --- a/language/message/en.po +++ b/language/message/en.po @@ -1737,4 +1737,7 @@ msgid "Zero waste source poi see more" msgstr "Learn more" msgid "Zero waste source poi details" -msgstr "Selling without packaging limits wastage and packaging waste." \ No newline at end of file +msgstr "Selling without packaging limits wastage and packaging waste." + +msgid "cookies_management" +msgstr "Cookie management" \ No newline at end of file diff --git a/language/message/es.po b/language/message/es.po index 7385d8a9e..4f8fee155 100644 --- a/language/message/es.po +++ b/language/message/es.po @@ -1834,3 +1834,6 @@ msgstr "Más información" msgid "Zero waste source poi details" msgstr "Un modo de venta que limita el desperdicio y el desperdicio de empaques." + +msgid "cookies_management" +msgstr "Gestión de las cookies" \ No newline at end of file diff --git a/language/message/fr.po b/language/message/fr.po index 9801e1060..00b872de2 100644 --- a/language/message/fr.po +++ b/language/message/fr.po @@ -1893,4 +1893,7 @@ msgid "zero_waste" msgstr "Vente en vrac" msgid "ecotable" -msgstr "Écotable" \ No newline at end of file +msgstr "Écotable" + +msgid "cookies_management" +msgstr "Gestion des cookies" \ No newline at end of file diff --git a/language/message/it.po b/language/message/it.po index 0eaac2571..cc264184d 100644 --- a/language/message/it.po +++ b/language/message/it.po @@ -1840,4 +1840,7 @@ msgid "Zero waste source poi see more" msgstr "Ulteriori informazioni" msgid "Zero waste source poi details" -msgstr "Una modalità di vendita che limita i rifiuti e i rifiuti di imballaggio." \ No newline at end of file +msgstr "Una modalità di vendita che limita i rifiuti e i rifiuti di imballaggio." + +msgid "cookies_management" +msgstr "Gestione dei cookie" \ No newline at end of file diff --git a/public/images/remix/cookie.svg b/public/images/remix/cookie.svg new file mode 100644 index 000000000..b2e585215 --- /dev/null +++ b/public/images/remix/cookie.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/ui/icons.ts b/src/components/ui/icons.ts index 94eb4ea3a..f60ccb78f 100644 --- a/src/components/ui/icons.ts +++ b/src/components/ui/icons.ts @@ -34,3 +34,4 @@ export { ReactComponent as IconDirectionsArrow } from '../../../public/images/di export { ReactComponent as IconAndroid } from '../../../public/images/mobile/android.svg'; export { ReactComponent as IconApple } from '../../../public/images/mobile/i-os.svg'; export { ReactComponent as QwantLogoBlue } from '../../../public/images/qwant-search-logo.svg'; +export { ReactComponent as IconCookie } from '../../../public/images/remix/cookie.svg'; diff --git a/src/panel/menu/AppMenu.jsx b/src/panel/menu/AppMenu.jsx index aeaaef018..eb97cc771 100644 --- a/src/panel/menu/AppMenu.jsx +++ b/src/panel/menu/AppMenu.jsx @@ -3,12 +3,13 @@ import PropTypes from 'prop-types'; import MenuItem from './MenuItem'; import Telemetry from 'src/libs/telemetry'; import { Divider } from 'src/components/ui'; -import { IconHeart, IconHistory, IconEdit, IconBug } from 'src/components/ui/icons'; +import { IconHeart, IconHistory, IconEdit, IconBug, IconCookie } from 'src/components/ui/icons'; import { IconLight, IconApps } from '@qwant/qwant-ponents'; import { useConfig, useI18n } from 'src/hooks'; const AppMenu = ({ close, openProducts }) => { const { baseUrl } = useConfig('system'); + const { drawer } = useConfig('telemetry'); const { getLocalizedUrl, _ } = useI18n(); const searchHistoryConfig = useConfig('searchHistory'); @@ -67,6 +68,15 @@ const AppMenu = ({ close, openProducts }) => { > {_('Report a bug', 'menu')} + {drawer && drawer.url && ( + } + > + {_('cookies_management', 'menu')} + + )} {openProducts && ( <> diff --git a/src/panel/menu/MenuItem.jsx b/src/panel/menu/MenuItem.jsx index db71bba97..34d821e3f 100644 --- a/src/panel/menu/MenuItem.jsx +++ b/src/panel/menu/MenuItem.jsx @@ -2,11 +2,12 @@ import React from 'react'; import { Flex, IconExternalLink } from '@qwant/qwant-ponents'; import { GREY_SEMI_DARKNESS } from 'src/libs/colors'; -const MenuItem = ({ icon, children, href, onClick, outsideLink }) => ( +const MenuItem = ({ icon, children, href, onClick, outsideLink, ...props }) => ( k==='server' ? undefined : v)};` %> + <% if(config.telemetry.enabled) { %> + + <% } %>