Skip to content
Snippets Groups Projects
Commit d897e9fa authored by florimondmanca's avatar florimondmanca
Browse files

refactor visit detail into multiple components, rename ui module to shared module

parent fbf1b973
Branches
No related tags found
No related merge requests found
Showing
with 21 additions and 13 deletions
...@@ -31,10 +31,12 @@ ...@@ -31,10 +31,12 @@
}, },
"configurations": { "configurations": {
"local": { "local": {
"fileReplacements": [{ "fileReplacements": [
{
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.local.ts" "with": "src/environments/environment.local.ts"
}] }
]
}, },
"dev-production": { "dev-production": {
"optimization": true, "optimization": true,
...@@ -58,10 +60,12 @@ ...@@ -58,10 +60,12 @@
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
"fileReplacements": [{ "fileReplacements": [
{
"replace": "src/environments/environment.ts", "replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts" "with": "src/environments/environment.prod.ts"
}] }
]
} }
} }
}, },
...@@ -116,7 +120,7 @@ ...@@ -116,7 +120,7 @@
} }
} }
} }
}, }
}, },
"defaultProject": "oser-app", "defaultProject": "oser-app",
"schematics": { "schematics": {
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { SignupPageComponent } from './signup-page/signup-page.component'; import { SignupPageComponent } from './signup-page/signup-page.component';
import { LoginComponent, UiGalleryComponent } from './ui'; import { LoginComponent, UiGalleryComponent } from './shared';
import { InternalErrorComponent, NotFoundComponent, AuthGuard, MapsAPIResolver } from './core'; import { InternalErrorComponent, NotFoundComponent, AuthGuard, MapsAPIResolver } from './core';
import { import {
......
...@@ -13,7 +13,7 @@ import { MomentModule } from 'ngx-moment'; ...@@ -13,7 +13,7 @@ import { MomentModule } from 'ngx-moment';
// App modules // App modules
import { CoreModule } from './core'; import { CoreModule } from './core';
import { UiModule } from './ui'; import { SharedModule } from './shared';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { ShowcaseSiteModule } from './showcase-site/showcase-site.module'; import { ShowcaseSiteModule } from './showcase-site/showcase-site.module';
import { VisitsModule } from './visits'; import { VisitsModule } from './visits';
...@@ -40,7 +40,7 @@ registerLocaleData(localeFR); ...@@ -40,7 +40,7 @@ registerLocaleData(localeFR);
HttpModule, HttpModule,
MomentModule, MomentModule,
CoreModule, CoreModule,
UiModule, SharedModule,
HttpClientModule, HttpClientModule,
ShowcaseSiteModule, ShowcaseSiteModule,
VisitsModule, VisitsModule,
......
...@@ -26,4 +26,8 @@ export class User { ...@@ -26,4 +26,8 @@ export class User {
this.phoneNumber = opts.phoneNumber; this.phoneNumber = opts.phoneNumber;
this.dateOfBirth = opts.dateOfBirth; this.dateOfBirth = opts.dateOfBirth;
} }
get fullName(): string {
return [this.firstName, this.lastName].filter(x => x).join(' ');
}
} }
export * from './ui.module'; export * from './shared.module';
export * from './navbar/navbar.component'; export * from './navbar/navbar.component';
export * from './footer/footer.component'; export * from './footer/footer.component';
export * from './login/login.component'; export * from './login/login.component';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment