GithubHelp home page GithubHelp logo

plattar-qrcode's People

Contributors

calrk avatar davidarayan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plattar-qrcode's Issues

Switch Link Shortener Service

About

This is related to Issue #6. Switch link-shortener service to c.plattar.com which is the new URL for production link shortening. The new production link shortener runs on a new backend, database and has a new structure conforming to the new Plattar API Module.

Update

  • Current URL: https://c2.plattar.space/api/v2/shorten
  • New URL: https://c.plattar.com/shorten

Percentage based resizing bug

About

When providing a percentage based resizing options for QR Code the sizing is not applied correctly.

for example, the following HTML node

<plattar-qrcode width="100%" height="100%"></plattar-qrcode>

Is applied the same way as

<plattar-qrcode width="100px" height="100px"></plattar-qrcode>

Switch QR-Code Shortener Service

About

The current backend used for link shortening as referenced in base-element.js L219 is out of date and due for deprecation.

Update

  • Current URL: https://c.plattar.space/api/v2/shorten
  • New URL: https://c2.plattar.space/api/v2/shorten

Add support for link shortening via HTML attribute

About

Certain QR Code URL's are very long and as such generate very densely packed QR Codes that can be difficult to scan quickly. Plattar offers a remote URL shortener service that can be integrated into the Plattar QRCode SDK to shorten these links.

Proposal

  • Add a new optional attribute (false by default) that can be used to automatically shorten the provided url link
  • The shortened link will automatically redirect to the original url when a GET request is performed against it

Example

This example will shorten the provided url using the plattar link shortener service. Since the link is shortened by performing a HTTP request, this could cause the QR Code to render slowly.

The new shorten attribute is optional and its value is false by default.

<plattar-qrcode url="https://app.plattar.com/" shorten="true" />

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.