Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@dialpad/dialtone-vue
Advanced tools
Dialtone Vue is a library of Vue components for Dialtone. The goal is to simplify and standardize the use of common UI patterns and behaviour across all Dialpad projects.
Component Documentation Site ↗️
Dialtone Vue is a new project, and as such it is under constant development as we add new components and refine existing ones. Please refer to the project board to see the status of Dialtone Vue components and request new components that should be in the Dialtone Vue library.
Our goal is to have a stable 1.0 release in Q3 2021. At this point, we will split Dialtone Vue into a separate repository and follow semantic versioning.
Dialtone Vue components can be imported directly from the package. Some components also export named constants, which can be imported as well:
import { DtInput, VALIDATION_MESSAGE_TYPES } from '@dialpad/dialtone-vue';
Dialtone Vue uses Storybook for documentation of components, as well as an environment for local development. Please see the Storybook Documentation Site for specific usage information and interactive documentation for each Dialtone Vue component.
All components in Dialtone Vue should have stories written for them in Storybook. For more information on how to write stories, see the documentation.
Storybook provides a sandbox to develop and experiment with components locally, in isolation from the rest of the app. With Storybook you get live reloading of component templates and styles, just like you would in the app. You can also test different props and slots and see the effects in real time, test accessibility issues, and more.
To run Storybook locally, first install the dependencies:
npm run storybook:install
Then you can run the dev server:
npm run storybook
Building components for Dialtone Vue is similar to components for Dialpad or UberConference, but there are some differences. Remember that Dialtone Vue is a shared library so more care has to be taken to avoid breaking changes.
Remember that Dialtone Vue is a separate project, so be sure to run the lint and unit tests for Dialtone Vue separately whenever making changes to the library.
See CONTRIBUTING.
Ensure that NPM_AUTH_TOKEN
is set in your path. You will need to set the token to an NPM authentication token which has read level access to the @dialpad
organization.
npm install
Dialtone components should utilize the global immutable CSS classes provided by Dialtone whenever possible. It is a requirement of any project using Dialtone Vue to include these classes.
If needed, you can also write custom CSS using the Dialtone LESS variables or mixins by importing ../css/dialtone.less
.
Please do not use any scoped CSS in Dialtone Vue components.
Each component should have a corresponding unit test in the tests/specs
directory. There is no special test setup as Dialtone Vue components do not have access to the Vuex store or custom methods/directives.
When adding a new component, please add its exports to index.js
, including any named exports, so they're available for import to users of Dialtone Vue:
export {
default as DtInput,
INPUT_SIZES,
} from './components/input.vue';
Dialtone Vue components are designed to be used in a variety of different projects. As such, Dialtone Vue components should be pure Vue components with no dependencies on global Vue plugins or stores, except when noted below. This in particular means:
v-tooltip
) cannot be used in Dialtone Vue components.Project using Dialtone Vue should be aware of the requirements:
<style>
blocks.These requirements are enforced via peerdependencies of Dialtone Vue when possible.
FAQs
Vue component library for Dialpad's design system Dialtone
The npm package @dialpad/dialtone-vue receives a total of 425 weekly downloads. As such, @dialpad/dialtone-vue popularity was classified as not popular.
We found that @dialpad/dialtone-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.