aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/ui')
-rw-r--r--node_modules/montage/ui/feed-reader/feed-entry.reel/feed-entry.html89
-rw-r--r--node_modules/montage/ui/feed-reader/feed-entry.reel/feed-entry.js21
-rw-r--r--node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html79
-rw-r--r--node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.js180
-rw-r--r--node_modules/montage/ui/flow.reel/flow.js2
-rw-r--r--node_modules/montage/ui/map.reel/map.css9
-rw-r--r--node_modules/montage/ui/map.reel/map.html46
-rw-r--r--node_modules/montage/ui/map.reel/map.js289
-rw-r--r--node_modules/montage/ui/picasa-carousel.reel/image.reel/image.html40
-rw-r--r--node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js20
-rwxr-xr-xnode_modules/montage/ui/picasa-carousel.reel/picasa-carousel.css44
-rwxr-xr-xnode_modules/montage/ui/picasa-carousel.reel/picasa-carousel.html145
-rw-r--r--node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js153
-rwxr-xr-xnode_modules/montage/ui/template.js6
-rw-r--r--node_modules/montage/ui/text-input.js22
-rw-r--r--node_modules/montage/ui/youtube-channel.reel/youtube-channel.html125
-rw-r--r--node_modules/montage/ui/youtube-channel.reel/youtube-channel.js242
-rw-r--r--node_modules/montage/ui/youtube-player.reel/youtube-player.html25
-rw-r--r--node_modules/montage/ui/youtube-player.reel/youtube-player.js216
19 files changed, 1749 insertions, 4 deletions
diff --git a/node_modules/montage/ui/feed-reader/feed-entry.reel/feed-entry.html b/node_modules/montage/ui/feed-reader/feed-entry.reel/feed-entry.html
new file mode 100644
index 00000000..15dc7eb0
--- /dev/null
+++ b/node_modules/montage/ui/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/ui/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/ui/feed-reader/feed-entry.reel/feed-entry.js b/node_modules/montage/ui/feed-reader/feed-entry.reel/feed-entry.js
new file mode 100644
index 00000000..72c5023e
--- /dev/null
+++ b/node_modules/montage/ui/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("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/ui/feed-reader/feed-reader.reel/feed-reader.html b/node_modules/montage/ui/feed-reader/feed-reader.reel/feed-reader.html
new file mode 100644
index 00000000..56523984
--- /dev/null
+++ b/node_modules/montage/ui/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/ui/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/ui/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">