From a02c2a9485e2381ca8a61ef8581237a7eb49c2ad Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Mon, 15 Feb 2021 12:33:15 -0800 Subject: [PATCH] chore: doc updates --- app/app.js | 2 +- app/app.ts | 2 +- app/home/first-ts-page.ts | 2 +- .../android-broadcast-receiver-page.js | 2 +- .../android-broadcast-receiver-ts-page.ts | 2 +- .../application/application-page.js | 2 +- .../ios-notification-observer-page.js | 2 +- .../ios-notification-observer-ts-page.ts | 2 +- .../platform/usage/usage-page.js | 2 +- .../platform/usage/usage-ts-page.ts | 2 +- .../tips-and-tricks/tips-and-tricks-page.js | 2 +- .../tips-and-tricks/tips-and-tricks-ts-page.ts | 2 +- app/ns-ui-widgets-category/placeholder/basics/basics-page.js | 2 +- .../placeholder/basics/basics-ts-page.ts | 2 +- .../placeholder/code-behind/code-behind-page.js | 2 +- .../placeholder/code-behind/code-behind-ts-page.ts | 2 +- app/ns-ui-widgets-category/tab-view/tab-view-page.js | 2 +- .../time-picker/time-format/time-format-page.js | 4 ++-- .../time-picker/time-format/time-format-ts-page.ts | 2 +- app/ns-ui-widgets-category/web-view/gestures/gestures-page.js | 2 +- .../web-view/gestures/gestures-ts-page.ts | 2 +- 21 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/app.js b/app/app.js index de7f4f4..964bdbb 100644 --- a/app/app.js +++ b/app/app.js @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var application = require("tns-core-modules/application"); -var platformModule = require("tns-core-modules/platform"); +var platformModule = require("@nativescript/core"); var applicationSettingsModule = require("tns-core-modules/application-settings"); var deepLinkDataModule = require("./shared/deep-link-data"); if (platformModule.isIOS) { diff --git a/app/app.ts b/app/app.ts index 0e355c9..dab31de 100644 --- a/app/app.ts +++ b/app/app.ts @@ -4,7 +4,7 @@ You can use this file to perform app-level initialization, but the primary purpose of the file is to pass control to the app’s first module. */ import * as application from "tns-core-modules/application"; -import * as platformModule from "tns-core-modules/platform"; +import * as platformModule from "@nativescript/core"; import * as applicationSettingsModule from"tns-core-modules/application-settings"; import {Frame} from "tns-core-modules/ui/frame"; const deepLinkDataModule = require("./shared/deep-link-data"); diff --git a/app/home/first-ts-page.ts b/app/home/first-ts-page.ts index aff3464..7ae0aea 100644 --- a/app/home/first-ts-page.ts +++ b/app/home/first-ts-page.ts @@ -1,6 +1,6 @@ import { AnimationCurve } from "tns-core-modules/ui/enums"; import * as frameModule from "tns-core-modules/ui/frame"; -import { isAndroid, isIOS } from "tns-core-modules/platform"; +import { isAndroid, isIOS } from "@nativescript/core"; // >> frame-navigate-base-ts import { getFrameById } from "tns-core-modules/ui/frame"; diff --git a/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-page.js b/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-page.js index fd581a1..3c6dc6c 100644 --- a/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-page.js +++ b/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-page.js @@ -1,7 +1,7 @@ const applicationModule = require("tns-core-modules/application"); const Observable = require("tns-core-modules/data/observable").Observable; -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); let vm; function onNavigatingTo(args) { diff --git a/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-ts-page.ts b/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-ts-page.ts index 67f02d7..e22d3d0 100644 --- a/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-ts-page.ts +++ b/app/ns-framework-modules-category/application/android-broadcast-receiver/android-broadcast-receiver-ts-page.ts @@ -2,7 +2,7 @@ import * as applicationModule from "tns-core-modules/application"; import { android as androidApp } from "tns-core-modules/application"; import { Observable } from "tns-core-modules/data/observable"; -import { isAndroid } from "tns-core-modules/platform"; +import { isAndroid } from "@nativescript/core"; import { Page, NavigatedData } from "tns-core-modules/ui/page"; let vm; diff --git a/app/ns-framework-modules-category/application/application-page.js b/app/ns-framework-modules-category/application/application-page.js index bc43d46..cb92bab 100644 --- a/app/ns-framework-modules-category/application/application-page.js +++ b/app/ns-framework-modules-category/application/application-page.js @@ -1,6 +1,6 @@ const ListViewLinksModel = require("../../links-view-model"); const link = require("../../link"); -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); const navigationLinks = [ new link( "Check Platform", diff --git a/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-page.js b/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-page.js index 9090064..3cdaa05 100644 --- a/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-page.js +++ b/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-page.js @@ -1,6 +1,6 @@ const application = require("tns-core-modules/application"); const Observable = require("tns-core-modules/data/observable").Observable; -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); const utilsModule = require("tns-core-modules/utils/utils"); let vm; let observer; diff --git a/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-ts-page.ts b/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-ts-page.ts index fc0252a..c69ce1e 100644 --- a/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-ts-page.ts +++ b/app/ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-ts-page.ts @@ -1,6 +1,6 @@ import * as application from "tns-core-modules/application"; import { Observable } from "tns-core-modules/data/observable"; -import { isIOS } from "tns-core-modules/platform"; +import { isIOS } from "@nativescript/core"; import { ios as iosApp } from "tns-core-modules/application"; let vm; diff --git a/app/ns-framework-modules-category/platform/usage/usage-page.js b/app/ns-framework-modules-category/platform/usage/usage-page.js index a13c1a5..6e738a8 100644 --- a/app/ns-framework-modules-category/platform/usage/usage-page.js +++ b/app/ns-framework-modules-category/platform/usage/usage-page.js @@ -1,5 +1,5 @@ // >> get-screen-device-info -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); function onNavigatingTo(args) { console.log(`Running on Android? ${platformModule.isAndroid}`); diff --git a/app/ns-framework-modules-category/platform/usage/usage-ts-page.ts b/app/ns-framework-modules-category/platform/usage/usage-ts-page.ts index 4087461..0363585 100644 --- a/app/ns-framework-modules-category/platform/usage/usage-ts-page.ts +++ b/app/ns-framework-modules-category/platform/usage/usage-ts-page.ts @@ -1,6 +1,6 @@ // tslint:disable:max-line-length // >> get-screen-device-info-ts -import { device, screen, isAndroid, isIOS } from "tns-core-modules/platform"; +import { device, screen, isAndroid, isIOS } from "@nativescript/core"; export function onNavigatingTo(args) { console.log(`Running on Android? ${isAndroid}`); diff --git a/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-page.js b/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-page.js index b7cba2b..ceb553b 100644 --- a/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-page.js +++ b/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-page.js @@ -1,5 +1,5 @@ // >> large-ios-indicator -const isIOS = require("tns-core-modules/platform").isIOS; +const isIOS = require("@nativescript/core").isIOS; function onLoaded(args) { const view = args.object; diff --git a/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-ts-page.ts b/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-ts-page.ts index 41a66f8..5de1261 100644 --- a/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-ts-page.ts +++ b/app/ns-ui-widgets-category/activity-indicator/tips-and-tricks/tips-and-tricks-ts-page.ts @@ -1,5 +1,5 @@ // >> large-ios-indicator-ts -import { isIOS } from "tns-core-modules/platform"; +import { isIOS } from "@nativescript/core"; import {ActivityIndicator} from "tns-core-modules/ui/activity-indicator"; export function onLoaded(args) { diff --git a/app/ns-ui-widgets-category/placeholder/basics/basics-page.js b/app/ns-ui-widgets-category/placeholder/basics/basics-page.js index 64bf345..dd1cd63 100644 --- a/app/ns-ui-widgets-category/placeholder/basics/basics-page.js +++ b/app/ns-ui-widgets-category/placeholder/basics/basics-page.js @@ -1,7 +1,7 @@ // >> placeholder-require const placeholderModule = require("tns-core-modules/ui/placeholder"); // << placeholder-require -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); const utils = require("tns-core-modules/utils/utils"); // >> placeholder-code function creatingView(args) { diff --git a/app/ns-ui-widgets-category/placeholder/basics/basics-ts-page.ts b/app/ns-ui-widgets-category/placeholder/basics/basics-ts-page.ts index 4dab8c0..5982ca5 100644 --- a/app/ns-ui-widgets-category/placeholder/basics/basics-ts-page.ts +++ b/app/ns-ui-widgets-category/placeholder/basics/basics-ts-page.ts @@ -1,7 +1,7 @@ // >> placeholder-import import { Placeholder } from "tns-core-modules/ui/placeholder"; // << placeholder-import -import { isIOS, isAndroid } from "tns-core-modules/platform"; +import { isIOS, isAndroid } from "@nativescript/core"; import { ad } from "tns-core-modules/utils/utils"; // >> placeholder-code-ts export function creatingView(args) { diff --git a/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-page.js b/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-page.js index 8c8af99..b8eb8b6 100644 --- a/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-page.js +++ b/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-page.js @@ -1,5 +1,5 @@ const placeholderModule = require("tns-core-modules/ui/placeholder"); -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); const utils = require("tns-core-modules/utils/utils"); // >> code-behind-placeholder-code function onLayoutLoaded (ltargs) { diff --git a/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-ts-page.ts b/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-ts-page.ts index 52a6307..169b1e0 100644 --- a/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-ts-page.ts +++ b/app/ns-ui-widgets-category/placeholder/code-behind/code-behind-ts-page.ts @@ -1,5 +1,5 @@ import { Placeholder } from "tns-core-modules/ui/placeholder"; -import { isIOS, isAndroid } from "tns-core-modules/platform"; +import { isIOS, isAndroid } from "@nativescript/core"; import { ad } from "tns-core-modules/utils/utils"; import {StackLayout} from "tns-core-modules/ui/layouts/stack-layout"; // >> code-behind-placeholder-code-ts diff --git a/app/ns-ui-widgets-category/tab-view/tab-view-page.js b/app/ns-ui-widgets-category/tab-view/tab-view-page.js index 9b98071..c6771c0 100644 --- a/app/ns-ui-widgets-category/tab-view/tab-view-page.js +++ b/app/ns-ui-widgets-category/tab-view/tab-view-page.js @@ -1,6 +1,6 @@ const ListViewLinksModel = require("../../links-view-model"); const link = require("../../link"); -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); const navigationLinks = [ new link("Basics", "ns-ui-widgets-category/tab-view/basics/basics-page"), new link("Styling", "ns-ui-widgets-category/tab-view/styling/styling-page"), diff --git a/app/ns-ui-widgets-category/time-picker/time-format/time-format-page.js b/app/ns-ui-widgets-category/time-picker/time-format/time-format-page.js index f25667d..0157dbc 100644 --- a/app/ns-ui-widgets-category/time-picker/time-format/time-format-page.js +++ b/app/ns-ui-widgets-category/time-picker/time-format/time-format-page.js @@ -1,6 +1,6 @@ // >> timepicker-time-format-code -const isAndroid = require("tns-core-modules/platform").isAndroid; -const isIOS = require("tns-core-modules/platform").isIOS; +const isAndroid = require("@nativescript/core").isAndroid; +const isIOS = require("@nativescript/core").isIOS; function onPickerLoaded(args) { const timePicker = args.object; diff --git a/app/ns-ui-widgets-category/time-picker/time-format/time-format-ts-page.ts b/app/ns-ui-widgets-category/time-picker/time-format/time-format-ts-page.ts index cd997f5..4442671 100644 --- a/app/ns-ui-widgets-category/time-picker/time-format/time-format-ts-page.ts +++ b/app/ns-ui-widgets-category/time-picker/time-format/time-format-ts-page.ts @@ -1,5 +1,5 @@ // >> timepicker-time-format-code-ts -import {isAndroid, isIOS} from "tns-core-modules/platform"; +import {isAndroid, isIOS} from "@nativescript/core"; import { TimePicker } from "tns-core-modules/ui/time-picker"; export function onPickerLoaded(args) { diff --git a/app/ns-ui-widgets-category/web-view/gestures/gestures-page.js b/app/ns-ui-widgets-category/web-view/gestures/gestures-page.js index 7be1318..b4422de 100644 --- a/app/ns-ui-widgets-category/web-view/gestures/gestures-page.js +++ b/app/ns-ui-widgets-category/web-view/gestures/gestures-page.js @@ -2,7 +2,7 @@ const Observable = require("tns-core-modules/data/observable").Observable; // >> webview-require const webViewModule = require("tns-core-modules/ui/web-view"); // << webview-require -const platformModule = require("tns-core-modules/platform"); +const platformModule = require("@nativescript/core"); // >> webview-js-gestures function onNavigatingTo(args) { const page = args.object; diff --git a/app/ns-ui-widgets-category/web-view/gestures/gestures-ts-page.ts b/app/ns-ui-widgets-category/web-view/gestures/gestures-ts-page.ts index fd40f95..ea53fa1 100644 --- a/app/ns-ui-widgets-category/web-view/gestures/gestures-ts-page.ts +++ b/app/ns-ui-widgets-category/web-view/gestures/gestures-ts-page.ts @@ -4,7 +4,7 @@ import { Page } from "tns-core-modules/ui/page"; // >> webview-import import { WebView } from "tns-core-modules/ui/web-view"; // << webview-import -import { isAndroid } from "tns-core-modules/platform"; +import { isAndroid } from "@nativescript/core"; // >> webview-js-gestures-ts export function onNavigatingTo(args) { const page: Page = args.object;