Commit Graph
23 Commits
Author SHA1 Message Date
Ray Schamp 5c83d603d6 Use 3.0 routes for GETs
This should have happened a long time ago, but the Fastly config prevented it
2018-12-14 08:53:09 -05:00
Ray Schamp 8857652c93 Add some explanatory comments
Hopefully they are actually clarifying
2018-11-15 10:50:08 +00:00
Ray Schamp 44d948bf65 Save project JSON and assets separately
Instead of saving .sb3 files to the projects server, save just the project JSON. Save assets to the assets server. This happens via the asset types being routed to different web sources by storage.
2018-11-15 10:50:08 +00:00
Chris Willis-Ford b18b428ace Merge pull request #3495 from cwillisf/custom-storage-init-hook
Add a hook for custom storage init
2018-10-30 09:36:05 -07:00
Ray Schamp 1a0bf07ea6 Stop using builtinHelper.cache
And start just creating assets to hand to the VM. Towards https://github.com/LLK/scratch-vm/issues/1577
2018-10-25 11:03:16 +01:00
Christopher Willis-Ford 4e38da17ca Add a hook for custom storage init 2018-10-24 10:39:18 -07:00
chrisgarrity 12ffd72ff3 use new cacheDefaultProject method in constructor 2018-09-18 13:01:45 -04:00
chrisgarrity 102d3d7e79 Localize default project (temporary solution) 2018-09-14 16:11:46 -04:00
Ray Schamp 870fe265f8 Revert change to 3.0 urls
Fastly is not configured yet
2018-08-29 20:12:51 -04:00
Ray Schamp a70b7f5c93 Enable "Save now" menu item when there's a session 2018-08-28 18:37:50 -04:00
Ray Schamp aa8e48c3ee Simplify project URL constructor
We don't have revisions
2018-08-16 15:57:26 -04:00
Ray Schamp 973d288e18 Allow runtime configuration of storage hosts 2018-08-16 13:52:59 -04:00
Ray Schamp 7e8177f22d Allow configuration of project and asset servers
*Kind of*. This isn't a good way to do it because we use the storage singleton before GUI is mounted. This needs to happen differently, like configuring storage in the project loader hoc and passing it down, so it could be attached to the VM once it has a VM?

Fixup 723d975d062ce3b585715b5cbabfcdae218d901a

This reverts commit 723d975d062ce3b585715b5cbabfcdae218d901a.
2018-08-16 13:52:59 -04:00
chrisgarrity be208ba10d Player mode (#1909)
* Player mode

Add isPlayerOnly property on GUI. Move isFullScreen into mode reducer with isPlayerOnly.

Full screen needs to be a separate prop so that GUI knows what to show when exiting full-screen (either player-only or full editor).

- set `gui-body * {box-sizing: border-box;}` instead of expecting it to be set by the enclosing component/playground, and removed uses of content-box (adjusting sizes as needed) 
- Added `!isPlayerOnly` to the conditions for draggable sprites
- rewrote player example to use player mode.
2018-05-01 10:30:42 -04:00
Eric Rosenbaum b9b11e94bc Use relative path 2017-11-20 17:36:21 -05:00
Eric Rosenbaum b97d5e0efa Register music extension assets 2017-11-14 13:52:41 -05:00
Ray Schamp 0cb28ea9be Cache the default project json and its assets 2017-11-03 09:28:56 -04:00
Ray Schamp adb31ea8d3 Use a storage singleton
This way the instance can be reused, which allows access to non-deprecated `DataFormat` and `AssetType`.
2017-11-03 09:28:56 -04:00
Paul Kaplan 8a10c04f42 Add import/export rules and fix lint errors 2017-07-21 08:58:24 -04:00
Paul Kaplan df5d8bc8a5 Convert requires to import 2017-06-30 15:14:05 -04:00
Christopher Willis-Ford ff516c1465 Asset load: use asset's data format, not default
When loading an asset, construct the URL not by using the default data
type of the type of asset being loaded, but the actual data type of the
skeleton asset passed in. This allows the asset requestor to override
the data format, for example when loading a JPEG-format backdrop.
2017-05-24 16:13:55 -07:00
Christopher Willis-Ford a0f7d75fdc Get Asset and AssetType from storage instance 2017-04-20 16:15:43 -07:00
Christopher Willis-Ford 4f66fbc48b Create ScratchStorage instance & give it to the VM
There are a handful of places where the GUI code could use the storage
module directly; converting those is for a later change.
2017-03-20 15:28:37 -07:00