Skip to content

Commit 8bd58bd

Browse files
committed
chore: update dependencies & obsolete code snippets
1 parent b215614 commit 8bd58bd

File tree

13 files changed

+56
-35
lines changed

13 files changed

+56
-35
lines changed

app/links-view-model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ function ListViewLinksModel(info) {
2626

2727
viewModel.set("onItemTap", (args) => {
2828
const linkItem = viewModel.get("links").getItem(args.index);
29-
frameModule.topmost().navigate({
29+
frameModule.Frame.topmost().navigate({
3030
moduleName: linkItem.link,
3131
context: { "title": linkItem.title }
3232
});
3333
});
3434
viewModel.set("onSecondItemTap", (args) => {
3535
const linkItem = viewModel.get("tsclinks").getItem(args.index);
36-
frameModule.topmost().navigate({
36+
frameModule.Frame.topmost().navigate({
3737
moduleName: linkItem.link,
3838
context: { "title": linkItem.title }
3939
});

app/ns-framework-modules-category/application/application-events/application-events-page.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
</Page.actionBar>
55
<GridLayout rows="*, auto, auto, auto, auto, *" columns="*" class="m-20" loaded="onGridLoaded" unloaded="onGridUnloaded">
66
<Label row="0" text="{{ 'Using orientationChanged event \nCurrent orientation: ' + orientation }}" fontSize="14" textWrap="true" />
7-
<Label row="1" text="{{ orientation === 'portrait' ? '&#xf10b; Portrait' : '&#xf03e; Landscape' }}" fontSize="24" textWrap="true" class="fa"/>
8-
<Label row="2" text="{{ displayedEvent }}" fontSize="14" textWrap="true" class="fa"/>
9-
<Label row="3" text="{{ suspendEvent }}" fontSize="14" textWrap="true" class="fa"/>
10-
<Label row="4" text="{{ resumeEvent }}" fontSize="14" textWrap="true" class="fa"/>
7+
<Label row="1" text="{{ orientation === 'portrait' ? '&#xf10b; Portrait' : '&#xf03e; Landscape' }}" fontSize="24" textWrap="true" class="far"/>
8+
<Label row="2" text="{{ displayedEvent }}" fontSize="14" textWrap="true" class="far"/>
9+
<Label row="3" text="{{ suspendEvent }}" fontSize="14" textWrap="true" class="far"/>
10+
<Label row="4" text="{{ resumeEvent }}" fontSize="14" textWrap="true" class="far"/>
1111
<Label row="5" text="{{ info }}" textWrap="true" fontSize="14"/>
1212
</GridLayout>
1313
</Page>

app/ns-framework-modules-category/application/application-events/application-events-ts-page.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
</Page.actionBar>
55
<GridLayout rows="*, auto, auto, auto, auto, *" columns="*" class="m-20" loaded="onGridLoaded" unloaded="onGridUnloaded">
66
<Label row="0" text="{{ 'Using orientationChanged event \nCurrent orientation: ' + orientation }}" fontSize="14" textWrap="true" />
7-
<Label row="1" text="{{ orientation === 'portrait' ? '&#xf10b; Portrait' : '&#xf03e; Landscape' }}" fontSize="24" textWrap="true" class="fa"/>
8-
<Label row="2" text="{{ displayedEvent }}" fontSize="14" textWrap="true" class="fa"/>
9-
<Label row="3" text="{{ suspendEvent }}" fontSize="14" textWrap="true" class="fa"/>
10-
<Label row="4" text="{{ resumeEvent }}" fontSize="14" textWrap="true" class="fa"/>
7+
<Label row="1" text="{{ orientation === 'portrait' ? '&#xf10b; Portrait' : '&#xf03e; Landscape' }}" fontSize="24" textWrap="true" class="far"/>
8+
<Label row="2" text="{{ displayedEvent }}" fontSize="14" textWrap="true" class="far"/>
9+
<Label row="3" text="{{ suspendEvent }}" fontSize="14" textWrap="true" class="far"/>
10+
<Label row="4" text="{{ resumeEvent }}" fontSize="14" textWrap="true" class="far"/>
1111
<Label row="5" text="{{ info }}" textWrap="true" fontSize="14"/>
1212
</GridLayout>
1313
</Page>

app/ns-framework-modules-category/application/application-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ function onNavigatingTo(args) {
2727
navigationLinks.push(
2828
new link(
2929
"iOS Notification Observer",
30-
"/application/ios-notification-observer/ios-notification-observer-page"
30+
"ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-page"
3131
)
3232
);
3333
navigationLinksTsc.push(
3434
new link(
3535
"iOS Notification Observer",
36-
"/application/ios-notification-observer/ios-notification-observer-ts-page"
36+
"ns-framework-modules-category/application/ios-notification-observer/ios-notification-observer-ts-page"
3737
)
3838
);
3939
} else if (platformModule.isAndroid && navigationLinks.filter((e) => e.title === "Android Broadcast Receiver").length < 1) {

app/ns-framework-modules-category/application/check-platform/check-platform-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function onGridLoaded(args) {
44
const grid = args.object;
55
const lbl = grid.getViewById("lbl");
66
const iconLabel = grid.getViewById("iconLabel");
7-
iconLabel.className = "fa";
7+
iconLabel.className = "far";
88
iconLabel.textAlignment = "center";
99
iconLabel.verticalAlignment = "middle";
1010
iconLabel.fontSize = 40;

app/ns-framework-modules-category/application/check-platform/check-platform-ts-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function onGridLoaded(args: EventData) {
88
const grid = <GridLayout>args.object;
99
const lbl = <Label>grid.getViewById("lbl");
1010
const iconLabel = <Label>grid.getViewById("iconLabel");
11-
iconLabel.className = "fa";
11+
iconLabel.className = "far";
1212
iconLabel.textAlignment = "center";
1313
iconLabel.verticalAlignment = "middle";
1414
iconLabel.fontSize = 40;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const frameModule = require("tns-core-modules/ui/frame");
22

33
function goBack() {
4-
frameModule.topmost().goBack();
4+
frameModule.Frame.topmost().goBack();
55
}
66
exports.goBack = goBack;

app/ns-ui-widgets-category/action-bar/usage/usage-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const frameModule = require("tns-core-modules/ui/frame");
33

44
function goBack() {
5-
frameModule.topmost().goBack();
5+
frameModule.Frame.topmost().goBack();
66
}
77
function openSettings() {
88
// implement the custom logic

app/ns-ui-widgets-category/action-bar/usage/usage-ts-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// >> action-bar-basic-usage-sdk-ts
2-
import {topmost} from "tns-core-modules/ui/frame";
2+
import { Frame } from "tns-core-modules/ui/frame";
33

44
export function goBack() {
5-
topmost().goBack();
5+
Frame.topmost().goBack();
66
}
77
export function openSettings() {
88
// implement the custom logic

app/ns-ui-widgets-category/frame/frame-reference/frame-reference-page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
// >> frame-reference-topmost
3-
const topmost = require("tns-core-modules/ui/frame").topmost;
3+
const Frame = require("tns-core-modules/ui/frame").Frame;
44

5-
const topmostFrame = topmost();
5+
const topmostFrame = Frame.topmost();
66
// << frame-reference-topmost
77

88
// >> frame-reference-get-id

0 commit comments

Comments
 (0)