p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Download Collections as zip

Open catarak opened this issue 9 years ago • 9 comments

Once #43 is implemented, it would be nice to be able to download a collection as a zip. Then, for example, a teacher could easily upload all of the files to Github.

catarak avatar Jan 17 '17 22:01 catarak

screen shot 2017-07-11 at 2 00 04 pm

catarak avatar Jul 11 '17 18:07 catarak

A download all sketches into a .zip would be nice also.

slowizzm avatar May 26 '20 20:05 slowizzm

Hi @catarak, I'd like to work on it.

MohdImran001 avatar Nov 11 '20 02:11 MohdImran001

@MohdImran001 go ahead!

catarak avatar Nov 12 '20 22:11 catarak

Hi @catarak, please review my PR.

MohdImran001 avatar Dec 03 '20 18:12 MohdImran001

A download all sketches into a .zip would be nice also.

Hi @slowizzm,

I have created an unofficial implementation of this feature here.

Anyone in the p5 community can use my code if it helps adding the feature in the web editor.

niemenjoki avatar Mar 15 '21 13:03 niemenjoki

Thanks @jnsjknn p5-project-downloader, close to what I'm looking for. Ideally i'd like to keep local copy of sketches in sync with online version.

jht1493-gmail avatar Apr 01 '21 10:04 jht1493-gmail

So currently the editor uses JSZip to make a zip file of a sketch using this controller:

https://github.com/processing/p5.js-web-editor/blob/f21b84772c85927f8016d7c23aef7ad1a5a41b64/server/controllers/project.controller.js#L289-L294

The same library can be used for a Collection, since it has the items property that is an array of sketches. Iterating through the array, each sketch can be added to a single zip file.

A similar fix can be done for #1939

So, if both these issues are still open, please assign them to me. @lindapaiste @raclim

mhsh312 avatar Dec 03 '23 07:12 mhsh312

I would like to work on this issue

Noorain464 avatar Aug 01 '24 15:08 Noorain464