0.1.1 • Published 6 months ago

strapi-plugin-qrcode-generator v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Features

  • Output svg qr code with rest api parameters.
  • Adds a button to the content manager that allows users to generate a qr code.
  • Display qr code on content manager.
  • Supports collection and single types.

How to install

npm i strapi-plugin-qrcode-generator
or
yarn add strapi-plugin-qrcode-generator

Configuration

Include this to your .env file :

STRAPI_BASE_FRONTEND=https://www.example.org

To display the download button and qr code, you need to edit or create config/plugins.js, for each content type.

For example in the screenshot above, this is enabled :

module.exports = {
  'qrcode-generator': {
    enabled: true,
    config: {
      contentTypes: [
        {
          uid: 'api::cartel.cartel',
          targetField: 'slug',
          frontend: {
            basePath: '/cartels',
          },
        },
      ],
    },
  },
};

Here we get cartel's field slug value, then we provide basePath's value inside frontend so that the downloaded qr code from the content manager includes it.

REST API

You can also get qr codes by querying qrcode-generator endpoint :

API Reference

Endpoint

  GET /qrcode-generator
ParameterDescription
download=trueMake it downloadable
filename=Filename of the file
url=Url to encode

Example:

http://localhost:1337/qrcode-generator?url=www.example.org&filename=example-qrcode&download=true

Roadmap

  • Additional qr code configs for rest api
  • Additional params for rest api
0.0.10-beta.0

6 months ago

0.1.0

6 months ago

0.1.1

6 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.0.1-beta.2

11 months ago

1.0.1-beta.1

11 months ago

1.0.1-beta.6

11 months ago

1.0.1-beta.5

11 months ago

1.0.1-beta.4

11 months ago

1.0.1-beta.3

11 months ago

1.0.1-beta.8

11 months ago

1.0.1-beta.7

11 months ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago