Skip to content

Commit bda34fd

Browse files
committed
updating trace ui to angular 4
1 parent 3ecb9f5 commit bda34fd

39 files changed

+225
-500
lines changed

marklogic-data-hub/src/trace-ui/.angular-cli.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"project": {
4-
"version": "1.0.0-beta.32.3",
54
"name": "trace-ui"
65
},
76
"apps": [
87
{
98
"root": "src",
109
"outDir": "dist",
1110
"assets": [
12-
"assets"
11+
"assets",
12+
"favicon.ico"
1313
],
1414
"index": "index.html",
1515
"main": "main.ts",
1616
"polyfills": "polyfills.ts",
1717
"test": "test.ts",
18-
"tsconfig": "tsconfig.json",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
1920
"prefix": "app",
2021
"styles": [
2122
"../node_modules/mdi/css/materialdesignicons.css",
@@ -38,12 +39,13 @@
3839
},
3940
"lint": [
4041
{
41-
"files": "src/main/ui/**/*.ts",
42-
"project": "src/main/ui/tsconfig.json"
42+
"project": "src/tsconfig.app.json"
4343
},
4444
{
45-
"files": "e2e/**/*.ts",
46-
"project": "e2e/tsconfig.json"
45+
"project": "src/tsconfig.spec.json"
46+
},
47+
{
48+
"project": "e2e/tsconfig.e2e.json"
4749
}
4850
],
4951
"test": {

marklogic-data-hub/src/trace-ui/dependency-check.js

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types":[
8+
"jasmine",
9+
"node"
10+
]
11+
}
12+
}

marklogic-data-hub/src/trace-ui/karma.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = function (config) {
2929
fixWebpackSourcePaths: true
3030
},
3131
angularCli: {
32-
config: './.angular-cli.json',
3332
environment: 'dev'
3433
},
3534
reporters: config.angularCli && config.angularCli.codeCoverage

marklogic-data-hub/src/trace-ui/package.json

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.1.1",
44
"license": "APACHE",
55
"homepage": "https://github.com/marklogic/marklogic-data-hub",
6-
"angular-cli": {},
76
"scripts": {
87
"rimraf": "rimraf",
98
"ng": "ng",
@@ -16,45 +15,41 @@
1615
},
1716
"private": true,
1817
"dependencies": {
19-
"@angular/common": "^2.4.0",
20-
"@angular/compiler": "^2.4.0",
21-
"@angular/core": "^2.4.0",
22-
"@angular/forms": "^2.4.0",
23-
"@angular/http": "^2.4.0",
24-
"@angular/platform-browser": "^2.4.0",
25-
"@angular/platform-browser-dynamic": "^2.4.0",
26-
"@angular/router": "^3.4.0",
27-
"@angular2-material/core": "^2.0.0-alpha.8-2",
28-
"@angular2-mdl-ext/popover": "^0.5.0",
29-
"@angular2-mdl-ext/select": "^0.9.0",
30-
"angular2-mdl": "^2.13.1",
31-
"angular2-moment": "^1.0.0-beta.1",
32-
"clipboard": "^1.5.12",
33-
"codemirror": "^5.17.0",
18+
"@angular/common": "^4.0.0",
19+
"@angular/compiler": "^4.0.0",
20+
"@angular/core": "^4.0.0",
21+
"@angular/forms": "^4.0.0",
22+
"@angular/http": "^4.0.0",
23+
"@angular/platform-browser": "^4.0.0",
24+
"@angular/platform-browser-dynamic": "^4.0.0",
25+
"@angular/router": "^4.0.0",
26+
"@angular-mdl/core": "^4.0.1",
27+
"@angular-mdl/popover": "^0.6.3",
28+
"@angular-mdl/select": "^0.10.4",
29+
"angular2-moment": "^1.3.3",
30+
"clipboard": "^1.6.1",
31+
"codemirror": "^5.25.0",
3432
"core-js": "^2.4.1",
35-
"d3": "^4.2.6",
36-
"font-awesome": "^4.6.3",
37-
"hammerjs": "^2.0.8",
38-
"lodash": "^4.14.2",
39-
"material-design-icons-iconfont": "^3.0.2",
40-
"material-design-lite": "^1.2.0",
41-
"mdi": "1.7.22",
42-
"ng2-truncate": "^1.2.0",
33+
"font-awesome": "^4.7.0",
34+
"lodash": "^4.17.4",
35+
"material-design-icons-iconfont": "^3.0.3",
36+
"material-design-lite": "^1.3.0",
37+
"mdi": "1.8.36",
4338
"rxjs": "^5.1.0",
44-
"sockjs-client": "^1.1.1",
39+
"semver": "^5.3.0",
40+
"sockjs-client": "^1.1.2",
4541
"stompjs": "^2.3.3",
46-
"ts-helpers": "^1.1.1",
47-
"zone.js": "^0.7.6"
42+
"zone.js": "^0.8.4"
4843
},
4944
"devDependencies": {
50-
"@types/codemirror": "0.0.32",
51-
"@types/d3": "^3.5.36",
52-
"@types/hammerjs": "^2.0.32",
53-
"@angular/cli": "1.0.0-beta.32.3",
54-
"@angular/compiler-cli": "^2.4.0",
45+
"@types/codemirror": "0.0.38",
46+
"@angular/cli": "1.0.0",
47+
"@angular/compiler-cli": "^4.0.0",
5548
"@types/jasmine": "2.5.38",
56-
"@types/lodash": "^4.14.34",
57-
"codelyzer": "~2.0.0-beta.4",
49+
"@types/lodash": "^4.14.58",
50+
"@types/node": "~6.0.60",
51+
"@types/semver": "^5.3.31",
52+
"codelyzer": "~2.0.0",
5853
"jasmine-core": "~2.5.2",
5954
"jasmine-spec-reporter": "~3.2.0",
6055
"karma": "~1.4.1",
@@ -67,7 +62,7 @@
6762
"protractor": "~5.1.0",
6863
"rimraf": "^2.5.4",
6964
"ts-node": "~2.0.0",
70-
"tslint": "~4.4.2",
71-
"typescript": "~2.0.0"
65+
"tslint": "~4.5.0",
66+
"typescript": "~2.2.0"
7267
}
7368
}

marklogic-data-hub/src/trace-ui/protractor.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Protractor configuration file, see link for more information
22
// https://github.com/angular/protractor/blob/master/lib/config.ts
33

4-
/*global jasmine */
54
const { SpecReporter } = require('jasmine-spec-reporter');
65

76
exports.config = {
@@ -22,7 +21,7 @@ exports.config = {
2221
},
2322
beforeLaunch: function() {
2423
require('ts-node').register({
25-
project: 'e2e'
24+
project: 'e2e/tsconfig.e2e.json'
2625
});
2726
},
2827
onPrepare() {

marklogic-data-hub/src/trace-ui/src/app/app.e2e.ts

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

marklogic-data-hub/src/trace-ui/src/app/app.module.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55
import { RouterModule } from '@angular/router';
6-
import { TruncateCharactersPipe } from 'ng2-truncate/dist/truncate-characters.pipe'
7-
import { TruncateWordsPipe } from 'ng2-truncate/dist/truncate-words.pipe'
6+
import { TruncateCharactersPipe } from './truncate'
87

98
import { ConfirmModule } from './confirm';
109

1110
import { AppComponent } from './app.component';
1211

13-
import { MdlModule } from 'angular2-mdl';
12+
import { MdlModule } from '@angular-mdl/core';
1413
import { CodemirrorComponent } from './codemirror';
1514
import { MomentModule } from 'angular2-moment';
16-
import { MdDialogModule } from './dialog';
1715

1816
import { ROUTES } from './app.routes';
1917
import { HeaderComponent } from './header/header.component';
@@ -41,7 +39,6 @@ import { ObjectToArrayPipe } from './object-to-array.pipe';
4139
TitlecasePipe,
4240
FacetsComponent,
4341
TruncateCharactersPipe,
44-
TruncateWordsPipe,
4542
ObjectToArrayPipe
4643
],
4744
imports: [
@@ -52,7 +49,6 @@ import { ObjectToArrayPipe } from './object-to-array.pipe';
5249
ConfirmModule,
5350
TooltipModule,
5451
MomentModule,
55-
MdDialogModule.forRoot(),
5652
RouterModule.forRoot(ROUTES, { useHash: true })
5753
],
5854
providers: [
@@ -62,4 +58,4 @@ import { ObjectToArrayPipe } from './object-to-array.pipe';
6258
AppComponent
6359
],
6460
})
65-
export class AppModule {}
61+
export class AppModule { }

marklogic-data-hub/src/trace-ui/src/app/confirm/confirm.tpl.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<template #defaultTemplate let-options="options">
1+
<ng-template #defaultTemplate let-options="options">
22
<div class="dialog-container active">
33
<div class="mdl-dialog confirm-dialog active">
44
<div class="mdl-dialog__title" [innerHTML]="options.title"></div>
@@ -13,8 +13,8 @@
1313
</div>
1414
<div class="modal-backdrop"></div>
1515
</div>
16-
</template>
17-
<template
16+
</ng-template>
17+
<ng-template
1818
[ngTemplateOutlet]="options.customTemplate || defaultTemplate"
1919
[ngOutletContext]="{options: options}">
20-
</template>
20+
</ng-template>

marklogic-data-hub/src/trace-ui/src/app/confirm/confirmPopover.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {PopoverConfirmOptions} from './confirmOptions.provider';
1313
})
1414
export class ConfirmPopoverComponent implements AfterViewInit {
1515

16-
constructor(private options: PopoverConfirmOptions) {}
16+
constructor(public options: PopoverConfirmOptions) {}
1717

1818
ngAfterViewInit(): void {
1919
this.options.onAfterViewInit();

0 commit comments

Comments
 (0)