-
Notifications
You must be signed in to change notification settings - Fork 13
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 #173 from OmicsDI/features/OF-72
Features/of 72
- Loading branch information
Showing
335 changed files
with
702 additions
and
1,927 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,32 @@ | ||
// Imports | ||
// Deprecated import | ||
// import { provideRouter, RouterConfig } from '@angular/router'; | ||
import {ModuleWithProviders} from '@angular/core'; | ||
import {RouterModule, Routes} from '@angular/router'; | ||
// import {ProfileComponent} from "./pages/profile/profile.component"; | ||
// import {DatabaseComponent} from "./pages/database/database.component"; | ||
import {HomeComponent} from 'pages/home/home.component'; | ||
// import {ApiComponent} from "./pages/api/api.component"; | ||
import {SearchComponent} from 'pages/search/search.component'; | ||
import {UnauthorizedComponent} from 'pages/unauthorized/unauthorized.component'; | ||
// import {DatasetComponent} from "./pages/dataset/dataset.component"; | ||
// import {TermsComponent} from "./pages/terms/terms.component"; | ||
import {NotfoundComponent} from 'pages/notfound/notfound.component'; | ||
// import {AdminComponent} from "./pages/admin/admin.component"; | ||
// import {SelectedComponent} from "./pages/selected/selected.component"; | ||
// import {DashboardComponent} from "./pages/dashboard/dashboard.component"; | ||
// import {DashboardSelectedComponent} from "./pages/dashboard/selected/selected.component"; | ||
// import {DashboardFeedbackComponent} from "./pages/dashboard/feedback/feedback.component"; | ||
// import {DashboardProfileComponent} from "./pages/dashboard/profile/profile.component"; | ||
// import {DashboardUpdateComponent} from "./pages/dashboard/update/update.component"; | ||
// import {DashboardClaimedComponent} from "./pages/dashboard/claimed/claimed.component"; | ||
// import {DashboardPictureComponent} from "./pages/dashboard/picture/picture.component"; | ||
// import {SettingsComponent} from "./pages/dashboard/settings/settings.component"; | ||
import {TermsComponent} from 'pages/terms/terms.component'; | ||
import {SelectedComponent} from 'pages/selected/selected.component'; | ||
import {AuthGuardService} from 'services/auth-guard.service'; | ||
import {AuthGuardService} from '@shared/services/auth-guard.service'; | ||
import {HomeComponent} from '@modules/home/components/home/home.component'; | ||
import {UnauthorizedComponent} from '@modules/commonplace/components/unauthorized/unauthorized.component'; | ||
import {TermsComponent} from '@modules/commonplace/components/terms/terms.component'; | ||
import {NotfoundComponent} from '@modules/commonplace/components/notfound/notfound.component'; | ||
import {SelectedComponent} from '@modules/commonplace/components/selected/selected.component'; | ||
|
||
// Route Configuration | ||
export const routes: Routes = [ | ||
{ | ||
path: '', | ||
redirectTo: '/home', | ||
pathMatch: 'full' | ||
}, | ||
{path: '', component: HomeComponent}, | ||
{path: 'home', component: HomeComponent}, | ||
// { path: 'profile', redirectTo:'dashboard/profile'}, | ||
{path: 'profile/:username', loadChildren: './profile/profile.module#ProfileModule'}, | ||
{path: 'database', loadChildren: './database/database.module#DatabaseModule'}, | ||
{path: 'about', loadChildren: './about/about.module#AboutModule'}, | ||
{path: 'api', loadChildren: './api/api.module#ApiModule'}, | ||
{ path: 'search', loadChildren: './search/search.module#SearchModule' }, | ||
{path: 'profile', redirectTo: 'dashboard/profile'}, | ||
{path: 'profile/:username', loadChildren: '@modules/profile/profile.module#ProfileModule'}, | ||
{path: 'database', loadChildren: '@modules/database/database.module#DatabaseModule'}, | ||
{path: 'help', loadChildren: '@modules/help/help.module#HelpModule'}, | ||
{path: 'search', loadChildren: '@modules/search/search.module#SearchModule' }, | ||
{path: 'unauthorized', component: UnauthorizedComponent}, | ||
{path: 'dataset/:domain/:acc', loadChildren: './dataset/dataset.module#DatasetModule'}, | ||
// { path: 'search', loadChildren: () => SearchModule }, | ||
// {path: 'search', component: SearchComponent}, | ||
{path: 'dataset/:domain/:acc', loadChildren: '@modules/dataset/dataset.module#DatasetModule'}, | ||
{path: 'terms', component: TermsComponent}, | ||
{path: 'notfound', component: NotfoundComponent}, | ||
{path: 'admin', loadChildren: './admin/admin.module#AdminModule'}, | ||
{path: 'admin', loadChildren: '@modules/admin/admin.module#AdminModule'}, | ||
{path: 'selected', component: SelectedComponent}, | ||
{path: 'merge', loadChildren: './merge/merge.module#MergeModule' , canActivate: [AuthGuardService]}, | ||
{path: 'unmerge', loadChildren: './unmerge/unmerge.module#UnmergeModule', canActivate: [AuthGuardService]}, | ||
{path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule', canActivate: [AuthGuardService]} | ||
{path: 'merge', loadChildren: '@modules/merge/merge.module#MergeModule' , canActivate: [AuthGuardService]}, | ||
{path: 'unmerge', loadChildren: '@modules/unmerge/unmerge.module#UnmergeModule', canActivate: [AuthGuardService]}, | ||
{path: 'dashboard', loadChildren: '@modules/dashboard/dashboard.module#DashboardModule', canActivate: [AuthGuardService]} | ||
// { path: 'welcome/:inviteId', component: WelcomeComponent }, | ||
|
||
]; | ||
|
||
// Deprecated provide | ||
// export const APP_ROUTER_PROVIDERS = [ | ||
// provideRouter(routes) | ||
// ]; | ||
const AUTH_PROVIDERS = [AuthGuardService]; | ||
export const routing: ModuleWithProviders = RouterModule.forRoot(routes, {useHash: false}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.