mirror of
https://github.com/google/blockly.git
synced 2026-05-12 23:20:10 +02:00
ed15d59ff6
* chore: fix undo and empty code blocks * chore: skip IE test * chore: fix gesture test * chore: fix replace message references test * chore: fix string table interpolation * chore: skip getById tests * chore: fix field tests * chore: fix console errors by making workspace nullable * chore: format * chore: fix definition overwrite warning * chore: update metadata * chore: temporarily modify the the advanced compile test * chore: fix gestures by fixing test instead
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.module('Main');
|
|
|
|
// Core
|
|
// Either require 'Blockly.requires', or just the components you use:
|
|
/* eslint-disable-next-line no-unused-vars */
|
|
// TODO: I think we need to make sure these get exported?
|
|
// const {BlocklyOptions} = goog.requireType('Blockly.BlocklyOptions');
|
|
const {inject} = goog.require('Blockly.inject');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.geras.Renderer');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.VerticalFlyout');
|
|
// Blocks
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.libraryBlocks.logic');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.libraryBlocks.loops');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.libraryBlocks.math');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.libraryBlocks.texts');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('testBlocks');
|
|
|
|
|
|
function init() {
|
|
inject('blocklyDiv', /** @type {BlocklyOptions} */ ({
|
|
'toolbox': document.getElementById('toolbox')
|
|
}));
|
|
};
|
|
window.addEventListener('load', init);
|