Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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.
Dialtone Vue is available in Vue 2 as well as Vue 3:
You can install the Dialtone Vue library into your project via the following commands:
npm install @dialpad/dialtone-css @dialpad/dialtone-vue
npm install @dialpad/dialtone-css @dialpad/dialtone-vue@vue3
First you must globally import Dialtone's css:
import '@dialpad/dialtone-css';
or
@import '@dialpad/dialtone-css';
And then import Dialtone Vue css for either Vue 2 or Vue 3:
@import "@dialpad/dialtone/vue2/css";
/* Or */
@import "@dialpad/dialtone/vue3/css";
import "@dialpad/dialtone/vue2/css";
/* Or */
import "@dialpad/dialtone/vue3/css";
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';
Projects using Dialtone Vue should be aware of the requirements:
<style>
blocks.These requirements are enforced via peer dependencies of Dialtone Vue when possible.
Dialtone Vue uses JoyPixels to render emojis. If you are using the emoji components, Dialtone Vue will use the free JoyPixels assets hosted on JSDelivr CDN by default. You may wish to use self-hosted JoyPixels assets such as the SVGs only available to premium license holders. In order to do this, set your custom asset URL with the following functions for small and large emojis during initialization of your app:
import { setEmojiAssetUrlSmall, setEmojiAssetUrlLarge } from '@dialpad/dialtone-vue'
// 16px and smaller
setEmojiAssetUrlSmall('https://my.example.website.com/joypixels/svg/unicode/32/', '.png')
// larger than 16px
setEmojiAssetUrlLarge('https://my.example.website.com/joypixels/svg/unicode/', '.svg')
You may access the emoji.json data for all emojis Dialtone Vue supports via executing the following function
import { getEmojiData } from '@dialpad/dialtone-vue'
const emojiData = getEmojiData();
If you would like to contribute to Dialtone Vue the first step is to get the project running locally. Follow the below quickstart to do so.
git clone git@github.com:dialpad/dialtone.git
pnpm install
pnpm start:dialtone-vue2
or pnpm start:dialtone-vue3
Next read the more detailed contributor documentation in CONTRIBUTING.md.
Please refer to the jira board to see what we are currently working on and what we have planned for the future.
Requesting a feature or reporting a bug? Please do so at the below links:
Please also feel free to contact us via the #dialtone Dialpad channel with any questions
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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.