Skip to content

Commit

Permalink
fix(demo): fix mudblazor connection
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 17, 2022
1 parent 6b06bb1 commit 045be01
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
7 changes: 3 additions & 4 deletions apps/Sitko.Blockly.Demo/BlocklyApplication.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using Serilog.Events;
using Sitko.Blockly.AntDesignComponents;
using Sitko.Blockly.Demo.Data;
using Sitko.Blockly.MudBlazorComponents;
using Sitko.Core.App.Localization;
using Sitko.Core.Blazor.MudBlazor.Server;
using Sitko.Core.Blazor.Server;
using Sitko.Core.Db.Postgres;
using Sitko.Core.Repository.EntityFrameworkCore;
using Sitko.Core.Storage;
Expand All @@ -22,9 +21,9 @@ public BlocklyApplication(string[] args) : base(args)
.AddFileSystemStorage<BlocklyStorageOptions>()
.AddPostgresStorageMetadata<BlocklyStorageOptions>()
.AddJsonLocalization()
.AddAntDesignBlockly(moduleOptions =>
.AddMudBlazorBlockly(moduleOptions =>
{
moduleOptions.AddBlocks<AntDesignBlocklyModule>();
moduleOptions.AddBlocks<MudBlazorBlocklyModule>();
});
ConfigureLogLevel("System.Net.Http.HttpClient.health-checks", LogEventLevel.Error)
.ConfigureLogLevel("Microsoft.AspNetCore", LogEventLevel.Warning)
Expand Down
6 changes: 3 additions & 3 deletions apps/Sitko.Blockly.Demo/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@page "/"
@using Microsoft.Extensions.Options
@using Sitko.Blockly.AntDesignComponents
@using Sitko.Blockly.MudBlazorComponents
@namespace Sitko.Blockly.Demo.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@inject IOptionsMonitor<AntDesignBlocklyModuleOptions> options
@inject IOptionsMonitor<MudBlazorBlocklyModuleOptions> options
@{
Layout = null;
}
Expand All @@ -15,7 +15,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Sitko.Blockly.Demo</title>
<base href="~/"/>
<link href="~/Sitko.Core.Apps.MudBlazor.styles.css" rel="stylesheet"/>
<link href="~/Sitko.Core.Blazor.MudBlazor.styles.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/>
<link href="_content/MudBlazor/MudBlazor.min.css?v=5.0.14" rel="stylesheet"/>
<link href="css/site.css" rel="stylesheet"/>
Expand Down
9 changes: 4 additions & 5 deletions apps/Sitko.Blockly.Demo/Sitko.Blockly.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Sitko.Blockly.AntDesign\Sitko.Blockly.AntDesign.csproj" />
<ProjectReference Include="..\..\src\Sitko.Blockly.MudBlazor\Sitko.Blockly.MudBlazor.csproj" />
<ProjectReference Include="..\..\src\Sitko.Blockly.EntityFrameworkCore\Sitko.Blockly.EntityFrameworkCore.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Sitko.Core.Blazor.MudBlazor.Server" Version="9.0.0-beta.3" />
<PackageReference Include="Sitko.Core.Repository.EntityFrameworkCore" Version="9.0.0-beta.1" />
<PackageReference Include="Sitko.Core.Repository.EntityFrameworkCore" Version="9.0.0-beta.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Sitko.Core.Storage.Metadata.Postgres" Version="9.0.0-beta.1" />
<PackageReference Include="Sitko.Core.Configuration.Vault" Version="9.0.0-beta.1" />
<PackageReference Include="Sitko.Core.Storage.FileSystem" Version="9.0.0-beta.1" />
<PackageReference Include="Sitko.Core.Storage.Metadata.Postgres" Version="9.0.0-beta.3" />
<PackageReference Include="Sitko.Core.Configuration.Vault" Version="9.0.0-beta.3" />
<PackageReference Include="Sitko.Core.Storage.FileSystem" Version="9.0.0-beta.3" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion apps/Sitko.Blockly.Demo/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Microsoft.Extensions.Hosting;
using MudBlazor.Services;
using Sitko.Core.Blazor.MudBlazor.Server;
using Sitko.Core.Blazor.Server;

namespace Sitko.Blockly.Demo;

Expand Down

0 comments on commit 045be01

Please sign in to comment.