Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
dkfbasel-search
Advanced tools
dkfbasel-search is a search component for vue.js 2.1+ handling search inputs and result rendering based on best practice experiences in terms of usability. For the most flexibility we are taking advantage of the newly implemented scoped slots in vue combined with vue transitions for high performance animations.
Its simple usage makes it the best choice for your search implementation. Just pass your own search command and define the presentation of hints and results as you like.
vue 2.1+ dynamics.js
$ npm install dkfbasel-search --save
Import dkfbasel-search into your vue component:
import Search from 'dkfbasel-search';
Place the dkfbasel-search component inside your template and define the result presentation and optionally a content to be presented from the beginning:
<search autofocus :query="yourSearchQuery" placeholder="the placeholder text is optional">
<template slot="start">
... // any html code, e.g.:
<div class="start-info">Welcome to dkfbasel-search. What are you looking for?</div>
</template>
<template slot="result" scope="props">
... // any html code
// use {{props.result}} to access the result based on your data model, e.g.
// if your data model looks like {title: "Cook book", description: "A book with lots of yammy food"}:
<div class="result-item">
<h2>{{props.result.title}}</h2>
<span>{{props.result.description}}</span>
</div>
</template>
</search>
Optional you can also edit the hints for the following actions:
While user is typing:
<template slot="hint_typing">
... // any html code
</template>
While search is running:
<template slot="hint_searching">
... // any html code
</template>
When results are presented:
<template slot="hint_result" scope="props">
...
// use {{props.term}} to display the term your were searching for
// use {{props.amount}} to display the number of results
</template>
When an error occured while searching:
<template slot="hint_error">
... // any html code
</template>
Additional information before and after the search results can be added optionally:
To be shown before the result
<template slot="before_result">
... // any html code
</template>
To be shown after the result:
<template slot="after_result">
... // any html code
</template>
An fully functional example is provided in the test directory using docker and webpack.
Any comments or suggestions are very welcome.
FAQs
An awesome search component for vue.js 2.1+
We found that dkfbasel-search demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.