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

View File

@ -36,14 +36,14 @@ export class ProfileFieldPgpBlob implements OnInit {
} }
let pgpOption = { 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", curve: "ed25519",
} }
openpgp.generateKey(pgpOption).then((key) => { openpgp.generateKey(pgpOption).then((key) => {
this.data = {}; this.data = {};
this.data.privateKey = key.privateKeyArmored; this.data.privateKey = key.privateKey;
this.data.publicKey = key.publicKeyArmored; this.data.publicKey = key.publicKey;
this.downloadKey.nativeElement.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(this.data.privateKey)); 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"); this.downloadKey.nativeElement.setAttribute('download', auth.principal.username + ".private.key");