Commit Graph
7241 Commits
Author SHA1 Message Date
Thomas Weber bc37ec400c Make analytics part of the bundle
Instead of loading an external script, put the logic in the bundle itself
This gives us more control over it, so now we:
 - do not include project IDs
 - delay events until idle
2020-10-27 20:48:42 -05:00
Thomas Weber f9742f9524 Fix fullscreen resizing in embed 2020-10-27 19:38:19 -05:00
Thomas Weber ad6f1cb1a8 Clean up state manager HOC 2020-10-27 18:41:02 -05:00
Thomas Weber 6bdfd53dba Fix routing bugs
Make ROUTING_STYLE actually work
Fix editor in wildcard
Fix embed
2020-10-27 18:08:54 -05:00
Thomas Weber fc416bf038 Implement wildcard routing 2020-10-27 17:52:15 -05:00
Thomas Weber 385763edac Add router that only uses hash, other cleanup 2020-10-27 17:23:53 -05:00
Thomas Weber bc74f82f1e Refactor routing 2020-10-27 17:08:09 -05:00
Thomas Weber 34f55cc987 Fix some eslint errors 2020-10-26 22:23:49 -05:00
Thomas Weber de4630848d Remove unnecessary redux 2020-10-26 21:43:09 -05:00
Thomas Weber 0d5221f665 Fix editor assets when using custom ROOT 2020-10-26 21:08:21 -05:00
Thomas Weber 4e5ae40cff Put a space before the ellipses
That's what Scratch does
2020-10-26 20:44:36 -05:00
Thomas Weber f200603302 Integrate tw-parser-hoc.jsx into tw-state-manager-hoc.jsx 2020-10-26 20:30:23 -05:00
Thomas Weber e7099c93ea Allow using absolute URLs for assets
Use the ROOT environment variable:

When ROOT=/interpolated-60/,
JS is loaded from /interpolated-60/js/
and assets are from /interpolated-60/static
note: you manually have to move files to interpolated-60, this does not happen automatically
2020-10-26 20:08:48 -05:00
Thomas Weber 440be3d51a Address some eslint issues, remove some old code 2020-10-26 17:51:59 -05:00
Thomas Weber ca1026e41d Make the project title a link 2020-10-26 10:39:24 -05:00
Thomas Weber 31e52a09d9 Make @ mentions and links in project descriptions clickable 2020-10-26 09:41:55 -05:00
Thomas Weber 7962ee31c2 Trying to fix some layout issues 2020-10-24 23:24:12 -05:00
Thomas Weber 5d96fb47f7 Clear VM when starting project fetch 2020-10-24 19:20:16 -05:00
Thomas Weber 1fc1341ab4 Clarify missing project logic 2020-10-24 19:13:48 -05:00
Thomas Weber e1ab2e1d56 Fix macOS Safari "Save Page As" 2020-10-24 17:00:14 -05:00
Thomas Weber 3211a34018 Make the username error message more understandable 2020-10-24 13:33:01 -05:00
Thomas Weber 4d3bc44fba Allow changing username while project is running
forkphorus has done this for a quite a long time without serious issues
Not allowing username changes while running makes it impossible to change username in some projects that use edge-activated hats
Willing to reconsider if this causes issues
2020-10-24 13:29:15 -05:00
Thomas Weber 093c324970 Fix GUI being constantly remounted
Doing it how it was done previously had the effect of unmounting and remounting the GUI when entering editor
Fixes project title being reset when opening editor
2020-10-21 15:00:00 -05:00
Thomas Weber 9fc58a3385 Change URL parameter for project URL to project_url
For consistency. Safe to change now because no one should be using it.
2020-10-21 08:57:57 -05:00
Thomas Weber feff421b73 Merge branch 'project-url' into develop 2020-10-20 17:45:50 -05:00
Thomas Weber 3ccfa31f0a Don't try to use routing on non-http/https protocols
Namely, trying to do that on file: will cause issues
2020-10-20 17:36:13 -05:00
Thomas Weber c7a47aa376 Use progress bar when loading from project URL in URL 2020-10-20 17:19:52 -05:00
Thomas Weber 662f5153b4 Expose progress monitor method for fetching w/ progress 2020-10-20 17:19:34 -05:00
Thomas Weber 225bfc7779 Add viewport tag to privacy.html 2020-10-20 17:12:40 -05:00
Thomas Weber b3b36a073a Merge branch 'develop' into project-url 2020-10-20 11:08:58 -05:00
Thomas Weber a7503aa061 Fix height transition when opening examples 2020-10-20 10:03:32 -05:00
Thomas Weber 98675a0f7e Merge branch 'develop' of https://github.com/llk/scratch-gui into develop 2020-10-20 09:11:09 -05:00
Thomas Weber 533e85b713 Merge branch 'develop' of https://github.com/llk/scratch-gui into project-url 2020-10-20 07:40:05 -05:00
dependabot-preview[bot] 7dc01be375 Merge pull request #6292 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20201020104037 2020-10-20 11:31:01 +00:00
dependabot-preview[bot] 14be40eff3 build(deps): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20201016174532 to 0.1.0-prerelease.20201020104037.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits/0.1.0-prerelease.20201020104037)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-20 11:22:49 +00:00
dependabot-preview[bot] 6db59ec92c Merge pull request #6290 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20201020103914 2020-10-20 11:19:40 +00:00
dependabot-preview[bot] 22937f2456 build(deps): bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20201016174923 to 0.2.0-prerelease.20201020103914.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/compare/0.2.0-prerelease.20201016174923...0.2.0-prerelease.20201020103914)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-20 11:09:50 +00:00
Thomas Weber 69e4bf7b09 Merge branch 'develop' into project-url 2020-10-19 22:15:29 -05:00
Thomas Weber ac6c632b65 Merge branch 'develop' of https://github.com/llk/scratch-gui into develop 2020-10-19 22:12:19 -05:00
dependabot-preview[bot] 371fc8b7b9 Merge pull request #6288 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20201019174008 2020-10-20 02:52:19 +00:00
dependabot-preview[bot] 00a7e062de build(deps): bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20201016121710 to 0.2.0-prerelease.20201019174008.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits/0.2.0-prerelease.20201019174008)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-20 02:41:08 +00:00
Thomas Weber e3df3e2b4d Allow loading project from a URL given in the URL 2020-10-19 19:58:58 -05:00
Thomas Weber f839d48855 Merge branch 'develop' of https://github.com/llk/scratch-gui into develop 2020-10-19 14:15:43 -05:00
picklesrus 10caefdd22 Merge pull request #6285 from picklesrus/fix-deps
Move scratch-render, sratch-svg-renderer and scratch-paint back to deps
2020-10-19 10:12:09 -04:00
picklesrus 693837256f Move scratch-render, sratch-svg-renderer and scratch-paint back to dependencies (and out of dev-dependencies). I unintentionally moved them in https://github.com/LLK/scratch-gui/commit/85ac2c76d15e15ecfc27a9b4205b2ef733d1b4e0 2020-10-19 10:02:48 -04:00
Thomas Weber 1ba976bb86 UI update and cleanup
A lot of the design choices in TurboWarp right now date back to some very early points in development, like when the homepage was the editor rather than just the player.
The modal that you see upon entering the editor on a new project may have made sense at the time, but now it doesn't. If you load into the editor, you already know what TurboWarp is.
The title at the top of the page was a holdover from this modal and doesn't look that great. It's been removed and the relevant links have been moved to the footer where every other website puts them.

Some now-unused logic and abstractions have been removed as well.
2020-10-18 18:27:56 -05:00
Thomas Weber 39bb7c4747 Don't update dimensions on resize unless in fullscreen 2020-10-18 17:51:49 -05:00
Thomas Weber 566386679b Merge branch 'develop' of https://github.com/llk/scratch-gui into develop 2020-10-18 11:55:23 -05:00
Thomas Weber cd967d3e9c Fix 60 fps toggling on chromebooks (#25)
opening the context menu by right clicking or alt+clicking on chromebooks is sufficient
2020-10-18 11:51:05 -05:00
Thomas Weber d1e39213bb Don't load project metadata for the empty project 2020-10-17 20:28:34 -05:00