mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
chore: format and fix ci build
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"../global-types.d.ts",
|
||||
"./**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
|
@ -494,7 +494,6 @@ function ensureBroadCastReceiverClass() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BroadcastReceiverClass = BroadcastReceiver;
|
||||
}
|
||||
|
||||
|
2
packages/core/application/index.d.ts
vendored
2
packages/core/application/index.d.ts
vendored
@ -62,7 +62,7 @@ export let autoSystemAppearanceChanged: boolean;
|
||||
/**
|
||||
* enable/disable systemAppearanceChanged
|
||||
*/
|
||||
export function setAutoSystemAppearanceChanged (value: boolean);
|
||||
export function setAutoSystemAppearanceChanged(value: boolean);
|
||||
|
||||
/**
|
||||
* Updates root view classes including those of modals
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type {InstrumentationMode} from '../profiling'
|
||||
import type { InstrumentationMode } from '../profiling';
|
||||
|
||||
interface IConfigPlatform {
|
||||
/**
|
||||
@ -144,4 +144,3 @@ export interface NativeScriptConfig {
|
||||
*/
|
||||
cssParser?: 'rework' | 'nativescript' | 'css-tree';
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {android as androidApp, getNativeApplication} from '../application';
|
||||
import { android as androidApp, getNativeApplication } from '../application';
|
||||
|
||||
export enum connectionType {
|
||||
none = 0,
|
||||
|
@ -456,7 +456,7 @@ export class BottomNavigation extends TabNavigationBase {
|
||||
const fragmentManager = this._getFragmentManager();
|
||||
const transaction = fragmentManager.beginTransaction();
|
||||
const fragments = fragmentManager.getFragments().toArray();
|
||||
for (let i=0;i<fragments.length;i++) {
|
||||
for (let i = 0; i < fragments.length; i++) {
|
||||
transaction.remove(fragments[i]);
|
||||
}
|
||||
|
||||
|
@ -1,24 +1,18 @@
|
||||
// Types
|
||||
import {TabContentItem} from '../tab-navigation-base/tab-content-item';
|
||||
import {TabStrip} from '../tab-navigation-base/tab-strip';
|
||||
import {TabStripItem} from '../tab-navigation-base/tab-strip-item';
|
||||
import {getTransformedText, TextTransform} from '../text-base';
|
||||
import { TabContentItem } from '../tab-navigation-base/tab-content-item';
|
||||
import { TabStrip } from '../tab-navigation-base/tab-strip';
|
||||
import { TabStripItem } from '../tab-navigation-base/tab-strip-item';
|
||||
import { getTransformedText, TextTransform } from '../text-base';
|
||||
|
||||
// Requires
|
||||
import {Color} from '../../color';
|
||||
import {ImageSource} from '../../image-source';
|
||||
import {Device} from '../../platform';
|
||||
import {iOSNativeHelper, isFontIconURI, layout} from '../../utils';
|
||||
import {CSSType, IOSHelper, View} from '../core/view';
|
||||
import {Frame} from '../frame';
|
||||
import {Font} from '../styling/font';
|
||||
import {
|
||||
getIconSpecSize,
|
||||
itemsProperty,
|
||||
selectedIndexProperty,
|
||||
TabNavigationBase,
|
||||
tabStripProperty
|
||||
} from '../tab-navigation-base/tab-navigation-base';
|
||||
import { Color } from '../../color';
|
||||
import { ImageSource } from '../../image-source';
|
||||
import { Device } from '../../platform';
|
||||
import { iOSNativeHelper, isFontIconURI, layout } from '../../utils';
|
||||
import { CSSType, IOSHelper, View } from '../core/view';
|
||||
import { Frame } from '../frame';
|
||||
import { Font } from '../styling/font';
|
||||
import { getIconSpecSize, itemsProperty, selectedIndexProperty, TabNavigationBase, tabStripProperty } from '../tab-navigation-base/tab-navigation-base';
|
||||
|
||||
// TODO:
|
||||
// import { profile } from "../../profiling";
|
||||
|
@ -305,7 +305,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
super();
|
||||
this._domId = viewIdCounter++;
|
||||
this._style = new Style(new WeakRef(this));
|
||||
this.notify({eventName: ViewBase.createdEvent, type: this.constructor.name, object: this});
|
||||
this.notify({ eventName: ViewBase.createdEvent, type: this.constructor.name, object: this });
|
||||
}
|
||||
|
||||
// Used in Angular.
|
||||
|
@ -54,7 +54,7 @@ export class TabContentItem extends TabContentItemBase {
|
||||
}
|
||||
|
||||
const fragments = fragmentManager.getFragments().toArray();
|
||||
for (let i=0;i<fragments.length;i++) {
|
||||
for (let i = 0; i < fragments.length; i++) {
|
||||
if (fragments[i].index === this.index) {
|
||||
tabFragment = fragments[i];
|
||||
break;
|
||||
|
@ -366,7 +366,7 @@ export class TabViewItem extends TabViewItemBase {
|
||||
let tabFragment = null;
|
||||
const fragmentManager = tabView._getFragmentManager();
|
||||
const fragments = fragmentManager.getFragments().toArray();
|
||||
for (let i=0;i<fragments.length;i++) {
|
||||
for (let i = 0; i < fragments.length; i++) {
|
||||
if (fragments[i].index === this.index) {
|
||||
tabFragment = fragments[i];
|
||||
break;
|
||||
@ -624,7 +624,7 @@ export class TabView extends TabViewBase {
|
||||
const fragmentManager = this._getFragmentManager();
|
||||
const transaction = fragmentManager.beginTransaction();
|
||||
let fragments = <Array<any>>fragmentManager.getFragments().toArray();
|
||||
for (let i=0;i<fragments.length;i++) {
|
||||
for (let i = 0; i < fragments.length; i++) {
|
||||
transaction.remove(fragments[i]);
|
||||
}
|
||||
transaction.commitNowAllowingStateLoss();
|
||||
|
@ -566,7 +566,7 @@ export class Tabs extends TabsBase {
|
||||
const fragmentManager = this._getFragmentManager();
|
||||
const transaction = fragmentManager.beginTransaction();
|
||||
let fragments = <Array<any>>fragmentManager.getFragments().toArray();
|
||||
for (let i=0;i<fragments.length;i++ ) {
|
||||
for (let i = 0; i < fragments.length; i++) {
|
||||
transaction.remove(fragments[i]);
|
||||
}
|
||||
transaction.commitNowAllowingStateLoss();
|
||||
|
Reference in New Issue
Block a user