Skip to content

Commit d1f9d85

Browse files
authored
Merge pull request #104 from pengz1/Update-framework-changes
Update framework changes
2 parents 2d07aeb + 19f40fb commit d1f9d85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+122
-219
lines changed

config/build-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const helpers = require('./helpers');
55

66
const DEFAULT_METADATA = {
77
title: 'RackHD Web UI 2.0',
8-
baseUrl: '/',
8+
baseUrl: './',
99
isDevServer: helpers.isWebpackDevServer(),
1010
HMR: helpers.hasProcessFlag('hot'),
1111
AOT: process.env.BUILD_AOT || helpers.hasNpmFlag('aot'),

config/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function (options) {
4646
*
4747
* See: http://webpack.github.io/docs/configuration.html#output-path
4848
*/
49-
publicPath: './',
49+
// publicPath: './',
5050
path: helpers.root('dist'),
5151

5252
/**

config/webpack.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function (env) {
7373
*
7474
* See: http://webpack.github.io/docs/configuration.html#output-path
7575
*/
76-
publicPath: './',
76+
// publicPath: './',
7777
path: helpers.root('dist'),
7878

7979
/**

src/app/app-routing.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { ROUTES } from './app.routes';
1010
@NgModule({
1111
imports: [
1212
RouterModule.forRoot(ROUTES, {
13-
useHash: Boolean(history.pushState) === false,
13+
//If we don't want to use hash mode, we need to change RackHD
14+
useHash: Boolean(history.pushState) === true,
1415
preloadingStrategy: PreloadAllModules
1516
// enableTracing: true
1617
})

src/app/app.routes.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,19 @@ import { NoContentComponent } from './no-content/no-content.component';
88
* route after '' will be denied. Cause angular will regard all routes as '' children
99
*/
1010
export const ROUTES: Routes = [
11-
/**
12-
* @description Four first-level routings
13-
* @date 2018-02-07 18:52:36
14-
15-
*/
16-
{path: '', redirectTo: 'ui/managementCenter', pathMatch: 'full'},
11+
{path: '', redirectTo: '/managementCenter/nodes', pathMatch: 'full'},
1712
{
18-
path: 'ui/managementCenter',
13+
path: 'managementCenter',
1914
loadChildren: 'app/management-center/management-center.module#ManagementCenterModule',
2015
},
2116
{
22-
path: 'ui/operationsCenter',
23-
loadChildren: 'app/operations-center/operations-center.module#OperationsCenterModule',
17+
path: 'workflowCenter',
18+
loadChildren: 'app/workflow-center/workflow-center.module#WorkflowCenterModule',
2419
},
2520
{
26-
path: 'ui/solutionCenter',
21+
path: 'solutionCenter',
2722
loadChildren: 'app/solution-center/solution-center.module#SolutionCenterModule',
2823
},
29-
{
30-
path: 'ui/workflowEditor',
31-
loadChildren: 'app/workflow-editor/workflow-editor.module#WorkflowEditorModule',
32-
},
3324
// 404 page, page with ** can not be lazily loaded.
3425
{path: '**', component: NoContentComponent},
3526
];

src/app/header/header.component.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
</a>
77
</div>
88
<div class="header-nav">
9-
<a routerLink="/ui/managementCenter" routerLinkActive="active" class="nav-link"><span class="nav-text">Management Center</span></a>
10-
<a routerLink="/ui/operationsCenter" routerLinkActive="active" class=" nav-link"><span class="nav-text">Operations Center</span></a>
11-
<a routerLink="/ui/workflowEditor" routerLinkActive="active" class=" nav-link"><span class="nav-text">Workflow Editor</span></a>
12-
<a routerLink="/ui/solutionCenter" routerLinkActive="active" class="nav-link"><span class="nav-text">Solution Center</span></a>
9+
<a routerLink="managementCenter" routerLinkActive="active" class="nav-link"><span class="nav-text">Management Center</span></a>
10+
<a routerLink="workflowCenter" routerLinkActive="active" class=" nav-link"><span class="nav-text">Workflow Center</span></a>
11+
<a routerLink="solutionCenter" routerLinkActive="active" class="nav-link"><span class="nav-text">Solution Center</span></a>
1312
</div>
1413
<div class="header-actions">
1514
<div class="active nav-link nav-icon" (click)="openSetting=true" style="cursor:pointer" >

src/app/management-center/workflows/workflows.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class WorkflowsComponent implements OnInit {
188188

189189
gotoCanvas(workflow){
190190
let graphName = workflow.injectableName;
191-
let url = "/operationsCenter/workflowViewer?graphName=" + graphName;
191+
let url = "/workflowCenter/workflowViewer?graphName=" + graphName;
192192
this.router.navigateByUrl(url);
193193
}
194194

src/app/operations-center/operations-center.component.spec.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app/operations-center/operations-center.component.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)