mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
tools pages stubbed out
This commit is contained in:
parent
a176a4819f
commit
945d661a1e
@ -14,6 +14,10 @@ import { LoginComponent } from './accounts/login.component';
|
||||
import { RegisterComponent } from './accounts/register.component';
|
||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||
|
||||
import { ExportComponent } from './tools/export.component';
|
||||
import { ImportComponent } from './tools/import.component';
|
||||
import { ToolsComponent } from './tools/tools.component';
|
||||
|
||||
import { VaultComponent } from './vault/vault.component';
|
||||
|
||||
import { UnauthGuardService } from './services/unauth-guard.service';
|
||||
@ -37,6 +41,15 @@ const routes: Routes = [
|
||||
component: UserLayoutComponent,
|
||||
children: [
|
||||
{ path: 'vault', component: VaultComponent, canActivate: [AuthGuardService] },
|
||||
{
|
||||
path: 'tools',
|
||||
component: ToolsComponent,
|
||||
children: [
|
||||
{ path: '', pathMatch: 'full', redirectTo: 'import' },
|
||||
{ path: 'import', component: ImportComponent, canActivate: [AuthGuardService] },
|
||||
{ path: 'export', component: ExportComponent, canActivate: [AuthGuardService] },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -29,6 +29,10 @@ import { RegisterComponent } from './accounts/register.component';
|
||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||
|
||||
import { ExportComponent } from './tools/export.component';
|
||||
import { ImportComponent } from './tools/import.component';
|
||||
import { ToolsComponent } from './tools/tools.component';
|
||||
|
||||
import { AddEditComponent } from './vault/add-edit.component';
|
||||
import { AttachmentsComponent } from './vault/attachments.component';
|
||||
import { CiphersComponent } from './vault/ciphers.component';
|
||||
@ -75,6 +79,7 @@ import { Folder } from 'jslib/models/domain';
|
||||
BlurClickDirective,
|
||||
BoxRowDirective,
|
||||
CiphersComponent,
|
||||
ExportComponent,
|
||||
FallbackSrcDirective,
|
||||
FolderAddEditComponent,
|
||||
FooterComponent,
|
||||
@ -83,6 +88,7 @@ import { Folder } from 'jslib/models/domain';
|
||||
HintComponent,
|
||||
IconComponent,
|
||||
I18nPipe,
|
||||
ImportComponent,
|
||||
InputVerbatimDirective,
|
||||
LockComponent,
|
||||
LoginComponent,
|
||||
@ -93,6 +99,7 @@ import { Folder } from 'jslib/models/domain';
|
||||
SearchCiphersPipe,
|
||||
StopClickDirective,
|
||||
StopPropDirective,
|
||||
ToolsComponent,
|
||||
TrueFalseValueDirective,
|
||||
TwoFactorComponent,
|
||||
TwoFactorOptionsComponent,
|
||||
|
1
src/app/tools/export.component.html
Normal file
1
src/app/tools/export.component.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>Export</h1>
|
9
src/app/tools/export.component.ts
Normal file
9
src/app/tools/export.component.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import {
|
||||
Component,
|
||||
} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-export',
|
||||
templateUrl: 'export.component.html',
|
||||
})
|
||||
export class ExportComponent { }
|
1
src/app/tools/import.component.html
Normal file
1
src/app/tools/import.component.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>Import</h1>
|
9
src/app/tools/import.component.ts
Normal file
9
src/app/tools/import.component.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import {
|
||||
Component,
|
||||
} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-import',
|
||||
templateUrl: 'import.component.html',
|
||||
})
|
||||
export class ImportComponent { }
|
19
src/app/tools/tools.component.html
Normal file
19
src/app/tools/tools.component.html
Normal file
@ -0,0 +1,19 @@
|
||||
<div class="container page-content">
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="card">
|
||||
<div class="card-header">Tools</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a routerLink="import" class="list-group-item" routerLinkActive="active">
|
||||
Import
|
||||
</a>
|
||||
<a routerLink="export" class="list-group-item" routerLinkActive="active">
|
||||
Export</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
9
src/app/tools/tools.component.ts
Normal file
9
src/app/tools/tools.component.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import {
|
||||
Component,
|
||||
} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-tools',
|
||||
templateUrl: 'tools.component.html',
|
||||
})
|
||||
export class ToolsComponent { }
|
Loading…
Reference in New Issue
Block a user