Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/marvinklein1508/blazortooltips
A simple to use blazor component to implement bootstrap tooltips in both Blazor server and Blazor WebAssembly apps. Based on Bootstrap.
See a live demo right here on github.
The component is designed to manage the disposing of the tooltips. Once the component is not rendered anymore, it will be automatically disposed and hide the tooltip completely automatically.
With the vanilla implementation of Bootstrap tooltips you'll end up with an open tooltip after the page has navigated the user to a different component.
Moreover it provides you with nice intellisense, so you'll don't need to remember every attribute.
The bootstrap.min.js must be included in your project.
In blazor server you can add it within your _Host.cshtml
file
<script src="/js/bootstrap.js"></script>
<script src="_framework/blazor.server.js"></script>
In Blazor WebAssembly you'll need to add it to your index.html
<script src="/js/bootstrap.js"></script>
<script src="_framework/blazor.webassembly.js"></script>
You can install from Nuget using the following command:
Install-Package BlazorTooltips
Or via the Visual Studio package manger.
Start by add the following using statement to your root _Imports.razor
.
@using BlazorTooltips
You can wrap the tooltip component around any HTML or blazor component. For example:
<Tooltip Title="Default Tooltip">
<button type="button" class="btn btn-primary">Default Tooltip</button>
</Tooltip>
By default all tooltips will be shown on hover with a fade animation and placed on top. You can change this behaviour if you want like this:
<Tooltip Title="Advanced tooltip"
Placement="TooltipPlacement.Bottom"
Animation="false">
<button type="button" class="btn btn-primary">Advanced tooltip</button>
</Tooltip>
The component also provides native support for HTML tooltips. If you don't want to show HTML within your tooltips you can disable this feature by setting Html
to false
<Tooltip Title="<strong><i>Tooltip with HTML</i></strong>" Html="false">
<button type="button" class="btn btn-primary">Tooltip with HTML</button>
</Tooltip>
You can override almost any available option from this component by passing it down to the corresponding parameter.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.