dsample / mobilebarcoder Goto Github PK
View Code? Open in Web Editor NEWMobile barcoder Firefox addon
Home Page: http://www.sample.org.uk/mobilebarcoder
Mobile barcoder Firefox addon
Home Page: http://www.sample.org.uk/mobilebarcoder
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.)
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
I thought this was already a feature but it seems to have stopped working.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.