Skip to content

Commit

Permalink
Fixed bug #6
Browse files Browse the repository at this point in the history
  • Loading branch information
JC-Orozco committed Sep 13, 2017
1 parent 59c47ad commit f3bf930
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main.css": "static/css/main.36ae78d3.css",
"main.css.map": "static/css/main.36ae78d3.css.map",
"main.js": "static/js/main.89561001.js",
"main.js.map": "static/js/main.89561001.js.map"
"main.js": "static/js/main.9589fc27.js",
"main.js.map": "static/js/main.9589fc27.js.map"
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/BlocksIDE/build/manifest.json"><link rel="shortcut icon" href="/BlocksIDE/build/favicon.ico"><title>React App</title><link href="/BlocksIDE/build/static/css/main.36ae78d3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/BlocksIDE/build/static/js/main.89561001.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/BlocksIDE/build/manifest.json"><link rel="shortcut icon" href="/BlocksIDE/build/favicon.ico"><title>React App</title><link href="/BlocksIDE/build/static/css/main.36ae78d3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/BlocksIDE/build/static/js/main.9589fc27.js"></script></body></html>
2 changes: 1 addition & 1 deletion build/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions build/static/js/main.89561001.js

This file was deleted.

2 changes: 2 additions & 0 deletions build/static/js/main.9589fc27.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "BlocksIDE",
"author": "Juan Carlos Orozco",
"version": "0.3.22",
"version": "0.3.23",
"homepage": "https://jc-orozco.github.io/BlocksIDE/build",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Header extends Component {
<button onClick={this.open}>Open</button>
<button onClick={this.saveGen}>Save JS Generated</button>
<button onClick={this.save}>Save JS Editor</button>
<span><b> BlocksIDE</b> (Alpha) {version} by Juan Carlos Orozco. Works with latest Firefox</span>
<span><b> BlocksIDE</b> (Alpha) {version} by Juan Carlos Orozco.</span>
</div>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/js2blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ export function walk1(ast, comments, block_loc, options){
if(debug) console.log("Statement");
c(node, st)
if(!options.joinTopBlocks && current_node === root_node ){
let lastChild = current_node.children.length
//console.log('Statement '+lastChild);
current_node.children[lastChild-1].setAttribute('x', '0');
current_node.children[lastChild-1].setAttribute('y', (lastChild*10).toString());
} else{
if(current_node.children.length > 0){
var next1 = newNode('next');
Expand Down
2 changes: 1 addition & 1 deletion src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.3.22"
"version": "0.3.23"
}

0 comments on commit f3bf930

Please sign in to comment.