mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
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
This commit is contained in:
@@ -66,8 +66,8 @@
|
||||
<script src="../../blocks/procedures.js"></script>
|
||||
<script src="../themes/test_themes.js"></script>
|
||||
<script src="./screenshot.js"></script>
|
||||
<script src="https://unpkg.com/@blockly/dev-tools@2.0.0/dist/index.js"></script>
|
||||
<script src="https://unpkg.com/@blockly/theme-modern/dist/index.js"></script>
|
||||
<script src="../../node_modules/@blockly/dev-tools/dist/index.js"></script>
|
||||
<script src="../../node_modules/@blockly/theme-modern/dist/index.js"></script>
|
||||
|
||||
<script>
|
||||
// Custom requires for the playground.
|
||||
@@ -113,6 +113,10 @@ function configurePlayground(playground) {
|
||||
}
|
||||
|
||||
function initPlayground() {
|
||||
if (typeof window.createPlayground === 'undefined') {
|
||||
alert('You need to run \'npm install\' in order to use this playground.');
|
||||
return;
|
||||
}
|
||||
var defaultOptions = {
|
||||
comments: true,
|
||||
collapse: true,
|
||||
|
||||
Reference in New Issue
Block a user