mirror of
https://github.com/google/blockly.git
synced 2026-01-25 17:50:10 +01:00
Migrate core/theme/classic.js to goog.module
This commit is contained in:
@@ -10,15 +10,16 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
goog.provide('Blockly.Themes.Classic');
|
||||
goog.module('Blockly.Themes.Classic');
|
||||
goog.module.declareLegacyNamespace();
|
||||
|
||||
goog.require('Blockly.Theme');
|
||||
|
||||
|
||||
// Temporary holding object.
|
||||
Blockly.Themes.Classic = {};
|
||||
let Classic = {};
|
||||
|
||||
Blockly.Themes.Classic.defaultBlockStyles = {
|
||||
Classic.defaultBlockStyles = {
|
||||
"colour_blocks": {
|
||||
"colourPrimary": "20"
|
||||
},
|
||||
@@ -52,7 +53,7 @@ Blockly.Themes.Classic.defaultBlockStyles = {
|
||||
}
|
||||
};
|
||||
|
||||
Blockly.Themes.Classic.categoryStyles = {
|
||||
Classic.categoryStyles = {
|
||||
"colour_category": {
|
||||
"colour": "20"
|
||||
},
|
||||
@@ -82,6 +83,8 @@ Blockly.Themes.Classic.categoryStyles = {
|
||||
}
|
||||
};
|
||||
|
||||
Blockly.Themes.Classic =
|
||||
new Blockly.Theme('classic', Blockly.Themes.Classic.defaultBlockStyles,
|
||||
Blockly.Themes.Classic.categoryStyles);
|
||||
Classic =
|
||||
new Blockly.Theme('classic', Classic.defaultBlockStyles,
|
||||
Classic.categoryStyles);
|
||||
|
||||
exports = Classic;
|
||||
|
||||
@@ -191,7 +191,7 @@ goog.addDependency('../../core/scrollbar_pair.js', ['Blockly.ScrollbarPair'], ['
|
||||
goog.addDependency('../../core/shortcut_items.js', ['Blockly.ShortcutItems'], ['Blockly', 'Blockly.Gesture', 'Blockly.ShortcutRegistry', 'Blockly.clipboard', 'Blockly.utils.KeyCodes'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/shortcut_registry.js', ['Blockly.ShortcutRegistry'], ['Blockly.utils.KeyCodes', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/theme.js', ['Blockly.Theme'], ['Blockly.registry', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/theme/classic.js', ['Blockly.Themes.Classic'], ['Blockly.Theme']);
|
||||
goog.addDependency('../../core/theme/classic.js', ['Blockly.Themes.Classic'], ['Blockly.Theme'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/theme/zelos.js', ['Blockly.Themes.Zelos'], ['Blockly.Theme'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/theme_manager.js', ['Blockly.ThemeManager'], ['Blockly.utils.dom'], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/toolbox/category.js', ['Blockly.ToolboxCategory'], ['Blockly', 'Blockly.Css', 'Blockly.ToolboxItem', 'Blockly.registry', 'Blockly.utils', 'Blockly.utils.aria', 'Blockly.utils.dom', 'Blockly.utils.object', 'Blockly.utils.toolbox'], {'lang': 'es6', 'module': 'goog'});
|
||||
|
||||
Reference in New Issue
Block a user