Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@thinknimble/vue3-alert-alert
Advanced tools
A minimalist alert plugin for VueJS projects.
Install from npm:
npm install vue3-alert-alert
Add the plugin to your Vue project (don't forget to include the css file as well!):
import '@thinknimble/vue3-alert-alert/dist/vue3-alert-alert.css'
import AlertPlugin, { AlertAlert } from '@thinknimble/vue3-alert-alert'
createApp(App).use(AlertPlugin,{}).mount('#app')
Add the <alert-alert>
component to the root of your app (ex: App.vue):
<template>
<div id="app">
<alert-alert />
</div>
</template>
When registering the plugin pass in optional default configuration options - message: '
Use the plugin (options api)
this.$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Use the plugin (composition api)
const $Alert = inject('$alert')
$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Use the plugin (composition api TS)
import import { $alert } from '@/plugins'
const $Alert = inject($alert)
$Alert.alert({
type: 'success',
message: `
<h2>Success!</h2>
<p>Your work has been saved.</p>
`,
timeout: 6000,
})
Additional Configuration (set some defaults)
let configuration = {
type:'error',
timeout:1000,
message:'<h3>Add a default message </h3>'
}
createApp(App).use(AlertPlugin,configuration).mount('#app')
<template>
<div id="app">
<alert-alert position="lt"/>
</div>
</template>
null
.FAQs
A minimalist alert plugin for VueJS projects.
The npm package @thinknimble/vue3-alert-alert receives a total of 288 weekly downloads. As such, @thinknimble/vue3-alert-alert popularity was classified as not popular.
We found that @thinknimble/vue3-alert-alert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.