Skip to content

Commit fc14767

Browse files
committed
readme
1 parent c7f771c commit fc14767

Some content is hidden

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

57 files changed

+3449
-2
lines changed

DBChatPro.sln

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.9.34616.47
4+
MinimumVisualStudioVersion = 16.0.0.0
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DBChatPro", "DBChatPro\DBChatPro.csproj", "{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|Any CPU = Release|Any CPU
13+
Release|x64 = Release|x64
14+
Release|x86 = Release|x86
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|x64.ActiveCfg = Debug|Any CPU
20+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|x64.Build.0 = Debug|Any CPU
21+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|x86.ActiveCfg = Debug|Any CPU
22+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Debug|x86.Build.0 = Debug|Any CPU
23+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|x64.ActiveCfg = Release|Any CPU
26+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|x64.Build.0 = Release|Any CPU
27+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|x86.ActiveCfg = Release|Any CPU
28+
{7A511457-2AAB-4B46-BB0E-0954DAAB08FB}.Release|x86.Build.0 = Release|Any CPU
29+
EndGlobalSection
30+
GlobalSection(SolutionProperties) = preSolution
31+
HideSolutionNode = FALSE
32+
EndGlobalSection
33+
GlobalSection(ExtensibilityGlobals) = postSolution
34+
SolutionGuid = {0B4703A1-6C2C-44E9-9B3C-2C12934CD0C0}
35+
EndGlobalSection
36+
EndGlobal

DBChatPro/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.azure

DBChatPro/Components/App.razor

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
9+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
10+
<link href="/app.css" />
11+
<link rel="stylesheet" href="@Assets["app.css"]" />
12+
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
13+
14+
15+
<link rel="stylesheet" href="DBChatPro.styles.css" />
16+
<link rel="icon" type="image/png" href="favicon.ico" />
17+
<HeadOutlet />
18+
<style>
19+
.mud-table-dense * .mud-table-row .mud-table-cell {
20+
padding: 6px !important;
21+
}
22+
23+
.mud-table-row .mud-table-cell, .mud-table-cell {
24+
padding: 12px !important;
25+
}
26+
</style>
27+
</head>
28+
29+
<body>
30+
<Routes @rendermode="InteractiveServer" />
31+
<script src="_framework/blazor.web.js"></script>
32+
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
33+
</body>
34+
35+
</html>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@inherits LayoutComponentBase
2+
3+
<MudThemeProvider @bind-IsDarkMode="_isDarkMode" Theme="_theme" />
4+
<MudDialogProvider />
5+
<MudSnackbarProvider />
6+
7+
<MudLayout>
8+
<MudAppBar Elevation="2">
9+
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
10+
<MudText Typo="Typo.h5" Class="ml-3">DBChatPro 5.0</MudText>
11+
<MudSpacer />
12+
<MudIconButton Icon="@Icons.Material.Filled.MoreVert" Color="Color.Inherit" Edge="Edge.End" />
13+
</MudAppBar>
14+
<MudDrawer @bind-Open="_drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2">
15+
<NavMenu />
16+
17+
<MudRadioGroup Class="mx-4 mt-12" @bind-Value="_isDarkMode">
18+
<MudRadio Value="true" Color="Color.Primary" Dense="false">Dark mode</MudRadio>
19+
<MudRadio Value="false" Color="Color.Secondary" Dense="false">Light mode</MudRadio>
20+
</MudRadioGroup>
21+
</MudDrawer>
22+
<MudMainContent>
23+
@Body
24+
</MudMainContent>
25+
</MudLayout>
26+
@code {
27+
bool _drawerOpen = true;
28+
private MudTheme _theme = new();
29+
private bool _isDarkMode = true;
30+
31+
void DrawerToggle()
32+
{
33+
_drawerOpen = !_drawerOpen;
34+
}
35+
}
36+
37+
<style>
38+
body {
39+
font-size: 1.2em !important;
40+
}
41+
</style>
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
.page {
2+
position: relative;
3+
display: flex;
4+
flex-direction: column;
5+
}
6+
7+
main {
8+
flex: 1;
9+
}
10+
11+
.navbar-brand {
12+
font-size: 1.1rem;
13+
color: white;
14+
}
15+
16+
.top-row {
17+
border-bottom: 1px solid #d6d5d5;
18+
justify-content: flex-end;
19+
height: 3.5rem;
20+
display: flex;
21+
align-items: center;
22+
background: var(--mud-palette-appbar-background);
23+
}
24+
25+
.top-row ::deep a, .top-row ::deep .btn-link {
26+
white-space: nowrap;
27+
margin-left: 1.5rem;
28+
text-decoration: none;
29+
}
30+
31+
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
32+
text-decoration: underline;
33+
}
34+
35+
.top-row ::deep a:first-child {
36+
overflow: hidden;
37+
text-overflow: ellipsis;
38+
}
39+
40+
@media (max-width: 640.98px) {
41+
.top-row {
42+
justify-content: space-between;
43+
}
44+
45+
.top-row ::deep a, .top-row ::deep .btn-link {
46+
margin-left: 0;
47+
}
48+
}
49+
50+
@media (min-width: 641px) {
51+
.page {
52+
flex-direction: row;
53+
}
54+
55+
.sidebar {
56+
width: 250px;
57+
height: 100vh;
58+
position: sticky;
59+
top: 0;
60+
}
61+
62+
.top-row {
63+
position: sticky;
64+
top: 0;
65+
z-index: 1;
66+
}
67+
68+
.top-row.auth ::deep a:first-child {
69+
flex: 1;
70+
text-align: right;
71+
width: 0;
72+
}
73+
}
74+
75+
.navbar-toggler {
76+
appearance: none;
77+
cursor: pointer;
78+
width: 3.5rem;
79+
height: 2.5rem;
80+
color: white;
81+
position: absolute;
82+
top: 0.5rem;
83+
right: 1rem;
84+
border: 1px solid rgba(255, 255, 255, 0.1);
85+
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
86+
}
87+
88+
.navbar-toggler:checked {
89+
background-color: rgba(255, 255, 255, 0.5);
90+
}
91+
92+
.nav-scrollable {
93+
display: none;
94+
}
95+
96+
.navbar-toggler:checked ~ .nav-scrollable {
97+
display: block;
98+
}
99+
100+
@media (min-width: 641px) {
101+
.navbar-toggler {
102+
display: none;
103+
}
104+
105+
.nav-scrollable {
106+
/* Never collapse the sidebar for wide screens */
107+
display: block;
108+
/* Allow sidebar to scroll for tall menus */
109+
height: calc(100vh - 3.5rem);
110+
overflow-y: auto;
111+
}
112+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<MudNavMenu>
2+
<MudNavLink Href="" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.Home">Dashboard</MudNavLink>
3+
<MudNavLink Href="connect-db" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Add">Connections</MudNavLink>
4+
</MudNavMenu>

0 commit comments

Comments
 (0)