feat(system): add external services component (#335)

Fixes: #181
This commit is contained in:
Jonathan Zhang
2018-12-04 00:19:32 +05:30
committed by Abhay Chawla
parent 0a9d4892eb
commit 1c8e953e38
7 changed files with 119 additions and 3 deletions
+6
View File
@@ -19,9 +19,12 @@ import {
faChevronRight,
faCircle,
faClock,
faCloud,
faCog,
faCogs,
faCommentAlt,
faEdit,
faEnvelope,
faEye,
faEyeSlash,
faFileAlt,
@@ -79,9 +82,12 @@ library.add(
faChevronRight,
faCircle,
faClock,
faCloud,
faCog,
faCogs,
faCommentAlt,
faEdit,
faEnvelope,
faEye,
faEyeSlash,
faFileAlt,
@@ -0,0 +1,59 @@
<div class="container">
<mat-card>
<div fxLayout="row" fxLayout.lt-md="column">
<div fxFlex="50%">
<mat-nav-list>
<mat-list-item>
<mat-icon matListIcon>
<fa-icon icon="cloud" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>S3 Amazon External Service</h4>
<p matLine>S3 Amazon Service Configuration</p>
</mat-list-item>
<mat-list-item>
<mat-icon matListIcon>
<fa-icon icon="comment-alt" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>SMS External Service</h4>
<p matLine>SMS Service Configuration</p>
</mat-list-item>
</mat-nav-list>
</div>
<div fxFlex="50%">
<mat-nav-list>
<mat-list-item>
<mat-icon matListIcon>
<fa-icon icon="envelope" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Email External Service</h4>
<p matLine>Email Service Configuration</p>
</mat-list-item>
<mat-list-item>
<mat-icon matListIcon>
<fa-icon icon="bell" size="sm"></fa-icon>
</mat-icon>
<h4 matLine>Notification External Service</h4>
<p matLine>Notification Service Configuration</p>
</mat-list-item>
</mat-nav-list>
</div>
</div>
</mat-card>
</div>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ExternalServicesComponent } from './external-services.component';
describe('ExternalServicesComponent', () => {
let component: ExternalServicesComponent;
let fixture: ComponentFixture<ExternalServicesComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ExternalServicesComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ExternalServicesComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,18 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
/**
* External Services component.
*/
@Component({
selector: 'mifosx-external-services',
templateUrl: './external-services.component.html',
})
export class ExternalServicesComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
+7 -1
View File
@@ -9,6 +9,7 @@ import { extract } from '../core/i18n/i18n.service';
import { SystemComponent } from './system.component';
import { CodesComponent } from './codes/codes.component';
import { CreateCodeComponent } from './codes/create-code/create-code.component';
import { ExternalServicesComponent } from './external-services/external-services.component';
/** Custom Resolvers */
import { CodesResolver } from './codes/codes.resolver';
@@ -41,7 +42,12 @@ const routes: Routes = [
}
],
}
},
{
path: 'external-services',
component: ExternalServicesComponent,
data: { title: extract('External Services'), breadcrumb: 'External Services' },
},
]
}
])
+1 -1
View File
@@ -112,7 +112,7 @@
<p matLine>Preferences for generating account numbers for client, loan and savings accounts</p>
</mat-list-item>
<mat-list-item>
<mat-list-item [routerLink]="['external-services']">
<mat-icon matListIcon>
<fa-icon icon="cog" size="sm"></fa-icon>
</mat-icon>
+3 -1
View File
@@ -9,6 +9,7 @@ import { SystemRoutingModule } from './system-routing.module';
import { CodesComponent } from './codes/codes.component';
import { SystemComponent } from './system.component';
import { CreateCodeComponent } from './codes/create-code/create-code.component';
import { ExternalServicesComponent } from './external-services/external-services.component';
@NgModule({
imports: [
@@ -18,7 +19,8 @@ import { CreateCodeComponent } from './codes/create-code/create-code.component';
declarations: [
SystemComponent,
CodesComponent,
CreateCodeComponent
CreateCodeComponent,
ExternalServicesComponent,
]
})
export class SystemModule { }