-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from paulmojicatech/updates
Updates
- Loading branch information
Showing
71 changed files
with
37,498 additions
and
6,713 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { enableProdMode, importProvidersFrom } from '@angular/core'; | ||
import { Route, RouterModule } from '@angular/router'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { sharedReducer } from './app/ngrx/reducers/shared.reducer'; | ||
import { EffectsModule } from '@ngrx/effects'; | ||
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
importProvidersFrom( | ||
RouterModule.forRoot(routes), | ||
IonicModule.forRoot(), | ||
StoreModule.forRoot({}), | ||
StoreModule.forFeature('shared', sharedReducer), | ||
EffectsModule.forRoot([]), | ||
StoreDevtoolsModule.instrument({}), | ||
HttpClientModule, | ||
BrowserAnimationsModule | ||
), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
import { Route, RouterModule } from '@angular/router'; | ||
import { EffectsModule } from '@ngrx/effects'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; | ||
import { FantasyFootballEffects } from './fantasy-football/ngrx/effects/fantasy-football.effects'; | ||
import { fantasyFootballReducer } from './fantasy-football/ngrx/reducer/fantasy-football.reducer'; | ||
import { MobileCheckerService } from './fantasy-football/services/mobile-checker.service'; | ||
import { TopicEffects } from './topics/ngrx/effects/topics.effects'; | ||
import { topicsReducer } from './topics/ngrx/reducer/topics.reducer'; | ||
|
||
const routes: Route[] = [ | ||
{ | ||
path: 'topics', | ||
loadComponent: () => | ||
import('../app/topics/topics.component').then((a) => a.TopicsComponent), | ||
providers: [ | ||
importProvidersFrom( | ||
StoreModule.forFeature('topics', topicsReducer), | ||
EffectsModule.forFeature([TopicEffects]) | ||
) | ||
], | ||
}, | ||
{ | ||
path: 'fantasy-football', | ||
loadChildren: () => | ||
import('../app/fantasy-football/const/fantasy-football-routes.const').then( | ||
(m) => m.FANTASY_FOOTBALL_ROUTES | ||
), | ||
canActivate: [MobileCheckerService], | ||
providers: [ | ||
importProvidersFrom( | ||
StoreModule.forFeature('fantasyFootball', fantasyFootballReducer), | ||
EffectsModule.forFeature([FantasyFootballEffects]), | ||
) | ||
], | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: 'topics', | ||
pathMatch: 'full', | ||
}, | ||
]; | ||
|
||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
importProvidersFrom( | ||
RouterModule.forRoot(routes), | ||
StoreModule.forRoot({}), | ||
EffectsModule.forRoot([]), | ||
StoreDevtoolsModule.instrument({}), | ||
HttpClientModule, | ||
BrowserAnimationsModule | ||
), | ||
], | ||
}; |
4 changes: 2 additions & 2 deletions
4
apps/fantalytic-public/src/app/fantasy-football/services/mobile-checker.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
apps/fantalytic-public/src/app/topics/topics.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.