You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im having trouble with the sidebar using the template in a PWA application.
At launch the sidebar is open and is not closable with a click in the window or by selecting a link. Sometimes the sidebar closes itself upon selecting a link from the navbar but not always:
<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8" /><metaname="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><title>BlazorDisplayer</title><basehref="/" /><linkhref="css/app.css" rel="stylesheet" /><linkhref="manifest.json" rel="manifest" /><linkrel="apple-touch-icon" sizes="512x512" href="icon-512.png" /><!-- Google Font: Source Sans Pro --><linkrel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"><!-- Font Awesome Icons --><linkrel="stylesheet" href="_content/Blazorized.AdminLte.Content/plugins/fontawesome-free/css/all.min.css"><!-- Theme style --><linkrel="stylesheet" href="_content/Blazorized.AdminLte.Content/dist/css/adminlte.min.css"><!-- daterange picker --><linkrel="stylesheet" href="_content/Blazorized.AdminLte.Content/plugins/daterangepicker/daterangepicker.css"><!-- overlay scrollbars --><linktype="text/css" href="_content/Blazorized.AdminLte.Content/plugins/overlayScrollbars/css/OverlayScrollbars.min.css" rel="stylesheet" /></head><body><divid="app">Loading...</div><divid="blazor-error-ui">
An unhandled error has occurred.
<ahref="" class="reload">Reload</a><aclass="dismiss">🗙</a></div><scriptsrc="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js"></script><scriptsrc="_content/Blazorized.AdminLte.Content/plugins/jquery/jquery.min.js"></script><!-- Bootstrap 4 --><scriptsrc="_content/Blazorized.AdminLte.Content/plugins/bootstrap/js/bootstrap.bundle.min.js"></script><!-- AdminLTE App --><scriptsrc="_content/Blazorized.AdminLte.Content/dist/js/adminlte.min.js"></script><scriptsrc="_content/Blazorized.AdminLte/js/interop.js"></script><scriptsrc="_framework/blazor.webassembly.js"></script><script>navigator.serviceWorker.register('service-worker.js');</script><scriptsrc="_content/Blazorized.AdminLte.Content/plugins/moment/moment-with-locales.js"></script><scriptsrc="_content/Blazorized.AdminLte.Content/plugins/daterangepicker/daterangepicker.js"></script><!-- overlay scrollbars --><scriptsrc="_content/Blazorized.AdminLte.Content/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script></body></html>
program.cs:
usingBlazorDisplayer.Client;usingMicrosoft.AspNetCore.Components.Web;usingMicrosoft.AspNetCore.Components.WebAssembly.Hosting;usingMicrosoft.AspNetCore.Components.WebAssembly.Authentication;usingNews.Stack.FrontProxy;usingBlazor.AdminLte;varbuilder=WebAssemblyHostBuilder.CreateDefault(args);varbaseUrl=builder.Configuration.GetValue<string>("frontendBackendUrl");builder.RootComponents.Add<App>("#app");builder.RootComponents.Add<HeadOutlet>("head::after");builder.Services.AddHttpClient("BlazorDisplayer.ServerAPI", client =>client.BaseAddress=newUri(builder.HostEnvironment.BaseAddress)).AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();// Supply HttpClient instances that include access tokens when making requests to the server projectbuilder.Services.AddScoped(sp =>sp.GetRequiredService<IHttpClientFactory>().CreateClient("BlazorDisplayer.ServerAPI"));builder.Services.AddScoped<ArticleService>((provider)=>newArticleService(builder.HostEnvironment.BaseAddress,provider.GetService<HttpClient>()));builder.Services.AddOidcAuthentication(options =>{//options.ProviderOptions.Authority = "https://localhost:5001/";// Configure your authentication provider options here.// For more information, see https://aka.ms/blazor-standalone-authbuilder.Configuration.Bind("oidc",options.ProviderOptions);});builder.Services.AddApiAuthorization();builder.Services.AddAdminLte();awaitbuilder.Build().RunAsync();
Is there something I'm missing? I'll give #53 a try and use a newer Release of AdminLTE.
The text was updated successfully, but these errors were encountered:
Ch4h3d
changed the title
Unable to hide Sidebar with smallest Screensize (Phone)
Unable to hide sidebar with smallest screensize (Phone)
Dec 5, 2021
Hey,
im having trouble with the sidebar using the template in a PWA application.
At launch the sidebar is open and is not closable with a click in the window or by selecting a link. Sometimes the sidebar closes itself upon selecting a link from the navbar but not always:
MainLayout.razor (from example/blazor wasm template):
index.html:
program.cs:
Is there something I'm missing? I'll give #53 a try and use a newer Release of AdminLTE.
The text was updated successfully, but these errors were encountered: