refractor: delete redundant files (#295)
* Remove obsolete index.ts files. * Remove About Module. Fixes #294
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
|
||||||
import { AboutComponent } from './about.component';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
Route.withShell([
|
|
||||||
{
|
|
||||||
path: 'about',
|
|
||||||
component: AboutComponent,
|
|
||||||
data: { title: extract('About') }
|
|
||||||
}
|
|
||||||
])
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forChild(routes)],
|
|
||||||
exports: [RouterModule],
|
|
||||||
providers: []
|
|
||||||
})
|
|
||||||
export class AboutRoutingModule { }
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<div>
|
|
||||||
<div>
|
|
||||||
<h1>
|
|
||||||
<span translate>APP_NAME</span>
|
|
||||||
</h1>
|
|
||||||
<p>
|
|
||||||
<span translate>Version</span>{{version}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
|
|
||||||
import { AboutComponent } from './about.component';
|
|
||||||
|
|
||||||
describe('AboutComponent', () => {
|
|
||||||
let component: AboutComponent;
|
|
||||||
let fixture: ComponentFixture<AboutComponent>;
|
|
||||||
|
|
||||||
beforeEach(async(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [AboutComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(AboutComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
|
||||||
|
|
||||||
import { environment } from '../../environments/environment';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'mifosx-about',
|
|
||||||
templateUrl: './about.component.html',
|
|
||||||
styleUrls: ['./about.component.scss']
|
|
||||||
})
|
|
||||||
export class AboutComponent implements OnInit {
|
|
||||||
|
|
||||||
version: string = environment.version;
|
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
|
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { AboutRoutingModule } from './about-routing.module';
|
|
||||||
import { AboutComponent } from './about.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
TranslateModule,
|
|
||||||
AboutRoutingModule
|
|
||||||
],
|
|
||||||
declarations: [
|
|
||||||
AboutComponent
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export class AboutModule { }
|
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
import { AccountingComponent } from './accounting.component';
|
import { AccountingComponent } from './accounting.component';
|
||||||
import { FrequentPostingsComponent } from './frequent-postings/frequent-postings.component';
|
import { FrequentPostingsComponent } from './frequent-postings/frequent-postings.component';
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import { CoreModule } from './core/core.module';
|
|||||||
import { HomeModule } from './home/home.module';
|
import { HomeModule } from './home/home.module';
|
||||||
import { LoginModule } from './login/login.module';
|
import { LoginModule } from './login/login.module';
|
||||||
import { SettingsModule } from './settings/settings.module';
|
import { SettingsModule } from './settings/settings.module';
|
||||||
import { AboutModule } from './about/about.module'; // TODO: Remove redundant module.
|
|
||||||
import { NavigationModule } from './navigation/navigation.module';
|
import { NavigationModule } from './navigation/navigation.module';
|
||||||
import { ClientsModule} from './clients/clients.module';
|
import { ClientsModule} from './clients/clients.module';
|
||||||
import { GroupsModule } from './groups/groups.module';
|
import { GroupsModule } from './groups/groups.module';
|
||||||
@@ -50,7 +49,6 @@ import { AppRoutingModule } from './app-routing.module';
|
|||||||
HomeModule,
|
HomeModule,
|
||||||
LoginModule,
|
LoginModule,
|
||||||
SettingsModule,
|
SettingsModule,
|
||||||
AboutModule,
|
|
||||||
NavigationModule,
|
NavigationModule,
|
||||||
ClientsModule,
|
ClientsModule,
|
||||||
GroupsModule,
|
GroupsModule,
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
import { CentersComponent } from './centers.component';
|
import { CentersComponent } from './centers.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
import { ClientsComponent } from './clients.component';
|
import { ClientsComponent } from './clients.component';
|
||||||
import { CreateClientComponent} from './create-client/create-client.component';
|
import { CreateClientComponent} from './create-client/create-client.component';
|
||||||
import { ViewClientComponent } from './view-client/view-client.component';
|
import { ViewClientComponent } from './view-client/view-client.component';
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { AuthenticationInterceptor } from './authentication/authentication.inter
|
|||||||
import { RouteReusableStrategy } from './route/route-reusable-strategy';
|
import { RouteReusableStrategy } from './route/route-reusable-strategy';
|
||||||
|
|
||||||
/** Custom Modules */
|
/** Custom Modules */
|
||||||
import { SharedModule } from '../shared';
|
import { SharedModule } from '../shared/shared.module';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { ShellComponent } from './shell/shell.component';
|
import { ShellComponent } from './shell/shell.component';
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
export * from './core.module';
|
|
||||||
export * from './authentication/authentication.service';
|
|
||||||
export * from './authentication/authentication.guard';
|
|
||||||
export * from './http/http.service';
|
|
||||||
export * from './http/http-cache.service';
|
|
||||||
export * from './http/api-prefix.interceptor';
|
|
||||||
export * from './http/cache.interceptor';
|
|
||||||
export * from './http/error-handler.interceptor';
|
|
||||||
export * from './i18n/i18n.service';
|
|
||||||
export * from './route/route.service';
|
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
import { GroupsComponent } from './groups.component';
|
import { GroupsComponent } from './groups.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
import { HomeComponent } from './home.component';
|
import { HomeComponent } from './home.component';
|
||||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
import { NgxChartsModule } from '@swimlane/ngx-charts';
|
||||||
|
|
||||||
import { CoreModule } from '../core/core.module';
|
import { CoreModule } from '../core/core.module';
|
||||||
import { SharedModule } from '../shared';
|
import { SharedModule } from '../shared/shared.module';
|
||||||
import { HomeRoutingModule } from './home-routing.module';
|
import { HomeRoutingModule } from './home-routing.module';
|
||||||
import { HomeComponent } from './home.component';
|
import { HomeComponent } from './home.component';
|
||||||
import { QuoteService } from './quote.service';
|
import { QuoteService } from './quote.service';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|||||||
import { finalize } from 'rxjs/operators';
|
import { finalize } from 'rxjs/operators';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AuthenticationService } from '../../core';
|
import { AuthenticationService } from '../../core/authentication/authentication.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login form component.
|
* Login form component.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
|
|||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
/** Transalation Imports */
|
/** Transalation Imports */
|
||||||
import { extract } from '../core';
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { LoginComponent } from './login.component';
|
import { LoginComponent } from './login.component';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
/** Custom Modules */
|
/** Custom Modules */
|
||||||
import { SharedModule } from '../shared';
|
import { SharedModule } from '../shared/shared.module';
|
||||||
import { LoginRoutingModule } from './login-routing.module';
|
import { LoginRoutingModule } from './login-routing.module';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|||||||
import { finalize } from 'rxjs/operators';
|
import { finalize } from 'rxjs/operators';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AuthenticationService } from '../../core';
|
import { AuthenticationService } from '../../core/authentication/authentication.service';
|
||||||
|
|
||||||
/** Custom Validators */
|
/** Custom Validators */
|
||||||
import { confirmPasswordValidator } from './confirm-password.validator';
|
import { confirmPasswordValidator } from './confirm-password.validator';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|||||||
import { finalize } from 'rxjs/operators';
|
import { finalize } from 'rxjs/operators';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AuthenticationService } from '../../core';
|
import { AuthenticationService } from '../../core/authentication/authentication.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Two factor authentication component.
|
* Two factor authentication component.
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
|
/** Angular Imports */
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Route, extract } from '../core';
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
|
/** Custom Components */
|
||||||
import { NavigationComponent } from './navigation.component';
|
import { NavigationComponent } from './navigation.component';
|
||||||
|
|
||||||
|
/** Navigation Routes */
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
Route.withShell([
|
Route.withShell([
|
||||||
{
|
{
|
||||||
@@ -14,6 +22,11 @@ const routes: Routes = [
|
|||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Navigation Module
|
||||||
|
*
|
||||||
|
* Configures the navigation (by offices) routes.
|
||||||
|
*/
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild(routes)],
|
imports: [RouterModule.forChild(routes)],
|
||||||
exports: [RouterModule],
|
exports: [RouterModule],
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
|
|||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
/** Routing Imports */
|
/** Routing Imports */
|
||||||
import { Route } from '../core';
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
/** Translation Imports */
|
/** Translation Imports */
|
||||||
import { extract } from '../core';
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { SelfServiceComponent } from './self-service.component';
|
import { SelfServiceComponent } from './self-service.component';
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
|
|||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
/** Routing Imports */
|
/** Routing Imports */
|
||||||
import { Route } from '../core';
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
/** Translation Imports */
|
/** Translation Imports */
|
||||||
import { extract } from '../core';
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { SettingsComponent } from './settings.component';
|
import { SettingsComponent } from './settings.component';
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
export { SharedModule } from './shared.module';
|
|
||||||
export { DeleteDialogComponent } from './delete-dialog/delete-dialog.component';
|
|
||||||
Reference in New Issue
Block a user