Skip to content
Open
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
56 changes: 56 additions & 0 deletions src/Components/AI/samples/ClaimApp/ClaimApp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<RootNamespace>ComponentsAIClaimApp</RootNamespace>
<IsShippingPackage>false</IsShippingPackage>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
<UserSecretsId>aspnet-ComponentsAI-ClaimApp</UserSecretsId>
<UseAspNetCoreSharedRuntime>true</UseAspNetCoreSharedRuntime>
<DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp>true</DoNotApplyWorkaroundsToMicrosoftAspNetCoreApp>
<NoWarn>$(NoWarn);NU1511</NoWarn>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="DojoClient.E2E.Tests" />
</ItemGroup>

<ItemGroup>
<Reference Include="AGUI.Abstractions" />
<Reference Include="AGUI.Client" />
<Reference Include="AGUI.Formatting" />
<Reference Include="AGUI.Server" />
<Reference Include="Microsoft.AspNetCore" />
<Reference Include="Microsoft.AspNetCore.Antiforgery" />
<Reference Include="Microsoft.AspNetCore.Components" />
<Reference Include="Microsoft.AspNetCore.Components.AI" />
<Reference Include="Microsoft.AspNetCore.Components.Endpoints" />
<Reference Include="Microsoft.AspNetCore.Components.Forms" />
<Reference Include="Microsoft.AspNetCore.Components.Media" />
<Reference Include="Microsoft.AspNetCore.Components.Server" />
<Reference Include="Microsoft.AspNetCore.Components.Web" />
<Reference Include="Microsoft.AspNetCore.Diagnostics" />
<Reference Include="Microsoft.AspNetCore.Hosting" />
<Reference Include="Microsoft.AspNetCore.Hosting.Abstractions" />
<Reference Include="Microsoft.AspNetCore.HttpsPolicy" />
<Reference Include="Microsoft.AspNetCore.Http" />
<Reference Include="Microsoft.AspNetCore.Http.Abstractions" />
<Reference Include="Microsoft.AspNetCore.Http.Extensions" />
<Reference Include="Microsoft.AspNetCore.Http.Features" />
<Reference Include="Microsoft.AspNetCore.Routing" />
<Reference Include="Microsoft.AspNetCore.Routing.Abstractions" />
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Core" />
<Reference Include="Microsoft.AspNetCore.StaticAssets" />
<Reference Include="Microsoft.Extensions.AI" />
<Reference Include="Microsoft.Extensions.AI.OpenAI" />
<Reference Include="Microsoft.Extensions.Configuration.Binder" />
<Reference Include="Microsoft.Extensions.Features" />
<Reference Include="Microsoft.Extensions.Hosting" />
<Reference Include="Microsoft.Extensions.Http" />
<Reference Include="Microsoft.JSInterop" />
</ItemGroup>

</Project>
22 changes: 22 additions & 0 deletions src/Components/AI/samples/ClaimApp/Components/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<link rel="stylesheet" href="_content/Microsoft.AspNetCore.Components.AI/ai-chat.css" />
<link rel="stylesheet" href="@Assets["ClaimApp.styles.css"]" />
<link rel="icon" type="image/svg+xml" href="@Assets["favicon.svg"]" />
<script src="@Assets["claim-app.js"]"></script>
<ImportMap />
<HeadOutlet @rendermode="InteractiveServer" />
</head>

<body>
<Routes @rendermode="InteractiveServer" />
<script src="@Assets["_framework/blazor.web.js"]"></script>
</body>

</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@inherits LayoutComponentBase

<main>
@Body
</main>

<div id="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.
<a href="." class="reload">Reload</a>
<button type="button" class="dismiss" aria-label="Dismiss">×</button>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
main {
min-height: 100dvh;
}

#blazor-error-ui {
position: fixed;
right: 1rem;
bottom: 1rem;
left: 1rem;
z-index: 1000;
display: none;
box-sizing: border-box;
padding: 0.8rem 3rem 0.8rem 1rem;
border-radius: 0.75rem;
color: #601410;
background: #fce8e6;
box-shadow: 0 0.5rem 1.5rem rgba(44, 68, 104, 0.18);
}

#blazor-error-ui .dismiss {
position: absolute;
top: 0.45rem;
right: 0.65rem;
border: 0;
color: inherit;
background: transparent;
cursor: pointer;
font-size: 1.25rem;
}
Loading
Loading