chore(analysis): analyze web folders; fix existing warnings
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
import {int, isPresent} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {bootstrap, Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {ScrollAreaComponent} from './scroll_area';
|
||||
|
@ -1,9 +1,4 @@
|
||||
import {int} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {bootstrap, Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST}
|
||||
from './common';
|
||||
|
@ -1,7 +1,5 @@
|
||||
import {int} from 'angular2/src/facade/lang';
|
||||
import {Math} from 'angular2/src/facade/math';
|
||||
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
export var ITEMS = 1000;
|
||||
@ -46,17 +44,17 @@ export var AAT_STATUS_LIST = [
|
||||
|
||||
// Just a non-trivial object. Nothing fancy or correct.
|
||||
export class CustomDate {
|
||||
year: int;
|
||||
month: int;
|
||||
day: int;
|
||||
year:number;
|
||||
month:number;
|
||||
day:number;
|
||||
|
||||
constructor(y:int, m:int, d:int) {
|
||||
constructor(y:number, m:number, d:number) {
|
||||
this.year = y;
|
||||
this.month = m;
|
||||
this.day = d;
|
||||
}
|
||||
|
||||
addDays(days:int):CustomDate {
|
||||
addDays(days:number):CustomDate {
|
||||
var newDay = this.day + days;
|
||||
var newMonth = this.month + Math.floor(newDay / 30);
|
||||
newDay = newDay % 30;
|
||||
@ -154,13 +152,13 @@ export class Offering extends RawEntity {
|
||||
this.set('account', val);
|
||||
}
|
||||
|
||||
get basePoints():int { return this.get('basePoints'); }
|
||||
set basePoints(val:int) {
|
||||
get basePoints():number { return this.get('basePoints'); }
|
||||
set basePoints(val:number) {
|
||||
this.set('basePoints', val);
|
||||
}
|
||||
|
||||
get kickerPoints():int { return this.get('kickerPoints'); }
|
||||
set kickerPoints(val:int) {
|
||||
get kickerPoints():number { return this.get('kickerPoints'); }
|
||||
set kickerPoints(val:number) {
|
||||
this.set('kickerPoints', val);
|
||||
}
|
||||
|
||||
@ -198,8 +196,8 @@ export class Opportunity extends RawEntity {
|
||||
}
|
||||
|
||||
export class Account extends RawEntity {
|
||||
get accountId():int { return this.get('accountId'); }
|
||||
set accountId(val:int) {
|
||||
get accountId():number { return this.get('accountId'); }
|
||||
set accountId(val:number) {
|
||||
this.set('accountId', val);
|
||||
}
|
||||
}
|
||||
|
@ -1,48 +1,13 @@
|
||||
import {int, isBlank} from 'angular2/src/facade/lang';
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
import {MapWrapper} from 'angular2/src/facade/collection';
|
||||
|
||||
import {Parser, Lexer, ChangeDetector, ChangeDetection}
|
||||
from 'angular2/change_detection';
|
||||
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
|
||||
import {
|
||||
bootstrap, Component, Viewport, View, ViewContainer, Compiler, onChange, NgElement, Decorator
|
||||
} from 'angular2/angular2';
|
||||
import {bootstrap} from 'angular2/angular2';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
|
||||
import {CompilerCache} from 'angular2/src/core/compiler/compiler';
|
||||
import {DirectiveMetadataReader} from 'angular2/src/core/compiler/directive_metadata_reader';
|
||||
import {ShadowDomStrategy} from 'angular2/src/render/dom/shadow_dom/shadow_dom_strategy';
|
||||
import {NativeShadowDomStrategy} from 'angular2/src/render/dom/shadow_dom/native_shadow_dom_strategy';
|
||||
import {EmulatedUnscopedShadowDomStrategy} from 'angular2/src/render/dom/shadow_dom/emulated_unscoped_shadow_dom_strategy';
|
||||
import {TemplateLoader} from 'angular2/src/render/dom/compiler/template_loader';
|
||||
import {TemplateResolver} from 'angular2/src/core/compiler/template_resolver';
|
||||
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
|
||||
import {XHR} from 'angular2/src/services/xhr';
|
||||
import {XHRImpl} from 'angular2/src/services/xhr_impl';
|
||||
import {UrlResolver} from 'angular2/src/services/url_resolver';
|
||||
import {StyleUrlResolver} from 'angular2/src/render/dom/shadow_dom/style_url_resolver';
|
||||
import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
|
||||
import {StyleInliner} from 'angular2/src/render/dom/shadow_dom/style_inliner';
|
||||
import {DynamicComponentLoader} from 'angular2/src/core/compiler/dynamic_component_loader';
|
||||
import {TestabilityRegistry, Testability} from 'angular2/src/core/testability/testability';
|
||||
|
||||
import {If, For} from 'angular2/directives';
|
||||
import {App} from './app';
|
||||
import {ScrollAreaComponent} from './scroll_area';
|
||||
import {ScrollItemComponent} from './scroll_item';
|
||||
import {CompanyNameComponent, OpportunityNameComponent, OfferingNameComponent,
|
||||
AccountCellComponent, StageButtonsComponent, FormattedCellComponent}
|
||||
from './cells';
|
||||
|
||||
import {EventManager} from 'angular2/src/render/dom/events/event_manager';
|
||||
import {ViewFactory, VIEW_POOL_CAPACITY} from 'angular2/src/core/compiler/view_factory';
|
||||
import {ProtoViewFactory} from 'angular2/src/core/compiler/proto_view_factory';
|
||||
import {Renderer} from 'angular2/src/render/api';
|
||||
import {DirectDomRenderer} from 'angular2/src/render/dom/direct_dom_renderer';
|
||||
import * as rc from 'angular2/src/render/dom/compiler/compiler';
|
||||
import * as rvf from 'angular2/src/render/dom/view/view_factory';
|
||||
import {Inject, bind} from 'angular2/di';
|
||||
import {VIEW_POOL_CAPACITY} from 'angular2/src/core/compiler/view_factory';
|
||||
import {bind} from 'angular2/di';
|
||||
|
||||
export function main() {
|
||||
setupReflector();
|
||||
@ -59,7 +24,6 @@ export function setupReflector() {
|
||||
// TODO(kegluneq): Generate this.
|
||||
reflector.registerSetters({
|
||||
'style': (o, m) => {
|
||||
//if (isBlank(m)) return;
|
||||
// HACK
|
||||
MapWrapper.forEach(m, function(v, k) {
|
||||
o.style.setProperty(k, v);
|
||||
|
@ -1,11 +1,5 @@
|
||||
import {int, FINAL} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
|
||||
import {Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
import {Math} from 'angular2/src/facade/math';
|
||||
|
||||
import {Offering, ITEMS, ITEM_HEIGHT, VISIBLE_ITEMS, VIEW_PORT_HEIGHT,
|
||||
|
@ -1,11 +1,5 @@
|
||||
import {int} from 'angular2/src/facade/lang';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {Component, Viewport, View, ViewContainer, Compiler}
|
||||
from 'angular2/angular2';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {Component, View} from 'angular2/angular2';
|
||||
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
|
||||
import {DOM} from 'angular2/src/dom/dom_adapter';
|
||||
import {Math} from 'angular2/src/facade/math';
|
||||
import {CompanyNameComponent, OpportunityNameComponent,
|
||||
OfferingNameComponent, StageButtonsComponent, AccountCellComponent,
|
||||
FormattedCellComponent} from './cells';
|
||||
@ -14,7 +8,6 @@ import {Offering, ITEM_HEIGHT, COMPANY_NAME_WIDTH, OPPORTUNITY_NAME_WIDTH,
|
||||
OFFERING_NAME_WIDTH, ACCOUNT_CELL_WIDTH, BASE_POINTS_WIDTH,
|
||||
KICKER_POINTS_WIDTH, STAGE_BUTTONS_WIDTH, BUNDLES_WIDTH, DUE_DATE_WIDTH,
|
||||
END_DATE_WIDTH, AAT_STATUS_WIDTH} from './common';
|
||||
import {generateOfferings} from './random_data';
|
||||
|
||||
@Component({
|
||||
selector: 'scroll-item',
|
||||
|
Reference in New Issue
Block a user