diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 730e169e..77c727ae 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,62 +4,54 @@ import 'hammerjs'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { RouterModule, Routes } from '@angular/router'; -import { LayoutComponent } from './core/components/layout/layout.component'; import { MailModule } from './main/apps/mail/mail.module'; import { ChatModule } from './main/apps/chat/chat.module'; import { ProjectModule } from './main/apps/dashboards/project/project.module'; -import { CardedFullWidthModule } from './main/ui/page-layouts/carded/fullwidth/fullwidth.module'; -import { LayoutService } from './core/services/layout.service'; -import { NavbarComponent } from './core/components/layout/navbar/navbar.component'; -import { ToolbarComponent } from './core/components/layout/toolbar/toolbar.component'; -import { NavigationModule } from './core/components/navigation/navigation.module'; -import { NavigationService } from './core/components/navigation/navigation.service'; +import { FuseLayoutService } from './core/services/layout.service'; +import { FuseNavigationService } from './core/components/navigation/navigation.service'; import { SidenavComponent } from './core/components/sidenav/sidenav.component'; import { FuseMatchMedia } from './core/services/match-media.service'; -import { NavbarToggleDirective } from './core/components/layout/navbar/navbar-toggle.directive'; -import { NavbarService } from './core/components/layout/navbar/navbar.service'; -import { ContentComponent } from './core/components/layout/content/content.component'; +import { FuseNavbarService } from './core/components/layout/navbar/navbar.service'; import { SharedModule } from './core/modules/shared.module'; -import { FooterComponent } from './core/components/layout/footer/footer.component'; -import { FuseMdSidenavHelperDirective, FuseMdSidenavTogglerDirective } from './core/directives/md-sidenav-helper/md-sidenav-helper.directive'; import { FuseMdSidenavHelperService } from './core/directives/md-sidenav-helper/md-sidenav-helper.service'; +import { UIPageLayoutsModule } from './main/ui/page-layouts/page-layouts.module'; +import { FuseLayoutModule } from './core/components/layout/layout.module'; const appRoutes: Routes = [ + { + path : 'apps/mail', + loadChildren: './main/apps/mail/mail.module#MailModule' + }, { path : '**', redirectTo: 'apps/dashboards/project' - } + }, ]; @NgModule({ declarations: [ AppComponent, - LayoutComponent, - ToolbarComponent, - NavbarComponent, SidenavComponent, - NavbarToggleDirective, - FuseMdSidenavHelperDirective, - FuseMdSidenavTogglerDirective, - ContentComponent, - FooterComponent ], imports : [ - SharedModule, BrowserModule, BrowserAnimationsModule, + SharedModule, RouterModule.forRoot(appRoutes), - NavigationModule, - MailModule, + + FuseLayoutModule, + + // MailModule, ChatModule, ProjectModule, - CardedFullWidthModule + + UIPageLayoutsModule ], providers : [ - NavigationService, - LayoutService, + FuseNavigationService, + FuseLayoutService, FuseMatchMedia, - NavbarService, + FuseNavbarService, FuseMdSidenavHelperService ], bootstrap : [AppComponent] diff --git a/src/app/core/components/demo/demo-content/demo-content.component.html b/src/app/core/components/demo/demo-content/demo-content.component.html new file mode 100644 index 00000000..14d474b3 --- /dev/null +++ b/src/app/core/components/demo/demo-content/demo-content.component.html @@ -0,0 +1,75 @@ + +
+ One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a + horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his + brown belly, slightly domed and divided by arches into stiff sections. +
+ +++ ++ The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, + pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's + happened to me? " he thought. It wasn't a dream. +
+ +
+ His room, a proper human room although a little too small, lay peacefully between its four familiar + walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - + and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in + a nice, gilded frame. +
+ ++ It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that + covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the + dull weather. Drops of rain could be heard hitting the pane, which made him feel quite sad. +
+ ++ "How about if I sleep a little bit longer and forget all this nonsense", he thought, but that was + something he was unable to do because he was used to sleeping on his right, and in his present state + couldn't get into that position. However hard he threw himself onto his right, he always rolled back to + where he was. +
+ ++ He must have tried it a hundred times, shut his eyes so that he wouldn't have to look at the floundering + legs, and only stopped when he began to feel a mild, dull pain there that he had never felt before. "Oh, + God", he thought, "what a strenuous career it is that I've chosen! +
+ ++ Travelling day in and day out. Doing business like this takes much more effort than doing your own + business at home, and on top of that there's the curse of travelling, worries about making train + connections, bad and irregular food, contact with different people all the time so that you can never + get to know anyone or become friendly with them. +
+ ++ "He felt a slight itch up on his belly; pushed himself slowly up on his back towards the headboard so + that he could lift his head better; found where the itch was, and saw that it was covered with lots of + little white spots which he didn't know what to make of; and when he tried to feel the place with one of + his legs he drew it quickly back because as soon as he touched it he was overcome by a cold shudder. He + slid back into his former position. +
+ ++ "Getting up early all the time", he thought, "it makes you stupid. You've got to get enough sleep. Other + travelling salesmen live a life of luxury. For instance, whenever I go back to the guest house during + the morning to copy out the contract, these gentlemen are always still sitting there eating their + breakfasts. I ought to just try that with my boss; I'd get kicked out on the spot. But who knows, maybe + that would be the best thing for me... +
+Sidenav Item 1
+Sidenav Item 2
+Sidenav Item 3
+Sidenav Item 4
+Sidenav Item 5
+Sidenav Item 6
+Sidenav Item 7
+Sidenav Item 8
+Sidenav Item 9
+Sidenav Item 10
+Sidenav Item 11
+Sidenav Item 12
+Sidenav Item 13
+Sidenav Item 14
+Sidenav Item 15
+Sidenav Item 16
+- FullWidth works! -
+Sidenav header
+