Skip to content

Commit

Permalink
edits recipe name
Browse files Browse the repository at this point in the history
  • Loading branch information
axalrub committed Feb 1, 2021
1 parent 5f523e1 commit d8959b8
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/Modules/StatCan.OrchardCore.Canvas/FeatureIds.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace StatCan.OrchardCore.Canvas
{
public static class FeatureIds
{
public const string Canvas = "StatCan.OrchardCore.Canvas";
}
}
21 changes: 21 additions & 0 deletions src/Modules/StatCan.OrchardCore.Canvas/Manifest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using OrchardCore.Modules.Manifest;
using static StatCan.OrchardCore.Canvas.FeatureIds;

[assembly: Module(
Name = "StatCan Canvas",
Author = "Digital Innovation Team",
Website = "https://digital.statcan.gc.ca",
Version = "1.0.0"
)]

[assembly: Feature(
Id = Canvas,
Name = "StatCan.Canvas - Widgets",
Category = "Content",
Description = "Adds a widget used to create Business and Client Canvas.",
Dependencies = new[]
{
"OrchardCore.Widgets",

}
)]
22 changes: 22 additions & 0 deletions src/Modules/StatCan.OrchardCore.Canvas/Migrations.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentManagement.Metadata.Settings;
using OrchardCore.Data.Migration;
using OrchardCore.Title.Models;
using StatCan.OrchardCore.Extensions;

namespace StatCan.OrchardCore.Canvas
{
public class Migrations : DataMigration
{
private readonly IContentDefinitionManager _contentDefinitionManager;
public Migrations(IContentDefinitionManager contentDefinitionManager)
{
_contentDefinitionManager = contentDefinitionManager;
}

public int Create()
{
return 1;
}
}
}
13 changes: 13 additions & 0 deletions src/Modules/StatCan.OrchardCore.Canvas/Startup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
using OrchardCore.ResourceManagement;
using OrchardCore.Data.Migration;

namespace StatCan.OrchardCore.Canvas
{
[Feature(FeatureIds.Canvas)]
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection serviceCollection) => serviceCollection.AddScoped<IDataMigration, Migrations>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>$(AspNetCoreTargetFramework)</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<DefaultItemExcludes>$(DefaultItemExcludes);.git*;node_modules\**</DefaultItemExcludes>
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.ContentManagement" Version="$(OrchardCoreVersion)" />
<PackageReference Include="OrchardCore.Contents" Version="$(OrchardCoreVersion)" />
<PackageReference Include="OrchardCore.DisplayManagement" Version="$(OrchardCoreVersion)" />
<PackageReference Include="OrchardCore.ResourceManagement" Version="$(OrchardCoreVersion)" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Lib\StatCan.OrchardCore.Extensions\StatCan.OrchardCore.Extensions.csproj" />
</ItemGroup>

</Project>
373 changes: 373 additions & 0 deletions src/Modules/StatCan.OrchardCore.Canvas/Views/Widget-Canvas.liquid

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TableCreator",
"displayName": "TableCreator",
"name": "Table Creator",
"displayName": "Table Creator",
"description": "Creates tables from a JSON formatted data.",
"author": "StatCan Digital Innovation",
"website": "digital.statcan.gc.ca",
Expand Down

0 comments on commit d8959b8

Please sign in to comment.