Raivue
A Vue.js plugin for accepting Nano payments using Brainblocks
Installation
# npm npm install --save raivue # yarn yarn add raivue
Usage
Bundler (Webpack, Rollup)
// You need a specific loader for CSS files like https://github.com/webpack/css-loader Vue
Browser
<!-- Include after Vue --><!-- Local files --> <!-- From CDN -->
Vue Component Usage
NanoPayment Component
The NanoPayment component is the most basic usage of BrainBlocks. It takes in 3 properties: address, amount (in rai/xrb, not XRB), a paymentCallback function, and a tokenCallback function.
Development
Update Git Submodules
This is required to pull down the latest Brainblocks code.
npm run submodules:update
Launch visual tests
npm run dev
Launch Karma with coverage
npm run dev:coverage
Build
Bundle the js and css of to the dist
folder:
npm run build
Publishing
The prepare
hook will ensure dist files are created before publishing. This
way you don't need to commit them in your repository.
# Bump the version first # It'll also commit it and create a tag npm version# Push the bumped package and tags git push --follow-tags# Ship it 🚀 npm publish
License
Support 💙💚
Donation Address: xrb_3ui4sg4jjdxsfwshjcbkjnthdzmtbgxe7pa597cxsa4aamkkj3b8dmeome4i