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:
parent
16b29c6116
commit
271510ffb5
@ -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,
|
||||||
|
@ -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,
|
||||||
|
3
src/app/settings/account.component.html
Normal file
3
src/app/settings/account.component.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<div class="page-header">
|
||||||
|
<h1>My Account</h1>
|
||||||
|
</div>
|
9
src/app/settings/account.component.ts
Normal file
9
src/app/settings/account.component.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import {
|
||||||
|
Component,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-account',
|
||||||
|
templateUrl: 'account.component.html',
|
||||||
|
})
|
||||||
|
export class AccountComponent { }
|
32
src/app/settings/settings.component.html
Normal file
32
src/app/settings/settings.component.html
Normal 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 & 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>
|
9
src/app/settings/settings.component.ts
Normal file
9
src/app/settings/settings.component.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import {
|
||||||
|
Component,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-settings',
|
||||||
|
templateUrl: 'settings.component.html',
|
||||||
|
})
|
||||||
|
export class SettingsComponent { }
|
Loading…
Reference in New Issue
Block a user