Giter Site home page Giter Site logo

price-widget's Introduction

Price widget

This plugin adds a widget to the footer that displays the current exchange rate stored in the application state by the core price plugin. In a wide enough window, it will display two dropdown menus for the user to select which fiat currency is used and which API is providing the data. This is done by dispatching the following actions which the core price plugin listens for:

REFRESH_PRICE
UPDATE_FIAT
UPDATE_FEED

When installed, this plugin will update the price in the application state every 60 seconds.

Included with other widgets in genesis-theme: screenshot

Without any theme installed: screenshot

Important: This plug in currently requires the bPanel backend plugin @bpanel/curl to be installed separately by the user:

Using bpanel-cli

$ bpanel-cli i @bpanel/curl

Optional:

The appearace of this widget can be modified by installing the additional plugin price-settings.

screenshot

price-widget's People

Contributors

pinheadmz avatar bucko13 avatar

Watchers

Steven Bower avatar James Cloos avatar  avatar Mark Tyneway avatar Darren M avatar

price-widget's Issues

UX Comments

Just some comments based on playing with the widget a bit.

  • I think it would probably be good to clear the price immediately when an exchange market is changed. It's a little jarring as a user when you switch but the price stays the same for a half second and then changes. I would expect it to change immediately to something like ... and then update once the value is received
  • Same point above for changing the fiat. It feels weird that the symbol changes then the amount updates.
  • I was noticing that when I had @bpanel/bpanel-footer and @bpanel/footer-address, at some screen widths the exchange selector would flicker out. I think this is because of the col width. It might help to specify a width. col-4 seemed to ensure it displayed for me, but it also squeezes the others, so it's not a big deal either way.

That's about it! I love being able to see the price in my footer. Great job ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.