
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Vue Component for Vue 2.x
npm install vue2-hints --save
For demo, please see here
1. Import the component
import Vue2Hints from 'vue2-hints';
2.1 Use it globally
Vue.use(Vue2Hints);
// OR with options
Vue.use(Vue2Hints, {baseURL: 'https://jsonplaceholder.typicode.com/', headers: {'X-API-KEY': 1234}});
*3. Access it locally
<template>
<vue2-hints ref="http" v-model="data" :error-fn="onError"></vue2-hints>
</template>
components: {
'vue2-hints': Vue2Hints
},
<template>
<div id="app">
<div class="d-flex flex-column justify-content-between" style="height: 400px;">
<button class="btn btn-primary btn-sm" type="button" v-hint="'simple tooltip'" :sanchit="show">tooltip</button>
<button class="btn btn-primary btn-sm" type="button" v-hint.html="'<b>simple</b> tooltip'" :sanchit="show">html tooltip</button>
<button class="btn btn-primary btn-sm" type="button" v-hint="{title: 'this is a tooltip', show: show, placement: 'bottom'}" :sanchit="show">prog tooltip</button>
<button class="btn btn-primary btn-sm" type="button" @click="test" v-hint.popover="'this is a popover'">popover</button>
<button class="btn btn-primary btn-sm" type="button" @click="test" v-hint.popover="{title: 'my title', content: 'my content'}">popover title and content</button>
<hr>
<button class="btn btn-primary btn-sm" type="button" @click="show = !show">!show</button>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import Vue2Hints from '../src/index'
Vue.use(Vue2Hints, {});
export default {
name: 'app',
data() {
return {
data: {},
show: true,
}
},
methods: {
test() {
// code
}
},
}
</script>
Contributions are welcome
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
FAQs
Vue2Hints: Http component with Progress bar
The npm package vue2-hints receives a total of 7 weekly downloads. As such, vue2-hints popularity was classified as not popular.
We found that vue2-hints 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.