Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
sfmskywalker / site.css
Created Nov 2, 2019
site.css - Building Workflow Driven .NET Core Applications with Elsa
View site.css
html,
body, app {
height: 100%;
}
app {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
@sfmskywalker
sfmskywalker / Index.razor
Last active Nov 3, 2019
Index.razor - Building Workflow Driven .NET Core Applications with Elsa
View Index.razor
@page "/"
<div class="form-signup">
<EditForm Model="@RegistrationModel" OnValidSubmit="@HandleFormSubmission" hidden="@ShowConfirmation">
<h1 class="h3 mb-3 font-weight-normal">Please register</h1>
<DataAnnotationsValidator/>
<ValidationSummary/>
@sfmskywalker
sfmskywalker / MainLayout.razor
Created Nov 2, 2019
MainLayout - Building Workflow Driven .NET Core Applications with Elsa
View MainLayout.razor
@inherits Microsoft.AspNetCore.Components.LayoutComponentBase
@Body
@sfmskywalker
sfmskywalker / RegistrationModel.cs
Created Nov 2, 2019
RegistrationModel - Building Workflow Driven .NET Core Applications with Elsa
View RegistrationModel.cs
using System.ComponentModel.DataAnnotations;
namespace Elsa.Samples.UserRegistration.Web.Models
{
public class RegistrationModel
{
[Required]
public string Name { get; set; }
[Required]
View generate-theme.cmd
dotnet new octheme -n "MadeWithLoveTheme"
@sfmskywalker
sfmskywalker / InstallCodeGenerationTemplates.cmd
Created Jul 29, 2018
Installs the Orchard Core Code Generation Templates
View InstallCodeGenerationTemplates.cmd
dotnet new -i OrchardCore.Cms.Templates::1.0.0-beta2-*
@sfmskywalker
sfmskywalker / npm-install.cmd
Last active Jul 29, 2018
Executes the NPM Install command
View npm-install.cmd
cd ClientApp
npm install
ng build
@sfmskywalker
sfmskywalker / DownloadAngularElementSample.ps1
Last active Jul 29, 2018
Downloads and extracts a sample Angular Custom Element from GitHub
View DownloadAngularElementSample.ps1
Add-Type -AssemblyName System.IO.Compression.FileSystem
Invoke-WebRequest -Uri https://github.com/nitayneeman/made-with-love/archive/release/v1.1.0.zip -OutFile ./ClientApp.zip
[System.IO.Compression.ZipFile]::ExtractToDirectory("c:\Code\Orchard Core and Angular\AngularWidgetsDemo\ClientApp.zip", "c:\Code\Orchard Core and Angular\AngularWidgetsDemo")
Rename-Item made-with-love-master ClientApp
@sfmskywalker
sfmskywalker / IncludeElements.cmd
Last active Jul 29, 2018
Add Angular Elements & Polyfill
View IncludeElements.cmd
cd ClientApp
ng add @angular/elements
You can’t perform that action at this time.