fix: update core and apply stricter tslint rules

This commit is contained in:
Michel Jonathan Schmitz
2019-07-10 12:38:29 +02:00
parent 03c317430a
commit 911492d064
67 changed files with 1291 additions and 507 deletions

View File

@@ -15,10 +15,16 @@
import {Component, Input} from '@angular/core';
import {SCPostalAddress} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-address-detail',
templateUrl: 'address-detail.html',
})
export class AddressDetailComponent {
/**
* TODO
*/
@Input() address: SCPostalAddress;
}

View File

@@ -14,11 +14,20 @@
*/
import {Component, Input} from '@angular/core';
/**
* TODO
*/
@Component({
selector: 'stapps-long-inline-text',
templateUrl: 'long-inline-text.html',
})
export class LongInlineText {
@Input() text: string;
/**
* TODO
*/
@Input() size: number;
/**
* TODO
*/
@Input() text: string;
}

View File

@@ -15,11 +15,20 @@
import {Component, Input} from '@angular/core';
import {SCAcademicPriceGroup, SCThingThatCanBeOfferedOffer} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-offers-detail',
templateUrl: 'offers-detail.html',
})
export class OffersDetailComponent {
/**
* TODO
*/
objectKeys = Object.keys;
/**
* TODO
*/
@Input() offers: Array<SCThingThatCanBeOfferedOffer<SCAcademicPriceGroup>>;
}

View File

@@ -15,10 +15,16 @@
import {Component, Input} from '@angular/core';
import {SCAcademicPriceGroup, SCThingThatCanBeOfferedOffer} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-offers-in-list',
templateUrl: 'offers-in-list.html',
})
export class OffersInListComponent {
/**
* TODO
*/
@Input() offers: Array<SCThingThatCanBeOfferedOffer<SCAcademicPriceGroup>>;
}

View File

@@ -15,10 +15,16 @@
import {Component, Input} from '@angular/core';
import {SCThingOrigin} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-origin-detail',
templateUrl: 'origin-detail.html',
})
export class OriginDetailComponent {
/**
* TODO
*/
@Input() origin: SCThingOrigin;
}

View File

@@ -15,10 +15,16 @@
import {Component, Input} from '@angular/core';
import {SCThingOrigin} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-origin-in-list',
templateUrl: 'origin-in-list.html',
})
export class OriginInListComponent {
/**
* TODO
*/
@Input() origin: SCThingOrigin;
}

View File

@@ -15,18 +15,41 @@
import {Component, Input} from '@angular/core';
import {isThing, SCThing} from '@openstapps/core';
/**
* TODO
*/
@Component({
selector: 'stapps-simple-card',
templateUrl: 'simple-card.html',
})
export class SimpleCardComponent {
areThings: boolean = false;
/**
* TODO
*/
areThings = false;
/**
* TODO
*/
@Input() content: string | string[] | SCThing[];
@Input() isMarkdown: boolean = false;
/**
* TODO
*/
@Input() isMarkdown = false;
/**
* TODO
*/
@Input() title: string;
/**
* TODO
*/
// tslint:disable-next-line:prefer-function-over-method
isString(data: any): data is string {
return typeof data === 'string';
}
/**
* TODO
*/
// tslint:disable-next-line:prefer-function-over-method
isThing(something: any): something is SCThing {
return isThing(something);
}

View File

@@ -14,6 +14,9 @@
*/
import {Component} from '@angular/core';
/**
* TODO
*/
@Component({
selector: 'stapps-skeleton-list-item',
templateUrl: 'skeleton-list-item.html',

View File

@@ -14,6 +14,9 @@
*/
import {Component} from '@angular/core';
/**
* TODO
*/
@Component({
selector: 'stapps-skeleton-simple-card',
templateUrl: 'skeleton-simple-card.html',