Commit graph

55 commits

Author SHA1 Message Date
Mr.tang
3a0139340c Fixes #470 #419 #437 (#546)
* add status check

* rename variables and remove unnecessary dependencies

* set unsavedchange when error happens

* set unsavedchange when error happens
2018-02-20 14:44:07 -05: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
Cassie Tarakajian
ed540f4275 don't duplicate file if it isn't hosted on S3 2017-04-05 23:23:38 -04:00
Cassie Tarakajian
fa04054d28 duplicating files works 2017-04-05 23:23:38 -04:00
Cassie Tarakajian
f01a58353b initial commit to cloning files on S3, untested 2017-04-05 23:23:37 -04:00
Andrew Nicolaou
6af92a4a32 Exposes API endpoint URL to client via env variable (#323) 2017-03-16 00:34:14 -04:00
Cassie Tarakajian
134cc76981 fix #317 2017-03-06 14:13:39 -05:00
Cassie Tarakajian
fe4c2641e3 fix #254, stale project warning works correctly, removed unused actions and state for ide 2017-03-02 14:38:29 -05: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
f344e01003 fix #289 2017-02-17 14:53:48 -05:00
Cassie Tarakajian
52a28328e4 fix #302 2017-02-14 15:54:29 -05:00
Mathura MG
a30c765ccf switch brown in dark theme (#300) 2017-02-10 12:23:11 -05:00
Cassie Tarakajian
e7d0bb1112 revert project duplication to less broken state 2017-02-01 22:02:32 -05:00
Cassie Tarakajian
509bb6bd8e #285 fix project duplication error where project copies would alter the project original 2017-01-31 15:18:40 -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
1a22998ff8 warn user of session change when deleting a project or saving a new project 2017-01-17 15:37:19 -05:00
Cassie Tarakajian
65592cbf9e add authentcation error component, return 403 error from server when trying to save a project where the user doesn't match the owner 2017-01-17 15:37:19 -05:00
Cassie Tarakajian
cb2d8d0dd5 fix #269 2017-01-17 13:20:42 -05:00
Cassie Tarakajian
074f5b35b1 fix #243 2017-01-05 15:27:57 -05:00
Jen Kagan
55b54f09bd Change routes to /:username/sketches/:projectid (#216) 2016-12-01 17:12:34 -05:00
Cassie Tarakajian
167828b872 fix #185 2016-11-10 18:49:42 -05:00
Yining Shi
e86e9a0ae0 Added a star icon for unsaved file name, added 'Saved: xx time ago' (#177)
* added a star icon for unsaved file name, added saved time ago

* changed text

* added timer component

* clean extra styling in _editor.sass

* customize momentjs fromnow function

* clear 10s interval in componentWillUnmount

* use space-between instead of float
2016-11-09 12:52:14 -05:00
Jen Kagan
93f871e857 Add the word "copy" to sketch name after duplicating (#176)
* starting to work on clone project

* adds the word *copy* to sketches that have been dupicated
2016-11-02 17:35:47 -04:00
Cassie Tarakajian
85b8f5b589 fixes #96, downloads now work on safari and firefox 2016-11-02 14:08:53 -04:00
Yining Shi
83b077450a Showing "Autosave enabled" toast (#173)
* showing Autosave enabled toast

* fixed variable names

* fixed constant name typo
2016-10-27 19:45:09 -04:00
Cassie Tarakajian
32d45ea332 remove all blobutil stuff 2016-10-19 15:33:14 -04:00
Cassie Tarakajian
93de8596f2 fix #154 2016-10-19 12:36:40 -04:00
Cassie Tarakajian
3e7d88698b remove comments and console.logs 2016-10-17 23:23:19 -04:00
Cassie Tarakajian
f48b872500 add unsavedChanges to redux, handle unsaved changes 2016-09-20 18:27:10 -04:00
catarak
861a8f8759 remove toasts for autosave 2016-09-07 22:20:42 -04:00
catarak
41e6ce1c78 add toast to show you that autosave is enabled 2016-09-07 19:12:01 -04:00
catarak
3352fe9d0d add toast component, start to add functionality 2016-09-07 19:00:52 -04:00
catarak
6c4ba328aa fix file name collisions to only be affected in folders 2016-09-03 14:52:51 -04:00
catarak
e94ba201ce test downloads for only non s3 files 2016-09-02 20:40:18 -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
cbb272ec14 file tree renders, select file works and editor changes content, rename works 2016-09-02 17:41:01 -04:00
catarak
3ab1b82d8d add fullscreen route and page 2016-08-17 18:13:17 -04:00
catarak
17efc42778 switch project name edit to html5 input 2016-08-15 12:42:13 -04:00
catarak
8b13631191 fix bug where you could save another user's project 2016-08-12 13:31:34 -04:00
catarak
43c49e9617 when clicking new project, don't save new project 2016-08-12 12:45:26 -04:00
catarak
2affe457d2 when exporting to zip, also add images 2016-07-20 15:33:37 -04:00
catarak
cc231cbacd load blob url when uploading file 2016-07-20 00:51:27 -04:00
catarak
0491c00bb5 add function to create all blob urls 2016-07-19 18:27:27 -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
catarak
c3486af031 add author name to sketches 2016-07-15 11:54:47 -04:00
catarak
7a84137e9b start to add selected file stuff 2016-07-08 14:57:22 -04:00
catarak
88531447ba add ids to files, fix update file action/reducer 2016-07-07 13:04:54 -04:00