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

pipeline-ui

v0.4.2

Published

PIPELINE Design System react component library.

Downloads

16

Readme

pipeline-ui

PIPELINE Design System's react component library.

NPM JavaScript Style Guide MIT License GitHub stars Twitter Follow PIPELINE Discussion Travis Build Status codecov Netlify Status Gitpod ready-to-code Open in Visual Studio Code NPM

PIPELINE-UI is a project from HEADLINE Design (in partnership with the Algorand Foundation), aiming to deliver a suite of development tools and reusable React components for decentralized Algorand applications (dAApps). Our goal is to make it as easy as possible for developers to build dAApps with outstanding functionality and visual design. If you're interested, we have written a bit more about our rationale and approach to building PIPELINE.

PIPELINE is in beta development and should not be considered stable. We have made the project public in order to gather feedback from the community of designers and developers building Algorand dAApps.

We are actively working on adding new components to PIPELINE and will be sharing more information on the roadmap very soon.

Modifying and testing the library on local machine:

  1. Create a new folder in src
  2. Add an index.js file in the new folder
  3. Add any new dependecies as neccesary to the package.json file for pipeline-ui
  4. Add the following line to the existing index.js file in src
export { default as MyNewComponent } from './MyNewComponent';

In command prompt, enter the following while in the pipeline-ui root directory:

npm install
npm run build
npm pack

A tgz file will be generated in the folder pipeline-ui. Move this file to the root folder of your project.

Add the following dependency to the package.json of the project that you will be using the library in:

"pipeline-ui": "file:./pipeline-ui-0.1.6.tgz",

In the project root folder, run:

npm install

Usage

Pipeline is working to hardcode the Algorand connection process into standard components. With Pipeline, the following is a complete React App to connect to a MyAlgo wallet and return the address:

import React, { Component } from 'react';
import { AlgoButton, Pipeline} from 'pipeline-ui';


class TestButton extends Component {

  constructor(props) {
    super(props);
    this.state = {
      Algaddress: ""
    }
  }
  
  myAlgoWallet = Pipeline.init();

  render() {
    return <div>
      <AlgoButton 
            wallet={this.myAlgoWallet} 
            context={this} 
            returnTo={"Algaddress"} 
            />
      <h1>{this.state.Algaddress}</h1>
    </div>
  }
}

export default TestButton;

The Send Button

The AlgoSend button has the largest number of mandatory props. Failing to set them, or setting them incorrectly will result in a transaction not executing. This button also has the optional prop index , which can be used to set and specify an ASA index number for an ASA transaction. An app that uses the AlgoSendButton must also call Pipeline.init() and either use AlgoButton or call Pipeline.connect(wallet,context,returnTo).

<AlgoSendButton
      index={this.state.index} //If Algorand, must be 0. If ASA, must be a numeric index value
      recipient={this.state.recipient} //string value
      amount={this.state.amount} //integer value in micro Algos
      note={this.state.note} //string value
      myAddress={this.state.Algaddress} //string value
      wallet={myAlgoWallet} //reference to an instance of Pipeline.init(); that is called once when the app is initialized
      context={this}
      returnTo={"txID"}// string value of state key to return the transaction id
      />

Edit with Gitpod

Change log

0.1.3

  • Theming
  • Buttons and other simple components

0.1.7

  • Fixed Select component
  • Replaced MyAlgoButton component with hard-coded AlgoButton
  • Added Pipeline Algorand Connector as a dependecy
  • Add Verified ASA's and index numbers as a component
  • Updated rollup to latest version
  • Enabled Demo app and updated to reflect changes to parent library

0.2.4

  • Fixed AlgorAddress and Blockie components (formerly would not re-render on state change of props)
  • Added Pipeline Algorand Connector as component Pipeline
  • Added AlgoFetch component
  • Added PipelineShell component
  • Updated Demo app to reflect changes to parent library

0.2.5

  • Added SwitchNet component to switch between MainNet and TestNet
  • Add onChange props to AlgoButton and AlgoSendButton components

0.2.6

  • Added return of 0 for Pipeline.balance() when error occurs.

0.3.4

  • Numerous updates
  • WalletConnect integration
  • Fixed Peer dependency issue

0.3.5

  • MultiWalletConnect component
  • AlgoSigner integration
  • Fused Pipeline connector

License

MIT © PIPELINE UI