Skip to content

Commit

Permalink
make interface clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
N-J-Martin committed Mar 11, 2024
1 parent e21f830 commit cd7d293
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/blocks/json.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// A variation of code from https://blocklycodelabs.dev/codelabs/custom-generator/index.html?index=..%2F..index#0

import * as Blockly from 'blockly';

export const jsonBlocks = Blockly.common.createBlockDefinitionsFromJsonArray([{
Expand Down
3 changes: 3 additions & 0 deletions src/generators/json.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// A variation of code from https://blocklycodelabs.dev/codelabs/custom-generator/index.html?index=..%2F..index#0


import * as Blockly from 'blockly';

export const jsonGenerator = new Blockly.Generator('JSON');
Expand Down
8 changes: 5 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
<body>
<div id="pageContainer">
<div id="outputPane">
<h3>Generated Essence Code</h3>
<pre id="generatedCode"><code></code></pre>
<h3>JSON Solution</h3>
<div id="output"></div>
</div>
<div id="blocklyDiv"></div>
<div id = "dataInputDiv"></div>
<div id="blocklyDiv2"></div>
<div id="blocklyDiv"><h3>Block Essence</h3></div>
<div id = "dataInputDiv"><h3>Block Data Input</h3></div>
<div id="blocklyDiv2"><h3>Block Solution</h3></div>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions src/jsonToolbox.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// A variation of code from https://blocklycodelabs.dev/codelabs/custom-generator/index.html?index=..%2F..index#0

export const jsonToolbox = {
'kind': 'categoryToolbox',
'contents': [ {
Expand Down

0 comments on commit cd7d293

Please sign in to comment.