Skip to content

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
- modify UI to add menus for less used commands
- add HackCable
- add Blockly2HTML
- add BlockFactory
- toolbox disassembled in different JSON (road to 0.9)
  • Loading branch information
SebCanet committed Nov 12, 2020
1 parent 3d974e3 commit 0119875
Show file tree
Hide file tree
Showing 1,674 changed files with 877,673 additions and 1,514 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
v0.8.0, 2020-11-11
- JSON integration for toolboxes
- settings from Papyrus capability
- serial monitor bug fix
- board choice bug fix
- add HackCable
- add Blockly2HTML
- ass BlockFactory


v0.7.3, 2020-07-06
- change prompt to custom-dialog from Blockly, Electron compatible
- bug fix on all reset button
Expand Down
42 changes: 30 additions & 12 deletions IDE_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* @fileoverview Utility functions for handling typed variables.
* fake IDE code Arduino
* boardSelector: Arduino boards list
* boardSelector: boards list
* serialMenu: serial port list
* serialConnectButton: open modal with serial console
* verifyButton: verify and compile in hex file
Expand Down Expand Up @@ -134,17 +134,17 @@ window.addEventListener('load', function load(event) {
}
document.getElementById('content_serial').style.color = '#00FF00';
document.getElementById('content_serial').innerHTML = stdout + '<br>' + MSG['IDE_upload_ok'];
// const path = require('path');
// fs.readdir('.\\compiler\\tmp', (err, files) => {
// if (err)
// throw err;
// for (const file of files) {
// fs.unlink(path.join('.\\compiler\\tmp', file), err => {
// if (err)
// throw err;
// });
// }
// });
const path = require('path');
fs.readdir('.\\compiler\\tmp', (err, files) => {
if (err)
throw err;
for (const file of files) {
fs.unlink(path.join('.\\compiler\\tmp', file), err => {
if (err)
throw err;
});
}
});
});
};
document.getElementById('serialConnectButton').addEventListener('click', function () {
Expand All @@ -167,4 +167,22 @@ window.addEventListener('load', function load(event) {
ipcRenderer.send("serialConnect", langChoice);
}
});
document.getElementById('wiringButton').addEventListener('click', function () {
// var val = location.search.match(new RegExp('[?&]lang=([^&]+)'));
// var argLangChoice = val ? decodeURIComponent(val[1].replace(/\+/g, '%20')) : 'en';
var langChoice = document.getElementById('languageMenu').value;
ipcRenderer.send("hackCable", langChoice);
});
document.getElementById('factoryButton').addEventListener('click', function () {
// var val = location.search.match(new RegExp('[?&]lang=([^&]+)'));
// var argLangChoice = val ? decodeURIComponent(val[1].replace(/\+/g, '%20')) : 'en';
var langChoice = document.getElementById('languageMenu').value;
ipcRenderer.send("blockFactory", langChoice);
});
document.getElementById('htmlButton').addEventListener('click', function () {
// var val = location.search.match(new RegExp('[?&]lang=([^&]+)'));
// var argLangChoice = val ? decodeURIComponent(val[1].replace(/\+/g, '%20')) : 'en';
var langChoice = document.getElementById('languageMenu').value;
ipcRenderer.send("blocklyHTML", langChoice);
});
});
File renamed without changes.
8 changes: 0 additions & 8 deletions compiler/cmd.txt

This file was deleted.

Loading

0 comments on commit 0119875

Please sign in to comment.