Skip to content

Commit 2322204

Browse files
committed
Fixed smaller UI issues and compiler issues.
1 parent c9b2e03 commit 2322204

File tree

27 files changed

+175
-160
lines changed

27 files changed

+175
-160
lines changed

app/chrome_app/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"short_name": "Coding with Chrome",
1010
"description": "Learn, improve, or teach coding skills within a Chrome browser.",
1111
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgSWdCJSwkgFTY9d993Quot277oCS2PCM2H/F6U28NE8D3Z21GXS/7qW8XCGShB054Wboq62pP679f9tB9F+GRHzOh/an4zIu+Uhb3ZKVzZLJbHsP8N+E5wk3wgwOBgE+UXCy9I8i1RpfzutJ4aha+YEzvCsVpo6UwsuWiXORB9yRU5NuooYX+fhVpWZmrZJo4vqzQhuoJ/uWiQujABXXo4qdrclwSw8+JlpWLMqHHQ6HE8Sf7VWDdGvRdYP6LRZobWqovb659qEumJ0bxhwXtHkWgPHQWtW35T/r/oH8uuke35pH+YtBtaOqN5U3bYGPinP0bYrI33OSLUJx/DrC1wIDAQAB",
12-
"version": "5.10.16",
12+
"version": "6.01.05",
1313
"oauth2": {
1414
"client_id": "418162477970-2qmsb2sp3m522hf292154favsjgpsj9n.apps.googleusercontent.com",
1515
"scopes": [

app/nw_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "binary",
3-
"version": "5.10.16",
3+
"version": "6.01.05",
44
"main": "js/background.js",
55
"window": {
66
"title": "Coding with Chrome",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "coding-with-chrome",
33
"description": "Coding with Chrome",
4-
"version": "5.10.16",
4+
"version": "6.01.05",
55
"author": "Markus Bordihn ([email protected])",
66
"license": "Apache-2.0",
77
"private": true,

src/config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ cwc.config.Sample = {
119119
/**
120120
* @type {string}
121121
*/
122-
cwc.config.Version = '5.10.16';
122+
cwc.config.Version = '6.01.05';

src/mode/games/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ cwc.mode.games.Config = {};
3838
cwc.mode.games.Config[cwc.mode.Type.PHASER] = new cwc.mode.Mod({
3939
authors: ['Markus Bordihn'],
4040
auto_preview: true,
41+
enable_library: true,
4142
icon: 'mode_edit',
4243
mime_types: [cwc.utils.mime.Type.CWC.type],
4344
mod: cwc.mode.phaser.Mod,
@@ -54,6 +55,7 @@ cwc.mode.games.Config[cwc.mode.Type.PHASER] = new cwc.mode.Mod({
5455
cwc.mode.games.Config[cwc.mode.Type.PHASER_BLOCKLY] = new cwc.mode.Mod({
5556
authors: ['Markus Bordihn'],
5657
auto_preview: true,
58+
enable_library: true,
5759
icon: 'mode_edit',
5860
mime_types: [cwc.utils.mime.Type.CWC.type],
5961
mod: cwc.mode.phaser.Mod,

src/mode/markup/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ cwc.mode.markup.Config = {};
3838
cwc.mode.markup.Config[cwc.mode.Type.HTML5] = new cwc.mode.Mod({
3939
authors: ['Markus Bordihn'],
4040
auto_preview: true,
41+
enable_library: true,
4142
icon: 'public',
4243
mime_types: [cwc.utils.mime.Type.HTML.type],
4344
mod: cwc.mode.html5.Mod,

src/mode/modder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ cwc.mode.Modder.prototype.setMode = function(mode) {
138138
settingScreenInstance.hide();
139139
}
140140

141-
// Remove custom sidebar button.
141+
// Handle sidebar button.
142142
let sidebarInstance = this.helper.getInstance('sidebar');
143143
if (sidebarInstance) {
144144
sidebarInstance.clear();
145+
sidebarInstance.enableLibrary(modeConfig.enableLibrary);
145146
}
146147

147148
// Reset Render instance.

src/mode/mode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ cwc.mode.Mod = function(config_data) {
3333
/** @type {boolean} */
3434
this.autoPreview = config_data.auto_preview || false;
3535

36+
/** @type {boolean} */
37+
this.enableLibrary = config_data.enable_library || false;
38+
3639
/** @type {!Array} */
3740
this.services = config_data.services || [];
3841

src/ui/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ cwc.ui.Builder.prototype.decorate = async function(node = 'cwc-editor') {
213213
}, false, this);
214214

215215
this.setProgress('Load and prepare user config ...', 1);
216-
let userConfig = await new cwc.UserConfig(this.helper).prepare();
216+
let userConfig = await new cwc.UserConfig().prepare();
217217
this.helper.setInstance('userConfig', userConfig);
218218

219219
this.setProgress('Load and prepare i18n translations ...', 2);

src/ui/editor/infobar/editor_infobar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ goog.require('cwc.utils.Events');
3131
* @final
3232
*/
3333
cwc.ui.EditorInfobar = function(helper) {
34+
/** @type {string} */
35+
this.name = 'EditorInfobar';
36+
3437
/** @type {!cwc.utils.Helper} */
3538
this.helper = helper;
3639

0 commit comments

Comments
 (0)