Skip to content

Commit

Permalink
Merge pull request #33 from yasanthaniroshan/stable
Browse files Browse the repository at this point in the history
Syncing with latest Production
  • Loading branch information
yasanthaniroshan authored May 7, 2024
2 parents 6602da2 + c86dd2a commit c2345b3
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/SEO/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
15 changes: 15 additions & 0 deletions src/SEO/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">


<url>
<loc>https://oboblocks.roboticgenacademy.com/</loc>
<lastmod>2024-05-07T17:38:37+00:00</lastmod>
</url>


</urlset>
1 change: 1 addition & 0 deletions src/blocky/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Order } from 'blockly/python';
export const forBlock = Object.create(null);



forBlock['print_block'] = function (block, generator) {
var value_value = generator.valueToCode(block, 'value', Order.ATOMIC);
var code = 'print(' + value_value + ')\n';
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import academyLogo from './assets/academyLogo.webp'
import { editor, insertPythonSnippet, makeUneditable, saveAsPythonFile, loadModifiedCode, saveModifideCode } from './editor/editor'


import * as Blockly from 'blockly'
import * as Blockly from 'blockly/core'
import { toolbox } from './blocky/toolbox';
import { forBlock } from './blocky/generator';
import { pythonGenerator } from 'blockly/python';
import { forBlock } from './blocky/generator';
import { blocks } from './blocky/blocks';
import { OboCategory } from './blocky/categories';
import { OboCategory } from './blocky/categories';
import { theme } from './blocky/themes';
import { save, load } from './blocky/serialization'

Expand Down
22 changes: 21 additions & 1 deletion src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,26 @@
<meta name="keywords"
content="Obo Blocks,python,google,scratch,Blockly,visual programming,pyodide,web application,roboticgen academy,roboticgen">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="msvalidate.01" content="F880277201EB0168D24B534ADC14C549" />
<title>Obo Blocks</title>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TQ59G8QBC7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'G-TQ59G8QBC7');
</script>
<!-- Clarity tag -->
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "m86gvlhvgc");
</script>
</head>

<body>
Expand All @@ -31,7 +50,8 @@
<div class="button-row">
<p class="code-title">Python Code</p>
<div class="button-group">
<a class="button" id="edit-button"><i class="fa fa-pencil" style="padding-right: 2px;"></i> <span id="edit-text">Edit</span></a>
<a class="button" id="edit-button"><i class="fa fa-pencil" style="padding-right: 2px;"></i> <span
id="edit-text">Edit</span></a>
<a class="button" id="run-button"><i id="run-icon" class="fa fa-flag"></i> <span
id="run-text">Run</span></a>
<a class="button" id="copy-button"><i class="fa fa-copy"></i><span id="copy-text">Copy</span></a>
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ module.exports = {
),
new CopyWebpackPlugin({
patterns: [
{ from: "src/assets/blockly_media", to: "media" } // Adjust source and destination paths as needed
{ from: "src/assets/blockly_media", to: "media" }, // Adjust source and destination paths as needed
{ from: "src/SEO", to: ""}
]
}),
new MiniCssExtractPlugin({
Expand Down

0 comments on commit c2345b3

Please sign in to comment.