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 { RegisterComponent } from './accounts/register.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.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 { VaultComponent } from './vault/vault.component';
|
||||||
|
|
||||||
import { UnauthGuardService } from './services/unauth-guard.service';
|
import { UnauthGuardService } from './services/unauth-guard.service';
|
||||||
|
@ -37,6 +41,15 @@ const routes: Routes = [
|
||||||
component: UserLayoutComponent,
|
component: UserLayoutComponent,
|
||||||
children: [
|
children: [
|
||||||
{ path: 'vault', component: VaultComponent, canActivate: [AuthGuardService] },
|
{ 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 { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.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 { AddEditComponent } from './vault/add-edit.component';
|
||||||
import { AttachmentsComponent } from './vault/attachments.component';
|
import { AttachmentsComponent } from './vault/attachments.component';
|
||||||
import { CiphersComponent } from './vault/ciphers.component';
|
import { CiphersComponent } from './vault/ciphers.component';
|
||||||
|
@ -75,6 +79,7 @@ import { Folder } from 'jslib/models/domain';
|
||||||
BlurClickDirective,
|
BlurClickDirective,
|
||||||
BoxRowDirective,
|
BoxRowDirective,
|
||||||
CiphersComponent,
|
CiphersComponent,
|
||||||
|
ExportComponent,
|
||||||
FallbackSrcDirective,
|
FallbackSrcDirective,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
FooterComponent,
|
FooterComponent,
|
||||||
|
@ -83,6 +88,7 @@ import { Folder } from 'jslib/models/domain';
|
||||||
HintComponent,
|
HintComponent,
|
||||||
IconComponent,
|
IconComponent,
|
||||||
I18nPipe,
|
I18nPipe,
|
||||||
|
ImportComponent,
|
||||||
InputVerbatimDirective,
|
InputVerbatimDirective,
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
|
@ -93,6 +99,7 @@ import { Folder } from 'jslib/models/domain';
|
||||||
SearchCiphersPipe,
|
SearchCiphersPipe,
|
||||||
StopClickDirective,
|
StopClickDirective,
|
||||||
StopPropDirective,
|
StopPropDirective,
|
||||||
|
ToolsComponent,
|
||||||
TrueFalseValueDirective,
|
TrueFalseValueDirective,
|
||||||
TwoFactorComponent,
|
TwoFactorComponent,
|
||||||
TwoFactorOptionsComponent,
|
TwoFactorOptionsComponent,
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<h1>Export</h1>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import {
|
||||||
|
Component,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-export',
|
||||||
|
templateUrl: 'export.component.html',
|
||||||
|
})
|
||||||
|
export class ExportComponent { }
|
|
@ -0,0 +1 @@
|
||||||
|
<h1>Import</h1>
|
|
@ -0,0 +1,9 @@
|
||||||
|
import {
|
||||||
|
Component,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-import',
|
||||||
|
templateUrl: 'import.component.html',
|
||||||
|
})
|
||||||
|
export class ImportComponent { }
|
|
@ -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>
|
|
@ -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