1.7.13 • Published 6 years ago

oneaccount-js-core v1.7.13

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Usage

let oneaccountCore = new OneaccountCore(
  this.externalId,
  {
    level: this.level,
    color: this.color
  }
);
let qrcode = oneaccountCore.QRCode(3 * 60 * 1000);
let qrcodeDOM = toDOM(qrcode); // note, you need to implement toVDOM function (please see notes below)
document.body.appendChild(qrcodeDOM)'

Options

GlobalCSS

Returns CSS for the library (to be injected into HTML)

Data

Returns current data in the qr-code

UUID

Returns current uuid

Expires

Returns current time to expire

URL

Returns current URL

Title

Returns default title

Subtitle

Returns default subtitle

All icons:

IconCross (color: string, className: string)

IconAndroid (color: string, className: string)

IconIOS (color: string, className: string)

Logo (color: string, className: string)

LoadingLogo (color: string, className: string)

Spinner (colors: string, className: string)

NOTE: All icons return internal object representation of svg that needs to be converted to VDOM/DOM/String or any other format you need. (please check oneaccount-react or oneaccount-angular if you need an example of how they are used)

QRCode (updateInterval: number = 1 60 1000)

Generates qr-code (updates URL, data, uuid and expires) Returns internal object representation of svg

1.7.13

6 years ago

1.7.12

6 years ago

1.7.11

6 years ago

1.7.10

6 years ago

1.7.9

6 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.19

6 years ago

1.4.18

6 years ago

1.4.17

6 years ago

1.4.16

6 years ago

1.4.15

6 years ago

1.4.14

6 years ago

1.4.13

6 years ago

1.4.12

6 years ago

1.4.11

6 years ago

1.4.10

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.14

6 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago