mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-04 18:37:45 +01:00
stub out domain rules page
This commit is contained in:
parent
03dfda7a17
commit
4bd47f728a
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 0d2cd4c482c19ee3385677e957bbd99ae2eafbb6
|
Subproject commit 32a636e5a5068f705b167f8f16dd15b53493b821
|
@ -15,6 +15,7 @@ import { RegisterComponent } from './accounts/register.component';
|
|||||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||||
|
|
||||||
import { AccountComponent } from './settings/account.component';
|
import { AccountComponent } from './settings/account.component';
|
||||||
|
import { DomainRulesComponent } from './settings/domain-rules.component';
|
||||||
import { OptionsComponent } from './settings/options.component';
|
import { OptionsComponent } from './settings/options.component';
|
||||||
import { SettingsComponent } from './settings/settings.component';
|
import { SettingsComponent } from './settings/settings.component';
|
||||||
|
|
||||||
@ -53,6 +54,7 @@ const routes: Routes = [
|
|||||||
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
||||||
{ path: 'account', component: AccountComponent, canActivate: [AuthGuardService] },
|
{ path: 'account', component: AccountComponent, canActivate: [AuthGuardService] },
|
||||||
{ path: 'options', component: OptionsComponent, canActivate: [AuthGuardService] },
|
{ path: 'options', component: OptionsComponent, canActivate: [AuthGuardService] },
|
||||||
|
{ path: 'domain-rules', component: DomainRulesComponent, canActivate: [AuthGuardService] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -37,6 +37,7 @@ import { ChangeEmailComponent } from './settings/change-email.component';
|
|||||||
import { ChangePasswordComponent } from './settings/change-password.component';
|
import { ChangePasswordComponent } from './settings/change-password.component';
|
||||||
import { DeauthorizeSessionsComponent } from './settings/deauthorize-sessions.component';
|
import { DeauthorizeSessionsComponent } from './settings/deauthorize-sessions.component';
|
||||||
import { DeleteAccountComponent } from './settings/delete-account.component';
|
import { DeleteAccountComponent } from './settings/delete-account.component';
|
||||||
|
import { DomainRulesComponent } from './settings/domain-rules.component';
|
||||||
import { OptionsComponent } from './settings/options.component';
|
import { OptionsComponent } from './settings/options.component';
|
||||||
import { ProfileComponent } from './settings/profile.component';
|
import { ProfileComponent } from './settings/profile.component';
|
||||||
import { PurgeVaultComponent } from './settings/purge-vault.component';
|
import { PurgeVaultComponent } from './settings/purge-vault.component';
|
||||||
@ -110,6 +111,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
|||||||
CollectionsComponent,
|
CollectionsComponent,
|
||||||
DeauthorizeSessionsComponent,
|
DeauthorizeSessionsComponent,
|
||||||
DeleteAccountComponent,
|
DeleteAccountComponent,
|
||||||
|
DomainRulesComponent,
|
||||||
ExportComponent,
|
ExportComponent,
|
||||||
FallbackSrcDirective,
|
FallbackSrcDirective,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
|
20
src/app/settings/domain-rules.component.html
Normal file
20
src/app/settings/domain-rules.component.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>{{'domainRules' | i18n}}</h1>
|
||||||
|
</div>
|
||||||
|
<p>{{'domainRulesDesc' | i18n}}</p>
|
||||||
|
<h2>{{'customEqDomains' | i18n}}</h2>
|
||||||
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="loading"></i>
|
||||||
|
<table class="table table-hover table-list" *ngIf="!loading && custom.length > 0">
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let d of custom">
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h2>{{'globalEqDomains' | i18n}}</h2>
|
||||||
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="loading"></i>
|
||||||
|
<table class="table table-hover table-list" *ngIf="!loading && global.length > 0">
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let d of global">
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
36
src/app/settings/domain-rules.component.ts
Normal file
36
src/app/settings/domain-rules.component.ts
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import {
|
||||||
|
Component,
|
||||||
|
OnInit,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
import { ToasterService } from 'angular2-toaster';
|
||||||
|
import { Angulartics2 } from 'angulartics2';
|
||||||
|
|
||||||
|
import { ApiService } from 'jslib/abstractions/api.service';
|
||||||
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||||
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||||
|
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-domain-rules',
|
||||||
|
templateUrl: 'domain-rules.component.html',
|
||||||
|
})
|
||||||
|
export class DomainRulesComponent implements OnInit {
|
||||||
|
loading = true;
|
||||||
|
custom: string[] = [];
|
||||||
|
global: string[] = [];
|
||||||
|
formPromise: Promise<any>;
|
||||||
|
|
||||||
|
constructor(private apiService: ApiService, private i18nService: I18nService,
|
||||||
|
private analytics: Angulartics2, private toasterService: ToasterService,
|
||||||
|
private cryptoService: CryptoService, private messagingService: MessagingService) { }
|
||||||
|
|
||||||
|
async ngOnInit() {
|
||||||
|
const response = await this.apiService.getSettingsDomains();
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
async submit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -914,5 +914,17 @@
|
|||||||
},
|
},
|
||||||
"default": {
|
"default": {
|
||||||
"message": "Default"
|
"message": "Default"
|
||||||
|
},
|
||||||
|
"domainRules": {
|
||||||
|
"message": "Domain Rules"
|
||||||
|
},
|
||||||
|
"domainRulesDesc": {
|
||||||
|
"message": "If you have the same login across multiple different website domains, you can mark the website as \"equivalent\". \"Global\" domains are ones already created for you by Bitwarden."
|
||||||
|
},
|
||||||
|
"globalEqRules": {
|
||||||
|
"message": "Global Equivalent Domains"
|
||||||
|
},
|
||||||
|
"customEqRules": {
|
||||||
|
"message": "Custom Equivalent Domains"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user