Пример #1
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            // for timezone support.. since blaxor don't have it yet..
            // https://github.com/jsakamoto/Toolbelt.Blazor.TimeZoneKit Install in NuGet???
            app.UseLocalTimeZone();
            // to get the correct Culture Info based on the users browser... since blazor don't set that yet either
            // https://github.com/Blazored/Localisation
            //app.UseBlazoredLocalisation();

            app.AddComponent <App>("app");
        }
Пример #2
0
        public static void UseJssBlazorComponents <TComponent>(
            this IComponentsApplicationBuilder app,
            string domElementSelector)
            where TComponent : IComponent
        {
            app.AddComponent <TComponent>(domElementSelector);

            // Blazor WebAssembly doesn't currently include any time zones so conversion to
            // local DateTimes from UTC does not work. This extension method fixes that.
            // https://github.com/jsakamoto/Toolbelt.Blazor.TimeZoneKit/
            app.UseLocalTimeZone();
        }
Пример #3
0
 public void Configure(IComponentsApplicationBuilder app)
 {
     app.UseLocalTimeZone();
     app.AddComponent <App>("app");
 }
Пример #4
0
 public void Configure(IComponentsApplicationBuilder app)
 {
     app.UseLocalTimeZone();
     app.AddComponent <App>("app");
     app.AddComponent <GlobalRules>("#staticcs");
 }
Пример #5
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app.UseLocalTimeZone();             // Blazor (mono) fallbacks to UTC. Local time support not implementated yet.

            app.AddComponent <App>("app");
        }