Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
@jambonn/vue-next-progressbar
Advanced tools
Readme
Slim progress bars for Vue 3.
npm install @jambonn/vue-next-progressbar
or if you prefer yarn
yarn add @jambonn/vue-next-progressbar
You may install Vue next progressbar globally:
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router';
import VueNextProgressbar from '@jambonn/vue-next-progressbar'
import App from './App.vue'
const app = createApp(App)
app.use(createRouter({
history: createWebHistory(),
routes: [],
}));
app.use(VueNextProgressbar, { router: true })
app.mount('#app')
When install global Vue next progressbar, you can control progress in component
<template>
<button type="button" @click="progressBar.start()">Shows the progress bar</button>
<button type="button" @click="progressBar.done()">Completes the progress</button>
</template>
<script>
import { getCurrentInstance, inject } from 'vue'
export default {
setup() {
// Get from global properties
const app = getCurrentInstance()
const progressBar = app.appContext.config.globalProperties.$Progressbar
// Get from provide
const injectProgressBar = inject('Progressbar');
return { progressBar, injectProgressBar }
}
}
</script>
Simply call start() and done() to control the Vue next progress bar.
import { VueProgressbar } from '@jambonn/vue-next-progressbar'
VueProgressbar.start();
VueProgressbar.done();
yarn install
yarn dev
then navigate to http://localhost:8080
yarn build
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Slim progress bars for Vue 3.
The npm package @jambonn/vue-next-progressbar receives a total of 780 weekly downloads. As such, @jambonn/vue-next-progressbar popularity was classified as not popular.
We found that @jambonn/vue-next-progressbar demonstrated a healthy version release cadence and project activity because the last version was released less than 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.