Project

General

Profile

« Previous | Next » 

Revision 60340

[Admin | New-UI]: Add info route.

View differences:

modules/uoa-admin-portal/branches/new-UI/src/app/pages/mining/mining-route.module.ts
1
import {NgModule} from "@angular/core";
2
import {InteractiveMiningModule, InteractiveMiningRoutingModule} from "interactiveminingv3";
3

  
4
@NgModule({
5
  imports: [InteractiveMiningRoutingModule, InteractiveMiningModule]
6
})
7
export class MiningRouteModule {
8

  
9
}
modules/uoa-admin-portal/branches/new-UI/src/app/pages/mining/mining-routing.module.ts
1
import {NgModule} from "@angular/core";
2
import {InteractiveMiningModule, InteractiveMiningRoutingModule} from "interactiveminingv3";
3

  
4
@NgModule({
5
  imports: [InteractiveMiningRoutingModule, InteractiveMiningModule]
6
})
7
export class MiningRoutingModule {
8

  
9
}
modules/uoa-admin-portal/branches/new-UI/src/app/pages/mining/mining.module.ts
10 10
    RouterModule.forChild([
11 11
      {
12 12
        path: '', component: MiningComponent, children: [
13
          {path: '', loadChildren: './mining-route.module#MiningRouteModule'}
13
          {path: '', loadChildren: './mining-routing.module#MiningRoutingModule'}
14 14
        ]
15 15
      }
16 16
    ]),
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-routing.module.ts
5 5
@NgModule({
6 6
  imports: [RouterModule.forChild([
7 7
    {
8
      path: 'info',
9
      loadChildren: './community-info/community-info.module#CommunityInfoModule',
10
    },
11
    {
8 12
      path: 'users',
9 13
      loadChildren: './users/users.module#UsersModule',
10 14
      pathMatch: 'full'
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-info/profile/profile.component.ts
1
import {Component} from "@angular/core";
2

  
3
@Component({
4
  selector: 'community-profile',
5
  template: `
6
    test
7
  `
8
})
9
export class ProfileComponent {
10

  
11
}
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-info/profile/profile.module.ts
1
import {NgModule} from '@angular/core';
2
import {RouterModule} from "@angular/router";
3
import {CommonModule} from "@angular/common";
4
import {ProfileComponent} from "./profile.component";
5
import {PageContentModule} from "../../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
6

  
7
@NgModule({
8
  imports: [
9
    CommonModule,
10
    RouterModule.forChild([
11
      {
12
        path: '', component: ProfileComponent
13
      }
14
    ]),
15
    PageContentModule,
16
  ],
17
  declarations: [ProfileComponent],
18
  exports: [ProfileComponent]
19
})
20
export class ProfileModule {
21
}
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-info/community-info.component.ts
1
import {Component} from "@angular/core";
2

  
3
@Component({
4
  selector: 'mining',
5
  template: `
6
    <div page-content>
7
      <div inner>
8
        <router-outlet></router-outlet>
9
      </div>
10
    </div>
11
  `
12
})
13
export class CommunityInfoComponent {
14

  
15
}
modules/uoa-admin-portal/branches/new-UI/src/app/pages/community-info/community-info.module.ts
1
import {NgModule} from '@angular/core';
2
import {RouterModule} from "@angular/router";
3
import {CommonModule} from "@angular/common";
4
import {CommunityInfoComponent} from "./community-info.component";
5
import {PageContentModule} from "../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
6

  
7
@NgModule({
8
  imports: [
9
    CommonModule,
10
    RouterModule.forChild([
11
      {
12
        path: '', component: CommunityInfoComponent, children: [
13
          {path: '', loadChildren: './profile/profile.module#ProfileModule', pathMatch: 'full'}
14
        ]
15
      }
16
    ]),
17
    PageContentModule,
18
  ],
19
  declarations: [CommunityInfoComponent],
20
  exports: [CommunityInfoComponent]
21
})
22
export class CommunityInfoModule {
23
}
modules/uoa-admin-portal/branches/new-UI/src/app/app.component.ts
203 203
        badge: false,
204 204
        stickyAnimation: false
205 205
      };
206
      this.sideBarItems.push(new MenuItem("community", "Community Info", "", "/" + this.community.communityId, false, [], [], {}));
206
      this.sideBarItems.push(new MenuItem("community", "Community Info", "", "/" + this.community.communityId, false, [], [], {}, null, null, null, "/" + this.community.communityId + "/info"));
207 207
      this.sideBarItems.push(new MenuItem("users", "Users", "", "/" + this.community.communityId + "/users", false, [], [], {}));
208 208
      this.sideBarItems.push(new MenuItem("admin-tools", "Pages & Entities", "", "/" + this.community.communityId + "/admin-tools/pages", false, [], [], {}, null, null, null, "/" + this.community.communityId + "/admin-tools"));
209 209
      this.sideBarItems.push(new MenuItem("claims", "Claims", "", "/" + this.community.communityId + "/claims", false, [], [], {}));
modules/uoa-admin-portal/branches/new-UI/src/app/app.routing.ts
208 208
        canActivate: [AdminLoginGuard]
209 209
    },
210 210
    {
211
        path: ':community', redirectTo: '/:community/info', pathMatch: 'full'
212
    },
213
    {
211 214
        path: ':community',
212 215
        loadChildren: './pages/community-routing.module#CommunityRoutingModule',
213 216
        canActivate: [ConnectAdminLoginGuard]

Also available in: Unified diff