浏览代码

profile page wired, needs to be styles and entity created

Jonathan Hinds 5 年前
父节点
当前提交
d36542ae80

+ 13
- 0
src/main/webapp/app/FaeBoo/Profile-temp/profile-temp.module.ts 查看文件

@@ -0,0 +1,13 @@
1
+import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
+import { RouterModule } from '@angular/router';
3
+
4
+import { FaeBooSharedModule } from 'app/shared';
5
+import { PROFILE_ROUTE } from 'app/FaeBoo/Profile-temp/profile-temp.route';
6
+import { ProfileTempComponent } from 'app/FaeBoo/Profile-temp/profile-temp.component';
7
+
8
+@NgModule({
9
+    imports: [FaeBooSharedModule, RouterModule.forChild([PROFILE_ROUTE])],
10
+    declarations: [ProfileTempComponent],
11
+    schemas: [CUSTOM_ELEMENTS_SCHEMA]
12
+})
13
+export class ProfileTempModule {}

+ 12
- 0
src/main/webapp/app/FaeBoo/Profile-temp/profile-temp.route.ts 查看文件

@@ -0,0 +1,12 @@
1
+import { Route } from '@angular/router';
2
+
3
+import { ProfileTempComponent } from 'app/FaeBoo/Profile-temp/profile-temp.component';
4
+
5
+export const PROFILE_ROUTE: Route = {
6
+    path: 'profile',
7
+    component: ProfileTempComponent,
8
+    data: {
9
+        authorities: [],
10
+        pageTitle: 'profile.title'
11
+    }
12
+};

+ 14
- 1
src/main/webapp/app/app.module.ts 查看文件

@@ -7,6 +7,10 @@ import { NgbDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
7 7
 import { Ng2Webstorage } from 'ngx-webstorage';
8 8
 import { NgJhipsterModule } from 'ng-jhipster';
9 9
 
10
+import { ProfileHeadComponent } from 'app/FaeBoo/Profile-head/profile-head.component';
11
+import { ProfileTempComponent } from 'app/FaeBoo/Profile-temp/profile-temp.component';
12
+import { ProfileTempModule } from 'app/FaeBoo/Profile-temp/profile-temp.module';
13
+
10 14
 import { AuthInterceptor } from './blocks/interceptor/auth.interceptor';
11 15
 import { AuthExpiredInterceptor } from './blocks/interceptor/auth-expired.interceptor';
12 16
 import { ErrorHandlerInterceptor } from './blocks/interceptor/errorhandler.interceptor';
@@ -36,11 +40,20 @@ import { JhiMainComponent, NavbarComponent, FooterComponent, PageRibbonComponent
36 40
         FaeBooSharedModule.forRoot(),
37 41
         FaeBooCoreModule,
38 42
         FaeBooHomeModule,
43
+        ProfileTempModule,
39 44
         FaeBooAccountModule,
40 45
         // jhipster-needle-angular-add-module JHipster will add new module here
41 46
         FaeBooEntityModule
42 47
     ],
43
-    declarations: [JhiMainComponent, NavbarComponent, ErrorComponent, PageRibbonComponent, ActiveMenuDirective, FooterComponent],
48
+    declarations: [
49
+        JhiMainComponent,
50
+        NavbarComponent,
51
+        ErrorComponent,
52
+        PageRibbonComponent,
53
+        ActiveMenuDirective,
54
+        FooterComponent,
55
+        ProfileHeadComponent
56
+    ],
44 57
     providers: [
45 58
         {
46 59
             provide: HTTP_INTERCEPTORS,

+ 10
- 0
src/main/webapp/app/layouts/navbar/navbar.component.html 查看文件

@@ -18,6 +18,16 @@
18 18
                     </span>
19 19
                 </a>
20 20
             </li>
21
+
22
+            <li class="nav-item" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
23
+                <a class="nav-link" routerLink="/profile" (click)="collapseNavbar();">
24
+                    <span>
25
+                        <fa-icon icon="home"></fa-icon>
26
+                        <span>Profile</span>
27
+                    </span>
28
+                </a>
29
+            </li>
30
+
21 31
             <!-- jhipster-needle-add-element-to-menu - JHipster will add new menu items here -->
22 32
             <li *ngSwitchCase="true" ngbDropdown class="nav-item dropdown pointer" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
23 33
                 <a class="nav-link dropdown-toggle" ngbDropdownToggle href="javascript:void(0);" id="entity-menu">

+ 1
- 1
src/main/webapp/app/layouts/navbar/navbar.route.ts 查看文件

@@ -1,6 +1,6 @@
1 1
 import { Route } from '@angular/router';
2 2
 
3
-import { NavbarComponent } from './navbar.component';
3
+import { NavbarComponent } from 'app/layouts';
4 4
 
5 5
 export const navbarRoute: Route = {
6 6
     path: '',