Angular 6 upgrade

This commit is contained in:
Sudaththa Ranasinghe 2018-12-06 19:06:01 +05:30
parent ce87174213
commit 09ab76288d
12 changed files with 24 additions and 31 deletions

View File

@ -10,14 +10,14 @@
<body> <body>
<nav> <nav>
<header> <a href="/ReDoc"> ReDoc </a> </header> <header> <a href="/ReDoc"> ReDoc </a> </header>
<template is="dom-bind" id="specs"> <ng-template is="dom-bind" id="specs">
<form id="schema-url-form" is="iron-form"> <form id="schema-url-form" is="iron-form">
<vaadin-combo-box-light id="spec-input" items="[[specs]]" allow-custom-value> <vaadin-combo-box-light id="spec-input" items="[[specs]]" allow-custom-value>
<input placeholder="URL to a spec to try" id="schema-url-input" type="text" is="iron-input" value="https://rebilly.github.io/RebillyAPI/swagger.json"> <input placeholder="URL to a spec to try" id="schema-url-input" type="text" is="iron-input" value="https://rebilly.github.io/RebillyAPI/swagger.json">
</vaadin-combo-box-light> </vaadin-combo-box-light>
<button type="submit"> Explore </button> <button type="submit"> Explore </button>
</form> </form>
</template> </ng-template>
<iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large" <iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="150px" height="30px"></iframe> frameborder="0" scrolling="0" width="150px" height="30px"></iframe>
</nav> </nav>

View File

@ -10,14 +10,14 @@
<body> <body>
<nav> <nav>
<header> <a href="/ReDoc"> ReDoc </a> </header> <header> <a href="/ReDoc"> ReDoc </a> </header>
<template is="dom-bind" id="specs"> <ng-template is="dom-bind" id="specs">
<form id="schema-url-form" is="iron-form"> <form id="schema-url-form" is="iron-form">
<vaadin-combo-box-light id="spec-input" items="[[specs]]" allow-custom-value> <vaadin-combo-box-light id="spec-input" items="[[specs]]" allow-custom-value>
<input placeholder="URL to a spec to try" id="schema-url-input" type="text" is="iron-input" value="https://rebilly.github.io/RebillyAPI/swagger.json"> <input placeholder="URL to a spec to try" id="schema-url-input" type="text" is="iron-input" value="https://rebilly.github.io/RebillyAPI/swagger.json">
</vaadin-combo-box-light> </vaadin-combo-box-light>
<button type="submit"> Explore </button> <button type="submit"> Explore </button>
</form> </form>
</template> </ng-template>
<iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large" <iframe src="https://ghbtns.com/github-btn.html?user=Rebilly&repo=ReDoc&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="150px" height="30px"></iframe> frameborder="0" scrolling="0" width="150px" height="30px"></iframe>
</nav> </nav>

View File

@ -3,7 +3,7 @@
import { Component, ViewChildren, QueryList, Input, import { Component, ViewChildren, QueryList, Input,
ChangeDetectionStrategy, OnInit, HostBinding, ElementRef, NgZone } from '@angular/core'; ChangeDetectionStrategy, OnInit, HostBinding, ElementRef, NgZone } from '@angular/core';
import { Subject } from 'rxjs/Subject'; import { Subject } from 'rxjs';
import { BaseComponent, SpecManager } from '../base'; import { BaseComponent, SpecManager } from '../base';
import JsonPointer from '../../utils/JsonPointer'; import JsonPointer from '../../utils/JsonPointer';

View File

@ -11,7 +11,7 @@ import { Component,
OnDestroy OnDestroy
} from '@angular/core'; } from '@angular/core';
import { trigger, state, animate, transition, style } from '@angular/core'; import { trigger, state, animate, transition, style } from '@angular/animations';
import { ScrollService, MenuService, OptionsService, MenuItem } from '../../services/'; import { ScrollService, MenuService, OptionsService, MenuItem } from '../../services/';
import { PerfectScrollbar } from '../../shared/components'; import { PerfectScrollbar } from '../../shared/components';
import { BrowserDomAdapter as DOM } from '../../utils/browser-adapter'; import { BrowserDomAdapter as DOM } from '../../utils/browser-adapter';

View File

@ -2,7 +2,7 @@
import { OnInit, OnDestroy } from '@angular/core'; import { OnInit, OnDestroy } from '@angular/core';
import { SpecManager } from '../utils/spec-manager'; import { SpecManager } from '../utils/spec-manager';
import { AppStateService } from '../services/app-state.service'; import { AppStateService } from '../services/app-state.service';
import { Subscription } from 'rxjs/Subscription'; import { Subscription } from 'rxjs';
export { SpecManager }; export { SpecManager };

View File

@ -1,8 +1,7 @@
'use strict'; 'use strict';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject'; import { Subject , BehaviorSubject } from 'rxjs';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
@Injectable() @Injectable()
export class AppStateService { export class AppStateService {

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { PlatformLocation } from '@angular/common'; import { PlatformLocation } from '@angular/common';
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { BehaviorSubject } from 'rxjs';
import { debounce } from '../utils/'; import { debounce } from '../utils/';

View File

@ -1,7 +1,6 @@
'use strict'; 'use strict';
import { Injectable, EventEmitter } from '@angular/core'; import { Injectable, EventEmitter } from '@angular/core';
import { Subscription } from 'rxjs/Subscription'; import { Subscription , BehaviorSubject } from 'rxjs';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { ScrollService, INVIEW_POSITION } from './scroll.service'; import { ScrollService, INVIEW_POSITION } from './scroll.service';
import { WarningsService } from './warnings.service'; import { WarningsService } from './warnings.service';
import { Hash } from './hash.service'; import { Hash } from './hash.service';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { BehaviorSubject } from 'rxjs';
@Injectable() @Injectable()
export class WarningsService { export class WarningsService {

View File

@ -9,7 +9,7 @@ import {
Injectable Injectable
} from '@angular/core'; } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { BehaviorSubject } from 'rxjs';
import { ScrollService } from '../../../services/scroll.service'; import { ScrollService } from '../../../services/scroll.service';
import { OptionsService } from '../../../services/options.service'; import { OptionsService } from '../../../services/options.service';

View File

@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
import * as JsonSchemaRefParser from 'json-schema-ref-parser'; import * as JsonSchemaRefParser from 'json-schema-ref-parser';
import { JsonPointer } from './JsonPointer'; import { JsonPointer } from './JsonPointer';
import { parse as urlParse, resolve as urlResolve } from 'url'; import { parse as urlParse, resolve as urlResolve } from 'url';
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { BehaviorSubject } from 'rxjs';
import { MdRenderer } from './md-renderer'; import { MdRenderer } from './md-renderer';

View File

@ -54,13 +54,13 @@
"author": "Roman Hotsiy", "author": "Roman Hotsiy",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@angular/common": "^4.4.3", "@angular/common": "^6.1.10",
"@angular/compiler": "^4.4.3", "@angular/compiler": "^6.1.10",
"@angular/compiler-cli": "^4.4.3", "@angular/compiler-cli": "^6.1.10",
"@angular/core": "^4.4.3", "@angular/core": "^6.1.10",
"@angular/platform-browser": "^4.4.3", "@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^4.4.3", "@angular/platform-browser-dynamic": "^6.1.10",
"@angular/platform-server": "^4.4.3", "@angular/platform-server": "^6.1.10",
"@types/jasmine": "^2.6.0", "@types/jasmine": "^2.6.0",
"@types/requirejs": "^2.1.31", "@types/requirejs": "^2.1.31",
"@types/should": "^11.2.0", "@types/should": "^11.2.0",
@ -95,7 +95,7 @@
"protractor": "^5.1.1", "protractor": "^5.1.1",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"rxjs": "^5.4.3", "rxjs": "^6.3.3",
"sass-loader": "^6.0.6", "sass-loader": "^6.0.6",
"shelljs": "^0.7.7", "shelljs": "^0.7.7",
"should": "^13.1.0", "should": "^13.1.0",
@ -111,18 +111,13 @@
"webpack-merge": "^4.1.0" "webpack-merge": "^4.1.0"
}, },
"peerDependencies": { "peerDependencies": {
"@angular/common": "^4.1.1",
"@angular/compiler": "^4.1.1", "@angular/compiler": "^4.1.1",
"@angular/compiler-cli": "^4.1.1",
"@angular/core": "^4.1.1", "@angular/core": "^4.1.1",
"@angular/forms": "^4.1.1", "@angular/forms": "^6.1.0",
"@angular/platform-browser": "^4.1.1", "core-js": "^2.4.1"
"@angular/platform-browser-dynamic": "^4.1.1",
"@angular/platform-server": "^4.1.1",
"core-js": "^2.4.1",
"rxjs": "^5.3.1"
}, },
"dependencies": { "dependencies": {
"@angular/animations": "^6.1.10",
"core-js": "^2.5.1", "core-js": "^2.5.1",
"dropkickjs": "~2.1.10", "dropkickjs": "~2.1.10",
"hint.css": "2.3.2", "hint.css": "2.3.2",