Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@cimpress/vue-components
Advanced tools
[![npm version](https://img.shields.io/npm/v/@cimpress/vue-components.svg)](https://www.npmjs.com/package/@cimpress/vue-components)
A port of the Cimpress MCP React Components for VueJs
<template>
<div>
<text-field v-model="msg"/>
</div>
</template>
<script>
import { TextField } from '@cimpress/vue-components`
export default {
components: { TextField },
data() {
return {
msg: 'Hello World'
}
}
}
</script>
onInput
/onChange
and value
attributes have been replaced with v-model
onInput
and onChange
) have been changed to vue events (e.g. @input
and @change
)import React, { Component } from 'react';
import { Modal, TextField } from '@cimpress/react-components';
export default class ModalDemo extends Component {
state = {
modalIsOpen: false,
msg: 'Hello World'
};
closeModal = () => {
this.setState({ modalIsOpen: false });
};
openModal = e => {
this.setState({ modalIsOpen: true });
};
onInputChange = e => {
this.setState({ msg: e.target.value });
};
render() {
return (
<Modal
show={this.state.modalIsOpen}
onRequestHide={this.closeModal}
title="An example modal"
closeButton={true}
footer={
<button className="btn btn-default" onClick={this.closeModal}>
Close
</button>
}>
I am a modal body!
<TextField
name="bar"
label="A Text Field"
value={this.state.msg}
onChange={this.onInputChange}
/>
</Modal>
)
}
}
<template>
<div>
<modal
:show="modalIsOpen"
title="An example modal"
:close-button="true"
@request-hide="closeModal"
>
<div v-slot:body>
I am a modal body!
<text-field
name="bar"
label="A Text Field"
v-model="msg"
/>
</div>
<div v-slot:footer>
<button class="btn btn-default" @click="closeModal">Close</button>
</div>
</modal>
</div>
</template>
<script>
import { Modal, TextField } from '@cimpress/vue-components';
export default {
components: { Modal, TextField },
data() {
return {
msg: 'Hello World',
modalIsOpen: false
};
},
methods: {
closeModal() {
this.modalIsOpen = false;
},
openModal() {
this.modalIsOpen = true;
}
}
};
</script>
FAQs
[![npm version](https://img.shields.io/npm/v/@cimpress/vue-components.svg)](https://www.npmjs.com/package/@cimpress/vue-components)
We found that @cimpress/vue-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.