mirror of
https://github.com/bitwarden/browser
synced 2025-01-04 14:22:50 +01:00
Fix formatting and style
This commit is contained in:
parent
da636e26c2
commit
078111a4fc
@ -23,6 +23,7 @@ import { SsoComponent } from './accounts/sso.component';
|
||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||
import { PrivateModeComponent } from './private-mode.component';
|
||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||
import { ExportComponent } from './settings/export.component';
|
||||
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
||||
import { FoldersComponent } from './settings/folders.component';
|
||||
@ -40,7 +41,6 @@ import { GroupingsComponent } from './vault/groupings.component';
|
||||
import { PasswordHistoryComponent } from './vault/password-history.component';
|
||||
import { ShareComponent } from './vault/share.component';
|
||||
import { ViewComponent } from './vault/view.component';
|
||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
|
@ -29,6 +29,7 @@ import { AppComponent } from './app.component';
|
||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||
import { PrivateModeComponent } from './private-mode.component';
|
||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||
import { ExportComponent } from './settings/export.component';
|
||||
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
||||
import { FoldersComponent } from './settings/folders.component';
|
||||
@ -46,7 +47,6 @@ import { GroupingsComponent } from './vault/groupings.component';
|
||||
import { PasswordHistoryComponent } from './vault/password-history.component';
|
||||
import { ShareComponent } from './vault/share.component';
|
||||
import { ViewComponent } from './vault/view.component';
|
||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||
|
||||
import { A11yTitleDirective } from 'jslib/angular/directives/a11y-title.directive';
|
||||
import { ApiActionDirective } from 'jslib/angular/directives/api-action.directive';
|
||||
|
@ -1,18 +1,19 @@
|
||||
import {
|
||||
Component,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
NgZone,
|
||||
OnDestroy
|
||||
NgZone
|
||||
} from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
import { StorageService } from 'jslib/abstractions/storage.service';
|
||||
import { ConstantsService } from 'jslib/services/constants.service';
|
||||
import { BrowserApi } from '../../browser/browserApi';
|
||||
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
|
||||
|
||||
import { BrowserApi } from '../../browser/browserApi';
|
||||
import { Utils } from 'jslib/misc/utils';
|
||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||
|
||||
interface ExcludedDomain {
|
||||
uri: string,
|
||||
@ -40,7 +41,7 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy {
|
||||
const savedDomains = await this.storageService.get<any>(ConstantsService.neverDomainsKey);
|
||||
if (savedDomains) {
|
||||
for (const uri of Object.keys(savedDomains)) {
|
||||
this.excludedDomains.push({uri: uri, showCurrentUris: false})
|
||||
this.excludedDomains.push({ uri: uri, showCurrentUris: false })
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +69,7 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
async addUri() {
|
||||
this.excludedDomains.push({uri: '', showCurrentUris: false})
|
||||
this.excludedDomains.push({ uri: '', showCurrentUris: false })
|
||||
}
|
||||
|
||||
async removeUri(i: number) {
|
||||
@ -76,7 +77,7 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
async submit() {
|
||||
const savedDomains: {[name: string]: null} = {};
|
||||
const savedDomains: { [name: string]: null } = {};
|
||||
for (const domain of this.excludedDomains) {
|
||||
if (domain.uri && domain.uri !== '') {
|
||||
const validDomain = Utils.getHostname(domain.uri);
|
||||
@ -108,4 +109,4 @@ export class ExcludedDomainsComponent implements OnInit, OnDestroy {
|
||||
this.currentUris = Array.from(uriSet);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user