convert legal notice to html
This commit is contained in:
parent
0371f1906a
commit
a28aad274d
2 changed files with 150 additions and 116 deletions
105
app/ui/legal.js
105
app/ui/legal.js
|
@ -1,5 +1,4 @@
|
|||
const html = require('choo/html');
|
||||
const raw = require('choo/html/raw');
|
||||
const modal = require('./modal');
|
||||
|
||||
module.exports = function(state, emit) {
|
||||
|
@ -11,53 +10,88 @@ module.exports = function(state, emit) {
|
|||
>
|
||||
<h1 class="text-center">${state.translate('legalTitle')}</h1>
|
||||
<p class="mt-2">${state.translate('legalDateStamp')}</p>
|
||||
<div class="overflow-scroll px-4">
|
||||
${raw(
|
||||
replaceLinks(state.translate('legalNoticeSend'), [
|
||||
'https://www.mozilla.org/privacy/',
|
||||
'https://github.com/mozilla/send/blob/master/docs/metrics.md'
|
||||
])
|
||||
)}
|
||||
<ul class="mt-10 max-w-md leading-normal">
|
||||
<div class="overflow-scroll py-8 px-12">
|
||||
<p class="leading-normal">
|
||||
When Mozilla receives information from you, our
|
||||
<a
|
||||
href="https://www.mozilla.org/privacy/"
|
||||
target="__blank"
|
||||
rel="noopener noreferrer"
|
||||
>Mozilla Privacy Policy</a
|
||||
>
|
||||
describes how we handle that information. Below are the top things
|
||||
you should know about Firefox Send. You can also view the code
|
||||
<a
|
||||
href="https://github.com/mozilla/send/blob/master/docs/metrics.md"
|
||||
target="__blank"
|
||||
rel="noopener noreferrer"
|
||||
>here</a
|
||||
>.
|
||||
</p>
|
||||
<ul class="mt-6 leading-normal">
|
||||
<li class="mb-4">
|
||||
<b>${state.translate('legalNoticeSendContentHeader')}:</b>
|
||||
${state.translate('legalNoticeSendContent')}
|
||||
<b>Content</b>: Mozilla receives an encrypted copy of the file you
|
||||
upload but we cannot access the content or name of your encrypted
|
||||
file. By default, files are stored for a maximum of either 24
|
||||
hours or 7 days. If you choose a download cap, the file can be
|
||||
deleted from our server sooner.
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<b>${state.translate('legalNoticeSendDataHeader')}:</b>
|
||||
${state.translate('legalNoticeSendData')}
|
||||
<b>Data on your device</b>: So that you can check status or delete
|
||||
files, basic information about your uploaded files is stored on
|
||||
your local device. This includes our identifier for the file, the
|
||||
filename, and the file’s unique download URL. This is cleared if
|
||||
you delete your uploaded file or upon visiting Send after the file
|
||||
expires. Note, however, that the URL will persist in your browsing
|
||||
history (and with whomever you shared it) until manually deleted.
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<b>${state.translate('legalNoticeSendPersonalHeader')}:</b>
|
||||
${state.translate('legalNoticeSendPersonal')}:
|
||||
<ul class="leading-normal">
|
||||
<li class="my-4">
|
||||
<u>${state.translate('legalNoticeSendIPHeader')}:</u>
|
||||
${state.translate('legalNoticeSendIP')}
|
||||
<b>Personal data</b>: The following is necessary to provide the
|
||||
service:
|
||||
<ul class="mt-6 leading-normal">
|
||||
<li class="mb-4">
|
||||
<u>IP addresses</u>: We receive IP addresses of downloaders
|
||||
and uploaders as part of our standard server logs. These are
|
||||
retained for 90 days, and for that period, may be connected to
|
||||
activity of a file’s download URL. Although we develop our
|
||||
services in ways that minimize identification, you should know
|
||||
that it may be possible to correlate the IP address of a Send
|
||||
user to the IP address of other Mozilla services with
|
||||
accounts; and if there is a match, this could identify the
|
||||
account email address.
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<u>${state.translate('legalNoticeSendFXAHeader')}:</u>
|
||||
${state.translate('legalNoticeSendFXA')}
|
||||
<u>Firefox Account</u>: This is required for authentication
|
||||
only if you wish to upload larger file sizes. Your Firefox
|
||||
Account record will retain aggregate data on your usage of
|
||||
Send: for example, if you created a Firefox Account in
|
||||
connection with Send, number of files sent and approximate
|
||||
file sizes, and how many times you’ve used the service.
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<b>${state.translate('legalNoticeSendNonPersonalHeader')}:</b>
|
||||
${state.translate('legalNoticeSendNonPersonal')}:
|
||||
<ul class="leading-normal">
|
||||
<li class="my-4">
|
||||
<u>${state.translate('legalNoticeSendInteractionHeader')}:</u>
|
||||
${state.translate('legalNoticeSendInteraction')}
|
||||
<b>Non-personal data</b>: We receive the following to improve our
|
||||
service and performance:
|
||||
<ul class="mt-6 leading-normal">
|
||||
<li class="mb-4">
|
||||
<u>Interaction data</u>: This includes information such as
|
||||
number of people sending and receiving files, number of files
|
||||
uploaded and approximate file sizes, percentage of file
|
||||
downloaders who become uploaders, how people engage with the
|
||||
website (time spent, clicks, referrer information, site exit
|
||||
path, use of passwords).
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<u>${state.translate('legalNoticeSendTechnicalHeader')}:</u>
|
||||
${state.translate('legalNoticeSendTechnical')}
|
||||
<u>Technical data</u>: This includes information such as
|
||||
operating system, browser, language preference, country,
|
||||
timestamps, duration for file transfer, reasons for errors,
|
||||
reasons for file expiration.
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<b>${state.translate('legalNoticeSendThirdPartyHeader')}:</b>
|
||||
${state.translate('legalNoticeSendThirdParty')}
|
||||
<b>Third Party Services</b>: We use Google Cloud Platform.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -65,12 +99,3 @@ module.exports = function(state, emit) {
|
|||
</main>
|
||||
`;
|
||||
};
|
||||
|
||||
function replaceLinks(str, urls) {
|
||||
let i = 0;
|
||||
const s = str.replace(
|
||||
/<a>([^<]+)<\/a>/g,
|
||||
(m, v) => `<a class="text-blue" href="${urls[i++]}">${v}</a>`
|
||||
);
|
||||
return `<p class="mt-10 max-w-md leading-normal">${s}</p>`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue