Open
Description
we've been using hash to load sketches without refreshing the page like this:
http://p5ide.herokuapp.com/editor#?sketch=568d9514f60b940300d5f2fd
@antiboredom suggests we use HTML History API instead like this http://p5ide.herokuapp.com/editor/sketch/568d9514f60b940300d5f2fd
because
- the url looks nicer, and
- it may help with Upload "assets" (i.e. JSON, Images, Audio, Video, text files) #100, to loading files by relative paths in methods like loadJSON('data.json'). If we the server gets a request from http://p5ide.herokuapp.com/editor/sketch/568d9514f60b940300d5f2fd/assets/myimage.jpg we could see that the request is for that particular project, and return the image associated with that project that has that name.
To accomplish this, we can incorporate the vue-router module which we have not started using yet (it may not have been finished when the project began): http://vuejs.github.io/vue-router/en/api/properties.html
Metadata
Metadata
Assignees
Labels
No labels
Activity