npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@revertdotdev/revert-vue

v0.0.10

Published

<p align="center"> <img width="150" style="border-radius:75px;" src="https://res.cloudinary.com/dfcnic8wq/image/upload/v1673932396/Revert/Revert_logo_x5ysgh.png"/> <h1 align="center"><b>Revert</b></h1> <p align="center"> Open-source unified API for produc

Downloads

15

Readme

@revertdotdev/revert-vue

Overview

Revert is the fastest way to integrate with your customer's tools with a single set of APIs & SDKs.

This package contains the Vue sdk with the RevertConnectVue component.

Getting Started

First, install the Revert npm package:

yarn add @revertdotdev/revert-vue

Usage

  1. Adding the <RevertConnectVue> component will instantly give your app a way for your users to connect their tools by opening our Modal on clicking where they will be a able to choose & connect their 3rd party tool.
<script>
import { RevertConnectVue } from '@revertdotdev/revert-vue'

export default {
  name: 'App',
  components: {
    RevertConnectVue,
  },
  data() {
    return {
      config: {
        revertToken: 'YOUR_TOKEN',
        tenantId: 'CUSTOMER_TENANT_ID',
      },
    };
  },
};
</script>

<template>
  <div class="container">
    <RevertConnect :config="config" />
  </div>
</template>

You can optionally also pass your own values to the buttonStyle and buttonText props:

<script>
import { RevertConnectVue } from '@revertdotdev/revert-vue'

export default {
  name: 'App',
  components: {
    RevertConnectVue,
  },
  data() {
    return {
      config: {
        revertToken: 'YOUR_TOKEN',
        tenantId: 'CUSTOMER_TENANT_ID',
      },
      buttonStyle: {
        padding: '10px',
        outline: 'none',
        background: 'rgb(39, 45, 192)',
        border: '1px solid rgb(39, 45, 192)',
        borderRadius: '5px',
        cursor: 'pointer',
        color: '#fff',
      },
      buttonText: "Connect your tool"
    };
  },
};
</script>

<template>
  <div class="container">
    <RevertConnectVue :config="config" :button-style="buttonStyle" :button-text="buttonText"/>
  </div>
</template>
  1. If you wish to use your own UI for it, you can use the useRevertConnnect hook and call the open() method when appropriate. For example:
<script>
export default {
  setup() {
    const { loading, open, error } = useRevertConnect({ config: configObject });
    return {
      loading,
      error,
      open,
    };
  }
};
</script>
<template>
  <div class="container">
    <button :disabled="loading || Boolean(error)"
    @click="open()"
    id="revert-connect-button"
    :style="{ padding: '10px', outline: 'none', background: 'rgb(39, 45, 192)',
              border: '1px solid rgb(39, 45, 192)', borderRadius: '5px',
              cursor: 'pointer', color: '#fff' }">
      Connect your tool
    </button>
  </div>
</template>

You can also pass in the integrationId inside the open() method above to directly open the integration you are interested in. These are the integration IDs that are currently supported:

  • open('hubspot')
  • open('zohocrm')
  • open('sfdc')

Support

In case of questions/feedback, you can get in touch in the following ways

  • Open a Github support issue
  • Contact us over email.