![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@cerebral/vue
Advanced tools
Vue.js view for Cerebral.
npm install @cerebral/vue vue
import Vue from 'vue/dist/vue'
import App from 'cerebral'
import { Container, connect } from '@cerebral/vue'
import main from './main'
const app = App(main)
var vue = new Vue({
el: '#app',
components: {
container: Container(app)
}
})
Note! The HTML of the root element must use the container:
<div id="app">
<container>
<my-component></my-component>
</container>
</div>
MyComponent.js
import { connect } from '@cerebral/vue'
import { state, signal } from 'cerebral/proxy'
export default connect(
{
foo: state.foo,
click: signal.clicked
},
{
template: '<div v-on:click="click()">{{foo}}</div>'
}
)
main.js
import Vue from 'vue/dist/vue'
import App from 'cerebral'
import { Container, connect } from '@cerebral/vue'
import MyComponent from './MyComponent'
import main from './main'
const app = App(main)
var vue = new Vue({
el: '#app',
components: {
container: Container(app),
'my-component': MyComponent
}
})
You can also connect inside a .vue file. When using ParcelJS this requires additional packages.
npm install parcel-plugin-vue babel-preset-env --save-dev
Then add the preset to your .babelrc file:
{
"presets": ["env"],
"plugins": ["cerebral"]
}
Your component file can now be written as:
MyComponent.vue
<template>
<div v-on:click="click()">{{foo}}</div>
</template>
<script>
import { connect } from '@cerebral/vue'
import { state, signal } from 'cerebral/proxy'
export default connect(
{
foo: state.foo,
click: signal.clicked
}
)
</script>
FAQs
Vue.js view for Cerebral
The npm package @cerebral/vue receives a total of 12 weekly downloads. As such, @cerebral/vue popularity was classified as not popular.
We found that @cerebral/vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.