Commit graph

363 commits

Author SHA1 Message Date
Cassie Tarakajian
b41b3538b9 fixes #417, add default p5.js inclusion to non-minified version, and update default p5.js version to latest (#1084) 2019-05-29 17:29:53 -04:00
Andrew Nicolaou
7c4f180540 Consistent user data returned from API
There's duplication in the user and session endpoints that
all return the same shaped user model data. The new helper should keep
them consistent when new properties need to be exposed.
2019-05-29 12:51:50 -04:00
Andrew Nicolaou
9f627c1c37 Fixes bug where lastUsedAt timestamp wasn't set when access token used 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
27ea1c1e1b Adds a temporary route for checking Personal Access Tokens work 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
7fd226f3ad Removes hashedKey from APIKey data when serialising
This ensures it's not accidentally exposed to the client when returning
the key metadata
2019-05-29 12:51:50 -04:00
Andrew Nicolaou
89dd41d81f lastUserAt should be null if the key has never been used 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
504eacaf64 Displays all API keys in a table, including new token information 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
69d5a87861 Fixes API controller tests
The tests mock the mogoose User model and the express Response model
which isn't good. We should find a solution that makes use of
the actual model object.
2019-05-29 12:51:50 -04:00
Andrew Nicolaou
7bfacf08d0 Do not return any keys in API 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
de5e1a9e8f Removes AdvancedSettingsView as functionality now in AccountView 2019-05-29 12:51:50 -04:00
Andrew Nicolaou
403234ae81 Moves API key creation to server 2019-05-29 12:51:50 -04:00
Vertmo
f0b669d5af Added Basic Auth using passport-http 2019-05-29 12:51:50 -04:00
Vertmo
3b55ff81d2 Hashing keys before storing them 2019-05-29 12:51:50 -04:00
Vertmo
db71a2b7c0 Added DB schema and backend logic for API keys creation and deletion 2019-05-29 12:51:50 -04:00
Vertmo
3d2a862d9d Added design of the API key page 2019-05-29 12:51:50 -04:00
Cassie Tarakajian
df1219b47a
fixes #850, bundling external libraries was causing a callback to never be called (#1060) 2019-05-02 19:33:16 -04:00
Cassie Tarakajian
765ec68ef3 attempt to fix error in mongo logs 2019-05-02 19:10:14 -04:00
Joey Lee
a5753b5e4c Script to fetch ml5 examples from Github Repo (#1051)
* replaced () with {} to fix implicit return error

* added first version of fetching generative-design examples

* ignore local testing files

* formatting

* updated examples-gg-latest

* updated examples-gg-latest.js

- data files not served via rawgit - hallelujah!
- added jquery

* updated p5 version

* refactoring and code cleanup

* added comment

* comment out link to svgFiles - unused

* moved commented code

* fixed conflicts

* linted examples-gg-latest

* removed console.log of response.data to prevent logging user data to console

* fixed linting error

* initial commit for setting up automated ml5 example fetching

* rm logs from .env replaced with placeholder

* added functions for retrieving all assets from examples sketches

* added recursive walk through to get all directories and files

* added functions t format files for making project

* added full working test

* added comments and formated code

* added comments

* set username at to of code

* added process.exit() on complete

* added linting and fixed errors

* rm await in return

* added es lint disable for reduce()

* rm package-lock.json

* reset package-lock.json to master

* "updated .env.example with dummy logins"

* updated .env.example for consistency

* added p5 user checking

* fixed linting issues

* add webpack config to build ml5 example fetching bundle
2019-05-02 15:12:06 -04:00
Cassie Tarakajian
870d9ceded
Fixes #760 (#1046)
* fixes #760

* fixes linting errors
2019-05-01 15:38:11 -04:00
Cassie Tarakajian
8b296a51aa
Fixes #1052, in which you can't save a sketch after uploading a file (#1053)
Fixes #1052, in which a user can't save a sketch after uploading a file
2019-04-24 13:32:23 -04:00
Cassie Tarakajian
7d1901649f
Project synching, for #790 (#1039)
* add isSaving to project reducer, move actions to functions, start work to get comprehensive frontend/backend syncing working

* handle making changes while saving project, handle saving from another window

* add change to handle saving new sketch, and adding new changes while saving
2019-04-17 14:08:33 -04:00
Laksh Singla
24302b56de Added softwrap preference for users. (#970)
* Client and server side code added for Linewrap option

* Linked linewrap prop with the Editor.jsx property

* linewrap defaults to true

* Renamed 'LineWrap' to 'WordWrap'
2019-03-26 15:37:44 -04:00
Ankur Ingale
80765e03c7 Fixed Issue #659 (#964)
* Fixed Issue #659

* Undo changes in package.json and package-lock.json

* Resolved error
2019-03-21 17:08:46 -04:00
Abhishek Kumar
0eea37e72a Fixing Spelling Mistake (#913)
* Fixing typos

* Fixed Spellings
2019-03-20 12:43:38 -04:00
siddhant1
b6e2c4c983 Migrated from momentjs to date-fns 2019-03-02 15:05:40 +05:30
siddhant
456697ec75 Fixed Mongoose Warning (#856) 2019-03-01 15:47:17 -05:00
Oliver Wright
03d7533e2a Serve text-type assets from sketch asset urls - Fixes #839 (#843) 2019-02-22 18:05:56 -05:00
Cassie Tarakajian
ed57e082e6
fixes #820, fixes #830, fixes #831 (#841) 2019-02-21 17:15:28 -05:00
Oliver Wright
e75c98b299 Prevent Race Condition when Updating Project - Fixes #837 (#838) 2019-02-20 16:27:28 -05:00
Cassie Tarakajian
f1b6aab749 fixes #826 2019-02-20 16:03:18 -05:00
Cassie Tarakajian
3a1b8abac1 fix lint error 2019-02-20 14:57:26 -05:00
Cassie Tarakajian
4dcec4baa8 Merge branch 'fix-char-restriction' of git://github.com/GaurangTandon/p5.js-web-editor into GaurangTandon-fix-char-restriction 2019-02-20 14:49:55 -05:00
Oliver Wright
00391a4ef9 Prevent User Information leak Fixes #822 (#823)
Prevents leaking the encrypted password and verification tokens to
the user when they update their account.
2019-02-20 11:08:10 -05:00
Gaurang Tandon
57b5f2f5bb resolve mc 2019-02-10 07:00:48 +05:30
Gaurang Tandon
bd3eed5fd3 reverted some changes and changed to file system safe naming 2019-02-10 06:57:03 +05:30
Cassie Tarakajian
65c1c35d10 fix fetch-examples script to adjust to changes to the p5.js website 2019-01-25 15:12:04 -05:00
Francis Li
31abeb9455 Serve up an empty 404 page if no examples user (#766)
* Rebase/squash

* Fix 404 page showing when refreshing Examples list

* Fix linter error

* Revert special-case handling of the p5 user for examples

* Add additional env var for enabling/disabling examples
2019-01-25 14:12:39 -05:00
Cassie Tarakajian
7bd016bac3
fixes #785, update node, and everything else that comes along with that (#810) 2019-01-16 17:56:18 -05:00
Cassie Tarakajian
437ffba378
fixes #802 (#809) 2019-01-16 12:35:34 -05:00
Gaurang Tandon
d86944034e fix lint errors 2018-12-15 12:43:58 +05:30
Gaurang Tandon
26d65396b4 fixes #568 2018-12-15 12:35:52 +05:30
Francis Li
9fe34504e9 Disable login/save (#778) 2018-12-11 16:21:37 -05:00
Joey Lee
597a6637cb Generative Design Examples: Updated githack cdn to jsDelivr (#779)
* replaced () with {} to fix implicit return error

* added first version of fetching generative-design examples

* ignore local testing files

* formatting

* updated examples-gg-latest

* updated examples-gg-latest.js

- data files not served via rawgit - hallelujah!
- added jquery

* updated p5 version

* refactoring and code cleanup

* added comment

* comment out link to svgFiles - unused

* moved commented code

* fixed conflicts

* linted examples-gg-latest

* changed branch ref to master

* rm spaces

* updated url links with https for jquery and set branch to dev-updates for testing

* changed branched ref to master

* removed console.log of response.data to prevent logging user data to console

* fixed linting error

* updated p5 version from 0.7.1 to 0.7.2

* updated rawgit to jsdelivr cdn
2018-12-11 15:03:20 -05:00
Joey Lee
5bcb5119e3 Update/Updated Generative Design Examples (#774)
* replaced () with {} to fix implicit return error

* added first version of fetching generative-design examples

* ignore local testing files

* formatting

* updated examples-gg-latest

* updated examples-gg-latest.js

- data files not served via rawgit - hallelujah!
- added jquery

* updated p5 version

* refactoring and code cleanup

* added comment

* comment out link to svgFiles - unused

* moved commented code

* fixed conflicts

* linted examples-gg-latest

* changed branch ref to master

* rm spaces

* updated url links with https for jquery and set branch to dev-updates for testing

* changed branched ref to master

* removed console.log of response.data to prevent logging user data to console

* fixed linting error

* updated p5 version from 0.7.1 to 0.7.2
2018-12-07 11:46:04 -05:00
anaplian
319e68ddb6 Fix async validation in signup form (fixes #742) (#746) 2018-10-29 19:33:37 -04:00
Cassie Tarakajian
2902145ec2 for #733 2018-10-18 14:14:38 -04:00
Basile Pesin
996a1b988a Fixes #692 (#713)
* Got the basis covered, now I need to style all this

* Corrected and upgraded Share window

* Changed the routes again, and set correct design

* Made some of the requested changes

* Removed PreviewFrame errors

* Redesigned Preview Header

* Corrected style of the FullView

* Corrected most of the css mistakes

* Corrected logo size
2018-10-18 14:10:37 -04:00
Cassie Tarakajian
474c843e8a Merge branch 'bugfix/680-preview-dimensions' of https://github.com/bendman/p5.js-web-editor into bendman-bugfix/680-preview-dimensions 2018-10-17 15:27:57 -04:00
Cassie Tarakajian
54002feb1d change for #727 2018-10-16 11:43:16 -04:00
Cassie Tarakajian
088efaad0c another change for #727, getting warmer 2018-10-16 11:13:01 -04:00