Skip to content

Commit ed67768

Browse files
Merge pull request #28 from premanandh2205/988608-github-samples
988608: Added a github samples for our blazor components
2 parents faca530 + eeb6171 commit ed67768

File tree

313 files changed

+12388
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+12388
-0
lines changed

AiAssistview/AiAssistview.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Syncfusion.Blazor.InteractiveChat" Version="31.1.23" />
11+
<PackageReference Include="Syncfusion.Blazor.Themes" Version="31.1.23" />
12+
</ItemGroup>
13+
14+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ActiveDebugProfile>IIS Express</ActiveDebugProfile>
5+
</PropertyGroup>
6+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
7+
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
8+
</PropertyGroup>
9+
</Project>

AiAssistview/AiAssistview.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.36310.24 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiAssistview", "AiAssistview.csproj", "{74E6E128-4426-447C-8666-42D598AF9FED}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{74E6E128-4426-447C-8666-42D598AF9FED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{74E6E128-4426-447C-8666-42D598AF9FED}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{74E6E128-4426-447C-8666-42D598AF9FED}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{74E6E128-4426-447C-8666-42D598AF9FED}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {A6996A57-9228-480B-B78E-01E275A94A17}
24+
EndGlobalSection
25+
EndGlobal

AiAssistview/Components/App.razor

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<base href="/" />
8+
<link rel="stylesheet" href="@Assets["lib/bootstrap/dist/css/bootstrap.min.css"]" />
9+
<link rel="stylesheet" href="@Assets["app.css"]" />
10+
<link rel="stylesheet" href="@Assets["AiAssistview.styles.css"]" />
11+
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
12+
<ImportMap />
13+
<link rel="icon" type="image/png" href="favicon.png" />
14+
<HeadOutlet />
15+
<style>
16+
.content {
17+
display: flex;
18+
}
19+
20+
.content table {
21+
display: block;
22+
margin: 50px 10px;
23+
}
24+
25+
.aiassist-container {
26+
margin: 10% auto;
27+
}
28+
</style>
29+
</head>
30+
31+
<body>
32+
<Routes />
33+
<script src="_framework/blazor.web.js"></script>
34+
<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
35+
</body>
36+
37+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@inherits LayoutComponentBase
2+
3+
<div class="page">
4+
<div class="sidebar">
5+
<NavMenu />
6+
</div>
7+
8+
<main>
9+
<div class="top-row px-4">
10+
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
11+
</div>
12+
13+
<article class="content px-4">
14+
@Body
15+
</article>
16+
</main>
17+
</div>
18+
19+
<div id="blazor-error-ui" data-nosnippet>
20+
An unhandled error has occurred.
21+
<a href="." class="reload">Reload</a>
22+
<span class="dismiss">🗙</span>
23+
</div>
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
.page {
2+
position: relative;
3+
display: flex;
4+
flex-direction: column;
5+
}
6+
7+
main {
8+
flex: 1;
9+
}
10+
11+
.sidebar {
12+
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
13+
}
14+
15+
.top-row {
16+
background-color: #f7f7f7;
17+
border-bottom: 1px solid #d6d5d5;
18+
justify-content: flex-end;
19+
height: 3.5rem;
20+
display: flex;
21+
align-items: center;
22+
}
23+
24+
.top-row ::deep a, .top-row ::deep .btn-link {
25+
white-space: nowrap;
26+
margin-left: 1.5rem;
27+
text-decoration: none;
28+
}
29+
30+
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
31+
text-decoration: underline;
32+
}
33+
34+
.top-row ::deep a:first-child {
35+
overflow: hidden;
36+
text-overflow: ellipsis;
37+
}
38+
39+
@media (max-width: 640.98px) {
40+
.top-row {
41+
justify-content: space-between;
42+
}
43+
44+
.top-row ::deep a, .top-row ::deep .btn-link {
45+
margin-left: 0;
46+
}
47+
}
48+
49+
@media (min-width: 641px) {
50+
.page {
51+
flex-direction: row;
52+
}
53+
54+
.sidebar {
55+
width: 250px;
56+
height: 100vh;
57+
position: sticky;
58+
top: 0;
59+
}
60+
61+
.top-row {
62+
position: sticky;
63+
top: 0;
64+
z-index: 1;
65+
}
66+
67+
.top-row.auth ::deep a:first-child {
68+
flex: 1;
69+
text-align: right;
70+
width: 0;
71+
}
72+
73+
.top-row, article {
74+
padding-left: 2rem !important;
75+
padding-right: 1.5rem !important;
76+
}
77+
}
78+
79+
#blazor-error-ui {
80+
color-scheme: light only;
81+
background: lightyellow;
82+
bottom: 0;
83+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
84+
box-sizing: border-box;
85+
display: none;
86+
left: 0;
87+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
88+
position: fixed;
89+
width: 100%;
90+
z-index: 1000;
91+
}
92+
93+
#blazor-error-ui .dismiss {
94+
cursor: pointer;
95+
position: absolute;
96+
right: 0.75rem;
97+
top: 0.5rem;
98+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<div class="top-row ps-3 navbar navbar-dark">
2+
<div class="container-fluid">
3+
<a class="navbar-brand" href="">AIAssitview_WebApp_Server</a>
4+
</div>
5+
</div>
6+
7+
<input type="checkbox" title="Navigation menu" class="navbar-toggler" />
8+
9+
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
10+
<nav class="nav flex-column">
11+
<h2 style="color:white; margin: 10px;">Ai Assistview</h2>
12+
<div class="nav-item px-3">
13+
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
14+
<span aria-hidden="true"></span> Getting Started
15+
</NavLink>
16+
</div>
17+
18+
<div class="nav-item px-3">
19+
<NavLink class="nav-link" href="promptText">
20+
<span aria-hidden="true"></span> Assistview
21+
</NavLink>
22+
</div>
23+
24+
<div class="nav-item px-3">
25+
<NavLink class="nav-link" href="geminiintegration">
26+
<span aria-hidden="true"></span> AI Integration
27+
</NavLink>
28+
</div>
29+
30+
<div class="nav-item px-3">
31+
<NavLink class="nav-link" href="iconcss">
32+
<span aria-hidden="true"></span> Toolbar Items
33+
</NavLink>
34+
</div>
35+
36+
<div class="nav-item px-3">
37+
<NavLink class="nav-link" href="viewtype">
38+
<span aria-hidden="true"></span> Custom view
39+
</NavLink>
40+
</div>
41+
42+
<div class="nav-item px-3">
43+
<NavLink class="nav-link" href="EnableAttachments">
44+
<span aria-hidden="true"></span> File Attachments
45+
</NavLink>
46+
</div>
47+
48+
<div class="nav-item px-3">
49+
<NavLink class="nav-link" href="bannertemplate">
50+
<span aria-hidden="true"></span> Template
51+
</NavLink>
52+
</div>
53+
54+
<div class="nav-item px-3">
55+
<NavLink class="nav-link" href="speechtotext">
56+
<span aria-hidden="true"></span> Speech
57+
</NavLink>
58+
</div>
59+
60+
<div class="nav-item px-3">
61+
<NavLink class="nav-link" href="width">
62+
<span aria-hidden="true"></span> Appearance
63+
</NavLink>
64+
</div>
65+
66+
<div class="nav-item px-3">
67+
<NavLink class="nav-link" href="executingprompt">
68+
<span aria-hidden="true"></span> Methods
69+
</NavLink>
70+
</div>
71+
72+
<div class="nav-item px-3">
73+
<NavLink class="nav-link" href="created">
74+
<span aria-hidden="true"></span> Events
75+
</NavLink>
76+
</div>
77+
78+
<div class="nav-item px-3">
79+
<NavLink class="nav-link" href="integrationwithai">
80+
<span aria-hidden="true"></span> How To
81+
</NavLink>
82+
</div>
83+
</nav>
84+
</div>
85+

0 commit comments

Comments
 (0)