Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified docs/SemanticKernel-Quick-start-Blazor-Side-by-Side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 0 additions & 34 deletions src/Aspects.Components/Aspects.Components.csproj

This file was deleted.

8 changes: 0 additions & 8 deletions src/Aspects.Components/FormChangeType.cs

This file was deleted.

6 changes: 0 additions & 6 deletions src/Aspects.Components/_Imports.razor

This file was deleted.

2 changes: 1 addition & 1 deletion src/Presentation.Blazor/Components/App.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Analytics
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Analytics

@inject IConfiguration Configuration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.FluentUI.AspNetCore.Components

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing
@using Microsoft.AspNetCore.Components.Authorization

@inject NavigationManager Navigation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cannery.Aspects.Components.Auth;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth;

/// <summary>
/// Represents a user's information, including identifiers, personal details, and contact information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Identity.Web;

namespace Cannery.Aspects.Components.Auth.Middleware;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Middleware;

public class DownstreamApiAccessTokenProvider(IHttpContextAccessor httpContextAccessor, ITokenAcquisition tokenAcquisition, IConfiguration configuration) : IAccessTokenProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Http;

namespace Cannery.Aspects.Components.Auth.Middleware;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Middleware;

public class MsGraphAccessTokenProvider(IHttpContextAccessor httpContextAccessor) : IAccessTokenProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;

namespace Cannery.Aspects.Components.Auth.Routing;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing;

public static class LoginLogoutEndpointRouteBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing

@inject NavigationManager Navigation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cannery.Aspects.Components.Auth.Routing;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing;

public partial struct RouteConstants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Security.Claims;

namespace Cannery.Aspects.Components.Auth.Services;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Services;

public interface IUserSyncService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Http;

namespace Cannery.Aspects.Components.Auth;
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth;

/// <summary>
/// User information implementation that retrieves data from the current HTTP context.
Expand Down
8 changes: 8 additions & 0 deletions src/Presentation.Blazor/Components/FormChangeType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Goodtocode.SemanticKernel.Presentation.Blazor.Components;

public enum FormChangeType
{
Created,
Updated,
Deleted
}
10 changes: 5 additions & 5 deletions src/Presentation.Blazor/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using Cannery.Aspects.Components.Auth.Components
@using Cannery.Aspects.Components.Auth.Routing
@using Cannery.Aspects.Components.Auth.Services
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Components
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Services
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.Identity.Web

Expand All @@ -13,10 +13,10 @@
<Header>
<FluentStack VerticalAlignment="VerticalAlignment.Center" HorizontalAlignment="HorizontalAlignment.Left" Wrap="false">
<FluentNavLink Href="/">
<img src="img/goodtocode-logo.png" alt="Cloud in a Can" style="max-height:70px;" />
<img src="img/goodtocode-logo.png" alt="Cloud in a Can" style="max-height:70px; background:rgba(255,255,255,0.03);" />
</FluentNavLink>
<FluentNavLink Href="/">
Semantic Kernel
Semantic Kernel Quick-start
</FluentNavLink>
</FluentStack>
<UserProfile />
Expand Down
2 changes: 1 addition & 1 deletion src/Presentation.Blazor/Components/Routes.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Layout
@using Microsoft.AspNetCore.Components.Authorization

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using System.Collections.ObjectModel
@using Cannery.Aspects.Components.Icons
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Icons

<CascadingValue Value="this.Context">
<div class="wizard-layout">
Expand Down
4 changes: 2 additions & 2 deletions src/Presentation.Blazor/Components/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
@using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
@using Microsoft.JSInterop
@using System.ComponentModel.DataAnnotations
@using Cannery.Aspects.Components.Auth
@using Cannery.Aspects.Components.Typography
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Typography
4 changes: 2 additions & 2 deletions src/Presentation.Blazor/ConfigureServices.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Cannery.Aspects.Components.Auth;
using Cannery.Aspects.Components.Auth.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Options;
using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Services;
Expand Down
4 changes: 2 additions & 2 deletions src/Presentation.Blazor/ConfigureServicesAuth.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Cannery.Aspects.Components.Auth.Middleware;
using Cannery.Aspects.Components.Auth.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Middleware;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Options;
using Goodtocode.SecuredHttpClient.Middleware;
using Goodtocode.SecuredHttpClient.Options;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Skeleton
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Skeleton
@using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Models
@using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Services

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Cannery.Aspects.Components.Skeleton
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Skeleton
@using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Models
@using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Services

Expand Down
2 changes: 1 addition & 1 deletion src/Presentation.Blazor/Pages/Chat/Services/ChatService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Goodtocode.SemanticKernel.Presentation.WebApi.Client;
using Goodtocode.SemanticKernel.Presentation.Blazor.Services;
using Cannery.Aspects.Components.Auth;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth;
using Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Models;

namespace Goodtocode.SemanticKernel.Presentation.Blazor.Pages.Chat.Services;
Expand Down
2 changes: 1 addition & 1 deletion src/Presentation.Blazor/Pages/HomePage.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/"
@using Cannery.Aspects.Components.Typography
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Typography
@using Microsoft.AspNetCore.Authorization

@attribute [AllowAnonymous]
Expand Down
8 changes: 4 additions & 4 deletions src/Presentation.Blazor/Pages/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@using Microsoft.FluentUI.AspNetCore.Components
@using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
@using Microsoft.JSInterop
@using Cannery.Aspects.Components
@using Cannery.Aspects.Components.Auth
@using Cannery.Aspects.Components.Skeleton
@using Cannery.Aspects.Components.Typography
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Skeleton
@using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Typography
@using Goodtocode.SemanticKernel.Presentation.WebApi.Client
5 changes: 1 addition & 4 deletions src/Presentation.Blazor/Presentation.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<PackageReference Include="Azure.Identity" Version="1.17.1" />
<PackageReference Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.4.0" />
<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.5.0" />
<PackageReference Include="Goodtocode.SecuredHttpClient" Version="1.1.7" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.23.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.2" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="10.2.0" />
Expand All @@ -25,8 +26,4 @@
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.15.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Aspects.Components\Aspects.Components.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Presentation.Blazor/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Azure.Monitor.OpenTelemetry.AspNetCore;
using Cannery.Aspects.Components.Auth.Routing;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Routing;
using Goodtocode.SemanticKernel.Presentation.Blazor;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components;
using Microsoft.AspNetCore.HttpOverrides;
Expand Down
4 changes: 2 additions & 2 deletions src/Presentation.Blazor/Services/UserSyncService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Goodtocode.SemanticKernel.Presentation.WebApi.Client;
using System.Security.Authentication;
using System.Security.Claims;
using Cannery.Aspects.Components.Auth.Services;
using Cannery.Aspects.Components.Auth;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth.Services;
using Goodtocode.SemanticKernel.Presentation.Blazor.Components.Auth;

namespace Goodtocode.SemanticKernel.Presentation.Blazor.Services;

Expand Down
6 changes: 0 additions & 6 deletions src/SemanticKernelBlazor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infrastructure.SemanticKern
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Specs.Integration", "Tests.Specs.Integration\Tests.Specs.Integration.csproj", "{5DD2A9DC-4CE9-4E47-BE7D-7EEF208D287F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspects.Components", "Aspects.Components\Aspects.Components.csproj", "{DEFE7F5B-239A-7DB3-FA2C-1D96AB04D354}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -53,10 +51,6 @@ Global
{5DD2A9DC-4CE9-4E47-BE7D-7EEF208D287F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5DD2A9DC-4CE9-4E47-BE7D-7EEF208D287F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5DD2A9DC-4CE9-4E47-BE7D-7EEF208D287F}.Release|Any CPU.Build.0 = Release|Any CPU
{DEFE7F5B-239A-7DB3-FA2C-1D96AB04D354}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DEFE7F5B-239A-7DB3-FA2C-1D96AB04D354}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DEFE7F5B-239A-7DB3-FA2C-1D96AB04D354}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DEFE7F5B-239A-7DB3-FA2C-1D96AB04D354}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading