diff --git a/README.md b/README.md index ad711c3..925103f 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,18 @@ [![Angular Logo](https://www.vectorlogo.zone/logos/angular/angular-icon.svg)](https://angular.io/) [![Electron Logo](https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg)](https://electronjs.org/) -[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE.md) [![Website shields.io](https://img.shields.io/website-up-down-green-red/http/shields.io.svg)](https://dta.agency) +[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE) [![Website dta.agency](https://img.shields.io/website-up-down-green-red/http/shields.io.svg)](https://dta.agency) [![Actions Status](https://github.com/digital-technology-agency/password-generator/workflows/Build/badge.svg)](https://github.com/digital-technology-agency/password-generator/actions) -![GitHub release (latest by date)](https://img.shields.io/github/v/release/digital-technology-agency/password-generator) +[![GitHub release](https://img.shields.io/github/v/release/digital-technology-agency/password-generator)](https://github.com/digital-technology-agency/password-generator/releases/latest) This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.3. ### Facilities -![GitHub closed issues](https://img.shields.io/github/issues/digital-technology-agency/password-generator?style=flat) -![GitHub closed issues](https://img.shields.io/github/issues-closed/digital-technology-agency/password-generator?style=flat) -![GitHub commit activity](https://img.shields.io/github/commit-activity/m/digital-technology-agency/password-generator) +[![GitHub issues](https://img.shields.io/github/issues/digital-technology-agency/password-generator?color=0A0ECD)](https://github.com/digital-technology-agency/password-generator/issues?q=is%3Aopen+is%3Aissue) +[![GitHub closed issues](https://img.shields.io/github/issues-closed/digital-technology-agency/password-generator?style=flat)](https://github.com/digital-technology-agency/password-generator/issues?q=is%3Aissue+is%3Aclosed) ## Create a card with password and resource information -![Windows app](./pic/create-card-information.png) +![Card information](./pic/create-card-information.png) * Saving a set of cards to a file * Loading a set of cards from a file @@ -27,17 +26,17 @@ This project was generated with [Angular CLI](https://github.com/angular/angular * Popular installers * Tray app ## Options view -![Windows app](./pic/setting-view.png) +![Settings view](./pic/setting-view.png) ## 2FA ![2FA example](./pic/2fa.png) ## Localization -![Windows app](./pic/localization.png) +![Localization](./pic/localization.png) ## Create certificate RSA -![Windows app](./pic/create-certificate.png) -![Windows app](./pic/rsa-list.png) +![Create certificate](./pic/create-certificate.png) +![RSA list](./pic/rsa-list.png) ## Downloads diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index ab952e5..25e05c8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,7 +2,6 @@ import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {CertificatesComponent} from './certificates/certificates.component'; import {PasswordCardsComponent} from './password-cards/password-cards.component'; -import {AuthenticatorComponent} from './authenticator/authenticator.component'; import {SettingViewComponent} from './setting-view/setting-view.component'; const routes: Routes = [ @@ -14,10 +13,6 @@ const routes: Routes = [ path: 'password-cards', component: PasswordCardsComponent, }, - { - path: 'authenticator', - component: AuthenticatorComponent, - }, { path: 'settings', component: SettingViewComponent, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 242bf12..94ef74a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -32,7 +32,6 @@ import {CertificateItemComponent} from './certificates/certificate-item/certific import {MatCardModule} from '@angular/material/card'; import {MatSliderModule} from '@angular/material/slider'; import {MatCheckboxModule} from '@angular/material/checkbox'; -import {AuthenticatorComponent} from './authenticator/authenticator.component'; import {GoogleSettingsComponent} from './dialogs/autenticator/google-settings/google-settings.component'; import { SettingViewComponent } from './setting-view/setting-view.component'; import {MatRadioModule} from '@angular/material/radio'; @@ -71,7 +70,6 @@ const MATERIAL_MODULES = [ CertificatesComponent, PasswordCardsComponent, CertificateItemComponent, - AuthenticatorComponent, SettingViewComponent, ], imports: [ diff --git a/src/app/authenticator/authenticator.component.html b/src/app/authenticator/authenticator.component.html deleted file mode 100644 index a9878a8..0000000 --- a/src/app/authenticator/authenticator.component.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - {{ 'Create 2FA' | translate }} - - - Validate 2FA - - - {{ 'Token' | translate }} - - verifed ({{verifed}}) - - - diff --git a/src/app/authenticator/authenticator.component.scss b/src/app/authenticator/authenticator.component.scss deleted file mode 100644 index 9633d15..0000000 --- a/src/app/authenticator/authenticator.component.scss +++ /dev/null @@ -1,3 +0,0 @@ -.example-spacer { - flex: 1 1 auto; -} diff --git a/src/app/authenticator/authenticator.component.ts b/src/app/authenticator/authenticator.component.ts deleted file mode 100644 index 2660a04..0000000 --- a/src/app/authenticator/authenticator.component.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {Component, OnInit} from '@angular/core'; -import {MatDialog} from '@angular/material/dialog'; -import {GoogleSettingsComponent} from '../dialogs/autenticator/google-settings/google-settings.component'; -import {Auth2faService} from '../@core/services/auth-2fa-service'; - -@Component({ - selector: 'app-authenticator', - templateUrl: './authenticator.component.html', - styleUrls: ['./authenticator.component.scss'], -}) -export class AuthenticatorComponent implements OnInit { - - verifedNumber: any; - - constructor(public dialog: MatDialog, - private auth2Fa: Auth2faService) { - } - - ngOnInit(): void { - } - - initSettings() { - const dialogRef = this.dialog.open(GoogleSettingsComponent, { - height: 'auto', - width: '300px', - data: { - item: this.auth2Fa.secret, - title: '2FA Settings', - }, - }); - dialogRef.afterClosed().subscribe(result => { - this.auth2Fa.saveSettings(result); - }); - } - - get verifed() { - return this.auth2Fa.verifed(this.verifedNumber); - } -}