send/app
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
..
pages
routes
templates Remove bad role attribute 2018-06-15 10:12:34 -04:00
.eslintrc.yml
api.js fixes #1005 2018-11-14 16:38:46 -08:00
base.css
dragManager.js
experiments.js
fileManager.js
fileReceiver.js fixes #1005 2018-11-14 16:38:46 -08:00
fileSender.js
keychain.js
main.css
main.js Fix #843: Upload image on paste 2018-06-06 12:39:26 +08:00
metrics.js
ownedFile.js
pasteManager.js Add return to prevent multiple uploads 2018-06-07 10:46:55 +08:00
readme.md
storage.js
utils.js

Application Code

app/ contains the browser code that gets bundled into app.[hash].js. It's got all the logic, crypto, and UI. All of it gets used in the browser, and some of it by the server for server side rendering.

The main entrypoint for the browser is main.js and on the server routes/index.js gets imported by /server/routes/pages.js

  • pages contains display logic an markup for pages
  • routes contains route definitions and logic
  • templates contains ui elements smaller than pages