Commit Graph

29 Commits

Author SHA1 Message Date
Christopher Allen 1306e41d3b Load playground.html etc. from local http server
Unlike goog.provide packages, goog.module modules are loaded using
XMLHttpRequest in uncompiled mode.  Because browsers treat file: URLs
as each being a separate, unique origin, this means that CORS rules
prevent goog.module modules being loaded from a file URL.

To work around this, use the http-server npm to serve the repository
root directory on localhost:8080.

Provide a script so that you can type `npm start` to start the local
http server and automatically open a browser window pointing at
tests/playground.html.

Modify the setBackgroundColour function in the playgrounds to provide
the usual lilac background on locahost URLs and a sickly green one
if using a file: URL, all of which will soon stop working.

(The background doesn't actually appear to be visible in the advanced
playground.)
2021-07-09 23:11:19 +01:00
Monica Kozbial a15bbf1700 Revert #4697 (#4917) 2021-06-16 09:36:39 -07:00
Sam El-Husseini d83279008b Remove dark theme in favour of @blockly/theme-dark (#4697)
* Remove dark theme in favour of @blockly/theme-dark
2021-04-21 13:33:59 -07:00
Fishuke 16979f7458 Fix misplaced percent sign in css, close iframe html tag (#4560) 2021-01-05 11:09:37 -08:00
Sam El-Husseini 70f71af933 Add test-blocks into the basic playground (#4333)
* Use local node_modules files instead of unkpkg for advanced playground, get test blocks in the basic playground from npm

* Also move theme-modern

* Update package-lock
2020-10-02 09:48:01 -07:00
alschmiedt 38d37d7c7a Updates dev tools script to new version (#4273) 2020-09-11 10:11:43 -07:00
alschmiedt 5bca960628 Fix advanced playground (#4266) 2020-09-10 15:57:53 -07:00
alschmiedt 29269957c7 Removes test blocks (#4250) 2020-09-08 13:50:45 -07:00
alschmiedt d01169fa79 Toolbox Rewrite (#4223)
Rewrite the toolbox in order to get rid of old closure code and make it easier to extend.

Co-authored-by: Maribeth Bottorff <maribethb@google.com>
2020-09-02 08:13:07 -07:00
Sam El-Husseini 02ff548801 Snap dev tools to 1.1.1 (#4077) 2020-07-27 11:33:06 -07:00
Sam El-Husseini 5d43d256e2 Move test blocks to dev-tools, refactor advanced playground (#4057)
* Remove remaining advanced playground actions, and remove test blocks
2020-07-24 13:53:00 -07:00
alschmiedt 03f4a3d4e3 Fix spaces (#3992) 2020-06-24 13:53:57 -07:00
Sam El-Husseini f1977fd5e3 No flyout mutator 2020-06-11 09:28:40 -07:00
Sam El-Husseini 0a7fee5af0 Remove arrow functions 2020-06-08 12:07:20 -07:00
Sam El-Husseini 2276b67968 PR comments 2020-06-08 12:05:37 -07:00
Sam El-Husseini 47385c5986 minor updates 2020-06-08 10:10:39 -07:00
Sam El-Husseini 29339351ad Use unpkg 2020-06-08 09:54:14 -07:00
Sam El-Husseini e96ec4489c Update the advanced playground to include the new Blockly playground 2020-06-08 09:53:45 -07:00
alschmiedt 26e84fef11 Add ability to add blocks by type (#3928)
* Add ability to add blocks by type
2020-06-04 12:49:04 -07:00
Sam El-Husseini 38557d45be Fix advanced playground options passing (#3907) 2020-05-19 09:59:08 -07:00
alschmiedt 55a36ba364 Add JSON definition for test blocks (#3901)
* Add JSON definition for test blocks
2020-05-15 13:50:12 -07:00
Rachel Fenichel 808b74f413 Respond to review feedback 2020-05-08 13:47:02 -07:00
Rachel Fenichel e6524a566d Create advanced playground; simplify basic playground 2020-05-06 14:23:40 -07:00
Neil Fraser 4e2f8e6e02 Use SPDX licences.
This is a followup to #3127.
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Sam El-Husseini 1fedbfa591 Add two new zelos rendering playgrounds for all the blocks in pxtblockly and scratchblocks. (#3582) 2020-01-13 11:57:50 -08:00
Sam El-Husseini 70c24cf94e CSS in renderers (#3446)
* Have each renderer declare some CSS that is specific to the renderer.
2019-11-18 16:14:19 -08:00
Sam El-Husseini 825643f4c3 Updates to the zelos rendering playground (#3420) 2019-11-11 13:19:03 -08:00
Sam El-Husseini e92bae1dda Download screenshot in playground (#3148)
* Add an option on the playground to download a screenshot of the blocks on the workspace.
2019-10-03 14:35:12 -07:00
Andrew n marshall 4092a644d5 Adding a iframe wrapper around the playground. (#1634) 2018-02-16 16:48:11 -08:00