Commit graph

303 commits

Author SHA1 Message Date
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
Cassie Tarakajian
9886e53a7c fix #245 2017-01-05 16:54:33 -05:00
Cassie Tarakajian
3b93a5ff19 remove deletion step 2016-12-13 20:47:19 -05:00
Cassie Tarakajian
1e90ea1437 add s3 deletion script 2016-12-13 20:45:30 -05:00
Cassie Tarakajian
14d1c33951 more s3 script testing 2016-12-13 20:36:48 -05:00
Cassie Tarakajian
c9df78a667 add to s3 script 2016-12-13 20:32:57 -05:00
Cassie Tarakajian
ebb7729fd0 log total files to delete 2016-12-13 20:12:17 -05:00
Cassie Tarakajian
5f106cd378 remove console.log 2016-12-13 20:09:41 -05:00
Cassie Tarakajian
5711c3b4da start to add file to delete unused files from S3 2016-12-13 20:07:02 -05:00
Cassie Tarakajian
cb6256d3e3 #20 switch p5.js back to minified 2016-12-13 16:19:39 -05:00
Cassie Tarakajian
d0770739b1 update p5.js version and switch to non-minified versions 2016-12-13 16:08:23 -05:00
Cassie Tarakajian
9e61382e87 #182 possible fix to password reset 2016-12-13 13:28:01 -05:00
Cassie Tarakajian
fcbb12ba13 change selected file for instance container examples 2016-12-09 12:28:20 -05:00
Yining Shi
412d330f74 Fixed example instance container (#221)
* fixed example inance container

* added a space
2016-12-09 12:19:02 -05:00
Yining Shi
29de5fce55 Fetch examples from p5 website repo (#203)
* changed open to examples, created basic fetch-examples.js

* use dotenv babel-register polyfill

* save examples in order

* added assets

* use rawgit.com

* async process.exit

* sound:Convolution Reverb
2016-12-01 18:57:50 -05:00
Jen Kagan
55b54f09bd Change routes to /:username/sketches/:projectid (#216) 2016-12-01 17:12:34 -05:00
Cassie Tarakajian
5dd0220610 fix baseURL for preview frame 2016-11-30 12:38:53 -05:00
Cassie Tarakajian
fd26b3f77c add otf and ttf to media file list for preview generation 2016-11-30 11:51:54 -05:00
Yining Shi
62409a3bf8 Added favicon (#213)
* added favicon

* deleted local favicon
2016-11-26 18:10:03 -05:00
Cassie Tarakajian
af3cb60ce1 fix linting errors that are fixable with --fix in server side code 2016-11-17 11:15:35 -05:00
Cassie Tarakajian
04922522cc cool to share some of this code between client and server
Squashed commit of the following:

commit fb5e82cea930b011792983c7d1cc9f6ecacc7dd4
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Wed Nov 16 12:28:10 2016 -0500

    add server side rendering, untested

commit 5c60fb30c46ea49a8d9a0ecb56f39ec778464a8b
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Tue Nov 15 18:26:06 2016 -0500

    add redux-form bandage post react update, should probably update to redux-form 6 at some point

commit 057b5871e7137179abc93f7821a9690f0ea52c92
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Tue Nov 15 16:30:09 2016 -0500

    remove passing jsFiles and cssFiles to PreviewFrame, fix rendering bug

commit 88c56fd36d3a8d88902c79642171988ce37825f2
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Tue Nov 15 16:21:59 2016 -0500

    code cleanup, untested

commit 82e5dcf8bca461892f1daf06d38f1eaebe72983f
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Tue Nov 15 15:53:50 2016 -0500

    update react and react router, fix a few bugs in rendering code, add ability to parse inline js and css

commit e02f4b67803ea45328eff4e53659222f3149964c
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Tue Nov 15 14:43:38 2016 -0500

    add almost full code to create preview html correctly, untested

commit 12f61b2a1aed4607fab24d01572b647ca6210262
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Wed Nov 2 17:09:26 2016 -0400

    refactor some of the preview html generation code

commit 111825846703d5c8959cb18795a3aadb7ebe505c
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Wed Nov 2 11:06:36 2016 -0400

    add comments as plan of action

commit 1cc2cf5203674732b4057382f1937de38b687078
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Thu Oct 27 19:34:55 2016 -0400

    add href parsing

commit e67189298cda9b70645f454ecd541a363980f0e4
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Thu Oct 27 10:48:36 2016 -0400

    continue parsing html

commit 1458fb940a15a3dc5d74890211a3073e920b84b8
Author: Cassie Tarakajian <ctarakajian@gmail.com>
Date:   Wed Oct 26 17:40:31 2016 -0400

    start to add html parsing
2016-11-16 13:12:36 -05:00
Mathura MG
ced885d03f Add multiple canvas text outputs (#197)
* added grid

* add table to textoutput

* add all three outputs

* add shortcuts

* fix sound bug for triangle

* fix triangle bug - again
2016-11-12 11:53:02 -05:00
Cassie Tarakajian
f40ecebfba #142 add webpack configuration to decrease loading speed 2016-11-08 18:11:12 -05:00
Cassie Tarakajian
2750b1f0ef #189 i have literally been putting this off for months but i finally figured out now to resolve file paths \ 😄 / 2016-11-08 16:50:21 -05:00
Cassie Tarakajian
081c7d521e #189 load text files from server via filename, does not work for file paths 2016-11-08 14:42:23 -05:00
Cassie Tarakajian
b06fb4cb80 change p5.js password reset email 2016-11-02 18:08:28 -04:00
Cassie Tarakajian
588668886d update default version of p5 to 5.4 2016-11-02 15:06:28 -04:00
Cassie Tarakajian
85b8f5b589 fixes #96, downloads now work on safari and firefox 2016-11-02 14:08:53 -04:00
Cassie Tarakajian
2645e13786 change full screen view to embed view 2016-11-02 11:12:07 -04:00
Cassie Tarakajian
e66b916349 change password reset email address 2016-10-19 12:36:58 -04:00
Cassie Tarakajian
70f1c1c8f1 update email copy 2016-10-19 12:36:58 -04:00
Cassie Tarakajian
e5ff11f65a add basic password reset functionality, no error checking or styling 2016-10-19 12:36:58 -04:00
Cassie Tarakajian
d055aa5af8 more password reset things 2016-10-19 12:36:58 -04:00
Cassie Tarakajian
5aa5032961 create password reset token from FE, start to add flash text 2016-10-19 12:36:58 -04:00
Cassie Tarakajian
ea6d30c430 more password reset stuff 2016-10-19 12:36:57 -04:00
Cassie Tarakajian
1610b0168d start to add mailgun and nodemailer 2016-10-19 12:36:57 -04:00
kaganjd
76bd1b1630 Add ability to delete projects from sketch list (#125)
* Add ability to delete projects from sketch list

- Fixes #76
- Also gets rid of outdated Sketch module

* Styling for Sketch List trash can

* Merge all the stuff

* Fix trash can line height
2016-10-12 14:24:53 -04:00
Cassie Tarakajian
dfc55aaa5b temporarily remote autorefresh and loop protect 2016-10-04 15:35:23 -04:00
Cassie Tarakajian
1232e4c5ca add db reformat script 2016-10-01 14:01:32 -04:00
Cassie Tarakajian
7fb85c251b auto autorefresh to preferences, save autorefresh server side 2016-09-28 18:09:37 -04:00
catarak
103ebd2014 add theme to preferences, add backbone of themes to scss 2016-09-20 23:57:27 -04:00
catarak
e24e2805b6 db reformat 2016-09-14 17:34:10 -04:00
catarak
7436f4960f this time, db reformat, for real 2016-09-14 16:41:36 -04:00
catarak
03e2fd32c5 more db testing stuff 2016-09-14 16:33:47 -04:00
catarak
fcf09c6779 even more db reformat 2016-09-14 16:30:50 -04:00
catarak
f1ec50d914 more db reformatting 2016-09-14 16:27:05 -04:00
catarak
90c55e9e0b db reformat again 2016-09-14 16:24:51 -04:00
catarak
8bf252ed87 fix dbreformat 2016-09-14 16:23:22 -04:00
catarak
912cddf776 db reformat testing 2016-09-14 16:20:25 -04:00
catarak
9e6d4b56bd change isSelected to isSelectedFile, add db reformat 2016-09-14 15:57:52 -04:00
catarak
b004fd077f change http urls to https 2016-09-08 22:02:42 -04:00
catarak
207bab20eb add embed route, fix path parsing in PreviewFrame 2016-09-06 16:54:16 -04:00
catarak
52fa553d8f add script to reformat database 2016-09-04 16:39:12 -04:00
catarak
69bb0d0077 adding and deleting files works server side 2016-09-02 19:02:38 -04:00
catarak
1ae27f0d66 add file icons and file types default to file 2016-09-02 17:41:01 -04:00
catarak
3dfed2a11e delete files works, server side 2016-09-02 17:41:01 -04:00
catarak
34fe78d734 create file works server side 2016-09-02 17:41:01 -04:00
catarak
d08c7c6b94 fix really really annoying bug 2016-09-02 17:41:01 -04:00
catarak
c8074f1501 do a lot of things that aren't really working 2016-09-02 17:41:01 -04:00
catarak
ac6585e713 add file works on unsaved project 2016-09-02 17:41:01 -04:00
catarak
40b70d6c69 add file node component 2016-09-02 17:41:00 -04:00
catarak
1d86d766d9 add login error for invalid username or password 2016-09-02 17:31:07 -04:00
catarak
3b6bfbc552 check for duplicate email and username 2016-09-02 14:51:30 -04:00
catarak
a741e4aaa8 fix passport strategy config, remove github button from signup form 2016-08-31 15:30:37 -04:00
catarak
7a8e77282d add github login and signup 2016-08-31 15:12:18 -04:00
catarak
29571e4764 login with github works if not already registered 2016-08-31 12:57:47 -04:00
catarak
ab576fe737 add github button styling, add backend for login with github 2016-08-31 12:28:06 -04:00
catarak
64b2ea3da4 add and test logout 2016-08-27 20:46:20 -04:00
catarak
8713e297dd add about modal to link to github 2016-08-22 12:35:59 -04:00
Cassie Tarakajian
1734852f68 Merge pull request #50 from MathuraMG/output
Create text output for canvas
2016-08-19 16:03:22 -04:00
catarak
3ab1b82d8d add fullscreen route and page 2016-08-17 18:13:17 -04:00
catarak
bca59a6233 add /:username/sketches links to username sketches 2016-08-17 15:53:25 -04:00
MathuraMG
bcd2a39f9d add preferences to include text output 2016-08-12 15:50:33 -04:00
MathuraMG
cc62ca23a3 add lintWarning to user.js 2016-08-12 15:33:23 -04:00
catarak
3bee1f8c37 fix bug with old p5.js version 2016-08-10 15:03:05 -04:00
catarak
afc86740b3 fix preferences font size text size bug 2016-08-09 18:45:59 -04:00
catarak
d9ea10c4c6 set preferences when authenticating user 2016-08-09 17:50:45 -04:00
catarak
9f9425c5e9 update preferences server side 2016-08-09 14:20:54 -04:00
catarak
c76b1353c3 put preferences to server, need to look at mongoose docs tho because is wrong 2016-08-04 21:43:13 -04:00
catarak
b542f72d33 remove code bloat from preferences, add preferences to user schema 2016-08-03 23:45:49 -04:00
catarak
625608ebbb when uploading file, add file to project 2016-07-19 18:27:27 -04:00
catarak
c677c37597 get dropzone to render 2016-07-19 18:27:27 -04:00
Cassie Tarakajian
62023c2c82 Merge pull request #12 from MathuraMG/accessibility
add aria tags and roles
2016-07-18 12:10:23 -04:00
catarak
fa84be5d5d fix build error 2016-07-18 00:38:41 -04:00
MathuraMG
038d290577 fix merge conflicts 2016-07-15 17:23:59 -04:00
catarak
8d8e399aac add cloning of projects 2016-07-15 13:36:33 -04:00
catarak
c3486af031 add author name to sketches 2016-07-15 11:54:47 -04:00
catarak
4d6e4857ba add files, server side, only css and js files 2016-07-13 18:53:56 -04:00
mathuramg
d4d3d354b3 remove dev variables 2016-07-13 13:03:30 -04:00
mathuramg
baec9e9e87 add aria-tags and titles 2016-07-13 11:59:47 -04:00
mathuramg
da493e4014 remove dev changes 2016-07-12 14:50:54 -04:00
mathuramg
d72a6be009 add table scope 2016-07-12 10:16:19 -04:00
mathuramg
c8f54dced9 fix merge conflict 2016-07-11 23:03:54 -04:00
catarak
9249d496fa add css files to sketch 2016-07-11 21:54:08 -04:00
catarak
7a164d9cdd multiple files rendering 2016-07-11 15:22:29 -04:00
mathuramg
0942378812 remove dev changes 2016-07-11 09:06:43 -04:00
catarak
7a84137e9b start to add selected file stuff 2016-07-08 14:57:22 -04:00
catarak
e06c821923 fix updating file to return all file keys 2016-07-07 13:50:52 -04:00
catarak
88531447ba add ids to files, fix update file action/reducer 2016-07-07 13:04:54 -04:00
catarak
6e12ed6524 fix default file on server, change file to files in lots of places 2016-07-06 17:29:07 -04:00
catarak
e6d94a0db8 start to add multiple file functionality 2016-07-06 15:09:05 -04:00
mathuramg
1b56f8ce54 add more preferences 2016-07-06 11:27:39 -04:00
catarak
6563d9d90b add sketch list, with links 2016-07-05 16:04:14 -04:00
catarak
b2369704a2 start sketch list view 2016-07-01 11:30:40 -04:00
catarak
aa0637c256 fix bugs with saving/fetching projects 2016-06-29 12:52:16 -04:00
catarak
21a2b25add fix project saving bug 2016-06-28 19:35:56 -04:00
catarak
4f82a8fd31 add production build 2016-06-28 14:41:15 -04:00
catarak
248744b186 start to add production webpack 2016-06-27 18:46:08 -04:00
catarak
2bdd682771 fix some minor eslint errors 2016-06-27 13:09:18 -04:00
catarak
e18a5e0941 fix some linting errors 2016-06-24 18:18:22 -04:00
catarak
e20b0545d1 fix login and signup bugs 2016-06-24 18:08:52 -04:00
catarak
3d42da18a8 fix a ton of eslint errors 2016-06-23 18:29:55 -04:00
catarak
3aa3a4d03f add nodemon, remove .env from being tracked 2016-06-22 18:48:45 -04:00
catarak
17836fcd88 add more project saving stuff 2016-06-20 18:01:36 -04:00
catarak
d8f47d714b save project without logging in 2016-06-20 18:01:36 -04:00
catarak
719042e41b combine project view and ide view 2016-06-20 18:01:36 -04:00
catarak
c25d669fe9 move ajax requests to /api 2016-06-20 18:00:40 -04:00
catarak
1045cddaeb figure out how redux-thunk works 2016-06-20 18:00:40 -04:00
catarak
e1a79ba7a6 start to add create project 2016-06-20 18:00:40 -04:00
catarak
165ad75e8b add project and file models, add project reducer and actions, add project name to toolbar, make project toolbar name contenteditable 2016-06-20 17:59:22 -04:00
catarak
5e631dcb16 add user authentication when first opening editor 2016-06-20 17:51:03 -04:00
catarak
d672166b87 add login view 2016-06-20 17:50:45 -04:00
catarak
0c54f372c1 store signup in redux 2016-06-20 17:50:45 -04:00
catarak
4908dc1e0b change authentication to cookies 2016-06-20 17:47:47 -04:00
catarak
9e366fdc17 fix merge conflict, for real this time 2016-06-20 17:47:47 -04:00
catarak
25951cd45b add sign up server side, still working on client side 2016-06-20 17:47:47 -04:00
catarak
b2a4eacc52 add dotenv, start to add signup 2016-06-20 17:47:47 -04:00
catarak
38accbaa1d sign up view renders, not tested if functional 2016-06-20 17:47:47 -04:00
catarak
2f474f3aff add login route 2016-06-20 17:47:46 -04:00
catarak
ba1cf0c644 add react router 2016-06-20 17:47:46 -04:00
catarak
eec7987c70 add a lot of server side libraries, preemptively, still hooking everything up 2016-06-20 17:47:46 -04:00
catarak
06ff0e3e31 add framework for sessions 2016-06-20 17:47:46 -04:00
catarak
62ef5556bd add session and cookie and passport config for server 2016-06-20 17:47:46 -04:00
catarak
22964f7a1c add sign up server side, still working on client side 2016-06-20 17:47:46 -04:00
catarak
341158579f add dotenv, start to add signup 2016-06-20 17:47:46 -04:00
catarak
0919cacc52 sign up view renders, not tested if functional 2016-06-20 17:47:46 -04:00
catarak
ea83c2ba0b add a lot of server side libraries, preemptively, still hooking everything up 2016-06-20 17:47:46 -04:00
catarak
33fcafb483 add framework for sessions 2016-06-20 17:47:46 -04:00
catarak
2b99122f30 add session and cookie and passport config for server 2016-06-20 17:47:46 -04:00
catarak
09654ca66b add sign up server side, still working on client side 2016-06-20 17:47:17 -04:00
catarak
c496f20699 add dotenv, start to add signup 2016-06-20 17:47:17 -04:00
catarak
1136ac3f16 add a lot of server side libraries, preemptively, still hooking everything up 2016-06-20 17:47:16 -04:00
catarak
4c8684877e add framework for sessions 2016-06-20 17:47:16 -04:00
catarak
d8bdc9a232 add session and cookie and passport config for server 2016-06-20 17:47:16 -04:00
catarak
fdd946b961 add sign up server side, still working on client side 2016-06-20 17:47:16 -04:00
catarak
1f75b4d390 add dotenv, start to add signup 2016-06-20 17:46:42 -04:00
catarak
4e1ea2d1fc sign up view renders, not tested if functional 2016-06-20 17:46:23 -04:00
catarak
c22ae1724a add login route 2016-06-20 17:46:23 -04:00
catarak
16abc8d725 add react router 2016-06-20 17:46:23 -04:00
catarak
47491f63ba add a lot of server side libraries, preemptively, still hooking everything up 2016-06-20 17:44:36 -04:00
catarak
dfe54dd784 add framework for sessions 2016-06-20 17:44:36 -04:00
catarak
65c02922c7 add session and cookie and passport config for server 2016-06-20 17:44:36 -04:00
catarak
5e2a57d9eb initial commit 2016-05-03 00:09:16 -04:00