OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.45k stars 2.41k forks source link

Suggestion: Use Programming Experience Toolkit (pxt) for programmability (workflows, etc) #840

Open gentledepp opened 7 years ago

gentledepp commented 7 years ago

Hi!

I played with PXT recently (google blockly and monaco editor) which seems to be a perfect "coding experience" for admins/beginners and pro-developers.

So I would suggest to use it for features like "workflows" and content item triggers and such.

This would also allow external devs to add new blockly-blocks as a feature.

What do you think?

Jetski5822 commented 7 years ago

The UI is quite cool, between that a JS Plumb, we could take a look. Thanks for bringing it up

Jetski5822 commented 7 years ago

monaco editor looks awesome to use for editing code.

gentledepp commented 7 years ago

yep and with pxt there is even a "code to blocks" transformation included.

Blockly can only transform from blocks to code.

My Idea would be to keep the workflow editor as is and enhance it with a blockly-based activity.

Would that make sense?

gentledepp commented 7 years ago

Another proposal for @sebastienros

I saw in the presenation of Orchard 2 (Orchard Harvest 2017 - Core Orchard CMS) that you are using Jint for evaluating javascript which in turn can be used to show/hide widgets and the like.

We are running Jint in our Xamarin application, which evaluates JavaScript, that users created with a Blockly based editor.

Maybe you want to consider using Blockly when creating the workflow feature? Because that would allow us to add a "blockly activity" where we can actually compute stuff. The workflow engine can simply evaluate these using Jint.

For that to work, it would be important to give the Jint engine access to the content of orchard (content items)

What do you think?