Comments (6)
I will make an example with custom categories ASAP
from netcoreblockly.
Thanks that all worked. :)
- Using version 8.2024.503.745
- Created folder
SoftataWebAPI\wwwroot\BlocklyAutomation\assets\loadAtStartup
- Created text file in that folder called:
customCategories.txt
- Made sure it was being copied to the built output
- Inserted code as previous (WITHOUT the XML monikers)!
- Ran Blockly and could access any functions in that file via CategoriesLoaded.
- Functions then available under Basic-->Functions
- Functions renamed if already existing
- Can then reuse functions.
from netcoreblockly.
Update latest nuget.org/packages/NetCore2Blockly version 8.2024.503.745
Put a file named customCategories.txt
<category name='CategoriesLoaded'>
</category>
and inside put your blocks
from netcoreblockly.
Using version 8.2024.503.745
OK so have created app with simple function:
Downloaded that and extracted the function part of it:
<block type="procedures_defnoreturn" x="107" y="488">
...
...
</block>
I created a file in Downloads directory where DownloadBlocks saves to, called customCategories.txt. With the block code in it:
<category name='CategoriesLoaded'>
<block type="procedures_defnoreturn" x="107" y="488">
<field name="NAME">GetData</field>
<comment pinned="false" h="80" w="160">Print current Date-Time</comment>
<statement name="STACK">
<block type="text_print">
<value name="TEXT">
<block type="displayCurrentDate">
<field name="dateFormat">human</field>
</block>
</value>
</block>
</statement>
</block>
</category>
The "Category" isn't being loaded. ???
Also added <xml ..> and tags before and after the category tags with same result.
Guessing issue might be where to place the file??
from netcoreblockly.
Sorry for not being clear
The folder for the file is assets\loadAtStartup
For your case , make a folder named loadAtStartup in SoftataWebAPI\wwwroot\BlocklyAutomation\assets
and put there the file
from netcoreblockly.
All good now, thanks again. :)
from netcoreblockly.
Related Issues (20)
- CVE-2020-15522 (Medium) detected in portable.bouncycastle.1.8.1.3.nupkg
- CVE-2017-0256 (Medium) detected in system.net.http.4.3.0.nupkg
- CVE-2017-0247 (High) detected in system.net.http.4.3.0.nupkg
- CVE-2021-22570 (Medium) detected in google.protobuf.3.6.1.nupkg
- CVE-2022-25851 (High) detected in jpeg-js-0.4.3.tgz - autoclosed HOT 1
- Easy way to add Blockly
- WS-2022-0161 (High) detected in multiple libraries
- CVE-2022-1941 (High) detected in google.protobuf.3.6.1.nupkg
- Save => Save Local error : local api it is not yet loaded - please try again after loading HOT 2
- Where is Save Local data? HOT 6
- Can override Host/Port be removed from a Custom API? HOT 11
- Some suggestions HOT 12
- C Style operators HOT 4
- Incode Comments HOT 5
- dll to api blockly
- Some UI Suggestions HOT 2
- Add a function tab to code HOT 2
- On event Functions ... AKA a callback HOT 2
- Example new Block creation tutorial HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcoreblockly.