aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google/feed-reader
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-16 01:00:22 -0700
committerValerio Virgillito2012-05-16 01:00:22 -0700
commitf9f8fdc3000042ba5b4504d91870dc9a32ef25eb (patch)
tree606f22568ad2be0f7aed266a4d20de576f44002f /node_modules/montage-google/feed-reader
parenta9672abd32c2e03b8607c1af4903c90f7ff9531c (diff)
downloadninja-f9f8fdc3000042ba5b4504d91870dc9a32ef25eb.tar.gz
Squashed master into dom-architecture
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage-google/feed-reader')
-rw-r--r--node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html89
-rw-r--r--node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.js21
-rw-r--r--node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html79
-rw-r--r--node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js179
4 files changed, 368 insertions, 0 deletions
diff --git a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
new file mode 100644
index 00000000..6b2e51e2
--- /dev/null
+++ b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
@@ -0,0 +1,89 @@
1<!DOCTYPE html>
2<html>
3<head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>Feed Entry</title>
6 <script type="text/montage-serialization">
7{
8 "title": {
9 "module": "montage/ui/dynamic-text.reel",
10 "name": "DynamicText",
11 "properties": {
12 "element": {"#": "entry-title"}
13 },
14 "bindings": {
15 "value": {
16 "boundObject": {"@": "owner"},
17 "boundObjectPropertyPath": "entry.title",
18 "oneway": true
19 }
20 }
21 },
22 "entryLink": {
23 "module": "montage/ui/anchor.reel",
24 "name": "Anchor",
25 "properties": {
26 "element": {"#": "entry-url"}
27 },
28 "bindings": {
29 "href": {
30 "boundObject": {"@": "owner"},
31 "boundObjectPropertyPath": "entry.link",
32 "oneway": true
33 }
34 }
35 },
36 "description": {
37 "module": "montage/ui/dynamic-text.reel",
38 "name": "DynamicText",
39 "properties": {
40 "element": {"#": "entry-description"}
41 },
42 "bindings": {
43 "value": {
44 "boundObject": {"@": "owner"},
45 "boundObjectPropertyPath": "entry.contentSnippet",
46 "oneway": true
47 }
48 }
49 },
50 "owner": {
51 "module": "montage-google/feed-reader/feed-entry.reel",
52 "name": "FeedEntry",
53 "properties": {
54 "element": {"#": "feed-entry"}
55 }
56 }
57}
58 </script>
59
60 <style>
61 .feed-entry {
62 /*padding: 2px;*/
63 /*margin: 3px 0;*/
64 }
65 .feed-entry h2 {
66 margin-top: 0px;
67 font-size: 24px;
68 line-height: 24px;
69 margin-bottom: 12px;
70 }
71 .feed-entry .entry-title {
72 font-weight: bold;
73 }
74 .feed-entry .entry-url {
75 text-decoration: none;
76 }
77 </style>
78
79
80</head>
81<body>
82 <div class="feed-entry" id="feed-entry">
83
84 <a target="_blank" id="entry-url" class="entry-url"><h2 id="entry-title" class="entry-title"></h2></a>
85 <p id="entry-description" class="entry-description"></p>
86 </div>
87
88</body>
89</html>
diff --git a/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.js b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.js
new file mode 100644
index 00000000..8fdb3860
--- /dev/null
+++ b/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.js
@@ -0,0 +1,21 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6var Montage = require("montage").Montage,
7 Component = require("montage/ui/component").Component;
8
9exports.FeedEntry = Montage.create(Component, {
10
11 _entry: {value: null},
12 entry: {
13 get: function() {
14 return this._entry;
15 },
16 set: function(value) {
17 this._entry = value;
18 }
19 }
20
21});
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
new file mode 100644
index 00000000..28c0ed1f
--- /dev/null
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.html
@@ -0,0 +1,79 @@
1<!DOCTYPE html>
2<html>
3<head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>Feed Reader</title>
6
7 <script type="text/javascript" src="https://www.google.com/jsapi?callback=initGoogleAPI"></script>
8
9 <script type="text/montage-serialization">
10{
11 "entriesController": {
12 "name": "ArrayController",
13 "module": "montage/ui/controller/array-controller",
14 "properties": {
15 "selectObjectsOnAddition": true,
16 "automaticallyOrganizeObjects": true
17 },
18 "bindings": {
19 "content": {
20 "boundObject": {"@": "owner"},
21 "boundObjectPropertyPath": "entries",
22 "oneway": true
23 }
24 }
25 },
26
27 "feedEntry": {
28 "module": "montage-google/feed-reader/feed-entry.reel",
29 "name": "FeedEntry",
30 "properties": {
31 "element": {"#": "feed-entry"}
32 },
33 "bindings": {
34 "entry": {
35 "boundObject": {"@": "owner"},
36 "boundObjectPropertyPath": "activeFeedEntry",
37 "oneway": true
38 }
39 }
40 },
41
42 "owner": {
43 "module": "montage-google/feed-reader/feed-reader.reel",
44 "name": "FeedReader",
45 "properties": {
46 "element": {"#": "feed-reader"}
47 }
48 }
49
50}
51 </script>
52
53 <style>
54 div.feed-reader {
55 /*padding: 2px;*/
56 height: 120px;
57 width: 380px;
58 }
59
60 .feed-entry {
61 }
62
63
64 </style>
65
66
67</head>
68<body>
69 <div class="feed-reader" id="feed-reader">
70
71 <div id="entries">
72 <div class="feed-entry" id="feed-entry"></div>
73 </div>
74
75
76 </div>
77
78</body>
79</html>
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
new file mode 100644
index 00000000..47a831eb
--- /dev/null
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
@@ -0,0 +1,179 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright