Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@fluid-topics/ft-search-bar
Advanced tools
Readme
A search bar component using Fluid Topics public API.
The search bar requires the Fluid Topics public API and Material Icon font to be imported independently.
npm install @fluid-topics/ft-search-bar
yarn add @fluid-topics/ft-search-bar
To be placed at the end of HTML body:
<script src="https://cdn.jsdelivr.net/npm/@fluid-topics/public-api/dist/fluidtopics.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fluid-topics/ft-search-bar/build/ft-search-bar.min.js"></script>
import { html } from "lit"
import "@fluid-topics/public-api/dist/fluidtopics.min.js"
import "@fluid-topics/ft-search-bar"
function render() {
return html`
<ft-search-bar
baseUrl="http://doc.fluidtopics.com"
.displayedFilters=${ [ "Version_FT", "Category", "Platform", "audience" ] }
@change=${ (e: SearchStateChangeEvent) => console.log("Search state change:", e.detail) }
@launch-search=${ (e: LaunchSearchEvent) => console.log("Launch search:", e.detail) }
></ft-search-bar>
`
}
<html lang="en">
<head>
<title>My custom integration</title>
<link href="http://doc.fluidtopics.com/api/stylesheets/fonts.css" rel="stylesheet">
<link href="http://doc.fluidtopics.com/api/stylesheets/theme.css" rel="stylesheet">
</head>
<body>
<ft-search-bar
baseUrl="http://doc.fluidtopics.com"
displayedfilters="["Version_FT","Category","Platform","audience"]"
></ft-search-bar>
<script src="https://cdn.jsdelivr.net/npm/@fluid-topics/public-api/dist/fluidtopics.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fluid-topics/ft-search-bar/build/ft-search-bar.min.js"></script>
<script>
const searchBar = document.querySelector('ft-search-bar');
searchBar.setAttribute("labels", JSON.stringify({
filtersButton: "Refine your search",
inputPlaceHolder: "Search our documentation"
}));
searchBar.addEventListener("launch-search", event => {
console.log("Launch search:", event.detail)
console.log("URL:", searchBar.searchRequestSerializer(event.detail))
});
</script>
</body>
</html>
FAQs
Search bar component using Fluid Topics public API
The npm package @fluid-topics/ft-search-bar receives a total of 227 weekly downloads. As such, @fluid-topics/ft-search-bar popularity was classified as not popular.
We found that @fluid-topics/ft-search-bar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.