Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samples #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
"test": "node test/run-node.js",
"test:karma": "karma start --no-auto-watch --single-run",
"test:karma-dev": "karma start --auto-watch --no-single-run",
"test:jasmine": "concurrently \"http-server -a localhost -p 8084\" \"open http://localhost:8084/test/run.html\""
"test:jasmine": "concurrently \"http-server -a localhost -p 8084\" \"open http://localhost:8084/test/run.html\"",
"sample:auth0": "concurrently \"http-server -a localhost -p 8080\" \"open http://localhost:8080/samples/auth0.info\"",
"sample:http": "concurrently \"http-server -a localhost -p 8080\" \"open http://localhost:8080/samples/http.info/\""
}
}
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.
13 changes: 13 additions & 0 deletions samples/auth0.info/assets/style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

/*
* This file is reserved for your global style rules.
*/

html {
font-family: sans-serif;
color: #333;
}

body {
margin: 0; /* Remove default margin */
}
Binary file added samples/auth0.info/favicon.ico
Binary file not shown.
34 changes: 34 additions & 0 deletions samples/auth0.info/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimal-ui">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- For iPad with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="assets/icons/apple-touch-icon-152x152-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="assets/icons/apple-touch-icon-120x120-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="assets/icons/apple-touch-icon-76x76-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="assets/icons/apple-touch-icon-precomposed.png">
<!-- For Android 3.x+ devices: -->
<link rel="icon" sizes="196x196" href="assets/icons/apple-touch-icon.png">

<title></title>

<link rel="stylesheet" href="assets/style/style.css" />
<script src="node_modules/montage/montage.js" async></script>
<script type="text/montage-serialization">
{
"owner": {
"prototype": "montage/ui/loader.reel"
}
}
</script>
</head>
<body>
<span class="loading"></span>
</body>
</html>
28 changes: 28 additions & 0 deletions samples/auth0.info/logic/model/tweet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var Montage = require("montage").Montage,
DataObjectDescriptor = require("montage-data/logic/model/data-object-descriptor").DataObjectDescriptor;

/**
* @class Tweet
* @extends Montage
*/

exports.Tweet = Tweet = Montage.specialize(/** @lends Tweet.prototype */ {
temp: {
value: null
},
constructor: {
value: function Tweet() {}
}
}, {

/**
* @type {external:DataObjectDescriptor}
*/
TYPE: {
//get: DataObjectDescriptor.getterFor(exports, "Tweet"),
get: function () {
Tweet.objectPrototype = Tweet;
return Tweet;
}
}
});
13 changes: 13 additions & 0 deletions samples/auth0.info/logic/service/auth0-local-connection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Auth0 Local Development",
"domain": "hthetiot.auth0.com",
"clientId": "Gd-TImevBrSr1jNl-Dvx7eBZO3lmRgxc",
"options": {
"auth": {
"redirectUrl": "http://localhost:8080/",
"responseType": "token",
"redirect": true,
"sso": true
}
}
}
13 changes: 13 additions & 0 deletions samples/auth0.info/logic/service/auth0-prod-connection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Auth0 Pros Development",
"domain": "hthetiot.auth0.com",
"clientId": "Gd-TImevBrSr1jNl-Dvx7eBZO3lmRgxc",
"options": {
"auth": {
"redirectUrl": "http://localhost:8080/",
"responseType": "token",
"redirect": true,
"sso": true
}
}
}
Loading