75 liens privés
I have been playing around with the new .Net 8 Blazor templates and ran into a problem with Identity and setting a global InteractiveServer render mode. The change I made was in the App.Razor file ...
Guard against duplicate events in your Blazor app
.NET 9 changes how static files are served, and it solves a long-standing problem
.NET 9 ensures your users always get the latest version of your JS modules
In .NET 9, you can use Blazor’s interactive render modes for most of your app, then drop down to static server-side rendering for specific pages.
A Blazor component enabling per-page JavaScript initialization logic in statically rendered Blazor Web apps - MackinnonBuck/blazor-page-script
Contribute to carlfranklin/LocalizationInBlazor development by creating an account on GitHub.
Wangkanai is a collection of ASP.NET Core libraries that was developed internally over time and share common usage that would benefit everyone in the open source community as a whole. - wangkanai/wangkanai
A self-contained .NET 8 manager for ASP.NET Core Identity SQL databases. - carlfranklin/AvnIdentityManager
This FAQ explains the topic "How do I implement Blazor authentication with OpenID Connect?"
<PackageReference Include="TimeZoneConverter" Version="6.1.0" />
<p id="test"></p>
@currentUtc => @currentLocal
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<script>
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
document.getElementById("test").innerHTML = tz;
var isos = document.getElementsByClassName("date-iso");
var locals = document.getElementsByClassName("date-local");
for (let i = 0; i < isos.length; i++) {
var fff = luxon.DateTime.fromISO(isos[i].innerHTML, { zone: tz });
locals[i].innerHTML = fff.toString();
}
</script>
@code {
public DateTime currentUtc { get; set; } = DateTime.UtcNow;
public string currentUtcIso { get; set; } = DateTime.UtcNow.ToString("o");
public DateTime currentLocal { get; set; }
protected override async Task OnInitializedAsync()
{
var tzFrance = TimeZoneConverter.TZConvert.IanaToWindows("Europe/Paris");
var tziFrance = TimeZoneInfo.FindSystemTimeZoneById(tzFrance);
currentLocal = TimeZoneInfo.ConvertTime(DateTime.UtcNow, tziFrance);
}
}
@((MarkupString)myMarkup)
@code {
string myMarkup = "<iframe width='560' height='315' src='https://www.youtube-nocookie.com/embed/E9ch_xsFYdg?si=rNJVz8VuYxN4-Qpl' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' referrerpolicy='strict-origin-when-cross-origin' allowfullscreen></iframe>";
}
We will learn what templated components are and how they help us implement more reusable Blazor components.