Merge branch 'ErjanGavalji/move-tns_modules'

This commit is contained in:
Erjan Gavalji
2015-03-25 17:16:03 +02:00
73 changed files with 104 additions and 120 deletions

View File

@@ -1,7 +1,7 @@
import application = require("application");
// Set the start module for the application
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// TODO: This is only neede because of the deply script.
application.cssFile = "app/TelerikNEXT/app.css";

View File

@@ -1,5 +1,5 @@
<Page xmlns="http://www.nativescript.org/tns.xsd"
loaded="pageLoaded" xmlns:tsb="app/TelerikUI/side-bar">
loaded="pageLoaded" xmlns:tsb="TelerikUI/side-bar">
<tsb:SideBar title="TelerikNEXT">
<tsb:SideBar.slideContent>
<StackLayout style="background-color: white">
@@ -15,7 +15,7 @@
</Label>
</Border>
<Image src="~/app/images/logo.png" margin="20" />
<Image src="~/images/logo.png" margin="20" />
<Button tap="{{ selectView }}" text="My agenda" horizontalAlignment="left" color="{{ selectedViewIndex === 0 ? '#e4ba4e' : 'white' }}"/>
<Button tap="{{ selectView }}" text="All sessions" horizontalAlignment="left" color="{{ selectedViewIndex === 1 ? '#e4ba4e' : 'white' }}" />
@@ -29,7 +29,7 @@
<GridLayout rows="auto, auto, *" visibility="{{ selectedViewIndex !== 2 ? 'visible' : 'collapsed' }}">
<StackLayout style="background-image: url('~/app/images/background.jpg')">
<StackLayout style="background-image: url('~/images/background.jpg')">
<SegmentedBar selectedIndex="{{ selectedIndex }}" style="background-color: transparent;color: white;" selectedBackgroundColor="#fac950">
<SegmentedBar.items>
<SegmentedBarItem title="MAY 3" />
@@ -55,7 +55,7 @@
<ListView.itemTemplate>
<GridLayout columns="auto, *" cssClass="{{ canBeFavorited ? 'list-view-row' : 'break-row' }}">
<Image src="{{ favorite ? '~/app/images/fav.png' : '~/app/images/addfav.png' }}"
<Image src="{{ favorite ? '~/images/fav.png' : '~/images/addfav.png' }}"
visibility="{{ canBeFavorited ? 'visible' : 'collapsed' }}"
tap="toggleFavorite" cssClass="favourite-image" />
@@ -86,7 +86,7 @@
</GridLayout>
<Border style="background-color: #053140;" visibility="{{ selectedViewIndex === 2 ? 'visible' : 'collapsed' }}">
<Image src="~/app/images/logo.png" margin="20" />
<Image src="~/images/logo.png" margin="20" />
</Border>
</GridLayout>
@@ -95,4 +95,4 @@
</Page>
</Page>

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.mainModule = "mainPage";
application.start();

View File

@@ -1,7 +1,7 @@
import application = require("application");
// Set the start module for the application
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// Start the application
application.start();

View File

@@ -23,7 +23,7 @@ export function pageLoaded(args: observable.EventData) {
export function listViewItemTap(args: listView.ItemEventData) {
// Navigate to the details page with context set to the data item for specified index
frames.topmost().navigate({
moduleName: "app/details-page",
moduleName: "./details-page",
context: appViewModel.redditItems.getItem(args.index)
});
}

View File

@@ -20,11 +20,11 @@
<TabViewItem title="About">
<TabViewItem.view>
<StackLayout>
<Image margin="10" src="~/app/res/telerik-logo.png" />
<Image margin="10" src="~/res/telerik-logo.png" />
<Label margin="10" textWrap="true" text="{{ aboutText }}" />
</StackLayout>
</TabViewItem.view>
</TabViewItem>
</TabView.items>
</TabView>
</Page>
</Page>

View File

@@ -8,8 +8,8 @@ import redditModel = require("./reddit-model");
import redditViewModel = require("./reddit-item-view-model");
var aboutText = "Cuteness is a proof of concept app demonstrating the Telerik's NativeScript for writing native mobile applications using JavaScript.";
export var defaultThumbnailImageSource = imageSource.fromFile("~/app/res/reddit-logo.png");
export var defaultNoThumbnailImageSource = imageSource.fromFile("~/app/res/no-image.png");
export var defaultThumbnailImageSource = imageSource.fromFile("~/res/reddit-logo.png");
export var defaultNoThumbnailImageSource = imageSource.fromFile("~/res/no-image.png");
var redditUrl = "http://www.reddit.com/r/aww.json?limit=";
var after: string;
@@ -85,4 +85,4 @@ export class AppViewModel extends observable.Observable {
get defaultNoThumbnailImageSource(): imageSource.ImageSource {
return defaultNoThumbnailImageSource;
}
}
}

View File

@@ -4,8 +4,8 @@ import imageSource = require("image-source");
import redditModel = require("./reddit-model");
import redditAppViewModel = require("./reddit-app-view-model");
var firstThumbnailImageSource = imageSource.fromFile("~/app/res/first-image.png");
var defaultImageSource = imageSource.fromFile("~/app/res/reddit-logo-transparent.png");
var firstThumbnailImageSource = imageSource.fromFile("~/res/first-image.png");
var defaultImageSource = imageSource.fromFile("~/res/reddit-logo-transparent.png");
var ISLOADING = "isLoading";
var THUMBNAIL_IMAGE_SOURCE = "thumbnailImageSource";

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
application.start();

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
application.start();

View File

@@ -3,7 +3,7 @@ import frame = require("ui/frame");
export function itemTap(args: observable.EventData) {
frame.topmost().navigate({
moduleName: "app/" + args.object.get("tag"),
moduleName: "" + args.object.get("tag"),
});
}

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Page loaded="pageLoaded">
<Image margin="10" src="~/app/res/telerik-logo.png" verticalAlignment="center" horizontalAlignment="center"/>
</Page>
<Image margin="10" src="~/res/telerik-logo.png" verticalAlignment="center" horizontalAlignment="center"/>
</Page>

View File

@@ -1,6 +1,6 @@
import application = require("application");
application.mainModule = "app/login";
application.cssFile = "app/paylocity/style.css";
application.mainModule = "login";
application.cssFile = "paylocity/style.css";
application.start();

View File

@@ -18,5 +18,5 @@ export function imageLoaded(args: observable.EventData) {
}
export function loginButtonTap(args: observable.EventData) {
frames.topmost().navigate("app/news");
frames.topmost().navigate("news");
}

View File

@@ -6,6 +6,6 @@ fps.addCallback(function (fps, minFps) {
});
fps.start();
application.mainModule = "app/ApplicationLoadTimeAndFPS/mainPage";
application.mainModule = "ApplicationLoadTimeAndFPS/mainPage";
application.start();

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/ApplicationSize/mainPage";
application.mainModule = "ApplicationSize/mainPage";
application.start();

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/ComplexObjectGraphMemoryTest/mainPage";
application.mainModule = "ComplexObjectGraphMemoryTest/mainPage";

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/ControlCreationSpeedTest/mainPage";
application.mainModule = "ControlCreationSpeedTest/mainPage";

View File

@@ -3,7 +3,7 @@ import stackLayoutModule = require("ui/layouts/stack-layout");
import buttonModule = require("ui/button");
import labelModule = require("ui/label");
import frameModule = require("ui/frame");
import controlsPageModule = require("app/controls-page");
import controlsPageModule = require("controls-page");
import enums = require("ui/enums");
export function createPage() {
@@ -89,4 +89,4 @@ export function createPage() {
var resultsLabel = new labelModule.Label();
mainLayout.addChild(resultsLabel);
return page;
}
}

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/LargeObjectArrayMemoryLeakTest/mainPage";
application.mainModule = "LargeObjectArrayMemoryLeakTest/mainPage";

View File

@@ -2,7 +2,7 @@ import pagesModule = require("ui/page");
import stackLayoutModule = require("ui/layouts/stack-layout");
import buttonModule = require("ui/button");
import labelModule = require("ui/label");
import nativeCallsWrapper = require("app/native-calls-wrapper");
import nativeCallsWrapper = require("native-calls-wrapper");
import enums = require("ui/enums");
export function createPage() {

View File

@@ -1,4 +1,4 @@
declare module "app/native-calls-wrapper" {
declare module "native-calls-wrapper" {
export function createNativeDate(): any;
export function forceGarbageCollection(): void;
}

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/LargeObjectArrayMemoryTest/mainPage";
application.mainModule = "LargeObjectArrayMemoryTest/mainPage";

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/NavigationMemoryLeakTest/mainPage";
application.mainModule = "NavigationMemoryLeakTest/mainPage";

View File

@@ -30,7 +30,7 @@ export function createPage() {
listView.on(listViewModule.knownEvents.itemTap, (args: listViewModule.ItemEventData) => {
var navigationEntry = {
moduleName: "app/NavigationTest/details-page",
moduleName: "NavigationTest/details-page",
context: itemsSource[args.index]
};
page.frame.navigate(navigationEntry);

View File

@@ -22,7 +22,7 @@ export function createPage() {
var navigateButton = new buttonModule.Button();
navigateButton.text = "->";
navigateButton.on(buttonModule.knownEvents.tap, () => {
page.frame.navigate("app/NavigationTest/page2");
page.frame.navigate("NavigationTest/page2");
});
stackLayout.addChild(navigateButton);

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/SingleUIObjectMemoryLeakTest/mainPage";
application.mainModule = "SingleUIObjectMemoryLeakTest/mainPage";

View File

@@ -1,2 +1,2 @@
import application = require("application");
application.mainModule = "app/SpeedTests/mainPage";
application.mainModule = "SpeedTests/mainPage";

View File

@@ -1,4 +1,4 @@
declare module "app/SpeedTests/tests-native" {
declare module "SpeedTests/tests-native" {
import imageSource = require("image-source");
export function compareTwoNativeDates(secondsSince1970: number): void;

View File

@@ -1,4 +1,4 @@
declare module "app/SpeedTests/tests" {
declare module "SpeedTests/tests" {
export function compareNativeDates(count: number): string;
export function compareJavaScriptDates(count: number): string;
export function decodeAndEncodeBitmap(count: number, finishedCallback: (message) => void): string;

View File

@@ -1,5 +1,5 @@
/* tslint:disable:no-unused-variable */
import testsNative = require("app/SpeedTests/tests-native");
import testsNative = require("SpeedTests/tests-native");
import trace = require("trace");
import imageSourceModule = require("image-source");

View File

@@ -1,4 +1,4 @@
declare module "app/controls-page" {
declare module "controls-page" {
import pagesModule = require("ui/page");
class ControlsPage extends pagesModule.Page {

View File

@@ -1,4 +1,4 @@
import definition = require("app/controls-page");
import definition = require("controls-page");
import pagesModule = require("ui/page");
import stackLayoutModule = require("ui/layouts/stack-layout");
import labelModule = require("ui/label");
@@ -58,4 +58,4 @@ export class ControlsPage extends pagesModule.Page implements definition.Control
trace.write(message, trace.categories.Test, trace.messageType.info);
this._infoLabel.text = message;
}
}
}

View File

@@ -1,4 +1,4 @@
declare module "app/nav-page" {
declare module "nav-page" {
import pagesModule = require("ui/page");
class NavPage extends pagesModule.Page {

View File

@@ -1,4 +1,4 @@
import definition = require("app/controls-page");
import definition = require("controls-page");
import frameModule = require("ui/frame");
import pagesModule = require("ui/page");
import stackLayoutModule = require("ui/layouts/stack-layout");

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/main-page";
application.start();
application.mainModule = "main-page";
application.start();

View File

@@ -1,3 +0,0 @@
import application = require("application");
application.mainModule = "app/main-page";
application.start();

View File

@@ -1,5 +0,0 @@
<Page loaded="onPageLoaded">
<StackLayout id="stack">
<Label id="label" text="Hello, Android!" />
</StackLayout>
</Page>

View File

@@ -1,5 +0,0 @@
<Page loaded="onPageLoaded">
<StackLayout id="stack">
<Label id="label" text="Hello, iOS!" />
</StackLayout>
</Page>

View File

@@ -1 +0,0 @@


View File

@@ -1,2 +0,0 @@
{ "name" : "platform-specific-template",
"main" : "app.js" }

View File

@@ -1,6 +1,6 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.mainModule = "mainPage";
import trace = require("trace");
trace.enable();

View File

@@ -1,7 +1,7 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// Remove this in the AppBuilder templates
application.cssFile = "app/template-blank/app.css"
application.cssFile = "template-blank/app.css"
application.start();

View File

@@ -1,7 +1,7 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// Remove this in the AppBuilder templates
application.cssFile = "app/template-hello-world/app.css"
application.cssFile = "app.css"
application.start();

View File

@@ -1,7 +1,7 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// Remove this in the AppBuilder templates
application.cssFile = "app/template-master-detail/app.css"
application.cssFile = "app.css"
application.start();

View File

@@ -16,8 +16,8 @@ export function pageLoaded(args: observable.EventData) {
export function listViewItemTap(args: listView.ItemEventData) {
// Navigate to the details page with context set to the current data item
if (!twoPaneLayout) {
frames.topmost().navigate("app/details-page");
frames.topmost().navigate("details-page");
}
vmModule.mainViewModel.set("selectedItem", args.view.bindingContext);
}
}

View File

@@ -1,7 +1,7 @@
import application = require("application");
// Remove this in the AppBuilder templates
application.cssFile = "app/template-settings/app.css"
application.cssFile = "template-settings/app.css"
application.mainModule = "app/main-page";
application.mainModule = "main-page";
application.start();

View File

@@ -1,7 +1,7 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
// Remove this in the AppBuilder templates
application.cssFile = "app/template-tab-navigation/app.css"
application.cssFile = "template-tab-navigation/app.css"
application.start();

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/app/mainPage";
application.mainModule = "app/mainPage";
application.start();

View File

@@ -212,7 +212,7 @@ function testTemplate(candidates: Array<string>, context: resolver.PlatformConte
TKUnit.assertEqual(result, expected, "File path");
}
var testFilePath = fs.path.join(fs.knownFolders.currentApp().path, "app/tests/file-name-resolver-tests/files/test");
var testFilePath = fs.path.join(fs.knownFolders.currentApp().path, "tests/file-name-resolver-tests/files/test");
export function test_file_resolver_with_andorid_phone_portratit() {
var fileResolver = new resolver.FileNameResolver(androidPhonePortraitContext);
@@ -242,4 +242,4 @@ export function test_file_resolver_with_ios_phone_portrait() {
var fileResolver = new resolver.FileNameResolver(iPhonePortraitContext);
var result = fileResolver.resolveFileName(testFilePath, "xml");
TKUnit.assertEqual(result, testFilePath + ".xml", "File path");
}
}

View File

@@ -13,7 +13,7 @@ export var test_DummyTestForSnippetOnly0 = function () {
// <snippet module="ui/frame" title="frame">
// ### Navigating to a Module
// ``` JavaScript
topmost.navigate("app/details-page");
topmost.navigate("details-page");
// ```
// </snippet>
}
@@ -39,7 +39,7 @@ export var test_DummyTestForSnippetOnly2 = function () {
// ### Navigating with NavigationEntry
// ``` JavaScript
var navigationEntry = {
moduleName: "app/details-page",
moduleName: "details-page",
context: { info: "something you want to pass to your page" },
animated: false
};
@@ -55,4 +55,4 @@ export var test_DummyTestForSnippetOnly3 = function () {
topmost.goBack();
// ```
// </snippet>
}
}

View File

@@ -1,2 +1,2 @@
{ "name" : "Tests",
"main" : "testRunner.js" }
"main" : "app/app.js" }

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/pages/page14";
application.mainModule = "pages/page14";
application.start();

View File

@@ -7,7 +7,7 @@ export function createPage() {
var page = new pages.Page();
var lbl = new label.Label();
var moduleName = "app/tests/pages/files/test";
var moduleName = "tests/pages/files/test";
var resolver = new fileResolverModule.FileNameResolver({
width: 400,

View File

@@ -11,7 +11,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page B new activity";
btn.on(button.knownEvents.tap, function () {
var nextPage = "app/tests/pages/navigation/pageB-new-activity";
var nextPage = "tests/pages/navigation/pageB-new-activity";
frame.topmost().navigate(nextPage);
});
stack.addChild(btn);

View File

@@ -17,7 +17,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page B";
btn.on(button.knownEvents.tap, function () {
var nextPage = "app/tests/pages/navigation/pageB";
var nextPage = "tests/pages/navigation/pageB";
frame.topmost().navigate(nextPage);
});
stack.addChild(btn);
@@ -25,7 +25,7 @@ export function createPage() {
var btnActivity = new button.Button();
btnActivity.text = "start activity";
btnActivity.on(button.knownEvents.tap, function () {
var newPage = "app/tests/pages/navigation/pageA-new-activity";
var newPage = "tests/pages/navigation/pageA-new-activity";
var newFrame = new frame.Frame();
newFrame.navigate(newPage);
@@ -55,4 +55,4 @@ export function createPage() {
page.content = stack;
return page;
}
}

View File

@@ -11,7 +11,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page C new activity";
btn.on(button.knownEvents.tap, function () {
var nextPage = "app/tests/pages/navigation/pageC-new-activity";
var nextPage = "tests/pages/navigation/pageC-new-activity";
frame.topmost().navigate(nextPage);
});
stack.addChild(btn);

View File

@@ -14,7 +14,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page C";
btn.on(button.knownEvents.tap, function () {
var nextPage = "app/tests/pages/navigation/pageC";
var nextPage = "tests/pages/navigation/pageC";
frame.topmost().navigate(nextPage);
});
stack.addChild(btn);
@@ -23,7 +23,7 @@ export function createPage() {
btnActivity.text = "start activity";
btnActivity.on(button.knownEvents.tap, function () {
var newFrame = new frame.Frame();
var newPage = "app/tests/pages/navigation/pageA-new-activity";
var newPage = "tests/pages/navigation/pageA-new-activity";
newFrame.navigate(newPage);
});
stack.addChild(btnActivity);
@@ -54,4 +54,4 @@ export function createPage() {
page.content = stack;
return page;
}
//export var Page = page;
//export var Page = page;

View File

@@ -11,7 +11,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page A ???";
btn.on(button.knownEvents.tap, function () {
var newPage = "app/tests/pages/navigation/pageA";
var newPage = "tests/pages/navigation/pageA";
frame.topmost().navigate(newPage);
});
stack.addChild(btn);

View File

@@ -12,7 +12,7 @@ export function createPage() {
newActivity.text = "start activity";
newActivity.on(button.knownEvents.tap, function () {
var newFrame = new frame.Frame();
var newPage = "app/tests/pages/navigation/pageA-new-activity";
var newPage = "tests/pages/navigation/pageA-new-activity";
newFrame.navigate(newPage);
});
stack.addChild(newActivity);
@@ -20,7 +20,7 @@ export function createPage() {
var btn = new button.Button();
btn.text = "Page A ???";
btn.on(button.knownEvents.tap, function () {
var nextPage = "app/tests/pages/navigation/pageA";
var nextPage = "tests/pages/navigation/pageA";
frame.topmost().navigate(nextPage);
});
stack.addChild(btn);

View File

@@ -7,6 +7,6 @@
<Image src="http://www.google.com/images/errors/logo_sm_2.png" stretch="none" horizontalAlignment="left"/>
<Label text="app file:" />
<Image src="~/app/logo.png" stretch="none" horizontalAlignment="left" />
<Image src="~/logo.png" stretch="none" horizontalAlignment="left" />
</StackLayout>
</Page>

View File

@@ -10,5 +10,5 @@ trace.setCategories(trace.categories.concat(
//, trace.categories.VisualTreeEvents
));
application.mainModule = "app/styling/mainPage";
application.mainModule = "styling/mainPage";
application.start();

View File

@@ -13,9 +13,9 @@ import ImageModule = require("ui/image");
// <!--Bind the image source property to view-model property -->
// {%raw%}<Image src="{{ thumbnailImageUrl }}" />{%endraw%}
// <!--Load form image from application -->
// <Image source="~/app/logo.png" stretch ="none" / >
// <Image source="~/logo.png" stretch ="none" / >
// <!--Load form image resource -->
// <Image source="res://app/logo.png" stretch ="none" / >
// <Image source="res://logo.png" stretch ="none" / >
// <!--Load form image URL-->
// <Image source="http://www.google.com/images/errors/logo_sm_2.png" stretch ="none" />
// </StackLayout>
@@ -106,7 +106,7 @@ export var test_SettingImageSrcToFileWithinApp = function (done) {
// ### How to create an image and set its src to file within the application.
// ``` JavaScript
var image = new ImageModule.Image();
image.src = "~/app/logo.png";
image.src = "~/logo.png";
// ```
// </snippet>

View File

@@ -477,7 +477,7 @@ export var testLocalTextAlignmentFromCssWhenAddingCssFileAllSelectorsAreApplied
view.id = "testLabel";
var page = <page.Page>views[1];
page.addCss("#testLabel { text-align: " + expectedTextAlignment + "; }");
page.addCssFile("/app/tests/ui/label/label-tests.css");
page.addCssFile("/tests/ui/label/label-tests.css");
var actualResult = view.style.textAlignment;
// actual result is taken from #testLabel tag, because it has a greater priority (id vs type).
@@ -513,7 +513,7 @@ export var testErrorMessageWhenWrongCssIsAddedWithFile = function () {
view.id = "testLabel";
var page = <page.Page>views[1];
errorMessage = undefined;
page.addCssFile("/app/tests/ui/label/label-tests-wrong.css");
page.addCssFile("/tests/ui/label/label-tests-wrong.css");
TKUnit.assertNotEqual(errorMessage, undefined);
});

View File

@@ -237,7 +237,7 @@ export var test_FrameBackStack_WhenNavigatingForwardAndBack = function () {
}
export var test_LoadPageFromModule = function () {
helper.navigateToModule("app/ui/page/test-page-module");
helper.navigateToModule("ui/page/test-page-module");
try {
var topFrame = FrameModule.topmost();
TKUnit.assert(topFrame.currentPage.content instanceof LabelModule.Label, "Content of the test page should be a Label created within test-page-module.");

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/xml-declaration/mainPage";
application.mainModule = "xml-declaration/mainPage";
application.start();

View File

@@ -1,6 +1,6 @@
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="MyPageLoaded"
xmlns:customControls="app/xml-declaration/mymodule"
xmlns:customControls2="app/xml-declaration/mymodulewithxml">
xmlns:customControls="xml-declaration/mymodule"
xmlns:customControls2="xml-declaration/mymodulewithxml">
<TabView>
<TabView.items>
<TabViewItem title="Tab 1">
@@ -59,4 +59,4 @@
</TabViewItem>
</TabView.items>
</TabView>
</Page>
</Page>

View File

@@ -1,4 +1,4 @@
<StackLayout xmlns:customControls="app/xml-declaration/mymodule">
<StackLayout xmlns:customControls="xml-declaration/mymodule">
<Label id="Label1" text="mymodulewithxml" />
<Button text="Click!" tap="buttonTap2" />
</StackLayout>

View File

@@ -1,5 +1,5 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.mainModule = "mainPage";
application.onUncaughtError = function (error: application.NativeScriptError) {
console.warn(error.message);

View File

@@ -10,7 +10,7 @@ trace.enable();
trace.setCategories(trace.categories.Test);
export function createPage() {
var basePath = "app/pages/";
var basePath = "pages/";
var txtInput = new text.TextView();
var btn = new button.Button();
@@ -39,4 +39,4 @@ export function createPage() {
var page = new pages.Page();
page.content = grid;
return page;
}
}

View File

@@ -1,8 +1,8 @@
import application = require("application");
application.mainModule = "app/main-page";
application.mainModule = "main-page";
import trace = require("trace");
trace.enable();
trace.setCategories(trace.categories.concat(trace.categories.Debug));
application.start();
application.start();

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.mainModule = "mainPage";
application.start();

View File

@@ -1,3 +1,3 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.mainModule = "mainPage";
application.start();