1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

stub out settings

This commit is contained in:
Kyle Spearrin 2018-06-20 22:27:37 -04:00
parent 16b29c6116
commit 271510ffb5
6 changed files with 69 additions and 0 deletions

View File

@ -14,6 +14,9 @@ import { LoginComponent } from './accounts/login.component';
import { RegisterComponent } from './accounts/register.component'; 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 { SettingsComponent } from './settings/settings.component';
import { ExportComponent } from './tools/export.component'; import { ExportComponent } from './tools/export.component';
import { ImportComponent } from './tools/import.component'; import { ImportComponent } from './tools/import.component';
import { PasswordGeneratorComponent } from './tools/password-generator.component'; import { PasswordGeneratorComponent } from './tools/password-generator.component';
@ -42,6 +45,14 @@ const routes: Routes = [
component: UserLayoutComponent, component: UserLayoutComponent,
children: [ children: [
{ path: 'vault', component: VaultComponent, canActivate: [AuthGuardService] }, { path: 'vault', component: VaultComponent, canActivate: [AuthGuardService] },
{
path: 'settings',
component: SettingsComponent,
children: [
{ path: '', pathMatch: 'full', redirectTo: 'account' },
{ path: 'account', component: AccountComponent, canActivate: [AuthGuardService] },
],
},
{ {
path: 'tools', path: 'tools',
component: ToolsComponent, component: ToolsComponent,

View File

@ -29,6 +29,9 @@ import { RegisterComponent } from './accounts/register.component';
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component'; import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
import { TwoFactorComponent } from './accounts/two-factor.component'; import { TwoFactorComponent } from './accounts/two-factor.component';
import { AccountComponent } from './settings/account.component';
import { SettingsComponent } from './settings/settings.component';
import { ExportComponent } from './tools/export.component'; import { ExportComponent } from './tools/export.component';
import { ImportComponent } from './tools/import.component'; import { ImportComponent } from './tools/import.component';
import { PasswordGeneratorHistoryComponent } from './tools/password-generator-history.component'; import { PasswordGeneratorHistoryComponent } from './tools/password-generator-history.component';
@ -78,6 +81,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
ToasterModule, ToasterModule,
], ],
declarations: [ declarations: [
AccountComponent,
AddEditComponent, AddEditComponent,
ApiActionDirective, ApiActionDirective,
AppComponent, AppComponent,
@ -111,6 +115,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
PasswordGeneratorHistoryComponent, PasswordGeneratorHistoryComponent,
RegisterComponent, RegisterComponent,
SearchCiphersPipe, SearchCiphersPipe,
SettingsComponent,
ShareComponent, ShareComponent,
StopClickDirective, StopClickDirective,
StopPropDirective, StopPropDirective,

View File

@ -0,0 +1,3 @@
<div class="page-header">
<h1>My Account</h1>
</div>

View File

@ -0,0 +1,9 @@
import {
Component,
} from '@angular/core';
@Component({
selector: 'app-account',
templateUrl: 'account.component.html',
})
export class AccountComponent { }

View File

@ -0,0 +1,32 @@
<div class="container page-content">
<div class="row">
<div class="col-3">
<div class="card">
<div class="card-header">Settings</div>
<div class="list-group list-group-flush">
<a routerLink="account" class="list-group-item" routerLinkActive="active">
My Account
</a>
<a routerLink="options" class="list-group-item" routerLinkActive="active">
Options
</a>
<a routerLink="organizations" class="list-group-item" routerLinkActive="active">
Organizations
</a>
<a routerLink="billing" class="list-group-item" routerLinkActive="active">
Billing &amp; Licensing
</a>
<a routerLink="two-step" class="list-group-item" routerLinkActive="active">
Two-step Login
</a>
<a routerLink="domain-rules" class="list-group-item" routerLinkActive="active">
Domain Rules
</a>
</div>
</div>
</div>
<div class="col-9">
<router-outlet></router-outlet>
</div>
</div>
</div>

View File

@ -0,0 +1,9 @@
import {
Component,
} from '@angular/core';
@Component({
selector: 'app-settings',
templateUrl: 'settings.component.html',
})
export class SettingsComponent { }