-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored(): updated project dependencies and upgrade to covalent@be…
…ta.4 (#64) * Core(): updated dependencies * Updated to latest flexlayout/material packages * Updated @covalent packages * Updated angular cli version * Updated d3/ngx charts * Fixed(themes): fixed import * Fixed import of material theming * Refactored(routing): added routing module * Added a routing module for the application to capsulate the configuration of the RouterModule * Feat(): added shared module * Added a shared module that contains all the elements that are shared across the different application modules * Refactored(app module): changed how the module is configurated * Moved import of routed components into app-routing.module * Moved styling modules into shared module * Others * Refactored(templates component): changes in html template * Added button directive to nav links * Refactored div elements into routed links in the covalent templates section * Core(): added missing script command * Added ng serve on start command * Fixed(editor component): added missing directive in html template * Added flex layout align directive * Fixed(shared module): added missing imports * Core(): updated dependencies * Updated to latest flexlayout/material packages * Updated @covalent packages * Updated angular cli version * Updated d3/ngx charts Fixed(themes): fixed import * Fixed import of material theming Refactored(routing): added routing module * Added a routing module for the application to capsulate the configuration of the RouterModule Feat(): added shared module * Added a shared module that contains all the elements that are shared across the different application modules Refactored(app module): changed how the module is configurated * Moved import of routed components into app-routing.module * Moved styling modules into shared module * Others Refactored(templates component): changes in html template * Added button directive to nav links * Refactored div elements into routed links in the covalent templates section Core(): added missing script command * Added ng serve on start command Fixed(editor component): added missing directive in html template * Added flex layout align directive Fixed(shared module): added missing imports * Refactored(shared module): fixed tslint warnings * Refactored(app routing module): minor changes * Fixed(karma config): added injection of material theme * Check angular/components#4056 * Fixed(): imports on component specs
- Loading branch information
1 parent
4466e3f
commit d6bc3c2
Showing
12 changed files
with
1,371 additions
and
1,053 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
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,144 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { MainComponent } from './main/main.component'; | ||
import { DashboardComponent } from './dashboard/dashboard.component'; | ||
import { DashboardProductComponent } from './dashboard-product/dashboard-product.component'; | ||
import { ProductOverviewComponent } from './dashboard-product/overview/overview.component'; | ||
import { ProductStatsComponent } from './dashboard-product/stats/stats.component'; | ||
import { ProductFeaturesComponent } from './dashboard-product/features/features.component'; | ||
import { FeaturesFormComponent } from './dashboard-product/features/form/form.component'; | ||
import { UsersComponent } from './users/users.component'; | ||
import { UsersFormComponent } from './users/form/form.component'; | ||
import { LogsComponent } from './logs/logs.component'; | ||
import { DetailComponent } from './detail/detail.component'; | ||
import { LoginComponent } from './login/login.component'; | ||
import { FormComponent } from './form/form.component'; | ||
import { TemplatesComponent } from './templates/templates.component'; | ||
import { DashboardTemplateComponent } from './templates/dashboard/dashboard.component'; | ||
import { EmailTemplateComponent } from './templates/email/email.component'; | ||
import { EditorTemplateComponent } from './templates/editor/editor.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: 'login', | ||
component: LoginComponent | ||
}, | ||
{ | ||
path: '', | ||
component: MainComponent, | ||
children: [ | ||
{ | ||
component: DashboardComponent, | ||
path: '', | ||
}, | ||
{ | ||
path: 'product', | ||
component: DashboardProductComponent, | ||
children: [ | ||
{ | ||
path: '', | ||
component: ProductOverviewComponent | ||
}, | ||
{ | ||
path: 'stats', | ||
component: ProductStatsComponent | ||
}, | ||
{ | ||
path: 'features', | ||
children: [ | ||
{ | ||
path: '', | ||
component: ProductFeaturesComponent | ||
}, | ||
{ | ||
path: 'add', | ||
component: FeaturesFormComponent | ||
}, | ||
{ | ||
path: ':id/delete', | ||
component: FeaturesFormComponent | ||
}, | ||
{ | ||
path: ':id/edit', | ||
component: FeaturesFormComponent | ||
}, | ||
] | ||
}, | ||
] | ||
}, | ||
{ | ||
path: 'item/:id', | ||
component: DetailComponent | ||
}, | ||
{ | ||
path: 'logs', | ||
component: LogsComponent | ||
}, | ||
{ | ||
path: 'form', | ||
component: FormComponent | ||
}, | ||
{ | ||
path: 'users', | ||
children: [ | ||
{ | ||
path: '', | ||
component: UsersComponent | ||
}, | ||
{ | ||
path: 'add', | ||
component: UsersFormComponent | ||
}, | ||
{ | ||
path: ':id/delete', | ||
component: UsersFormComponent | ||
}, | ||
{ | ||
path: ':id/edit', | ||
component: UsersFormComponent | ||
}, | ||
] | ||
}, | ||
{ | ||
path: 'templates', | ||
children: [ | ||
{ | ||
path: '', | ||
component: TemplatesComponent | ||
}, | ||
{ | ||
path: 'dashboard', | ||
component: DashboardTemplateComponent | ||
}, | ||
{ | ||
path: 'email', | ||
component: EmailTemplateComponent | ||
}, | ||
{ | ||
path: 'editor', | ||
component: EditorTemplateComponent | ||
}, | ||
] | ||
}, | ||
] | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
RouterModule.forRoot(routes, { useHash: true }), | ||
], | ||
exports: [ | ||
RouterModule, | ||
] | ||
}) | ||
export class AppRoutingModule { } | ||
export const routedComponents: any[] = [ | ||
MainComponent, LoginComponent, | ||
TemplatesComponent, EditorTemplateComponent, EmailTemplateComponent, DashboardTemplateComponent, | ||
UsersComponent, UsersFormComponent, | ||
DashboardComponent, DashboardProductComponent, | ||
FormComponent, LogsComponent, DetailComponent, | ||
FeaturesFormComponent, ProductFeaturesComponent, ProductOverviewComponent, ProductStatsComponent, | ||
]; |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.