Save
This commit is contained in:
parent
e64bce3171
commit
89f9e1578c
6
Models/AppConfiguration.cs
Normal file
6
Models/AppConfiguration.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace decePubClient.Models;
|
||||||
|
|
||||||
|
public class AppConfiguration
|
||||||
|
{
|
||||||
|
public string Version { get; set; }
|
||||||
|
}
|
@ -7,10 +7,12 @@ using Append.Blazor.Notifications;
|
|||||||
using Blazored.LocalStorage;
|
using Blazored.LocalStorage;
|
||||||
using Blazored.Modal;
|
using Blazored.Modal;
|
||||||
using decePubClient.Extensions;
|
using decePubClient.Extensions;
|
||||||
|
using decePubClient.Models;
|
||||||
using decePubClient.Services;
|
using decePubClient.Services;
|
||||||
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
|
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
|
||||||
using Toolbelt.Blazor.Extensions.DependencyInjection;
|
using Toolbelt.Blazor.Extensions.DependencyInjection;
|
||||||
using Microsoft.AspNetCore.Components.Authorization;
|
using Microsoft.AspNetCore.Components.Authorization;
|
||||||
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||||
builder.RootComponents.Add<App>("#app");
|
builder.RootComponents.Add<App>("#app");
|
||||||
@ -66,6 +68,11 @@ builder.Services.AddHttpClient("ComponentsWebAssembly_CSharp.ServerAPI", client
|
|||||||
|
|
||||||
builder.Services.AddTransient(sp => sp.GetRequiredService<IHttpClientFactory>().CreateClient("ComponentsWebAssembly_CSharp.ServerAPI"));
|
builder.Services.AddTransient(sp => sp.GetRequiredService<IHttpClientFactory>().CreateClient("ComponentsWebAssembly_CSharp.ServerAPI"));
|
||||||
builder.Services.AddScoped<MessagesService>();
|
builder.Services.AddScoped<MessagesService>();
|
||||||
|
builder.Services.AddSingleton(serviceProvider =>
|
||||||
|
{
|
||||||
|
var conf = serviceProvider.GetRequiredService<IConfiguration>();
|
||||||
|
return conf.GetSection(nameof(AppConfiguration)).Get<AppConfiguration>();
|
||||||
|
});
|
||||||
|
|
||||||
var host = builder.Build();
|
var host = builder.Build();
|
||||||
await host.SetDefaultCulture();
|
await host.SetDefaultCulture();
|
||||||
|
@ -1,81 +0,0 @@
|
|||||||
.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:not(.auth) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row.auth {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,62 +0,0 @@
|
|||||||
.navbar-toggler {
|
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row {
|
|
||||||
height: 3.5rem;
|
|
||||||
background-color: rgba(0,0,0,0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.oi {
|
|
||||||
width: 2rem;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
vertical-align: text-top;
|
|
||||||
top: -2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item:first-of-type {
|
|
||||||
padding-top: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item:last-of-type {
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item ::deep a {
|
|
||||||
color: #d7d7d7;
|
|
||||||
border-radius: 4px;
|
|
||||||
height: 3rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
line-height: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item ::deep a.active {
|
|
||||||
background-color: rgba(255,255,255,0.25);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item ::deep a:hover {
|
|
||||||
background-color: rgba(255,255,255,0.1);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 641px) {
|
|
||||||
.navbar-toggler {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.collapse {
|
|
||||||
/* Never collapse the sidebar for wide screens */
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
|
@ -37,6 +37,56 @@
|
|||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DependentUpon>ErrorMessages.resx</DependentUpon>
|
<DependentUpon>ErrorMessages.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Content Remove="wwwroot\vendor\bulma.css" />
|
||||||
|
<None Include="wwwroot\vendor\bulma.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\fontawesome.css" />
|
||||||
|
<None Include="wwwroot\vendor\fontawesome.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\ionicons.css" />
|
||||||
|
<None Include="wwwroot\vendor\ionicons.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\open-iconic.css" />
|
||||||
|
<None Include="wwwroot\vendor\open-iconic.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\solid.css" />
|
||||||
|
<None Include="wwwroot\vendor\solid.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\tailwind.css" />
|
||||||
|
<None Include="wwwroot\vendor\tailwind.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\tailwind-generator.css" />
|
||||||
|
<None Include="wwwroot\vendor\tailwind-generator.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\toggle-dark-light-mode.css" />
|
||||||
|
<None Include="wwwroot\vendor\toggle-dark-light-mode.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\ionicons.min.css" />
|
||||||
|
<None Include="wwwroot\vendor\ionicons.min.css" />
|
||||||
|
<Content Remove="wwwroot\vendor\open-iconic.min.css" />
|
||||||
|
<None Include="wwwroot\vendor\open-iconic.min.css" />
|
||||||
|
<Content Remove="wwwroot\webfonts\fa-solid-900.eot" />
|
||||||
|
<None Include="wwwroot\webfonts\fa-solid-900.eot" />
|
||||||
|
<Content Remove="wwwroot\webfonts\fa-solid-900.ttf" />
|
||||||
|
<None Include="wwwroot\webfonts\fa-solid-900.ttf" />
|
||||||
|
<Content Remove="wwwroot\webfonts\fa-solid-900.woff" />
|
||||||
|
<None Include="wwwroot\webfonts\fa-solid-900.woff" />
|
||||||
|
<Content Remove="wwwroot\webfonts\fa-solid-900.woff2" />
|
||||||
|
<None Include="wwwroot\webfonts\fa-solid-900.woff2" />
|
||||||
|
<Content Remove="wwwroot\fonts\open-iconic.eot" />
|
||||||
|
<None Include="wwwroot\fonts\open-iconic.eot" />
|
||||||
|
<Content Remove="wwwroot\fonts\open-iconic.otf" />
|
||||||
|
<None Include="wwwroot\fonts\open-iconic.otf" />
|
||||||
|
<Content Remove="wwwroot\fonts\open-iconic.svg" />
|
||||||
|
<None Include="wwwroot\fonts\open-iconic.svg" />
|
||||||
|
<Content Remove="wwwroot\fonts\open-iconic.ttf" />
|
||||||
|
<None Include="wwwroot\fonts\open-iconic.ttf" />
|
||||||
|
<Content Remove="wwwroot\fonts\open-iconic.woff" />
|
||||||
|
<None Include="wwwroot\fonts\open-iconic.woff" />
|
||||||
|
<Content Remove="wwwroot\css\main.css" />
|
||||||
|
<None Include="wwwroot\css\main.css" />
|
||||||
|
<Content Remove="wwwroot\css\tailwind-override.css" />
|
||||||
|
<None Include="wwwroot\css\tailwind-override.css" />
|
||||||
|
<Content Remove="bundleconfig.json" />
|
||||||
|
<None Include="bundleconfig.json" />
|
||||||
|
<Content Remove="compilerconfig.json" />
|
||||||
|
<None Include="compilerconfig.json" />
|
||||||
|
<Content Remove="package.json" />
|
||||||
|
<None Include="package.json" />
|
||||||
|
<Content Remove="package-lock.json" />
|
||||||
|
<None Include="package-lock.json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -9,5 +9,8 @@
|
|||||||
"ResponseMode": "",
|
"ResponseMode": "",
|
||||||
"AdditionalProviderParameters": [],
|
"AdditionalProviderParameters": [],
|
||||||
"DefaultScopes": []
|
"DefaultScopes": []
|
||||||
|
},
|
||||||
|
"AppConfiguration": {
|
||||||
|
"Version": "0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user