Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 86606cb

Browse files
about page added
1 parent 88a9200 commit 86606cb

File tree

6 files changed

+47
-2
lines changed

6 files changed

+47
-2
lines changed

‎src/AspnetRun.Web/src/app/_nav.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ export const navItems: NavData[] = [
3333
{ name: 'Dashboard', url: '/dashboard', icon: 'icon-speedometer', },
3434
{ name: 'Products', url: '/product/product-list', icon: 'icon-list' },
3535
{ name: 'Categories', url: '/category/category-list', icon: 'icon-folder-alt' },
36-
{ name: 'Customer', url: '/customer/customer-list', icon: 'icon-folder-alt' }
36+
{ name: 'Customer', url: '/customer/customer-list', icon: 'icon-folder-alt' },
37+
{ name: 'About', url: '/about', icon: 'icon-folder-alt' },
3738
];

‎src/AspnetRun.Web/src/app/app-routing.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { LoginComponent } from './views/login/login.component';
77
import { RegisterComponent } from './views/register/register.component';
88
import { LayoutComponent } from './core/layout/layout.component';
99
import { DashboardComponent } from './views/dashboard/dashboard.component';
10+
import { AboutComponent } from './views/about/about.component';
1011

1112
export const routes: Routes = [
1213
{ path: '', redirectTo: 'dashboard', pathMatch: 'full', },
@@ -20,7 +21,8 @@ export const routes: Routes = [
2021
{ path: 'dashboard', component: DashboardComponent, data: { title: 'Dashboard' } },
2122
{ path: 'product', loadChildren: () => import('./views/product/product.module').then(m => m.ProductModule) },
2223
{ path: 'category', loadChildren: () => import('./views/category/category.module').then(m => m.CategoryModule) },
23-
{ path: 'customer', loadChildren: () => import('./views/customer/customer.module').then(m => m.CustomerModule) }
24+
{ path: 'customer', loadChildren: () => import('./views/customer/customer.module').then(m => m.CustomerModule) },
25+
{ path: 'about', component: AboutComponent, data: { title: 'About' } }
2426
],
2527
canActivateChild: [AuthGuardService],
2628
canActivate: [AuthGuardService]

‎src/AspnetRun.Web/src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { P500Component } from './views/error/500.component';
1515
import { LoginComponent } from './views/login/login.component';
1616
import { RegisterComponent } from './views/register/register.component';
1717
import { DashboardComponent } from './views/dashboard/dashboard.component';
18+
import { AboutComponent } from './views/about/about.component';
1819

1920
const ngWizardConfig: NgWizardConfig = {
2021
theme: THEME.default
@@ -28,6 +29,7 @@ const ngWizardConfig: NgWizardConfig = {
2829
LoginComponent,
2930
RegisterComponent,
3031
DashboardComponent,
32+
AboutComponent,
3133
],
3234
imports: [
3335
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),

‎src/AspnetRun.Web/src/app/views/about/about.component.css

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="view">
2+
<div class="container">
3+
<header>
4+
<h3><span class="glyphicon glyphicon-info-sign"></span> About</h3>
5+
</header>
6+
<br />
7+
<div class="container">
8+
<div class="row">
9+
<div class="col-md-2">Created by:</div>
10+
<div class="col-md-10"><a href="http://twitter.com/ezozkme" target="_blank">AspnetRun</a></div>
11+
</div>
12+
<br />
13+
<div class="row">
14+
<div class="col-md-2">Blog:</div>
15+
<div class="col-md-10"><a href="http://www.aspnetrun.com" target="_blank">http://www.aspnetrun.com</a></div>
16+
</div>
17+
<br />
18+
<div class="row">
19+
<div class="col-md-2">GitHub:</div>
20+
<div class="col-md-10"><a href="https://github.com/aspnetrun/run-aspnetcore-angular-realworld" target="_blank">https://github.com/aspnetrun/run-aspnetcore-angular-realworld</a></div>
21+
</div>
22+
<br />
23+
</div>
24+
</div>
25+
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-about',
5+
templateUrl: './about.component.html',
6+
styleUrls: ['./about.component.css']
7+
})
8+
export class AboutComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /