
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
vue2-auto-close
Advanced tools
Vue Component for Vue 2.x that displays an auto close countdown blurb.
npm install vue2-auto-close --save
For demo, please see here
1. Import the component
import Vue2AutoClose from 'vue2-auto-close';
2.1 Use it globally
Vue.use(Vue2AutoClose);
// OR with options
Vue.use(Vue2AutoClose, {baseURL: 'https://jsonplaceholder.typicode.com/', headers: {'X-API-KEY': 1234}});
*3. Access it locally
<template>
<vue2-auto-close ref="http" v-model="data" :error-fn="onError"></vue2-auto-close>
</template>
components: {
'vue2-auto-close': Vue2AutoClose
},
secs: Number (default: 5)
label: String (default: Closing in)
clickToToggle: Boolean (default: 1)
hideCancelled: Boolean (default: 1)
cancelled: Boolean
resetTimer: Boolean (default: 1)
interval: Number (default: 1000)
<template>
<div id="app" style="text-align: center">
<div v-if="!removed">
<vue2-auto-close :hide-cancelled="false" :cancelled="c" @done="log('done')"></vue2-auto-close>
<button class="btn btn-primary btn-sm" type="button" @click="c = !c">Toggle</button>
<pre class="debug">c: {{c}}</pre>
</div>
<button class="btn btn-primary btn-sm" type="button" @click="removed = !removed">Remove</button>
</div>
</template>
<script>
import Vue from 'vue';
import Vue2AutoClose from '../src/index'
Vue.use(Vue2AutoClose, {});
export default {
name: 'app',
data() {
return {
c: true,
removed: false,
}
},
methods: {
log() {
console.log("done!!");
}
},
}
</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
Vue2AutoClose: Http component with Progress bar
We found that vue2-auto-close 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.