Added Your Privacy section in Help

This commit is contained in:
Ján Mikláš
2018-11-11 10:12:00 +01:00
parent c60a7a233c
commit 5605c0c9dd
4 changed files with 34 additions and 2 deletions

View File

@@ -4,9 +4,10 @@ import { Router, Route, IndexRedirect, useRouterHistory } from 'react-router';
import { createHashHistory } from 'history'; import { createHashHistory } from 'history';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import SystemStatus from 'help/system_status.jsx';
import SystemInfo from 'help/system_info.jsx';
import KnowledgeBase from 'help/knowledge_base.jsx'; import KnowledgeBase from 'help/knowledge_base.jsx';
import SystemInfo from 'help/system_info.jsx';
import SystemStatus from 'help/system_status.jsx';
import YourPrivacy from 'help/your_privacy.jsx';
const history = useRouterHistory(createHashHistory)({ queryKey: false }); const history = useRouterHistory(createHashHistory)({ queryKey: false });
@@ -31,6 +32,7 @@ if (container) {
<Route path="knowledgeBase(/)**" params={{ tab: 'knowledgeBase' }} component={KnowledgeBase} /> <Route path="knowledgeBase(/)**" params={{ tab: 'knowledgeBase' }} component={KnowledgeBase} />
<Route path="systemStatus(/)**" params={{ tab: 'systemStatus' }} component={SystemStatus} /> <Route path="systemStatus(/)**" params={{ tab: 'systemStatus' }} component={SystemStatus} />
<Route path="systemInfo(/)**" params={{ tab: 'systemInfo' }} component={SystemInfo} /> <Route path="systemInfo(/)**" params={{ tab: 'systemInfo' }} component={SystemInfo} />
<Route path="yourPrivacy(/)**" params={{ tab: 'yourPrivacy' }} component={YourPrivacy} />
</Route> </Route>
</Router> </Router>
), container); ), container);

View File

@@ -20,6 +20,11 @@ const tabs = [
label: MailPoet.I18n.t('tabSystemInfoTitle'), label: MailPoet.I18n.t('tabSystemInfoTitle'),
link: '/systemInfo', link: '/systemInfo',
}, },
{
name: 'yourPrivacy',
label: MailPoet.I18n.t('tabYourPrivacyTitle'),
link: '/yourPrivacy',
},
]; ];
function Tabs(props) { function Tabs(props) {

View File

@@ -0,0 +1,20 @@
import React from 'react';
import MailPoet from 'mailpoet';
import Tabs from './tabs.jsx';
function YourPrivacy() {
return (
<div>
<Tabs tab="yourPrivacy" />
<p>{MailPoet.I18n.t('yourPrivacyContent1')}</p>
<p>{MailPoet.I18n.t('yourPrivacyContent2')}</p>
<p>{MailPoet.I18n.t('yourPrivacyContent3')}</p>
<a target="_blank" rel="noreferrer noopener" href="https://www.mailpoet.com/privacy-notice/" className="button button-primary">{MailPoet.I18n.t('yourPrivacyButton')}</a>
</div>
);
}
module.exports = YourPrivacy;

View File

@@ -21,6 +21,7 @@
'tabKnowledgeBaseTitle': __('Knowledge Base'), 'tabKnowledgeBaseTitle': __('Knowledge Base'),
'tabSystemInfoTitle': __('System Info'), 'tabSystemInfoTitle': __('System Info'),
'tabSystemStatusTitle': __('System Status'), 'tabSystemStatusTitle': __('System Status'),
'tabYourPrivacyTitle': __('Your Privacy'),
'systemStatusIntroCron': __('For the plugin to work, it must be able to establish connection with the task scheduler.'), 'systemStatusIntroCron': __('For the plugin to work, it must be able to establish connection with the task scheduler.'),
'systemStatusIntroCronMSS': __('For the plugin to work, it must be able to establish connection with the task scheduler and the key activation/MailPoet sending service.'), 'systemStatusIntroCronMSS': __('For the plugin to work, it must be able to establish connection with the task scheduler and the key activation/MailPoet sending service.'),
'systemStatusCronTitle': __('Task Scheduler'), 'systemStatusCronTitle': __('Task Scheduler'),
@@ -35,6 +36,10 @@
'systemInfoDataError': __('Sorry, there was an error, please try again later.'), 'systemInfoDataError': __('Sorry, there was an error, please try again later.'),
'systemStatusCronStatusTitle': __('Cron'), 'systemStatusCronStatusTitle': __('Cron'),
'systemStatusQueueTitle': __('Sending Queue'), 'systemStatusQueueTitle': __('Sending Queue'),
'yourPrivacyContent1': __('MailPoet respects your privacy. We dont track any information about your website or yourself without your explicit consent.'),
'yourPrivacyContent2': __('We track information, like your email & IP address, if you answer a survey in the plugin thanks to third party services, like PollDaddy for example.'),
'yourPrivacyContent3': __('If you send with MailPoet, we track data that is used to ensure that the service works correctly.'),
'yourPrivacyButton': __('Read our Privacy Notice'),
'lastUpdated': _x('Last updated', 'A label in a status table e.g. Last updated: 2018-10-18 18:50'), 'lastUpdated': _x('Last updated', 'A label in a status table e.g. Last updated: 2018-10-18 18:50'),
'lastRunStarted': _x('Last run started', 'A label in a status table e.g. Last run started: 2018-10-18 18:50'), 'lastRunStarted': _x('Last run started', 'A label in a status table e.g. Last run started: 2018-10-18 18:50'),
'lastRunCompleted': _x('Last run completed', 'A label in a status table e.g. Last run completed: 2018-10-18 18:50'), 'lastRunCompleted': _x('Last run completed', 'A label in a status table e.g. Last run completed: 2018-10-18 18:50'),