Karishma Chadha
7110eb0026
Refactoring and code cleanup.
2018-04-24 18:22:56 -04:00
Karishma Chadha
906f5406ac
Rename fileUploader to match file naming conventions.
2018-04-24 13:37:07 -04:00
Karishma Chadha
73cd5b3019
File uploading abstractions
2018-04-24 12:54:38 -04:00
Karishma Chadha
2bf417045e
Add bitmap support to backdrop upload button.
2018-04-24 12:44:39 -04:00
Karishma Chadha
4c50363a55
Fixed svg thumbnails, some cleanup.
2018-04-24 12:44:39 -04:00
Karishma Chadha
f2b398ae0e
Bitmap upload -- mostly working, code needs cleanup.
2018-04-24 12:44:39 -04:00
Karishma Chadha
f12718c25b
Toggle upload button title based on whether the currently selected sprite is the stage or not.
2018-04-24 12:44:39 -04:00
Karishma Chadha
a0cbb07ec0
Remove preventDefault which was preventing the input file browser from popping up
2018-04-24 12:44:39 -04:00
Karishma Chadha
1f0d0e7e5a
Backdrop WIP
2018-04-24 12:44:39 -04:00
Karishma Chadha
b8b92269df
Handle SVG upload (with bitmap coming soon).
2018-04-24 12:44:39 -04:00
Karishma Chadha
3dbd69e682
Costume upload -- very early WIP
2018-04-24 12:44:39 -04:00
Ray Schamp
afbb63bacc
Merge pull request #1841 from rschamp/bugfix/search-height
...
Make the library filter input full height
2018-04-24 09:27:07 -04:00
Ray Schamp
c6bab0a0f1
Merge pull request #1842 from rschamp/bugfix/library-header-height
...
Account for filter bar in library grid height
2018-04-24 09:26:37 -04:00
Ray Schamp
5ff8cb4a42
Merge pull request #1843 from rschamp/feature/partial-tag-match
...
Partially match tags while filtering
2018-04-24 09:26:03 -04:00
kchadha
0115364131
Merge pull request #1846 from kchadha/custom-proc-shadows
...
Support new scratch-blocks API for translating custom proc mutations
2018-04-23 15:19:25 -04:00
Andrew Sliwinski
e4e7e72a12
Make MINDSTORMS uppercase as per feedback from LEGO
2018-04-23 11:24:12 -04:00
Paul Kaplan
170eb4343c
Make whole search clickable
2018-04-23 10:13:19 -04:00
chrisgarrity
77e9498d4b
Merge pull request #1448 from chrisgarrity/feature/untangle-redux
...
Export GUI for use on www!
2018-04-23 10:04:35 -04:00
Karishma Chadha
5419eda58d
Support new scratch-blocks mutationToDom api.
2018-04-23 09:52:30 -04:00
Ray Schamp
f9614f1996
Account for filter bar in library grid height
...
This prevents the fullscreen modal from being scrollable by removing extra height from the library
2018-04-21 14:20:33 -04:00
Ray Schamp
e45ab420c2
Make the filter input full height
...
This way you can click anywhere to gain focus
2018-04-21 14:15:14 -04:00
Ray Schamp
9049f24b17
Search name and tags while filtering
...
Concatenate all the tags plus the library item name into one string and search for a match within that. This allows queries to partially match tags and library item names.
The `\n` delimiter is because my first choices of `' '` or `,` are typeable, and would end up matching everything.
2018-04-21 14:12:21 -04:00
Ray Schamp
a36ff212ea
Final spacing and height tweaks with @carljbowman
2018-04-20 12:05:17 -04:00
Ray Schamp
0ce9524899
Show border while input is focused
...
This won't work on a lot of browsers, but temporarily just target modern ones. (Robust solution is possible using classNames and refs)
2018-04-20 12:04:53 -04:00
Ray Schamp
342ac4a244
Merge pull request #1824 from rschamp/feature/library-phase-ii
...
Libraries Phase II
2018-04-20 10:38:25 -04:00
Ray Schamp
fa1e6c9333
Clip overflowed tags
2018-04-20 10:18:08 -04:00
Ray Schamp
e943ba2d28
Fix back button in modals on Firefox
...
Thanks @towerofnix!
2018-04-20 09:48:39 -04:00
Ray Schamp
3601eacb1d
Fix propType warnings
...
Including action-menu which was also giving one when the backdrop library opened.
Localize the costume library, I missed it while doing the other libraries.
2018-04-20 09:47:59 -04:00
Ray Schamp
c8e25b4192
Clear tags on filter query change
2018-04-19 16:01:43 -04:00
Ray Schamp
601b574cb8
Remove tag icons
2018-04-19 16:01:22 -04:00
chrisgarrity
37aacc90f1
Handle intl prop correctly
...
The initial intl store expected an object with an `intl` key, not the intl object as returned by `injectIntl`.
Also changed GUI proptypes to accept Object as well as String for projectData to avoid warnings.
2018-04-19 14:38:14 -04:00
chrisgarrity
d0f5998f8a
handle projectId as prop
...
Update project-loader to look for project id as prop (i.e. from www), and fall back to hash.
2018-04-19 14:38:14 -04:00
chrisgarrity
55800bce4d
Fix up localization after rebasing on LLK/develop
2018-04-19 14:38:14 -04:00
chrisgarrity
ca898cedcb
Add documentation and fix lint
2018-04-19 14:38:13 -04:00
chrisgarrity
c1d53b3599
Update build and move project-loader back to lib
...
- export image and sounds in dist/static/assets
- rename main export (`scratch-gui.js`, not `index.js`)
- move project-loader-hoc back to lib (VM doesn’t load properly without it)
2018-04-19 14:38:13 -04:00
chrisgarrity
924c2aefc0
Make Error Boundary into HOC
...
Don’t translate IE error modal, if there are errors during the `connect` process the `IntlProvider` doesn’t get set up and the error modal can’t be shown.
2018-04-19 14:38:12 -04:00
chrisgarrity
a569a170f7
Move ErrorBoundary into playground
2018-04-19 14:38:11 -04:00
chrisgarrity
b38807289a
Export GUI as library
2018-04-19 14:38:11 -04:00
chrisgarrity
fe1cb9585b
Pass intl as prop to GUI
...
Allow intl to be passed in to GUI as a prop (rather than having to be already in the store)
2018-04-19 14:38:10 -04:00
Andrew Sliwinski
93d9b4a632
Merge pull request #1800 from thisandagain/bugfix/1739
...
Reorder and add default arguments to gt, lt, eq blocks
2018-04-19 14:37:51 -04:00
Andrew Sliwinski
a18686d5da
Merge pull request #1798 from thisandagain/bugfix/1797
...
Adjustments to string operator default arguments
2018-04-19 14:37:05 -04:00
Ray Schamp
6d0518532a
Localize some things
2018-04-19 14:13:53 -04:00
Ray Schamp
32b10344cf
Add sound tags
...
Thanks @ericrosenbaum!
2018-04-19 14:00:38 -04:00
Ray Schamp
6cf8c16021
Revert joke
2018-04-19 14:00:38 -04:00
Ray Schamp
fc87a1e0e0
Implement tag filtering
2018-04-19 14:00:38 -04:00
Ray Schamp
1e8bca53fb
Rearrange to use existing back icon
2018-04-19 14:00:38 -04:00
Ray Schamp
f518bb68ca
Add tags to the other libraries
2018-04-19 14:00:38 -04:00
Ray Schamp
3510c97d11
Lint
2018-04-19 14:00:38 -04:00
Ray Schamp
176a52feb0
Style most of the components
2018-04-19 14:00:37 -04:00
Ray Schamp
dde95cc35f
WIP: Stuff is sketched in
2018-04-19 14:00:37 -04:00