p5.js-web-editor/server/routes
Enrique Piqueras 5e4b076b93 Fixed #158 and #100 (#198)
* Changed unsaved changes asterisk to an svg circle. #158

* Fixed #100
Unmatched routes are handled by react-router on the client side
and a single wildcard route on server.routes.js renders the index
html.
When the /:username/sketches route is matched and the username is not
valid, the user will be redirected to the index route and a toast
will explain what happened. When the username is 'p5' (default when
logged out) it will show all sketches. Maybe this should be changed
to just public or 'local' sketches?

* Moved unsaved changes SVG to a separate file.

* User not found is now a 404 error.

* Added server rendered 404 page.

* Removed console.log

* 404 Page now renders a random p5 sketch. TODO: make 404 sketches.

* Added 404 header
404 page now fetches a random example sketch

* Moved circle closer to file name

* Render 404 page in SketchList route if !user
2017-01-06 13:08:03 -05:00
..
aws.routes.js get dropzone to render 2016-07-19 18:27:27 -04:00
embed.routes.js change full screen view to embed view 2016-11-02 11:12:07 -04:00
file.routes.js fix linting errors that are fixable with --fix in server side code 2016-11-17 11:15:35 -05:00
project.routes.js fixes #96, downloads now work on safari and firefox 2016-11-02 14:08:53 -04:00
server.routes.js Fixed #158 and #100 (#198) 2017-01-06 13:08:03 -05:00
session.routes.js add and test logout 2016-08-27 20:46:20 -04:00
user.routes.js add basic password reset functionality, no error checking or styling 2016-10-19 12:36:58 -04:00