Commit Graph
562 Commits
Author SHA1 Message Date
Thomas Weber d63be9f8a8 Service worker cleanup 2021-09-11 13:45:46 -05:00
Thomas Weber 38e2952700 Don't abuse use new for spawning wrapped workers 2021-09-11 13:29:16 -05:00
Thomas Weber dfb449e9f0 sb3 monitors doesn't exist sometimes
Project 5 does not contain monitors
This fixes an error when trying to package that project
2021-09-11 12:25:40 -05:00
Thomas Weber e78d1b25fb Document the intended use for the zip environment 2021-09-09 18:44:51 -05:00
Thomas Weber f36c58a745 Wrap <Section> contents in a <div>
Svelte generates slightly shorter code like this
2021-09-09 18:25:59 -05:00
Thomas Weber 7f88aeea5c Make context menu shadows more visible 2021-09-09 16:04:27 -05:00
Thomas Weber d86bddad24 Fix VM stage size desync with resizeToFill 2021-09-08 20:22:55 -05:00
Thomas Weber f154adbe5f Trim whitespace 2021-09-08 18:45:56 -05:00
Thomas Weber 9bb8420797 Remove unused getRow 2021-09-08 18:29:47 -05:00
Thomas Weber c3b06496bc New option: Dynamically resize stage to fill page
#91, #149
2021-09-08 18:01:30 -05:00
Thomas Weber 4d378fc906 Show slight feedback when hovering over <select> 2021-09-08 17:09:29 -05:00
Thomas Weber c8c6acf74e minify/sb3: Use a block ID pool per-target 2021-09-08 16:45:42 -05:00
Thomas Weber 9fb805b533 minify/sb3: clean up code 2021-09-08 16:23:43 -05:00
Thomas Weber 098a06f453 minify/sb3: More aggressive minification
- Remove monitor values
 - Remove comments
 - Remove useless meta
 - Remove x, y, shadow, topLevel from blocks when possible
2021-09-08 16:19:31 -05:00
Thomas Weber b61ccff165 Convert analysis.stageVariables to a list
We ony looked at the values anyways, so there's no reason for it to be a dict-like object
This fixes tests that used to rely on exact IDs, which are no longer guaranteed to be consistent
2021-09-08 15:47:06 -05:00
Thomas Weber 119d64231e Lightly optimize sb3 project.json
This uses some disabled-by-default code from TW/scratch-vm to optimize projects
It's not optimal, but it's safe outside of the editor while still saving significant space
Part of #148
2021-09-08 15:37:57 -05:00
Thomas Weber 867986bfeb Register service worker when page finishes loading 2021-09-07 17:07:52 -05:00
Thomas Weber e96e9420aa Load <PackagerOptions> lazily
supercedes #136
2021-09-07 17:07:38 -05:00
Thomas Weber a206354ed0 Improve service worker more (fix offline) 2021-09-07 16:52:29 -05:00
Thomas Weber 60313ff864 Slightly clean up service worker 2021-09-07 16:32:09 -05:00
Thomas Weber e5d03bc091 Update translations 2021-09-07 16:29:02 -05:00
Thomas Weber a70b8ecd49 Link directly to the relavent comment 2021-09-07 16:26:14 -05:00
Thomas Weber 85dfb24e27 Remove unused import 2021-09-07 16:19:34 -05:00
Thomas Weber 1d712f4026 Improve service worker 2021-09-07 16:19:29 -05:00
Thomas Weber bb8acf7714 Change how workers are loaded 2021-09-07 15:56:53 -05:00
Thomas Weber 074f7419aa Convert ImageInput button to <button>
for better a11y
2021-09-06 01:28:43 -05:00
Thomas Weber 9b7007580a Don't style <select> at all in safari
Apple has some radical ideas for how to style these that we will not get in the way of
Safari does support color-scheme: dark, so they will still be dark
2021-09-05 23:49:01 -05:00
Thomas Weber 848b94df06 Add noscript 2021-09-05 23:33:36 -05:00
Thomas Weber 3fe47c5b97 Make sure modals don't overflow 2021-09-05 23:07:24 -05:00
Thomas Weber 1f8ca75bbf Improve modals
Modals now handle a11y much better than before:
 - you can no longer focus elements behind the modal
 - the first button in the modal will be focused
 - focus is returned to previous element when the modal is closed
2021-09-05 23:02:49 -05:00
Thomas Weber 36795997fe Improve global styles 2021-09-05 22:31:57 -05:00
Thomas Weber 75d3ef40db Update translations 2021-09-05 13:40:59 -05:00
Thomas Weber a145a38a0e Improve scaffolding file dropping UX 2021-09-04 16:17:35 -05:00
Thomas Weber f1e0a6803c Update macOS WebView
Exporting lists works now
2021-09-04 15:29:42 -05:00
Thomas Weber 7f76fc5532 Update list length immediately when imported
Previously there was a bit of delay from import to the list length number updating
2021-09-04 15:25:23 -05:00
Thomas Weber 811f4203df Fix computeWindowSize 2021-09-04 15:10:45 -05:00
Thomas Weber b1c23d73dc Use ExternalDownloadHelper to download files if available
Certain environments (macoS WebView) can't easily download files the normal way, so a special workaround is needed
2021-09-04 14:44:02 -05:00
Thomas Weber a66503580c Use same blob download as Scratch for improved browser support
Also fixes blob URL leak
2021-09-04 14:08:42 -05:00
Thomas Weber 00d0da4cab Deprecate NW.js Windows and Linux support 2021-09-02 14:40:59 -05:00
Thomas Weber 315c075ee0 SECURITY: sanitize URLs in advanced cloud addon
Thanks @apple502j
2021-09-02 13:18:31 -05:00
Thomas Weber ef103c860a Update translations 2021-09-01 20:23:46 -05:00
Thomas Weber 8c7af3dc79 Fix special cloud behaviors in advanced mode 2021-09-01 12:27:56 -05:00
Thomas Weber 287f534a76 Run addons a bit later 2021-09-01 12:27:37 -05:00
Thomas Weber 30431e2208 Account for controls when determining window size 2021-09-01 00:48:54 -05:00
Thomas Weber 45f047a28d Partial support for special cloud behaviors, like HTMLifier (#48) 2021-09-01 00:09:19 -05:00
Thomas Weber 42eb34d2ed Update download project error messages 2021-08-31 23:33:14 -05:00
Thomas Weber b27ce80997 Update translations 2021-08-31 23:31:16 -05:00
Thomas Weber eaeb0bbde3 Add opengraph tags 2021-08-29 13:16:13 -05:00
Thomas Weber ea89d68b5c Merge branch 'master' of github.com:TurboWarp/packager 2021-08-29 12:57:27 -05:00
Thomas Weber c95b1afff6 Update translations 2021-08-29 12:57:22 -05:00