mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(all): tslinter warnings
This commit is contained in:
committed by
Adam Bradley
parent
324f2cb189
commit
ac8e4dce06
@@ -1,8 +1,8 @@
|
||||
import {Component, ElementRef, Renderer, Attribute, Optional, Input, ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';
|
||||
import { Component, ElementRef, Renderer, Attribute, Optional, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
import {Config} from '../../config/config';
|
||||
import {Toolbar} from '../toolbar/toolbar';
|
||||
import {isTrueProperty} from '../../util/util';
|
||||
import { Config } from '../../config/config';
|
||||
import { Toolbar } from '../toolbar/toolbar';
|
||||
import { isTrueProperty } from '../../util/util';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {App, ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { App, ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
btnColor;
|
||||
btnColor: string;
|
||||
testingColors = ['primary', 'secondary', 'danger', 'dark'];
|
||||
testingColorIndex = 0;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Button, Config} from '../../../../src';
|
||||
import { Button, Config } from '../../../../src';
|
||||
|
||||
export function run() {
|
||||
|
||||
@@ -108,7 +108,7 @@ export function run() {
|
||||
|
||||
b = mockButton(['solid']);
|
||||
b._assignCss(true);
|
||||
expect(hasClass(b, 'button-solid')).toEqual(true);
|
||||
expect(hasClass(b, 'button-solid')).toEqual(true);
|
||||
|
||||
b = mockButton(['clear', 'outline', 'small', 'full']);
|
||||
b._assignCss(true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -19,38 +19,38 @@ class E2EPage {
|
||||
showIf: boolean = true;
|
||||
|
||||
constructor() {
|
||||
this.reset();
|
||||
}
|
||||
this.reset();
|
||||
}
|
||||
|
||||
unify() {
|
||||
this.isDestructive = false;
|
||||
this.isSecondary = false;
|
||||
this.isCustom = false;
|
||||
this.isSolid = false;
|
||||
this.isOutline = false;
|
||||
this.isClear = false;
|
||||
this.isClicked = false;
|
||||
this.myColor1 = 'primary';
|
||||
this.myColor2 = 'primary';
|
||||
this.multiColor = ['primary'];
|
||||
}
|
||||
unify() {
|
||||
this.isDestructive = false;
|
||||
this.isSecondary = false;
|
||||
this.isCustom = false;
|
||||
this.isSolid = false;
|
||||
this.isOutline = false;
|
||||
this.isClear = false;
|
||||
this.isClicked = false;
|
||||
this.myColor1 = 'primary';
|
||||
this.myColor2 = 'primary';
|
||||
this.multiColor = ['primary'];
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.isDestructive = true;
|
||||
this.isSecondary = true;
|
||||
this.isCustom = true;
|
||||
this.isSolid = true;
|
||||
this.isOutline = true;
|
||||
this.isClear = true;
|
||||
this.isClicked = false;
|
||||
this.myColor1 = 'custom1';
|
||||
this.myColor2 = 'custom2';
|
||||
this.multiColor = ['primary','secondary'];
|
||||
}
|
||||
reset() {
|
||||
this.isDestructive = true;
|
||||
this.isSecondary = true;
|
||||
this.isCustom = true;
|
||||
this.isSolid = true;
|
||||
this.isOutline = true;
|
||||
this.isClear = true;
|
||||
this.isClicked = false;
|
||||
this.myColor1 = 'custom1';
|
||||
this.myColor2 = 'custom2';
|
||||
this.multiColor = ['primary', 'secondary'];
|
||||
}
|
||||
|
||||
toggle() {
|
||||
this.isClicked = !this.isClicked;
|
||||
}
|
||||
toggle() {
|
||||
this.isClicked = !this.isClicked;
|
||||
}
|
||||
}
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {ionicBootstrap} from '../../../../../src';
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
|
||||
Reference in New Issue
Block a user