Commit Graph

339 Commits

Author SHA1 Message Date
Donovan Preston
52b4c382cb Make ANDROID=1 npm start work again, as it broke at some point 2019-01-10 15:08:16 -05:00
Danny Coates
7f1ce41d9c
disable validation and resumable for gcs uploads 2019-01-09 13:36:27 -08:00
Danny Coates
06b25dcba6
fixed initial page load rendering for expired downloads and when the upload list isn't empty. fixes #1069 and fixes #1021 2019-01-08 11:24:07 -08:00
Abd ar-Rahman Hamidi
30d7ec50f3
Convert ContentLength of storage to number 2019-01-02 22:16:03 +05:00
Danny Coates
c585c34c01
use one Archive instance for state.archive 2018-12-21 10:54:38 -08:00
Danny Coates
6cc12528b3
fixed some old TODOs 2018-12-18 13:55:46 -08:00
Danny Coates
b1db7ac312
simplified app/main.js a bit 2018-12-18 12:27:43 -08:00
Donovan Preston
d217ac14fc Fix npm run android by removing the <base href> when running under the dev server 2018-12-13 11:44:28 -05:00
Danny Coates
31ff9aaabe
remove cryptofill from layout.js 2018-11-26 11:07:48 -08:00
Danny Coates
531584dbf1
implemented websocket flow control to prevent over buffering 2018-11-22 13:21:39 -08:00
Danny Coates
015067648e
fixed initScript version.json path 2018-11-21 14:40:38 -08:00
Danny Coates
d4528848d9
moved jsconfig code into initScript 2018-11-20 12:23:05 -08:00
Danny Coates
416b9902cb added a webmanifest (#1023) 2018-11-20 15:00:32 -05:00
Danny Coates
1e62aa976d reimplemented l10n using dynamic import() (#1012)
this should greatly reduce the complexity of the l10n code
and build pipeline and eliminate the most common error
seen in sentry logs (no translate function)
2018-11-20 09:50:59 -05:00
Danny Coates
b6517c5442
port fix for #1005 to vnext 2018-11-16 13:33:40 -08:00
Danny Coates
fbad1ab55a
formatting update 2018-11-16 12:39:36 -08:00
Danny Coates
6184a70ba4
fixes #1005
The upstream gcp aggressively closes the connection once it has
received Content-Length bytes. However the @google-cloud/storage
module doesn't handle this well and emits no event in this case.
We were setting Content-Length because it's slightly more
efficient and was important for our download progress
bar (not anymore). The download should function fine without
setting the Content-Length, and allows the storage stream to finish
before closing the upstream socket.
2018-11-14 16:38:46 -08:00
Danny Coates
99f6f53e40
renamed android's index.html to android.html 2018-11-06 11:21:14 -08:00
Danny Coates
eb79ce1835
wip on using shared ui in android 2018-11-02 16:33:16 -07:00
Danny Coates
53426b950a
added gcs 2018-11-02 14:24:10 -07:00
Danny Coates
932a2a4576
removed unused code 2018-11-01 10:44:47 -07:00
Danny Coates
0e5202c470
updated modal 2018-11-01 10:44:45 -07:00
Danny Coates
f0cfc19f8c
a new approach for the ui 2018-11-01 10:43:43 -07:00
Danny Coates
cc85486414
wip 2018-11-01 10:43:14 -07:00
Danny Coates
2b81ff1fb3
some wip. still broken 2018-11-01 10:43:14 -07:00
Danny Coates
9e8e604024
stubbed in gcs (untested) 2018-11-01 10:36:05 -07:00
Danny Coates
a997a44a23
renamed auth route 2018-09-26 12:22:51 -07:00
Donovan Preston
8b21a54ab4
Add the options route to the dev server 2018-09-25 11:14:17 -07:00
Danny Coates
e2259ae737
made download count and expiry options server configurable 2018-09-24 15:08:39 -07:00
Danny Coates
b61bf3c867
changed default config to have accounts disabled 2018-09-24 13:04:29 -07:00
Danny Coates
c8bf3101aa
fixed multiple issues with the /signin page. #935 #936 #937 2018-09-24 12:01:39 -07:00
Danny Coates
135f40f65d
set default fxa env for localhost 2018-09-20 14:13:07 -07:00
Danny Coates
93e82cf953
disable capabilities.account when no FXA_CLIENT_ID is set 2018-09-19 12:54:27 -07:00
Danny Coates
ec5d301814
set capabilities.account = false on the server to defer rendering those components. fixes #929 2018-09-19 09:01:19 -07:00
Danny Coates
99055b1342
fixed leaky app.state on the server-side. fixes #928 2018-09-18 16:23:58 -07:00
Danny Coates
942457b357
added account to capabilities 2018-09-14 13:58:19 -07:00
Danny Coates
7ccf462bf8 implemented PKCE auth (#921)
* implemented PKCE auth

* removed node-jose

* added PKCE tests
2018-09-14 11:00:33 -04:00
Danny Coates
20528eb0d1
added ANDROID environment variable to dev server for hosting the android html 2018-09-10 10:56:59 -07:00
Danny Coates
17ee4e0058 load android ui in dev when browsing to /android (#919) 2018-09-07 13:08:01 -04:00
Danny Coates
71b24b05d0
added http logging to the console in dev 2018-09-04 12:09:03 -07:00
Danny Coates
85185d048c
added fxa auth to /ws 2018-08-31 14:30:50 -07:00
Danny Coates
fb7176d989
added fxa auth to /params 2018-08-31 11:43:56 -07:00
Danny Coates
718d74fa50
Implemented FxA 2018-08-30 22:10:08 -07:00
Emily
b89bef6e89 refactor to single bucket 2018-08-09 14:49:52 -07:00
Emily
bf16e5c8a9 integrate with new ui 2018-08-08 11:07:09 -07:00
Emily
c9ae76b209 hook multifile to ui 2018-08-03 16:10:00 -07:00
Danny Coates
d14aeb29e9
began adding capability flags 2018-07-31 11:29:26 -07:00
Danny Coates
28131243f9
up default max_file_size to 3gb 2018-07-27 10:39:23 -07:00
Danny Coates
5483dc2506
use actual file size in dl progress. detect cancelled stream 2018-07-23 15:18:38 -07:00
Danny Coates
86f2a531d4
Merge branch 'vnext' into sw 2018-07-19 12:16:48 -07:00
Danny Coates
f923ff4f87
Merge remote-tracking branch 'origin/master' into vnext 2018-07-19 12:14:57 -07:00
Emily Hou
59ba89262f
fix download count on server (#863) 2018-07-17 09:48:47 -07:00
Danny Coates
23c347175a
Merge branch 'vnext' into sw 2018-07-13 12:27:39 -07:00
Danny Coates
dd0cb78ea2
Merge remote-tracking branch 'origin/master' into vnext 2018-07-13 12:25:28 -07:00
Danny Coates
787d227761
got webpack production mode running 2018-07-13 11:13:09 -07:00
Danny Coates
1a78f57515
don't set cache header on serviceWorker.js 2018-07-12 20:48:07 -07:00
Emily
527e9f09c9 add a test 2018-07-12 16:07:18 -07:00
Danny Coates
ddeaf8076d
added wss to csp connect-src 2018-07-12 14:27:49 -07:00
Emily
5ff92c6452 fix cancelled downloads increasing count 2018-07-12 14:02:05 -07:00
Danny Coates
ebf6bda467
updated to webpack 4 2018-07-12 13:16:02 -07:00
Emily
ff7969a7ef fix download workflow tests 2018-07-11 16:52:46 -07:00
Emily
f98bc0878c saves stream to file 2018-07-06 15:49:50 -07:00
Emily
62ed0a411f sw 2018-07-05 12:40:49 -07:00
Danny Coates
126ea8c7e6
use a Duplex stream for EOF 2018-06-25 14:27:56 -07:00
Emily Hou
beccd80902
small storage fix (#858) 2018-06-25 11:52:29 -07:00
Emily Hou
9d04514f8e stream footer 2018-06-25 11:26:48 -07:00
Danny Coates
a4cf46c0eb
fixed minor streaming nits 2018-06-25 10:57:52 -07:00
Danny Coates
c157e4d31c
created server/bin/ for server entrypoints
- added server/bin/test.js for the frontend test runner
2018-06-22 13:34:34 -07:00
Emily Hou
dafe4884fc revisions 2018-06-22 13:17:23 -07:00
Emily Hou
12ccce3016 fix checking file early 2018-06-21 16:36:34 -07:00
Emily Hou
e4a0028f5d add streaming 2018-06-21 13:57:53 -07:00
Emily Hou
1bd7e4d486 add streaming 2018-06-20 17:05:33 -07:00
Danny Coates
480a06c426
track bytes sent on download 2018-06-05 15:26:24 -07:00
Danny Coates
af7a262ef0
refactored upload away from multipart forms to binary data 2018-05-31 14:10:02 -07:00
Danny Coates
18e1609cb3
updated docs 2018-03-07 15:01:08 -08:00
Danny Coates
80e9f129d8
ignore some lint warnings 2018-03-01 21:36:45 -08:00
Danny Coates
cd7da20024
implemented crypto polyfills for ms edge 2018-03-01 13:10:57 -08:00
Danny Coates
484063a596
fixed some html nits 2018-02-26 13:49:26 -08:00
Danny Coates
74728782f3
removed unsafe-inline styles via svgo-loader. fixes #740 2018-02-26 11:48:28 -08:00
Danny Coates
22e836c98a
removed unused deps 2018-02-24 18:00:43 -08:00
Danny Coates
78728ce4ca
some frontend unit tests 2018-02-24 11:21:48 -08:00
Danny Coates
8d41111cd6
refactored css, including some markup changes 2018-02-15 15:54:59 -08:00
Danny Coates
3fd2537311
refactored server 2018-02-09 15:03:05 -08:00
Danny Coates
1c5e47b4c4
validate id param without middleware 2018-02-05 17:21:32 -08:00
Danny Coates
aae61f9451
extracted server id validation 2018-02-05 16:37:06 -08:00
Danny Coates
be498e0bd3
/api/info values should be numbers. fixes #748 2018-02-02 10:10:51 -08:00
Danny Coates
af3848586c
Merge branch 'master' into on-redis-expire 2018-01-31 13:10:05 -08:00
Danny Coates
97ad674be2
added /api/info/:id route 2018-01-30 17:29:51 -08:00
Danny Coates
565e47aef8
big refactor 2018-01-30 09:37:42 -08:00
Danny Coates
50ba8bec5a
Merge pull request #683 from ehuggett/issue618
API changes to accommodate 3rd party clients
2018-01-11 13:57:30 -08:00
ehuggett
ebbf06787c changes requested in review 2017-12-23 05:09:06 +00:00
Thomas Dalichow
6f27c6e4aa
Change default bind address to 0.0.0.0 2017-12-21 22:10:42 +01:00
ehuggett
ff9a107a29 API changes to accommodate 3rd party clients 2017-12-21 15:54:19 +00:00
Thomas Dalichow
b80ee8d778
Make the linter happy :) 2017-12-09 02:34:33 +01:00
Thomas Dalichow
c8e168aa3e
Use new config item 'listen_address' in prod 2017-12-09 02:22:36 +01:00
Thomas Dalichow
106aef579f
Add new config item: listen_address
The IP address to bind the HTTP server to
2017-12-09 02:21:55 +01:00
Danny Coates
81f3347981
retry setPassword on first nonce failure. fixes #664 2017-12-08 09:45:00 -08:00
Danny Coates
7b4060f9e1
Added multiple download option 2017-12-04 15:52:31 -08:00
Danny Coates
b54f4575ee
allow inline styles. fixes #644 2017-11-15 10:54:13 -08:00
Edmund Huggett
58840e2c00
use redis expire event to delete stored data immediately 2017-11-15 12:31:22 +00:00
Danny Coates
e7fdf76120
Added experiment for firefox download promo 2017-11-14 12:24:54 -08:00
Danny Coates
bfcdf9340d
use fluent-langneg for subtag support 2017-11-10 12:40:18 -08:00
Danny Coates
2e233da16d
unsupport MS Edge (for now, sorry) and some http header nits 2017-11-06 13:36:56 -08:00
Danny Coates
bc24a069da
Add optional password to the download url 2017-10-10 10:45:10 -07:00
Danny Coates
32c5b414de
use beefy ui 2017-10-10 10:20:49 -07:00
Erica Wright
6de91b5872
Change Favicon in to look better in a variety of cases 2017-10-06 11:24:17 -04:00
Danny Coates
81442bb6f2
set default server states for fira and fileInfo 2017-09-14 12:15:08 -07:00
Danny Coates
17e61bb09d
added first A/B experiment 2017-09-11 17:30:05 -07:00
Danny Coates
7a8e9b5de1
fixes #543 added FILE_DIR environment variable 2017-09-06 13:25:27 -07:00
Danny Coates
74718d6361
disable CSP when env = development 2017-08-29 11:19:21 -07:00
Danny Coates
131a8b5564
updated readme. made redis optional in dev 2017-08-25 13:58:51 -07:00
Danny Coates
a9a34fdd0a
fixed GA var in jsconfig 2017-08-25 13:13:45 -07:00
Danny Coates
1655094ce3
fixed locale path on dev 2017-08-25 11:43:59 -07:00
Danny Coates
9ae7e3df11
fixed prod listen port 2017-08-25 10:21:38 -07:00
Danny Coates
0a31e2d521
fixed __heartbeat__ route 2017-08-25 10:03:49 -07:00
Danny Coates
53e822964e
a few changes to make A/B testing easier 2017-08-25 09:44:52 -07:00
Danny Coates
e9405f49ee
xhr download as octet-stream 2017-08-17 10:19:18 -07:00
Danny Coates
757ac14d1a
webpacked the heck out of the build 2017-08-16 14:21:01 -07:00
Danny Coates
0ab8ddc894
groundwork for asset caching 2017-08-15 11:55:52 -07:00
Danny Coates
d8a5789701
added precommit hook for format 2017-08-11 18:06:16 -07:00
Danny Coates
e142d76cb4 Merge pull request #428 from mozilla/add-twitter-og-cards
add twitter and open graph cards
2017-08-11 14:12:44 -07:00
Danny Coates
c488c1d724
added BASE_URL environment variable 2017-08-11 14:02:44 -07:00
Varghese Thomas
70813556ad Reverting unwanted notfound page response 2017-08-12 00:29:25 +05:30
Varghese Thomas
a9c1dd0180 Replacing all send status 404 with notfound page 2017-08-11 20:52:18 +05:30
Varghese Thomas
c468e2f34e Sending not found page for invalid url id 2017-08-11 20:46:59 +05:30
John Gruen
dafe00cabb add twitter and open graph cards 2017-08-11 13:39:04 +02:00
Danny Coates
702134b3b1
use import/export in the frontend code 2017-08-10 10:03:22 -07:00
Danny Coates
21b7f16b1e
added webpack-dev-middleware for recompiling on source changes 2017-08-10 09:23:33 -07:00
Danny Coates
193664a8e8
set the mime type in the download blob 2017-08-09 14:25:37 -07:00
Danny Coates
9a150ddb22
removed the file sha256 hash 2017-08-07 14:05:13 -07:00
Danny Coates
c91d24cd86
factored out progress into progress.js 2017-08-06 23:45:22 -07:00
Danny Coates
b0d36529a1
refactored metrics 2017-08-05 16:38:08 -07:00
Danny Coates
8cfb45944c
pruned server logs 2017-08-03 21:47:03 -07:00
Peter deHaan
705289d34b
Only include Fira CSS on /unsupported/* route 2017-08-03 11:12:13 -07:00
Weihang Lo
2b7f06dda2
Code formatting 2017-08-03 14:01:13 +08:00
Weihang Lo
596ad871df
Use async function instead of promise (#325) 2017-08-03 13:31:23 +08:00
Weihang Lo
bbe111a95e
Use async function instead of promise (#325) 2017-08-03 11:11:04 +08:00
Danny Coates
5944b85e67
filter the hash from error reports 2017-08-02 15:04:34 -07:00
Peter deHaan
dff443287c
Tweak the package.json require statement 2017-07-30 20:11:12 -07:00
Peter deHaan
42ef0facc9
Get rid of console.log statements 2017-07-29 00:04:50 -07:00
Erica Wright
8cb40effa5
edit some syntax 2017-07-28 14:11:58 -04:00
Erica Wright
8d8c2efa23
create /unsupported/outdated version of the /unsupported page 2017-07-27 14:24:49 -04:00
Danny Coates
7fd8fb4914
added L10N_DEV environment variable for making all languages available 2017-07-25 14:28:49 -07:00
Danny Coates
424eb2c37a
refactor all redis calls to reject on null 2017-07-25 13:00:02 -07:00
Danny Coates
dd0ab710de
format 2017-07-25 12:21:07 -07:00
Danny Coates
15ac0e1d49
expired ids should reject instead of returning null 2017-07-25 12:00:52 -07:00
Danny Coates
3febcfe1ea Merge pull request #291 from mozilla/legal
added legal page
2017-07-25 09:03:11 -07:00
Danny Coates
5a564e2c37
tighten csp 2017-07-24 22:08:43 -07:00
Danny Coates
117c6ea12d Merge branch 'master' into envvar 2017-07-24 14:06:55 -07:00
Danny Coates
4cb040d70d
added environment variable for expire time 2017-07-24 13:20:18 -07:00