Commit graph

247 commits

Author SHA1 Message Date
Andrew Nicolaou
313fc856d1 Fixes linting errors (#362) 2017-06-05 22:33:32 -04:00
Kevin Dodge
6518bf14bf Fix typo in preview version/bug reporting announcement (space needed between 'bugs' and 'here'). (#345) 2017-05-03 11:57:33 -04:00
Andrew Nicolaou
ae668f681e HTTPS UI switch (#335)
* Checkbox to toggle project's serveSecure flag

This doesn't yet persist or reload the page.

* Help button that shows modal to explain feature

* Extracts protocol redirection to helper

* Returns promise from saveProject() action to allow chaining

* Setting serveSecure flag on project redirects after saving project

* Set serveSecure on Project model in API and client

* Redirect to correct protocol when project is loaded
2017-05-03 11:46:12 -04:00
Andrew Nicolaou
a267837fb7 Persists Redux store to/from sessionStorage (#334)
* Persists Redux store when reloading app for login

* Disable confirmation box when leaving page for login

* Removes extra console.warn

* Sets serveSecure: true for new projects if served over HTTPS

* Clears persisted state on IDEView load

Because when a sketch is created on HTTPS and then the user logs in
the page won't be reloaded

* Appends ?source=<protocol> to URL to track return protocol
2017-04-20 14:05:15 -04:00
Andrew Nicolaou
dc801ccf7f Force HTTPS redirection for log in and sign up (#319)
* Higher-order component to force some routes to HTTPS

* Force all user-management routes to HTTPS

* Redirect to sourceProtocol as route unmounts.

By default, no redirection occurs if sourceProtocol is not explicitly
defined.

* Sets serveSecure flag on new projects and usea after forcing protocol

The flag is set to `false` on all projects and as the UI has no way to
change this, it always redirects to HTTP after a signup/login action.

* Move HoC to be with other top-level components

* Server should respond to account page request

* Serves AccountView over HTTPS

* Turns HTTPS redirection off in development by default

Will log to the browser console any redirection that would
have happened. Added a line in the README about how to
enable this for testing in development.
2017-03-30 12:36:26 -04:00
Yining Shi
fe6acc90e4 Adding User Settings View (#325)
* added account page showing username and email

* change username and email

* validate current password and add new  password

* reject promise with error for reduxForm submit-validation for current password

* updated user reducer to handle setting sucess and server side async

* warning if there is current password but no new password

* fixes logout button

* import validate function, fixes logout style
2017-03-16 18:25:12 -04:00
Cassie Tarakajian
e87390adb9 update eslint to latest version, fix lots of linting errors (#308)
* update eslint and dependencies, fix linting errors that can be fixed with --fix

* fix lots of linting errors

* update eslintrc, fix some linting errors

* fix all server side linting errors, untested

* fix errors that fixing linting errors had caused

* fix client side eslint errors

* fix client side linting errors

* fix refs lint errors

* fix more linting errors

* update eslint and dependencies, fix linting errors that can be fixed with --fix

* fix lots of linting errors

* update eslintrc, fix some linting errors

* fix all server side linting errors, untested

* fix errors that fixing linting errors had caused

* fix client side eslint errors

* fix client side linting errors

* fix refs lint errors

* fix more linting errors

* fix some accessibility linting errors

* fix a lot of linting errors

* fix a billion more linting errors

* hopefully fix all linting errors, still need to test

* fix bugs that fixing linting had caused
2017-02-22 14:29:35 -05:00
Cassie Tarakajian
257b44ad23 change links in nav to /{username}/sketches from /sketches 2017-01-24 16:14:07 -05:00
Cassie Tarakajian
a9ee70e033 #254 show error when user attempts to save stale version of project, refactor error modals to one component 2017-01-24 15:29:25 -05:00
Cassie Tarakajian
cb2d8d0dd5 fix #269 2017-01-17 13:20:42 -05:00
Cassie Tarakajian
885967d8e3 fix #260 2017-01-08 16:42:20 -05:00
Lauren McCarthy
c6ecda4f3a adding alpha warning (#249)
* removing avenir font, using montserrat instead due to licensing issues

* removing old import statement for typeography scss file

* adding alpha warning
2017-01-06 15:13:46 -05:00
Cassie Tarakajian
074f5b35b1 fix #243 2017-01-05 15:27:57 -05:00
Lauren McCarthy
28323ffc09 formatting of dropdown login and editor menus (#239)
* removing avenir font, using montserrat instead due to licensing issues

* removing old import statement for typeography scss file

* dropdown formatting closes #210
2016-12-20 00:21:04 -05:00
Lauren McCarthy
5de2a6761f Prefs (#238)
* removing avenir font, using montserrat instead due to licensing issues

* removing old import statement for typeography scss file

* formating prefs pane

* updating capitalization
2016-12-19 23:48:36 -05:00
Cassie Tarakajian
cb41b3296d minor css fixes to nav 2016-12-19 17:56:39 -05:00
Lauren McCarthy
844c918652 styling of nav and toolbar (#237)
* removing avenir, replacing with montserrat

* sidebar tweaks

* sidebar positioning

* resolving merge conflict

* working on sidebar

* removing avenir font, using montserrat instead due to licensing issues

* removing old import statement for typeography scss file

* design formatting for sidebar closes #234

* styling of nav and toolbar
2016-12-19 17:52:21 -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
Cassie Tarakajian
0a459246ac FINALLY fix #52, this will not work with redirecting to https when authenticating but we will cross that bridge when we get there 2016-11-29 15:51:16 -05:00
Cassie Tarakajian
33582a1a2e change nav extension to jsx 2016-11-08 19:04:08 -05:00
Cassie Tarakajian
85b8f5b589 fixes #96, downloads now work on safari and firefox 2016-11-02 14:08:53 -04:00
Cassie Tarakajian
93de8596f2 fix #154 2016-10-19 12:36:40 -04:00
Zhuoxi Song
2856615c4d added link to p5js reference at top nav (#131) 2016-10-07 11:26:49 -04:00
catarak
3cee334a21 remove save from nav when viewing another user's project 2016-09-07 15:21:22 -04:00
catarak
14a51b6332 add share modal 2016-09-06 22:37:29 -04:00
Lauren McCarthy
aadbe33685 updating link in nav.js to point to p5/sketches instead of p5js/sketches 2016-08-28 13:05:12 -04:00
catarak
4859b66cc6 fix #54 2016-08-27 21:52:00 -04:00
catarak
64b2ea3da4 add and test logout 2016-08-27 20:46:20 -04:00
catarak
b79cec93b0 change a to react-router link 2016-08-27 19:14:22 -04:00
Lauren McCarthy
ef8034eb1b adding open option to logged out view closes #67 2016-08-26 13:32:18 -04:00
catarak
8713e297dd add about modal to link to github 2016-08-22 12:35:59 -04:00
catarak
f5c63dddad change nav if user is logged in, if project is saved 2016-08-17 19:00:05 -04:00
catarak
da2739d3a9 add link to fullscreen in nav 2016-08-17 18:35:15 -04:00
MathuraMG
d2f706fd74 move onclick for duplicate 2016-08-13 11:39:53 -04:00
catarak
eb85e49c51 change nav bar names 2016-08-12 15:51:27 -04:00
catarak
43c49e9617 when clicking new project, don't save new project 2016-08-12 12:45:26 -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
78ed7b4b5f add download as zip 2016-07-15 13:11:50 -04:00
MathuraMG
589bc9f630 change html tags 2016-07-14 17:20:44 -04:00
mathuramg
baec9e9e87 add aria-tags and titles 2016-07-13 11:59:47 -04:00
mathuramg
624d79075a make links accessible 2016-07-12 12:25:48 -04:00
catarak
b2369704a2 start sketch list view 2016-07-01 11:30:40 -04:00
catarak
684646c785 add proptypes to nav, fix proptypes for login 2016-06-27 16:14:26 -04:00
catarak
baa2c121f0 fix minor linting errors 2016-06-24 14:03:32 -04:00
catarak
3d42da18a8 fix a ton of eslint errors 2016-06-23 18:29:55 -04:00
catarak
3a26cdd491 restructure react components 2016-06-22 13:49:06 -04:00