mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 15:09:59 +00:00
* Removed package-lock.json form gitignore as it ensures specific package versions * Updated all @angular web dependencies * Resolved tslint errors using autofix option * Resolved some more tslint issues * Added lint scripts to package.json to easy lint the ts files * Updated codelyzer and tslint * Run web on travis using node 10 and run the lint task * Resolved some more tslint issues after upgrading tslint and codelyzer * Resolved golint issues with regards to exchange comments * Resolved spelling errors shown by goreportcard.com * Resolved gofmt warnings using goreportcard.com * Resolved golint issue by removing unrequired else statement * Refactored slack.go to reduce cyclomatic complexity * Fixed govet issue where Slack was passed as value instead of reference
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
import { HomeComponent } from './pages/home/home.component';
|
|
import { AboutComponent } from './pages/about/about.component';
|
|
import { DashboardComponent } from './pages/dashboard/dashboard.component';
|
|
import { WalletComponent } from './pages/wallet/wallet.component';
|
|
import { DonateComponent } from './pages/donate/donate.component';
|
|
import { HistoryComponent } from './pages/history/history.component';
|
|
import { TradingComponent } from './pages/trading/trading.component';
|
|
import { ExchangeGridComponent } from './pages/exchange-grid/exchange-grid.component';
|
|
import { CurrencyListComponent } from './pages/currency-list/currency-list.component';
|
|
|
|
// Settings
|
|
import { SettingsComponent } from './pages/settings/settings.component';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'about',
|
|
component: AboutComponent
|
|
},
|
|
{
|
|
path: 'dashboard',
|
|
component: DashboardComponent
|
|
},
|
|
{
|
|
path: 'wallet',
|
|
component: WalletComponent
|
|
}
|
|
,
|
|
{
|
|
path: 'donate',
|
|
component: DonateComponent
|
|
},
|
|
{
|
|
path: 'history',
|
|
component: HistoryComponent
|
|
},
|
|
{
|
|
path: 'trading',
|
|
component: TradingComponent
|
|
},
|
|
{
|
|
path: 'exchange-grid',
|
|
component: ExchangeGridComponent
|
|
},
|
|
{
|
|
path: 'currency-list',
|
|
component: CurrencyListComponent
|
|
},
|
|
// Settings
|
|
{
|
|
path: 'settings',
|
|
component: SettingsComponent
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {useHash: true})],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|