Commit Graph
11390 Commits
Author SHA1 Message Date
Ray Schamp d1cf0a433a Merge pull request #27 from rschamp/hooks
Make git hooks a bit less cumbersome
2016-12-15 15:59:19 -05:00
Ray Schamp 560849ac79 Make git hooks a bit less cumbersome 2016-12-15 15:55:09 -05:00
Ray Schamp f9970d6c87 Lint 2016-12-15 14:23:08 -05:00
Ray Schamp 370d66e45f Adhere to Trello CSS guide in green flag/stop 2016-12-15 11:15:40 -05:00
Ray Schamp 6ae2fbb6a0 Use Box in libraries and modal 2016-12-15 11:15:18 -05:00
Ray Schamp 789fd14653 Layout pass
Move layout styles from component stylesheets to the GUI, or the component that is placing the component.

Add a new `Box` component to control layouts, basically giving a convenient way to lay out with flexbox.

Use `Box` as the output component for any component that may need to be passed layout options. The props passing convention allows giving layout props to the final `Box` component, making wrapping with another `Box` unnecessary in some cases.
2016-12-15 11:14:40 -05:00
Ray Schamp c59f818a4f Fix CSS autoprefixing
`importLoaders` is needed for the way postcss works with css modules.

Update browser target to match scratch-www
2016-12-12 11:28:09 -05:00
Ray Schamp 90c40716a6 Move MediaLibrary init to target-pane
It was not being used by GUI so no reason for it to be initialized there
2016-12-12 11:28:09 -05:00
Ray Schamp 71a8a30c09 Merge pull request #25 from rschamp/feature/sprite-selector
Sprite selector, CSS and Redux overhaul
2016-12-12 11:27:43 -05:00
Ray Schamp bd9910184b Sprites always have costume data now 2016-12-12 11:22:06 -05:00
Ray Schamp 525623769d Make ...rest syntax consistent. 2016-12-12 11:18:52 -05:00
Ray Schamp 7542f1b549 Give GUIComponent responsibility of children
This will allow the GUIComponent to have control over the layout
2016-12-07 16:44:35 -05:00
Ray Schamp 16fbb64cca Use CSS modules for styles
The inline css method gives us nothing that CSS modules can't give us. This puts the project more in line with the way www works, and makes CSS actually readable.

Using class names gives us full control of the modal styles.
2016-12-07 15:59:07 -05:00
Ray Schamp d139609100 Style pass
Refactor SpriteSelector into "Target Pane" which contains the sprite selector, stage selector, and the buttons for new sprites, costumes and backdrops.
2016-12-06 18:12:57 -05:00
Ray Schamp b29670bc52 Split stage selection from sprites
Add a new stage selection component that displays the stage separately from the sprite list.
2016-12-05 18:01:17 -05:00
Ray Schamp cf85a3b1e8 Reduxify modals 2016-12-05 10:47:58 -05:00
Ray Schamp 3cea22ac8e Fix editingTarget selection 2016-12-05 10:47:24 -05:00
Ray Schamp 24389c30c3 Reduxify sprite selector
In preparation to split the sprites from the stage, start managing the target list state in a single place.
2016-12-02 19:16:19 -05:00
Ray Schamp ccc8a1e25b Don't use node rules in src/ eslint config 2016-12-02 19:12:17 -05:00
Ray Schamp 865a2916d2 Add custom sprite selector with costume display 2016-12-02 15:22:50 -05:00
Ray Schamp e3b0069487 Refactor libraries to be a part of SpriteSelector 2016-12-02 15:22:50 -05:00
Ray Schamp a3d97fef2c Merge pull request #23 from rschamp/bugfix/shortcuts
Don't block keys intended for the browser
2016-12-02 09:31:54 -05:00
Ray Schamp 85b1509072 Send modifier keys to VM but allow bubbling
This allows the keys to be used for developer shortcuts, but also keeps the "if any key pressed" block working (and hacked key blocks).
2016-11-29 10:52:12 -05:00
Ray Schamp 0bfcd3fed2 Don't capture keys intended for the browser
This is mostly because it was annoying that Cmd-Opt-J didn't work, but seems like a good thing to have in general.
2016-11-29 10:05:28 -05:00
Ray Schamp be82bddd0c Merge pull request #22 from rschamp/feature/flag-glow
Glow flag/stop button when scripts are running
2016-11-28 11:51:28 -05:00
Ray Schamp ad2eb5501a Glow flag/stop button when scripts are running
For now this uses the CSS `filter` property to crudely "highlight" for the active state. This is a temporary solution until we have a real design for the active states.
2016-11-23 16:07:51 -05:00
Ray Schamp 5ebeac684b Fix names of script glow events
These were named inconsistently in scratch-vm
2016-11-23 15:49:29 -05:00
Tim Mickel a49e06309d Merge pull request #21 from tmickel/bugfix/costume-lib
Fix string interpolation in costume-library
2016-11-21 14:33:35 -05:00
Tim Mickel 05a2c5fa63 Fix string interpolation in costume-library 2016-11-21 13:54:50 -05:00
Ray Schamp 2060cb0b38 Fix lint warnings 2016-11-17 16:06:45 -05:00
Ray Schamp a23953a758 Don't ignore .nojekyll in gh-pages 2016-11-10 15:13:19 -05:00
Ray Schamp fbaf2b8fb9 Update travis-after-all for the public repo 2016-11-08 17:12:18 -05:00
Ray Schamp d00ba029b3 Prevent gh-pages from being processed with Jekyll
This removed our vendor files before. Prevent anything else from happening in the future
2016-11-08 17:00:38 -05:00
Ray Schamp 152df65ec9 Update README for public release 2016-11-08 15:57:25 -05:00
Ray Schamp 845d533a84 Fix workspace sizing again 2016-11-04 15:45:33 -04:00
Ray Schamp 481cf3f0df Fix workspace sizing 2016-11-04 15:35:15 -04:00
Ray Schamp 9048ec5a76 Fix modalStyle prop type 2016-11-04 14:02:55 -04:00
Ray Schamp 6ba583f430 Fix canvas ref 2016-11-04 13:50:50 -04:00
Ray Schamp 294e89265e im dum 2016-11-04 13:45:52 -04:00
Ray Schamp c11500f4dc Remove animationFrame 2016-11-04 13:41:34 -04:00
Ray Schamp e36128ebcd Deal with Github's Jekyll update madness 2016-11-04 13:41:21 -04:00
Ray Schamp 1a23ce5c28 Add green flag and stop icons 2016-10-26 22:48:56 -04:00
Ray Schamp 75117a9067 Merge pull request #11 from rschamp/lint-package-json
Set up base eslint config in .eslintrc.js
2016-10-24 17:37:55 -04:00
Ray Schamp 7ea1e35663 Set up base eslint config in .eslintrc.js
After doing this, new rules began applying for some reason:

`eol-last` only began taking the 'always' parameter as of 3.6.0, so I needed to update eslint.
`no-unused-var` started warning about process.env after updating the config structure
`comma-dangle` decided to start working, maybe because of the upgrade to eslint?  Autofixed with --fix
2016-10-24 17:36:56 -04:00
Ray Schamp 55d359a742 Merge pull request #10 from rschamp/lint-2
Actually lint React files
2016-10-24 15:01:15 -04:00
Ray Schamp 620843c5a2 Upgrade eslint-config-scratch to 2.0
Includes rules missed in the first pass of eslint rules
2016-10-24 14:59:35 -04:00
Ray Schamp 368a2a8ae0 Actually lint React files
Previously eslint ignored .jsx files :|
2016-10-24 14:58:53 -04:00
Ray Schamp cdbf45ae91 Merge pull request #9 from rschamp/lint
eslint-config-scratch: React + ES6 Edition
2016-10-24 09:43:49 -04:00
Ray Schamp 97b0f26bef Fix minilog prefix 2016-10-24 09:39:50 -04:00
Ray Schamp 91547c1fb5 No need to supply @return if there's no return 2016-10-24 09:39:35 -04:00