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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions AiAssistview/AiAssistview.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Syncfusion.Blazor.InteractiveChat" Version="31.1.23" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="31.1.23" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions AiAssistview/AiAssistview.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>IIS Express</ActiveDebugProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
25 changes: 25 additions & 0 deletions AiAssistview/AiAssistview.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36310.24 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiAssistview", "AiAssistview.csproj", "{74E6E128-4426-447C-8666-42D598AF9FED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{74E6E128-4426-447C-8666-42D598AF9FED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74E6E128-4426-447C-8666-42D598AF9FED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74E6E128-4426-447C-8666-42D598AF9FED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74E6E128-4426-447C-8666-42D598AF9FED}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A6996A57-9228-480B-B78E-01E275A94A17}
EndGlobalSection
EndGlobal
37 changes: 37 additions & 0 deletions AiAssistview/Components/App.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!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["lib/bootstrap/dist/css/bootstrap.min.css"]" />
<link rel="stylesheet" href="@Assets["app.css"]" />
<link rel="stylesheet" href="@Assets["AiAssistview.styles.css"]" />
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
<ImportMap />
<link rel="icon" type="image/png" href="favicon.png" />
<HeadOutlet />
<style>
.content {
display: flex;
}

.content table {
display: block;
margin: 50px 10px;
}

.aiassist-container {
margin: 10% auto;
}
</style>
</head>

<body>
<Routes />
<script src="_framework/blazor.web.js"></script>
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
</body>

</html>
23 changes: 23 additions & 0 deletions AiAssistview/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@inherits LayoutComponentBase

<div class="page">
<div class="sidebar">
<NavMenu />
</div>

<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>

<article class="content px-4">
@Body
</article>
</main>
</div>

<div id="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.
<a href="." class="reload">Reload</a>
<span class="dismiss">🗙</span>
</div>
98 changes: 98 additions & 0 deletions AiAssistview/Components/Layout/MainLayout.razor.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
.page {
position: relative;
display: flex;
flex-direction: column;
}

main {
flex: 1;
}

.sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}

.top-row ::deep a, .top-row ::deep .btn-link {
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
}

.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
text-decoration: underline;
}

.top-row ::deep a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
.top-row {
justify-content: space-between;
}

.top-row ::deep a, .top-row ::deep .btn-link {
margin-left: 0;
}
}

@media (min-width: 641px) {
.page {
flex-direction: row;
}

.sidebar {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
}

.top-row {
position: sticky;
top: 0;
z-index: 1;
}

.top-row.auth ::deep a:first-child {
flex: 1;
text-align: right;
width: 0;
}

.top-row, article {
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
}

#blazor-error-ui {
color-scheme: light only;
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}

#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
85 changes: 85 additions & 0 deletions AiAssistview/Components/Layout/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">AIAssitview_WebApp_Server</a>
</div>
</div>

<input type="checkbox" title="Navigation menu" class="navbar-toggler" />

<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
<nav class="nav flex-column">
<h2 style="color:white; margin: 10px;">Ai Assistview</h2>
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span aria-hidden="true"></span> Getting Started
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="promptText">
<span aria-hidden="true"></span> Assistview
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="geminiintegration">
<span aria-hidden="true"></span> AI Integration
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="iconcss">
<span aria-hidden="true"></span> Toolbar Items
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="viewtype">
<span aria-hidden="true"></span> Custom view
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="EnableAttachments">
<span aria-hidden="true"></span> File Attachments
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="bannertemplate">
<span aria-hidden="true"></span> Template
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="speechtotext">
<span aria-hidden="true"></span> Speech
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="width">
<span aria-hidden="true"></span> Appearance
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="executingprompt">
<span aria-hidden="true"></span> Methods
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="created">
<span aria-hidden="true"></span> Events
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="integrationwithai">
<span aria-hidden="true"></span> How To
</NavLink>
</div>
</nav>
</div>

Loading