Upgrading frontend to Angular 13

This commit is contained in:
softsimon
2021-12-08 20:24:33 +04:00
parent ef55850c78
commit 383f7803c8
7 changed files with 3683 additions and 8760 deletions

View File

@@ -1,5 +1,5 @@
import { Component, Input, AfterViewInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
import * as QRCode from 'qrcode/build/qrcode.js';
import { Component, Input, AfterViewInit, ViewChild, ElementRef } from '@angular/core';
import * as QRCode from 'qrcode';
import { StateService } from 'src/app/services/state.service';
@Component({
@@ -23,7 +23,7 @@ export class QrcodeComponent implements AfterViewInit {
if (!this.stateService.isBrowser) {
return;
}
const opts = {
const opts: QRCode.QRCodeRenderersOptions = {
errorCorrectionLevel: 'H',
margin: 0,
color: {
@@ -31,7 +31,6 @@ export class QrcodeComponent implements AfterViewInit {
light: '#fff'
},
width: this.size,
height: this.size,
};
if (!this.data) {