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 { AccountComponent } from './settings/account.component';
|
||||
import { DomainRulesComponent } from './settings/domain-rules.component';
|
||||
import { OptionsComponent } from './settings/options.component';
|
||||
import { SettingsComponent } from './settings/settings.component';
|
||||
|
||||
|
@ -53,6 +54,7 @@ const routes: Routes = [
|
|||
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
||||
{ path: 'account', component: AccountComponent, 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 { DeauthorizeSessionsComponent } from './settings/deauthorize-sessions.component';
|
||||
import { DeleteAccountComponent } from './settings/delete-account.component';
|
||||
import { DomainRulesComponent } from './settings/domain-rules.component';
|
||||
import { OptionsComponent } from './settings/options.component';
|
||||
import { ProfileComponent } from './settings/profile.component';
|
||||
import { PurgeVaultComponent } from './settings/purge-vault.component';
|
||||
|
@ -110,6 +111,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
|
|||
CollectionsComponent,
|
||||
DeauthorizeSessionsComponent,
|
||||
DeleteAccountComponent,
|
||||
DomainRulesComponent,
|
||||
ExportComponent,
|
||||
FallbackSrcDirective,
|
||||
FolderAddEditComponent,
|
||||
|
|
|
@ -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>
|
|
@ -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": {
|
||||
"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