Skip to content

Commit

Permalink
convert csv example
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Apr 25, 2020
1 parent 8af3f09 commit 70cef6a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/NetCore2Blockly/TestBlocklyHtml/wwwroot/doNotCopy/testing.js
@@ -1,5 +1,53 @@
//if you want to copy those blocks, make sure you replace \` with `
var testBlocks = [
{
name: 'convert csv',
data:`<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="^HqtU]3:/R^Xs!?,#:]m">n</variable>
</variables>
<block type="variables_set" y="20" x="20" inline="true">
<field id="^HqtU]3:/R^Xs!?,#:]m" name="VAR">n</field>
<value name="VALUE">
<block type="WeatherForecast_GET"></block>
</value>
<next>
<block type="text_print">
<value name="TEXT">
<shadow type="text">
<field name="TEXT">abc</field>
</shadow>
<block type="variables_get">
<field id="^HqtU]3:/R^Xs!?,#:]m" name="VAR">n</field>
</block>
</value>
<next>
<block type="variables_set" inline="true">
<field id="^HqtU]3:/R^Xs!?,#:]m" name="VAR">n</field>
<value name="VALUE">
<block type="convertcsv">
<value name="ArrayToConvert">
<block type="WeatherForecast_GET"></block>
</value>
</block>
</value>
<next>
<block type="text_print">
<value name="TEXT">
<shadow type="text"><field name="TEXT">abc</field>
</shadow>
<block type="variables_get"><field id="^HqtU]3:/R^Xs!?,#:]m" name="VAR">n</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>`
},
{
name: 'modify prop',
data:`<xml xmlns="https://developers.google.com/blockly/xml">
Expand Down

0 comments on commit 70cef6a

Please sign in to comment.