-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
462 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
||
} | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Modules/StatCan.OrchardCore.Canvas/Statcan.OrchardCore.Canvas.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
373
src/Modules/StatCan.OrchardCore.Canvas/Views/Widget-Canvas.liquid
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/Modules/StatCan.OrchardCore.Tabulator/Recipes/Tabulator.recipe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters