GithubHelp home page GithubHelp logo

mobilebarcoder's People

Contributors

dsample avatar glawrence avatar sophira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mobilebarcoder's Issues

Code duplication between get*/show* functions

I notice that getBarcodeFromSelection/showBarcodeFromSelection and getBarcodeFromLink/showBarcodeFromLink share some code, and that the get* functions don't actually return values but open new tabs instead. Would you be open to a pull request to reduce the duplication for these functions by renaming the get* functions above to open_, then having both call a get_ function (eg. getBarcodeURLFromLink) that returns the appropriate information?

(My apologies if this isn't considered proper etiquette; I'm just starting to branch out on GitHub and don't know if this sort of thing is considered proper etiquette or not yet.)

Variables not scoped correctly

Report from Mozilla Add-on review process:

There are some variables that are leaking into the global namespace because you've not declared them with var:
link, menu, selection, image, prefix, sizenumber

Migration of preferences to new namespace

The preferences now need to be stored under 'extensions.mobilebarcode.'. However, as there are already lots of users with the extension installed it would be good to come up with a migration method, preferably triggered on upgrading of the extension.

Local generation of barcodes

I would like to implement local generation of barcodes into the addon. I suspect that the easiest way to do this will be to integrate https://code.google.com/p/bwip-js/ , which is offered under the MIT Licence. Alternatively, QR-only generation can be done with https://davidshimjs.github.io/qrcodejs/ , with is also offered under the MIT Licence.

As I understand it, Mobile Barcoder uses the BSD Licence. I don't know the intricacies of how these licences interact myself, so I don't know if this integration is legally possible without changing Mobile Barcoder's licence. If it's wanted, I can try to take a look to find out.

Do you think this is worth it? I personally do, but this is your addon. :D

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.