Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(module-name-resolver): livesync page qualifier handling (#8637)
closes #8622 Co-authored-by: Dimitris - Rafail Katsampas <katsampasdr@gmail.com>
- Loading branch information
Showing
11 changed files
with
143 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<ActionBar> | ||
<Label text="Screen Qualifiers"></Label> | ||
</ActionBar> | ||
|
||
<StackLayout> | ||
<Label text="{{ currentDate }}" fontSize="20"/> | ||
<Label text="IOS Page" backgroundColor="deepskyblue" fontSize="20"/> | ||
</StackLayout> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<ActionBar> | ||
<Label text="Screen Qualifiers"></Label> | ||
</ActionBar> | ||
|
||
<StackLayout> | ||
<Label text="{{ currentDate }}" fontSize="20"/> | ||
<Label text="LandScape Page" backgroundColor="deepskyblue" fontSize="20"/> | ||
</StackLayout> | ||
</Page> |
10 changes: 10 additions & 0 deletions
10
e2e/ui-tests-app/app/screen-qualifiers/main-page.minWH120.port.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<ActionBar> | ||
<Label text="Screen Qualifiers"></Label> | ||
</ActionBar> | ||
|
||
<StackLayout> | ||
<Label text="{{ currentDate }}" fontSize="20"/> | ||
<Label text="minWH 120 DIP Portrait Page" backgroundColor="deepskyblue" fontSize="20"/> | ||
</StackLayout> | ||
</Page> |
10 changes: 10 additions & 0 deletions
10
e2e/ui-tests-app/app/screen-qualifiers/main-page.minWH360.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { EventData } from "tns-core-modules/data/observable"; | ||
import { Observable } from "tns-core-modules/data/observable"; | ||
import { Page } from "tns-core-modules/ui/page"; | ||
|
||
export function pageLoaded(args: EventData) { | ||
const page = <Page>args.object; | ||
|
||
page.bindingContext = new Observable(); | ||
page.bindingContext.set("currentDate", "No date for alternate screens!"); | ||
} |
10 changes: 10 additions & 0 deletions
10
e2e/ui-tests-app/app/screen-qualifiers/main-page.minWH360.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<ActionBar> | ||
<Label text="Screen Qualifiers"></Label> | ||
</ActionBar> | ||
|
||
<StackLayout> | ||
<Label text="{{ currentDate }}" fontSize="20"/> | ||
<Label text="minWH 360 DIP Page" backgroundColor="deepskyblue" fontSize="20"/> | ||
</StackLayout> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { EventData } from "tns-core-modules/data/observable"; | ||
import { Observable } from "tns-core-modules/data/observable"; | ||
import { Page } from "tns-core-modules/ui/page"; | ||
|
||
export function pageLoaded(args: EventData) { | ||
const page = <Page>args.object; | ||
|
||
page.bindingContext = new Observable(); | ||
page.bindingContext.set("currentDate", new Date()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<ActionBar> | ||
<Label text="Screen Qualifiers"></Label> | ||
</ActionBar> | ||
|
||
<StackLayout> | ||
<Label text="{{ currentDate }}" fontSize="20"/> | ||
<Label text="Default Page" backgroundColor="yellow" fontSize="20"/> | ||
</StackLayout> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters