Conversation
|
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/vjeux/excalidraw/5gpfonvd8 |
|
The backend supports storing plain text data in version 2: https://json.excalidraw.com |
|
Ad gzip: We could manually compress before encrypting (with some caveats). |
|
@lipis it seems like v2 is not whitelisted for CORS :( |
|
@lipis if you want to test it out, I updated the PR. Repro:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I got a response, by removing these two lines from the commit suggestions. |
|
The entire flow is working! You can try with those two scenes:
|
In order to avoid the server being able to read the content of the scene, this PR implements local encryption and decryption. This implements the algorithm described in excalidraw#610. Right now the server doesn't support uploading binary files. I mocked the server with comments. @lipis, could you add support on the server and update this PR? I added a bunch of TODO: that tell you where to comment/uncomment in order to get the server flow going. To test locally right now: - Import: Open http://localhost:3000/#json=1234,5oYVOnGpWYPPTz19-PMYYw and see a square - Export: Click the export link and see the right url with the private key + the encrypted binary in the console Fixes excalidraw#610
|
The list of recently loaded scenes is broken though.. also when there is only one entry it doesn't reload it. |
|
Oops, I didn't test the recent list, thanks, I'll look into it |
|
I can't reproduce, it seems to be loading the scenes correctly for me. |


This PR implements the following scheme:
Upload:
Download:
Fixes #610