update deps, fix PGP

This commit is contained in:
_Bastler 2022-11-30 15:16:57 +01:00
parent 7391ff1147
commit edecc344e7
5 changed files with 5959 additions and 5292 deletions

View File

@ -118,5 +118,8 @@
}
}
}},
"defaultProject": "we-bstly-angular"
"defaultProject": "we-bstly-angular",
"cli": {
"analytics": false
}
}

11168
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "we-bstly-angular",
"version": "0.0.0",
"version": "2.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
@ -11,50 +11,49 @@
},
"private": true,
"dependencies": {
"@angular-material-components/datetime-picker": "^7.0.1",
"@angular-material-components/moment-adapter": "^7.0.0",
"@angular/animations": "^13.3.3",
"@angular/cdk": "^13.3.2",
"@angular/common": "^13.3.3",
"@angular/compiler": "^13.3.3",
"@angular/core": "^13.3.3",
"@angular/flex-layout": "^13.0.0-beta.38",
"@angular/forms": "^13.3.3",
"@angular/material": "^13.3.2",
"@angular/material-moment-adapter": "^13.3.2",
"@angular/platform-browser": "^13.3.3",
"@angular/platform-browser-dynamic": "^13.3.3",
"@angular/router": "^13.3.3",
"moment": "^2.29.2",
"ng-qrcode": "^6.0.0",
"ngx-mat-timepicker": "^13.0.0",
"openpgp": "^5.2.1",
"qr-scanner": "^1.4.1",
"rxjs": "~7.5.5",
"tslib": "^2.3.1",
"@angular-material-components/datetime-picker": "^8.0.0",
"@angular-material-components/moment-adapter": "^8.0.0",
"@angular/animations": "^14.2.9",
"@angular/cdk": "^14.2.6",
"@angular/common": "^14.2.9",
"@angular/compiler": "^14.2.9",
"@angular/core": "^14.2.9",
"@angular/forms": "^14.2.9",
"@angular/material": "^14.2.7",
"@angular/material-moment-adapter": "^14.2.7",
"@angular/platform-browser": "^14.2.9",
"@angular/platform-browser-dynamic": "^14.2.9",
"@angular/router": "^14.2.9",
"moment": "^2.29.4",
"ng-qrcode": "^7.0.0",
"ngx-mat-timepicker": "^14.0.6",
"openpgp": "^5.5.0",
"qr-scanner": "^1.4.2",
"rxjs": "~7.5.7",
"tslib": "^2.4.1",
"unique-names-generator": "^4.7.1",
"zone.js": "~0.11.5"
"zone.js": "~0.12.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.3.2",
"@angular/cli": "^13.3.2",
"@angular/compiler-cli": "^13.3.3",
"@angular/localize": "^13.3.3",
"@types/jasmine": "^4.0.2",
"@angular-devkit/build-angular": "^14.2.8",
"@angular/cli": "^14.2.8",
"@angular/compiler-cli": "^14.2.9",
"@angular/localize": "^14.2.9",
"@types/jasmine": "^4.3.0",
"@types/jasminewd2": "^2.0.10",
"@types/node": "^17.0.23",
"@types/node": "^18.11.9",
"@types/openpgp": "^4.4.18",
"codelyzer": "^6.0.2",
"jasmine-core": "~4.1.0",
"jasmine-core": "~4.5.0",
"jasmine-spec-reporter": "~7.0.0",
"karma": "^6.3.18",
"karma": "^6.4.1",
"karma-chrome-launcher": "~3.1.1",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~5.0.0",
"karma-jasmine-html-reporter": "^1.7.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.0.0",
"protractor": "~7.0.0",
"ts-node": "~10.7.0",
"ts-node": "~10.9.1",
"tslint": "~6.1.0",
"typescript": "~4.6.3"
"typescript": "~4.8.3"
}
}

View File

@ -43,7 +43,6 @@ import {MatPaginatorModule} from '@angular/material/paginator';
import {MatSortModule} from '@angular/material/sort';
import {MatTableModule} from '@angular/material/table';
import {MatMomentDateModule} from '@angular/material-moment-adapter';
import {FlexLayoutModule} from '@angular/flex-layout';
import { NgxMatMomentModule } from '@angular-material-components/moment-adapter';
@ -94,7 +93,6 @@ import { NgxMatTimepickerModule } from 'ngx-mat-timepicker';
MatSortModule,
MatTableModule,
MatMomentDateModule,
FlexLayoutModule,
NgxMatMomentModule,
NgxMatDatetimePickerModule,
NgxMatNativeDateModule,
@ -136,7 +134,6 @@ import { NgxMatTimepickerModule } from 'ngx-mat-timepicker';
MatPaginatorModule,
MatSortModule,
MatTableModule,
FlexLayoutModule,
NgxMatDatetimePickerModule,
NgxMatNativeDateModule,
NgxMatTimepickerModule

View File

@ -36,14 +36,14 @@ export class ProfileFieldPgpBlob implements OnInit {
}
let pgpOption = {
userIds: [ { name: auth.principal.username, email: auth.principal.username + "@we.bstly.de" } ],
userIDs: [ { name: auth.principal.username, email: auth.principal.username + "@we.bstly.de" } ],
curve: "ed25519",
}
openpgp.generateKey(pgpOption).then((key) => {
this.data = {};
this.data.privateKey = key.privateKeyArmored;
this.data.publicKey = key.publicKeyArmored;
this.data.privateKey = key.privateKey;
this.data.publicKey = key.publicKey;
this.downloadKey.nativeElement.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(this.data.privateKey));
this.downloadKey.nativeElement.setAttribute('download', auth.principal.username + ".private.key");