Skip to content

Commit

Permalink
Upgrade to Blazor 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissainty committed Feb 9, 2019
1 parent f617105 commit 7a44a88
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 139 deletions.
16 changes: 8 additions & 8 deletions azure-pipelines.yml
Expand Up @@ -11,24 +11,24 @@ steps:
- task: DotNetCoreInstaller@0
displayName: 'Installing .NET Core SDK...'
inputs:
version: 2.2.100
version: 3.0.100-preview-010184

- task: NuGetToolInstaller@0
displayName: 'Installing Nuget Tools...'
inputs:
versionSpec: '4.9.2'

- script: dotnet build --configuration $(buildConfiguration) src/Blazored.Toast/Blazored.Toast.csproj
displayName: 'Building $(buildConfiguration)...'

- task: DotNetCoreCLI@2
displayName: 'Generating Nuget Package... '
inputs:
command: pack

arguments: --no-build
packagesToPack: src/Blazored.Toast/Blazored.Toast.csproj
configuration: $(buildConfiguration)
verbosityPack: Detailed

- task: NuGetCommand@2
displayName: 'Publishing to Nuget...'
inputs:
command: push
nuGetFeedType: external
publishFeedCredentials: 'Nuget'
- task: PublishBuildArtifacts@1
displayName: 'Publishing Build Artifacts...'
6 changes: 3 additions & 3 deletions samples/BlazorSample/BlazorSample.csproj
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="0.8.0-preview-19104-04" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.8.0-preview-19104-04" PrivateAssets="all" />

<DotNetCliToolReference Include="Microsoft.AspNetCore.Blazor.Cli" Version="0.7.0" />
<DotNetCliToolReference Include="Microsoft.AspNetCore.Blazor.Cli" Version="0.8.0-preview-19104-04" />
</ItemGroup>

<ItemGroup>
Expand Down
16 changes: 0 additions & 16 deletions samples/BlazorSample/Pages/Counter.cshtml

This file was deleted.

52 changes: 0 additions & 52 deletions samples/BlazorSample/Pages/FetchData.cshtml

This file was deleted.

2 changes: 1 addition & 1 deletion samples/BlazorSample/Shared/MainLayout.cshtml
@@ -1,4 +1,4 @@
@inherits BlazorLayoutComponent
@inherits LayoutComponentBase

<BlazoredToasts />

Expand Down
12 changes: 1 addition & 11 deletions samples/BlazorSample/Shared/NavMenu.cshtml
@@ -1,5 +1,5 @@
<div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">BlazorSample</a>
<a class="navbar-brand" href="">Blazored Toast</a>
<button class="navbar-toggler" onclick=@ToggleNavMenu>
<span class="navbar-toggler-icon"></span>
</button>
Expand All @@ -12,16 +12,6 @@
<span class="oi oi-home" aria-hidden="true"></span> Home
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="counter">
<span class="oi oi-plus" aria-hidden="true"></span> Counter
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink class="nav-link" href="fetchdata">
<span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data
</NavLink>
</li>
</ul>
</div>

Expand Down
4 changes: 2 additions & 2 deletions samples/BlazorSample/Startup.cs
@@ -1,12 +1,12 @@
using Blazored.Toast;
using Microsoft.AspNetCore.Blazor.Builder;
using Microsoft.AspNetCore.Components.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace BlazorSample
{
public class Startup
{
public void Configure(IBlazorApplicationBuilder app)
public void Configure(IComponentsApplicationBuilder app)
{
app.AddComponent<App>("app");
}
Expand Down
4 changes: 2 additions & 2 deletions samples/BlazorSample/_ViewImports.cshtml
@@ -1,6 +1,6 @@
@using System.Net.Http
@using Microsoft.AspNetCore.Blazor.Layouts
@using Microsoft.AspNetCore.Blazor.Routing
@using Microsoft.AspNetCore.Components.Layouts
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.JSInterop
@using BlazorSample
@using BlazorSample.Shared
Expand Down
6 changes: 3 additions & 3 deletions samples/BlazorSample/wwwroot/index.html
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
<title>BlazorSample</title>
<title>Blazored Toast</title>
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>Loading...</app>

<script src="_framework/blazor.webassembly.js"></script>
<script src="_framework/components.webassembly.js"></script>
</body>
</html>
32 changes: 0 additions & 32 deletions samples/BlazorSample/wwwroot/sample-data/weather.json

This file was deleted.

8 changes: 4 additions & 4 deletions src/Blazored.Toast/Blazored.Toast.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
Expand All @@ -17,7 +17,7 @@
<PackageTags>Blazored Blazor Razor Components Toast Popup Notification</PackageTags>
<Description>A JavaScript free Toast library for Blazor and Razor Components applications.</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -28,8 +28,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Blazor.Browser" Version="0.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="0.7.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="3.0.0-preview-19075-0444" />
<PackageReference Include="Microsoft.AspNetCore.Components.Build" Version="3.0.0-preview-19075-0444" PrivateAssets="all" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/Blazored.Toast/BlazoredToast.cshtml.cs
@@ -1,9 +1,9 @@
using Microsoft.AspNetCore.Blazor.Components;
using Microsoft.AspNetCore.Components;
using System;

namespace Blazored.Toast
{
public class BlazoredToastBase : BlazorComponent
public class BlazoredToastBase : ComponentBase
{
[Parameter] protected Guid ToastId { get; set; }
[Parameter] protected ToastSettings ToastSettings { get; set; }
Expand Down
5 changes: 2 additions & 3 deletions src/Blazored.Toast/BlazoredToasts.cshtml.cs
@@ -1,13 +1,12 @@
using Blazored.Toast.Services;
using Microsoft.AspNetCore.Blazor;
using Microsoft.AspNetCore.Blazor.Components;
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Timers;

namespace Blazored.Toast
{
public class BlazoredToastsBase : BlazorComponent
public class BlazoredToastsBase : ComponentBase
{
protected Dictionary<Guid, RenderFragment> ToastList { get; set; } = new Dictionary<Guid, RenderFragment>();
[Inject] private IToastService ToastService { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Blazored.Toast/content/styles.css
Expand Up @@ -17,6 +17,7 @@
width: 30rem;
border-radius: .25rem;
font-family: monospace;
box-shadow: rgba(0,0,0,0.25) 0px 10px 40px;
}

.toast-info {
Expand Down

0 comments on commit 7a44a88

Please sign in to comment.