-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Green
authored and
Matt Green
committed
Jan 17, 2016
1 parent
43ae162
commit 6347e32
Showing
38 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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,16 @@ | ||
.title { | ||
font-size: 30; | ||
horizontal-align: center; | ||
margin: 20; | ||
} | ||
|
||
button { | ||
font-size: 42; | ||
horizontal-align: center; | ||
} | ||
|
||
.message { | ||
font-size: 20; | ||
color: #284848; | ||
horizontal-align: center; | ||
} |
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,4 @@ | ||
var application = require("application"); | ||
application.mainModule = "main-page"; | ||
application.cssFile = "./app.css"; | ||
application.start(); |
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,6 @@ | ||
var vmModule = require("./main-view-model"); | ||
function pageLoaded(args) { | ||
var page = args.object; | ||
page.bindingContext = vmModule.mainViewModel; | ||
} | ||
exports.pageLoaded = pageLoaded; |
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,7 @@ | ||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded"> | ||
<StackLayout> | ||
<Label text="Tap the button" class="title"/> | ||
<Button text="TAP" tap="{{ tapAction }}" /> | ||
<Label text="{{ message }}" class="message" textWrap="true"/> | ||
</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,21 @@ | ||
var observable = require("data/observable"); | ||
var HelloWorldModel = (function (_super) { | ||
__extends(HelloWorldModel, _super); | ||
function HelloWorldModel() { | ||
_super.call(this); | ||
this.counter = 42; | ||
this.set("message", this.counter + " taps left"); | ||
} | ||
HelloWorldModel.prototype.tapAction = function () { | ||
this.counter--; | ||
if (this.counter <= 0) { | ||
this.set("message", "Hoorraaay! You unlocked the NativeScript clicker achievement!"); | ||
} | ||
else { | ||
this.set("message", this.counter + " taps left"); | ||
} | ||
}; | ||
return HelloWorldModel; | ||
})(observable.Observable); | ||
exports.HelloWorldModel = HelloWorldModel; | ||
exports.mainViewModel = new HelloWorldModel(); |
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,28 @@ | ||
{ | ||
"name": "tns-template-hello-world", | ||
"main": "app.js", | ||
"version": "1.5.1", | ||
"author": "Telerik <[email protected]>", | ||
"description": "Nativescript hello-world project template", | ||
"license": "Apache-2.0", | ||
"keywords": [ | ||
"telerik", | ||
"mobile", | ||
"nativescript", | ||
"{N}", | ||
"tns", | ||
"appbuilder", | ||
"template" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/NativeScript/template-hello-world.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/NativeScript/template-hello-world/issues" | ||
}, | ||
"homepage": "https://github.com/NativeScript/template-hello-world", | ||
"android": { | ||
"v8Flags": "--expose_gc" | ||
} | ||
} |
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 @@ | ||
/// <reference path="../node_modules/tns-core-modules/tns-core-modules.d.ts" /> Enable smart suggestions and completions in Visual Studio Code JavaScript projects. |
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,13 @@ | ||
{ | ||
"nativescript": { | ||
"id": "whatsmyscore.breakoutdeveloper.com", | ||
"tns-android": { | ||
"version": "1.5.1" | ||
} | ||
}, | ||
"dependencies": { | ||
"tns-core-modules": "1.5.1", | ||
"nativescript-angular": "~0.0.20", | ||
"nativescript-dev-typescript": "~0.2.3" | ||
} | ||
} |