Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
c00f95f4
Commit
c00f95f4
authored
Sep 21, 2015
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub out Realtime. Saves 15kb in blockly_compressed.js
parent
bd77e4c1
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
41 deletions
+12
-41
blockly_compressed.js
blockly_compressed.js
+4
-39
blockly_uncompressed.js
blockly_uncompressed.js
+1
-1
core/blockly.js
core/blockly.js
+7
-1
No files found.
blockly_compressed.js
View file @
c00f95f4
This diff is collapsed.
Click to expand it.
blockly_uncompressed.js
View file @
c00f95f4
...
...
@@ -27,7 +27,7 @@ if (!this.goog) {
var
dir
=
this
.
BLOCKLY_DIR
.
match
(
/
[^\/]
+$/
)[
0
];
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/block.js
"
,
[
'
Blockly.Block
'
],
[
'
Blockly.Blocks
'
,
'
Blockly.Comment
'
,
'
Blockly.Connection
'
,
'
Blockly.Input
'
,
'
Blockly.Mutator
'
,
'
Blockly.Warning
'
,
'
Blockly.Workspace
'
,
'
Blockly.Xml
'
,
'
goog.array
'
,
'
goog.asserts
'
,
'
goog.math.Coordinate
'
,
'
goog.string
'
]);
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/block_svg.js
"
,
[
'
Blockly.BlockSvg
'
],
[
'
Blockly.Block
'
,
'
Blockly.ContextMenu
'
,
'
goog.Timer
'
,
'
goog.asserts
'
,
'
goog.dom
'
,
'
goog.math.Coordinate
'
]);
goog.addDependency("../../../" + dir + "/core/blockly.js", ['Blockly'], ['Blockly.BlockSvg', 'Blockly.FieldAngle', 'Blockly.FieldCheckbox', 'Blockly.FieldColour', 'Blockly.FieldDropdown', 'Blockly.FieldImage', 'Blockly.FieldTextInput', 'Blockly.FieldVariable', 'Blockly.Generator', 'Blockly.Msg', 'Blockly.Procedures', 'Blockly.
Realtime', 'Blockly.
Toolbox', 'Blockly.WidgetDiv', 'Blockly.WorkspaceSvg', 'Blockly.inject', 'Blockly.utils', 'goog.color', 'goog.userAgent']);
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/blockly.js
"
,
[
'
Blockly
'
],
[
'
Blockly.BlockSvg
'
,
'
Blockly.FieldAngle
'
,
'
Blockly.FieldCheckbox
'
,
'
Blockly.FieldColour
'
,
'
Blockly.FieldDropdown
'
,
'
Blockly.FieldImage
'
,
'
Blockly.FieldTextInput
'
,
'
Blockly.FieldVariable
'
,
'
Blockly.Generator
'
,
'
Blockly.Msg
'
,
'
Blockly.Procedures
'
,
'
Blockly.Toolbox
'
,
'
Blockly.WidgetDiv
'
,
'
Blockly.WorkspaceSvg
'
,
'
Blockly.inject
'
,
'
Blockly.utils
'
,
'
goog.color
'
,
'
goog.userAgent
'
]);
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/blocks.js
"
,
[
'
Blockly.Blocks
'
],
[
'
goog.asserts
'
]);
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/bubble.js
"
,
[
'
Blockly.Bubble
'
],
[
'
Blockly.Workspace
'
,
'
goog.dom
'
,
'
goog.math
'
,
'
goog.userAgent
'
]);
goog
.
addDependency
(
"
../../../
"
+
dir
+
"
/core/comment.js
"
,
[
'
Blockly.Comment
'
],
[
'
Blockly.Bubble
'
,
'
Blockly.Icon
'
,
'
goog.userAgent
'
]);
...
...
core/blockly.js
View file @
c00f95f4
...
...
@@ -42,7 +42,13 @@ goog.require('Blockly.FieldVariable');
goog
.
require
(
'
Blockly.Generator
'
);
goog
.
require
(
'
Blockly.Msg
'
);
goog
.
require
(
'
Blockly.Procedures
'
);
goog
.
require
(
'
Blockly.Realtime
'
);
// Realtime is currently badly broken. Stub it out.
//goog.require('Blockly.Realtime');
Blockly
.
Realtime
=
{
isEnabled
:
function
()
{
return
false
;},
blockChanged
:
function
()
{},
doCommand
:
function
(
cmdThunk
)
{
cmdThunk
()}
};
goog
.
require
(
'
Blockly.Toolbox
'
);
goog
.
require
(
'
Blockly.WidgetDiv
'
);
goog
.
require
(
'
Blockly.WorkspaceSvg
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment