Compare commits

...

7 Commits

Author SHA1 Message Date
Danny Coates
0bf8481fd0 v1.1.2 2017-08-17 10:52:33 -07:00
Danny Coates
ae0758ac14 fixed download test 2017-08-17 10:27:18 -07:00
Danny Coates
e9405f49ee xhr download as octet-stream 2017-08-17 10:19:18 -07:00
Danny Coates
a1d0eef8a5 debugging #524 2017-08-17 09:46:51 -07:00
Danny Coates
254b806fb4 fixes #523 copy & share text 2017-08-17 09:27:06 -07:00
Danny Coates
a7aee1450f fixes #522 copy button check mark 2017-08-17 09:16:03 -07:00
Sahithi
fa5573a5ff Pontoon: Update Telugu (te) localization of Test Pilot: Firefox Send
Localization authors:
- Sahithi <sahithi.thinker@gmail.com>
2017-08-17 11:31:19 +00:00
7 changed files with 19 additions and 9 deletions

View File

@@ -38,14 +38,13 @@ export default class FileReceiver extends EventEmitter {
} }
const blob = new Blob([this.response]); const blob = new Blob([this.response]);
const type = xhr.getResponseHeader('Content-Type');
const meta = JSON.parse(xhr.getResponseHeader('X-File-Metadata')); const meta = JSON.parse(xhr.getResponseHeader('X-File-Metadata'));
const fileReader = new FileReader(); const fileReader = new FileReader();
fileReader.onload = function() { fileReader.onload = function() {
resolve({ resolve({
data: this.result, data: this.result,
name: meta.filename, name: meta.filename,
type, type: meta.mimeType,
iv: meta.id iv: meta.id
}); });
}; };

View File

@@ -13,6 +13,7 @@ import Storage from './storage';
import * as metrics from './metrics'; import * as metrics from './metrics';
import * as progress from './progress'; import * as progress from './progress';
import * as fileList from './fileList'; import * as fileList from './fileList';
import checkImg from '../../public/resources/check-16.svg';
const storage = new Storage(); const storage = new Storage();
@@ -117,6 +118,13 @@ async function upload(event) {
link.setAttribute('value', `${info.url}#${info.secretKey}`); link.setAttribute('value', `${info.url}#${info.secretKey}`);
const copyText = document.getElementById('copy-text');
copyText.setAttribute(
'data-l10n-args',
JSON.stringify({ filename: file.name })
);
copyText.setAttribute('data-l10n-id', 'copyUrlFormLabelWithName');
metrics.completedUpload({ metrics.completedUpload({
size: file.size, size: file.size,
time, time,
@@ -219,8 +227,7 @@ document.addEventListener('DOMContentLoaded', function() {
//disable button for 3s //disable button for 3s
copyBtn.disabled = true; copyBtn.disabled = true;
link.disabled = true; link.disabled = true;
copyBtn.innerHtml = copyBtn.innerHTML = `<img src="${checkImg}" class="icon-check"></img>`;
'<img src="/resources/check-16.svg" class="icon-check"></img>';
setTimeout(() => { setTimeout(() => {
copyBtn.disabled = !allowedCopy(); copyBtn.disabled = !allowedCopy();
copyBtn.setAttribute('data-l10n-id', 'copyUrlFormButton'); copyBtn.setAttribute('data-l10n-id', 'copyUrlFormButton');

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "firefox-send", "name": "firefox-send",
"version": "1.1.1", "version": "1.1.2",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,7 +1,7 @@
{ {
"name": "firefox-send", "name": "firefox-send",
"description": "File Sharing Experiment", "description": "File Sharing Experiment",
"version": "1.1.1", "version": "1.1.2",
"author": "Mozilla (https://mozilla.org)", "author": "Mozilla (https://mozilla.org)",
"dependencies": { "dependencies": {
"aws-sdk": "^2.98.0", "aws-sdk": "^2.98.0",

View File

@@ -7,8 +7,10 @@ uploadPageDropMessage = ఎగుమతిని ప్రారంభించ
uploadPageSizeMessage = అత్యంత నమ్మకమైన కార్యం కోసం, మీ ఫైలును 1GB కంటే తక్కువగా ఉంచడం ఉత్తమం uploadPageSizeMessage = అత్యంత నమ్మకమైన కార్యం కోసం, మీ ఫైలును 1GB కంటే తక్కువగా ఉంచడం ఉత్తమం
uploadPageBrowseButton = మీ కంప్యూటర్లో ఒక ఫైలును ఎంచుకోండి uploadPageBrowseButton = మీ కంప్యూటర్లో ఒక ఫైలును ఎంచుకోండి
.title = మీ కంప్యూటర్లో ఒక ఫైలును ఎంచుకోండి .title = మీ కంప్యూటర్లో ఒక ఫైలును ఎంచుకోండి
uploadPageBrowseButton1 = ఎక్కించటానికి ఒక ఫైలును ఎంచుకోండి
.title = ఎక్కించటానికి ఒక ఫైలును ఎంచుకోండి
uploadPageBrowseButtonTitle = ఫైలును ఎగుమతి చేయండి uploadPageBrowseButtonTitle = ఫైలును ఎగుమతి చేయండి
uploadingPageHeader = మీ ఫైలు ఎగుమతి అవుతుంది uploadingPageProgress = { $filename } ({ $size }) ఎక్కుతోంది
importingFile = దిగుమతవుతోంది... importingFile = దిగుమతవుతోంది...
verifyingFile = పరిశీలిస్తున్నది… verifyingFile = పరిశీలిస్తున్నది…
encryptingFile = గుప్తీకరిస్తోంది... encryptingFile = గుప్తీకరిస్తోంది...
@@ -45,6 +47,8 @@ downloadButtonLabel = దిగుమతి
.title = దిగుమతి .title = దిగుమతి
downloadNotification = మీ దిగుమతి పూర్తయ్యింది. downloadNotification = మీ దిగుమతి పూర్తయ్యింది.
downloadFinish = దిగుమతి పూర్తయింది downloadFinish = దిగుమతి పూర్తయింది
// This message is displayed when uploading or downloading a file, e.g. "(1,3 MB of 10 MB)".
fileSizeProgress = { $totalSize }) యొక్క ({ $partialSize }
// Firefox Send is a brand name and should not be localized. Title text for button should be the same. // Firefox Send is a brand name and should not be localized. Title text for button should be the same.
sendYourFilesLink = Firefox sendను ప్రయత్నించండి sendYourFilesLink = Firefox sendను ప్రయత్నించండి
.title = Firefox sendను ప్రయత్నించండి .title = Firefox sendను ప్రయత్నించండి

View File

@@ -194,7 +194,7 @@ app.get('/assets/download/:id', async (req, res) => {
const contentLength = await storage.length(id); const contentLength = await storage.length(id);
res.writeHead(200, { res.writeHead(200, {
'Content-Disposition': `attachment; filename=${meta.filename}`, 'Content-Disposition': `attachment; filename=${meta.filename}`,
'Content-Type': meta.mimeType, 'Content-Type': 'application/octet-stream',
'Content-Length': contentLength, 'Content-Length': contentLength,
'X-File-Metadata': JSON.stringify(meta) 'X-File-Metadata': JSON.stringify(meta)
}); });

View File

@@ -163,7 +163,7 @@ describe('Server integration tests', function() {
res.header['content-disposition'], res.header['content-disposition'],
'attachment; filename=test_upload.txt' 'attachment; filename=test_upload.txt'
); );
assert.equal(res.header['content-type'], 'text/plain'); assert.equal(res.header['content-type'], 'application/octet-stream');
}); });
}); });