
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@thoughtindustries/catalog
Advanced tools
@thoughtindustries/catalog
The Catalog allows learners to search and browse for content. It is a central component to any online learning platform.
import { Catalog, CatalogProvider } from '@thoughtindustries/catalog';
# CatalogProvider takes a config object to parse URL search params and/or handle custom catalog configurations
# Sample config object
const config = {
parsedUrl: {
pathname: '/catalog',
searchString: '?query=test'
}
}
# Sample config object with custom catalog configurations
const config = {
parsedUrl: {
pathname: '/catalog',
searchString: '?query=test'
},
layoutId: 'layout-id',
widgetId: 'widget-id'
}
<CatalogProvider config={config}>
<Catalog onAddedToQueue={(item) => Promise.resolve()} />
</CatalogProvider>
# Or use custom pagination
<CatalogProvider config={config}>
<Catalog
onAddedToQueue={(item) => Promise.resolve()}
pagination={({page, pageSize, total, getPageLink}) => <>...</>} />
</CatalogProvider>
# Or use custom price formatter
const priceFormat = (priceInCents) => {
const formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD'
});
return formatter.format(priceInCents / 100);
}
<CatalogProvider config={config}>
<Catalog
onAddedToQueue={(item) => Promise.resolve()}
priceFormat={priceFormat} />
</CatalogProvider>
FAQs
A base component for catalog
We found that @thoughtindustries/catalog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.