Git Product home page Git Product logo

superhero-utils's People

Contributors

davidyuk avatar maxkpower avatar mradkov avatar petarbaykov avatar shapkarin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

superhero-utils's Issues

Lead to browser extension store page

If there is no extension detected - clicking on the Donate button URL redirect should be leading to the corresponding browser extension store page for the Superhero wallet.

In some cases, the generated build is broken

I'm not sure how to reproduce this, but sometimes npm run build generates only one of superhero-button.js, superhero-button.styles.js. Once I have spoiled a published package because of this. Also, it happened on Travis once: 3dc0128

Maybe @petbaik can help to resolve this?

Allow to explicitly create a button instance

Currently, the package waits for DOMContentLoaded event to put an iframe in place after that. It won't work for SPAs in cases when the a.superhero-tip-button appears dynamically, to fix this I propose to expose an interface that accepts a DOM node and makes a button instance out of it. It is a well-known practice of reusing common UI parts that were actual before the adoption of frameworks based on components.

React component

It will be nice to have a react component wrapper. I can help with that.

Consider moving API and utils parts to other repository

It may be useful to have all about API or other Utils at the separate repo. So in this way we can update some in one place and next easily in at least two others superhero-ui, superhero-button(in future also at it's parts like superhero-button/react and superhero-button/vue)

Proposing to set template using innerHTML or so instead of iframe

What was the reasoning behind using iframes in this package? The only thing that I guess is to make easier the updation of buttons, but we can get the same results depending on unpkg.com like SDk does: https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/import-script-tag.md#latest-sdk-version

So, I propose to make it more durable and flexible (user can override styles) by generation buttons in place (using innerHTML or manually generation DOM nodes) instead of creating an iframe to superhero.com.

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.