Skip to content
Snippets Groups Projects
Unverified Commit 6fc8526d authored by florimondmanca's avatar florimondmanca
Browse files

delete showcase-espacemembre module

parent b8a8fd73
Branches
No related tags found
1 merge request!26Release first-users version to production
Showing
with 0 additions and 177 deletions
......@@ -10,11 +10,6 @@ const routes: Routes = [
path: '',
loadChildren: './showcase-site/showcase-site.module#ShowcaseSiteModule',
},
{
path: 'membres',
canActivate: [AuthGuard],
loadChildren: './showcase-espacemembre/showcase-espacemembre.module#ShowcaseEspacemembreModule',
},
{
path: 'sorties',
canActivate: [AuthGuard],
......
export * from './showcase-espacemembre.component';
export * from './students-home-page';
export * from './sessions-page.component';
\ No newline at end of file
<div>Hello World2</div>
<router-outlet></router-outlet>
\ No newline at end of file
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute,Router } from '@angular/router';
@Component({
selector: 'sessions-page',
templateUrl: './sessions-page.component.html',
styleUrls: ['./sessions-page.component.scss']
})
export class SessionsPageComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
}
}
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard, MapsAPIResolver } from 'app/core';
import { StudentsHomePageComponent } from './students-home-page';
import { ShowcaseEspacemembreComponent } from './showcase-espacemembre.component';
import { SessionsPageComponent } from './sessions-page';
// import {} from './shared';
const routes: Routes = [
{
path: '',
component: ShowcaseEspacemembreComponent,
canActivate: [AuthGuard],
children: [
{
path: 'students',
data: { title: 'Accueil' },
component: StudentsHomePageComponent,
resolve: {
},
},
{
path: 'sessions',
data: { title: 'Séances' },
component: SessionsPageComponent,
resolve: {
},
},
]
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ShowcaseEspacemembreRoutingModule { }
<span id="top"></span>
<div id="showcase-espacemembre">
<main class="content">
<router-outlet (deactivate)="onDeactivate()"></router-outlet>
</main>
</div>
/*
Sticky footer solution from
https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
*/
#showcase-espacemembre {
display: flex;
min-height: 100vh;
flex-direction: column;
}
/* Make main content expand to pull footer to the bottom */
.content {
flex: 1;
}
import { Component, OnInit, Renderer } from '@angular/core';
//import { Link } from 'app/shared';
import { Router } from '@angular/router';
import { AuthService } from 'app/core';
@Component({
selector: 'app-showcase-espacemembre',
templateUrl: './showcase-espacemembre.component.html',
styleUrls: ['./showcase-espacemembre.component.scss']
})
export class ShowcaseEspacemembreComponent implements OnInit {
constructor(
private auth: AuthService,
private router: Router,
private renderer: Renderer
) { }
// navLinks: Link[] = [
// { href: '/qui-sommes-nous', text: 'Qui sommes-nous ?' },
// ];
ngOnInit() { }
onDeactivate() {
// on page reload, scroll to top of window
this.renderer.setElementProperty(document.body, "scrollTop", 0);
}
logout() {
this.auth.logout();
this.router.navigate(['/']);
}
}
import { NgModule } from '@angular/core';
// Modules
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { CoreModule } from 'app/core';
import { SharedModule } from 'app/shared';
import { Ng2EmojiModule } from 'ng2-emoji';
import { ShowcaseEspacemembreRoutingModule } from './showcase-espacemembre-routing.module';
// Components
import { ShowcaseEspacemembreComponent } from './showcase-espacemembre.component';
import { StudentsHomePageComponent } from './students-home-page';
import { SessionsPageComponent } from './sessions-page';
@NgModule({
imports: [
CommonModule,
RouterModule,
CoreModule,
SharedModule,
Ng2EmojiModule.forRoot(),
ShowcaseEspacemembreRoutingModule,
],
declarations: [
ShowcaseEspacemembreComponent,
StudentsHomePageComponent,
SessionsPageComponent,
],
exports: [
ShowcaseEspacemembreComponent
]
})
export class ShowcaseEspacemembreModule { }
export * from './students-home-page.component';
\ No newline at end of file
<div>Hello World</div>
<router-outlet></router-outlet>
\ No newline at end of file
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute,Router } from '@angular/router';
@Component({
selector: 'students-home-page',
templateUrl: './students-home-page.component.html',
styleUrls: ['./students-home-page.component.scss']
})
export class StudentsHomePageComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment