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": [
|
"include": [
|
||||||
|
"../global-types.d.ts",
|
||||||
"./**/*.ts"
|
"./**/*.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
|
@ -494,7 +494,6 @@ function ensureBroadCastReceiverClass() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BroadcastReceiverClass = BroadcastReceiver;
|
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
|
* enable/disable systemAppearanceChanged
|
||||||
*/
|
*/
|
||||||
export function setAutoSystemAppearanceChanged (value: boolean);
|
export function setAutoSystemAppearanceChanged(value: boolean);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates root view classes including those of modals
|
* Updates root view classes including those of modals
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type {InstrumentationMode} from '../profiling'
|
import type { InstrumentationMode } from '../profiling';
|
||||||
|
|
||||||
interface IConfigPlatform {
|
interface IConfigPlatform {
|
||||||
/**
|
/**
|
||||||
@ -144,4 +144,3 @@ export interface NativeScriptConfig {
|
|||||||
*/
|
*/
|
||||||
cssParser?: 'rework' | 'nativescript' | 'css-tree';
|
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 {
|
export enum connectionType {
|
||||||
none = 0,
|
none = 0,
|
||||||
|
@ -456,7 +456,7 @@ export class BottomNavigation extends TabNavigationBase {
|
|||||||
const fragmentManager = this._getFragmentManager();
|
const fragmentManager = this._getFragmentManager();
|
||||||
const transaction = fragmentManager.beginTransaction();
|
const transaction = fragmentManager.beginTransaction();
|
||||||
const fragments = fragmentManager.getFragments().toArray();
|
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]);
|
transaction.remove(fragments[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,24 +1,18 @@
|
|||||||
// Types
|
// Types
|
||||||
import {TabContentItem} from '../tab-navigation-base/tab-content-item';
|
import { TabContentItem } from '../tab-navigation-base/tab-content-item';
|
||||||
import {TabStrip} from '../tab-navigation-base/tab-strip';
|
import { TabStrip } from '../tab-navigation-base/tab-strip';
|
||||||
import {TabStripItem} from '../tab-navigation-base/tab-strip-item';
|
import { TabStripItem } from '../tab-navigation-base/tab-strip-item';
|
||||||
import {getTransformedText, TextTransform} from '../text-base';
|
import { getTransformedText, TextTransform } from '../text-base';
|
||||||
|
|
||||||
// Requires
|
// Requires
|
||||||
import {Color} from '../../color';
|
import { Color } from '../../color';
|
||||||
import {ImageSource} from '../../image-source';
|
import { ImageSource } from '../../image-source';
|
||||||
import {Device} from '../../platform';
|
import { Device } from '../../platform';
|
||||||
import {iOSNativeHelper, isFontIconURI, layout} from '../../utils';
|
import { iOSNativeHelper, isFontIconURI, layout } from '../../utils';
|
||||||
import {CSSType, IOSHelper, View} from '../core/view';
|
import { CSSType, IOSHelper, View } from '../core/view';
|
||||||
import {Frame} from '../frame';
|
import { Frame } from '../frame';
|
||||||
import {Font} from '../styling/font';
|
import { Font } from '../styling/font';
|
||||||
import {
|
import { getIconSpecSize, itemsProperty, selectedIndexProperty, TabNavigationBase, tabStripProperty } from '../tab-navigation-base/tab-navigation-base';
|
||||||
getIconSpecSize,
|
|
||||||
itemsProperty,
|
|
||||||
selectedIndexProperty,
|
|
||||||
TabNavigationBase,
|
|
||||||
tabStripProperty
|
|
||||||
} from '../tab-navigation-base/tab-navigation-base';
|
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// import { profile } from "../../profiling";
|
// import { profile } from "../../profiling";
|
||||||
|
@ -305,7 +305,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
|||||||
super();
|
super();
|
||||||
this._domId = viewIdCounter++;
|
this._domId = viewIdCounter++;
|
||||||
this._style = new Style(new WeakRef(this));
|
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.
|
// Used in Angular.
|
||||||
|
@ -54,7 +54,7 @@ export class TabContentItem extends TabContentItemBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fragments = fragmentManager.getFragments().toArray();
|
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) {
|
if (fragments[i].index === this.index) {
|
||||||
tabFragment = fragments[i];
|
tabFragment = fragments[i];
|
||||||
break;
|
break;
|
||||||
|
@ -366,7 +366,7 @@ export class TabViewItem extends TabViewItemBase {
|
|||||||
let tabFragment = null;
|
let tabFragment = null;
|
||||||
const fragmentManager = tabView._getFragmentManager();
|
const fragmentManager = tabView._getFragmentManager();
|
||||||
const fragments = fragmentManager.getFragments().toArray();
|
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) {
|
if (fragments[i].index === this.index) {
|
||||||
tabFragment = fragments[i];
|
tabFragment = fragments[i];
|
||||||
break;
|
break;
|
||||||
@ -624,7 +624,7 @@ export class TabView extends TabViewBase {
|
|||||||
const fragmentManager = this._getFragmentManager();
|
const fragmentManager = this._getFragmentManager();
|
||||||
const transaction = fragmentManager.beginTransaction();
|
const transaction = fragmentManager.beginTransaction();
|
||||||
let fragments = <Array<any>>fragmentManager.getFragments().toArray();
|
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.remove(fragments[i]);
|
||||||
}
|
}
|
||||||
transaction.commitNowAllowingStateLoss();
|
transaction.commitNowAllowingStateLoss();
|
||||||
|
@ -566,7 +566,7 @@ export class Tabs extends TabsBase {
|
|||||||
const fragmentManager = this._getFragmentManager();
|
const fragmentManager = this._getFragmentManager();
|
||||||
const transaction = fragmentManager.beginTransaction();
|
const transaction = fragmentManager.beginTransaction();
|
||||||
let fragments = <Array<any>>fragmentManager.getFragments().toArray();
|
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.remove(fragments[i]);
|
||||||
}
|
}
|
||||||
transaction.commitNowAllowingStateLoss();
|
transaction.commitNowAllowingStateLoss();
|
||||||
|
Reference in New Issue
Block a user