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
Handset 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 ↗️
Handset 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 Handset components and request new components that should be in the Handset library.
Our goal is to have a stable 1.0 release in early 2021. At this point, we will split Handset into a separate repository and follow semantic versioning.
Handset components can be imported directly from the package. Some components also export named constants, which can be imported as well:
import { HsInput, VALIDATION_MESSAGE_TYPES } from '@dialpad/handset';
Handset 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 Handset component.
All components in Handset 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 install:storybook
Then you can run the dev server:
npm run storybook
Building components for Handset is similar to components for Dialpad or UberConference, but there are some differences. Remember that Handset is a shared library so more care has to be taken to avoid breaking changes.
Remember that Handset is a separate project, so be sure to run the lint and unit tests for Handset separately whenever making changes to the library.
See CONTRIBUTING.
Dialtone components should utilize the global immutable CSS classes provided by Dialtone whenever possible. It is a requirement of any project using Handset 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 Handset components.
Each component should have a corresponding unit test in the tests/specs
directory. There is no special test setup as Handset 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 Handset:
export {
default as HsInput,
INPUT_SIZE_TYPES,
} from './components/input.vue';
Handset components are designed to be used in a variety of different projects. As such, Handset 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 Handset components.Project using Handset should be aware of the requirements:
<style>
blocks.These requirements are enforced via peerdependencies of Handset 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.