tools pages stubbed out

This commit is contained in:
Kyle Spearrin 2018-06-09 23:33:12 -04:00
parent a176a4819f
commit 945d661a1e
8 changed files with 68 additions and 0 deletions

View File

@ -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] },
],
},
],
},
{

View File

@ -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,

View File

@ -0,0 +1 @@
<h1>Export</h1>

View File

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

View File

@ -0,0 +1 @@
<h1>Import</h1>

View File

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

View 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>

View File

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