rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zh...@apache.org
Subject svn commit: r1087520 [30/35] - in /incubator/rave/donations/ogce-gadget-container: ./ config/ config/shindig-1.1-BETA5/ config/shindig-2.0.0/ db-cleaner/ examples/ examples/src/ examples/src/main/ examples/src/main/java/ examples/src/main/java/cgl/ exa...
Date Fri, 01 Apr 2011 00:29:38 GMT
Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/contacts-google.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/contacts-google.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/contacts-google.xml
(added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/contacts-google.xml
Fri Apr  1 00:29:22 2011
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+  <ModulePrefs title="Google Contacts Gadget">
+
+  <Require feature="opensocial-0.7"/>
+
+  <OAuth>
+    <Service name="google">
+    <Access 
+      url="https://www.google.com/accounts/OAuthGetAccessToken"
+      method="GET" />
+
+    <Request
+      url="https://www.google.com/accounts/OAuthGetRequestToken?scope=http://www.google.com/m8/feeds/"
+      method="GET" />
+
+    <Authorization
+      url="https://www.google.com/accounts/OAuthAuthorizeToken" />
+    </Service>
+  </OAuth>
+
+  </ModulePrefs>
+  <Content type="html">
+  <![CDATA[
+<!-- ALm6fM2-YnZVB33mC_xJ0VmT8bZYWRAzEws3Ih5dqCV_Gi9FK4-mwmAsCadqRwxbtHGN5GYS97K1paeyxg_TGRSuw-zNEiVtOf48OI_42rzNpNS32LLfZ1c4e0baZZ78tewpdlUvQCtnnNVjJIAqzyQaLEqM-WJ64w==
-->
+    <style>
+    #main {
+        margin: 0px;
+        padding: 0px;
+        font-size: small;
+    }
+    </style>
+
+    <div id="main" style="display: none">
+    </div>
+
+    <div id="approval" style="display: none">
+      <img src="http://dirk.balfanz.googlepages.com/new.gif">
+      <a id="personalize"
+        onclick="javascript:showOneSection('waiting'); return true"
+        target="approve">Personalize this gadget</a>
+    </div>
+
+    <div id="waiting" style="display: none">
+      Please click
+      <a onclick="javascript:fetchData()">I've approved access</a>
+      once you've approved access to your data.
+    </div>
+
+    <script type="text/javascript">
+      function showOneSection(toshow) {
+        var sections = [ 'main', 'approval', 'waiting' ];
+        for (var i=0; i < sections.length; ++i) {
+          var s = sections[i];
+          var el = document.getElementById(s);
+          if (s === toshow) {
+            el.style.display = "block";
+          } else {
+            el.style.display = "none";
+          }
+        }
+      }
+
+      function showResults(result) {
+        showOneSection('main');
+
+        var titleElement = document.createElement('div');
+
+        var nameNode = document.createTextNode(result.feed.title.$t);
+
+        titleElement.appendChild(nameNode);
+
+        document.getElementById("main").appendChild(titleElement);
+        document.getElementById("main").appendChild(document.createElement("br"));
+
+        list = result.feed.entry;
+
+        for(var i = 0; i < list.length; i++) {
+
+          entry = list[i];
+
+          var divElement = document.createElement('div');
+          divElement.setAttribute('class', 'name');
+
+          var valueNode = document.createTextNode(entry.gd$email[0].address);
+
+          divElement.appendChild(nameNode);
+          divElement.appendChild(valueNode);
+
+          document.getElementById("main").appendChild(divElement);
+        }
+      }
+
+      function fetchData() {
+        var params = {};
+        url = "http://www.google.com/m8/feeds/contacts/default/base?alt=json";
+        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
+        params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.OAUTH;
+        params[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME] = "google";
+        params[gadgets.io.RequestParameters.OAUTH_USE_TOKEN] = "never";
+
+        params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
+
+        gadgets.io.makeRequest(url, function (response) {
+          if (response.oauthApprovalUrl) {
+            var personalize = document.getElementById('personalize');
+            personalize.href = response.oauthApprovalUrl;
+            showOneSection('approval');
+          } else if (response.data) {
+            showOneSection('main');
+            showResults(response.data);
+          } else {
+	    errorStr = response.oauthErrorText;
+            var main = document.getElementById('main');
+            var wtf = document.createTextNode('Something went wrong: ' + errorStr);
+            main.appendChild(wtf);
+            showOneSection('main');
+          }
+        }, params);
+      }
+
+      gadgets.util.registerOnLoadHandler(fetchData);
+    </script>
+        ]]>
+  </Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/customized-rss-feeds.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/customized-rss-feeds.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/customized-rss-feeds.xml
(added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/customized-rss-feeds.xml
Fri Apr  1 00:29:22 2011
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+<ModulePrefs title="__UP_subject__" directory_title="Tabbed RSS Reader" description="Tabbed
RSS Reader. Edit the gadget settings to view between 3 to 15 items. Choose long or short summaries."
title_url="http://www.cnn.com/services/rss/" author="gWidgets" author_email="phillip132@gmail.com"
screenshot="http://zgadgets.org/lig/hm/images/customized-rss_ss.png" thumbnail="http://zgadgets.org/lig/hm/images/customized-rss_tn.png"
height="360" scrolling="false" singleton="false" category="news" category2="tools">
+  <Require feature="dynamic-height"/>
+  <Require feature="setprefs"/>
+  <Require feature="tabs"/>
+</ModulePrefs>
+<UserPref name="subject"
+  display_name="Gadget Title"
+  default_value="RSS Reader"/>
+<UserPref name="feedname1"
+  display_name="Feed Name 1"
+  datatype="string"
+  default_value="CNN"/>
+<UserPref name="feed1"
+  display_name="Feed URL 1"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/cnn_topstories.rss"/>
+<UserPref name="feedname2"
+  display_name="Feed Name 2"
+  datatype="string"
+  default_value="YouTube"/>
+<UserPref name="feed2"
+  display_name="Feed URL 2"
+  datatype="string"
+  default_value="http://youtube.com/rss/global/recently_featured.rss"/>
+<UserPref name="feedname3"
+  display_name="Feed Name 3"
+  datatype="string"
+  default_value="Business"/>
+<UserPref name="feed3"
+  display_name="Feed URL 3"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/money_topstories.rss"/>
+<UserPref name="feedname4"
+  display_name="Feed Name 4"
+  datatype="string"
+  default_value="Sports"/>
+<UserPref name="feed4"
+  display_name="Feed URL 4"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/si_topstories.rss"/>
+<UserPref name="feedname5"
+  display_name="Feed Name 5"
+  datatype="string"
+  default_value="Markets"/>
+<UserPref name="feed5"
+  display_name="Feed URL 5"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/money_markets.rss"/>
+<UserPref name="feedname6"
+  display_name="Feed Name 6"
+  datatype="string"
+  default_value="Entertainment"/>
+<UserPref name="feed6"
+  display_name="Feed URL 6"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/cnn_showbiz.rss"/>
+<UserPref name="feedname7"
+  display_name="Feed Name 7"
+  datatype="string"
+  default_value="Technology"/>
+<UserPref name="feed7"
+  display_name="Feed URL 7"
+  datatype="string"
+  default_value="http://rss.cnn.com/rss/cnn_tech.rss"/>
+<UserPref name="entries" display_name="# of Entries" datatype="enum" default_value="3">
+  <EnumValue value="3"/>
+  <EnumValue value="4"/>
+  <EnumValue value="5"/>
+  <EnumValue value="6"/>
+  <EnumValue value="7"/>
+  <EnumValue value="8"/>
+  <EnumValue value="9"/>
+  <EnumValue value="10"/>
+  <EnumValue value="11"/>
+  <EnumValue value="12"/>
+  <EnumValue value="13"/>
+  <EnumValue value="14"/>
+  <EnumValue value="15"/>
+</UserPref>
+<UserPref name="summaries" display_name="Summaries" datatype="enum" default_value="100">
+  <EnumValue value="0" display_value="None"/>
+  <EnumValue value="100" display_value="Short"/>
+  <EnumValue value="200" display_value="Medium"/>
+  <EnumValue value="300" display_value="Long"/>
+  <EnumValue value="450" display_value="Longer"/>
+</UserPref>
+<UserPref name="selectedTab" datatype="hidden"/>
+<Content type="html"><![CDATA[
+  <style type="text/css">
+  @import url(http://www.google.com/ig/tablib.css);
+  .tablib_table__MODULE_ID__ { font-size: 11px; }
+
+  .statusLabel {
+    font-size:11px;
+    font-style:italic;
+    padding-top:10px;
+    text-align:center;
+  }
+  .feedHeader {
+    padding-top:5px;
+    font-size:13px;
+  }
+  .feedList {
+    font-size:12px;
+    margin:5px 0px 0px 0px;
+    padding:0px 3px 5px 3px;
+/*    border-top: 1px solid #aaaaaa; */
+    border-bottom: 1px solid #aaaaaa;
+  }
+  .feedList li {
+    margin-top:5px;
+    padding:0px;
+  }
+  .feedList div.entrySummary {
+    font-size:11px;
+  }
+  .feedlist div.entryTimestamp {
+    font-size:10px;
+    font-style:italic;
+    color:#676767;
+  }
+  </style>
+
+  <script>
+  // Global variables
+  var prefs = new _IG_Prefs(__MODULE_ID__);
+  // var tabs = new _IG_Tabs(__MODULE_ID__);
+  var tabs;
+
+  /**
+   * Initialize tabs when page loads.
+   * Create tab for each userpref only if userpref is not empty.
+   */
+  function init() {
+    tabs = new _IG_Tabs(__MODULE_ID__);
+    var f1 = _trim(prefs.getString("feed1"));
+    var f2 = _trim(prefs.getString("feed2"));
+    var f3 = _trim(prefs.getString("feed3"));
+    var f4 = _trim(prefs.getString("feed4"));
+    var f5 = _trim(prefs.getString("feed5"));
+    var f6 = _trim(prefs.getString("feed6"));
+    var f7 = _trim(prefs.getString("feed7"));
+
+    if (f1 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname1")), callbackGenerator(f1));
+    }
+    if (f2 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname2")), callbackGenerator(f2));
+    }
+    if (f3 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname3")), callbackGenerator(f3));
+    }
+    if (f4 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname4")), callbackGenerator(f4));
+    }
+    if (f5 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname5")), callbackGenerator(f5));
+    }
+    if (f6 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname6")), callbackGenerator(f6));
+    }
+    if (f7 != "") {
+      tabs.addDynamicTab(_trim(prefs.getString("feedname7")), callbackGenerator(f7));
+    }
+  };
+
+  /**
+   * Creates a function that calls the tab's callback function
+   * and passes along an additional variable from the calling environment.
+   */
+  function callbackGenerator(feedUrl) {
+    return function(tabId) {
+      callbackTab(tabId, feedUrl);
+    }
+  }
+
+  /**
+   * Fetches an Atom or RSS feed and generates content inside the
+   * selected tab's content container.  This function is called whenever
+   * a tab is selected.
+   */
+  function callbackTab(tabId, feedUrl) {
+    var summaries = prefs.getInt("summaries");
+    var entries = prefs.getInt("entries");
+    var container = _gel(tabId);
+
+    // Display loading message before fetching feed.
+    container.innerHTML = '<div class="statusLabel">Loading...</div>';
+
+    // Fetch feed and return it as a JSON object.
+    // Callback function is defined within local scope.
+    _IG_FetchFeedAsJSON(
+      feedUrl,
+      function(feed) {
+        if (typeof feed == "undefined" || typeof feed.Entry == "undefined") {
+          container.innerHTML = '<div class="statusLabel">Invalid feed URL:<br>'
+ feedUrl + '</div>';
+        } else {
+          // Fetch feed successful.  Generate HTML content from returned JSON object.
+          var html = new Array();
+
+/*          // Create feed header containing title and description.
+          html.push('<div class="feedHeader">');
+          html.push('<b>' + _hesc(feed.Title) + '</b><br>');
+          html.push(_hesc(feed.Description));
+          html.push('</div>'); */
+ 
+          // Iterate through each feed entry and generate list of content.
+          html.push('<ul class="feedList">');
+          for (var n = 0; n < feed.Entry.length; n++) {
+            var entry = feed.Entry[n];
+
+            var summ=entry.Summary;
+            var summary=summ.replace(/<V?[^>]+>/gi,"");
+
+            html.push('<li>');
+            html.push('<a target="_top" title="' + _hesc(summary) + '" href="' + entry.Link
+ '">' + _hesc(entry.Title) + '</a>');
+            if (typeof entry.Summary != "undefined" && entry.Summary != "" &&
summaries > 0) {
+              if (entry.Summary.length > summaries) {
+                html.push('<div class="entrySummary">' + _hesc(summary.substr(0, summaries))
+ ' ...</div>');
+              } else {
+                html.push('<div class="entrySummary">' + _hesc(summary) + '</div>');
+              }
+            }
+            if (!isNaN(entry.Date)) {
+              html.push('<div class="entryTimestamp">' + new Date(entry.Date * 1000).toLocaleString()
+ '</div>');
+            }
+            html.push('</li>');
+          }
+          html.push('</ul>');
+          container.innerHTML = html.join("");
+        }
+
+        // Resize iframe height to fit content.
+        _IG_AdjustIFrameHeight();
+      },
+      entries,
+      1
+    );
+  }
+
+  // Set onload event handler to call init()
+  _IG_RegisterOnloadHandler(init);
+  </script>
+]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/docs.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/docs.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/docs.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/docs.xml Fri Apr  1
00:29:22 2011
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+  <ModulePrefs
+      title="Google Docs"
+      title_url="https://docs.google.com/"
+      description="__MSG_description__"
+      author="Claudia C. and Ted C."
+      author_email="http://docs.google.com/support/?hl=en"
+      author_affiliation="Google, Inc."
+      author_location="Mountain View, CA, US"
+      thumbnail="http://www.google.com/ig/modules/docs-thm.png"
+      screenshot="http://www.google.com/ig/modules/docs.png"
+      category="communication"
+      category2="tools"
+      height="200"
+      render_inline="never">
+    <Require feature="dynamic-height"/>
+    <Optional feature="google.waitforload"/>
+    <Locale messages="https://www.google.com/ig/modules/docs_content/en_ALL.xml" />
+    <Locale lang="ar" messages="https://www.google.com/ig/modules/docs_content/ar_ALL.xml"
language_direction="rtl" />
+    <Locale lang="bg" messages="https://www.google.com/ig/modules/docs_content/bg_ALL.xml"
/>
+    <Locale lang="bn" messages="https://www.google.com/ig/modules/docs_content/bn_ALL.xml"
/>
+    <Locale lang="ca" messages="https://www.google.com/ig/modules/docs_content/ca_ALL.xml"
/>
+    <Locale lang="cs" messages="https://www.google.com/ig/modules/docs_content/cs_ALL.xml"
/>
+    <Locale lang="da" messages="https://www.google.com/ig/modules/docs_content/da_ALL.xml"
/>
+    <Locale lang="de" messages="https://www.google.com/ig/modules/docs_content/de_ALL.xml"
/>
+    <Locale lang="el" messages="https://www.google.com/ig/modules/docs_content/el_ALL.xml"
/>
+    <Locale lang="en-GB" messages="https://www.google.com/ig/modules/docs_content/en-GB_ALL.xml"
/>
+    <Locale lang="en" messages="https://www.google.com/ig/modules/docs_content/en_ALL.xml"
/>
+    <Locale lang="es" messages="https://www.google.com/ig/modules/docs_content/es_ALL.xml"
/>
+    <Locale lang="fi" messages="https://www.google.com/ig/modules/docs_content/fi_ALL.xml"
/>
+    <Locale lang="fil" messages="https://www.google.com/ig/modules/docs_content/fil_ALL.xml"
/>
+    <Locale lang="fr" messages="https://www.google.com/ig/modules/docs_content/fr_ALL.xml"
/>
+    <Locale lang="gu" messages="https://www.google.com/ig/modules/docs_content/gu_ALL.xml"
/>
+    <Locale lang="he" messages="https://www.google.com/ig/modules/docs_content/he_ALL.xml"
language_direction="rtl" />
+    <Locale lang="hi" messages="https://www.google.com/ig/modules/docs_content/hi_ALL.xml"
/>
+    <Locale lang="hr" messages="https://www.google.com/ig/modules/docs_content/hr_ALL.xml"
/>
+    <Locale lang="hu" messages="https://www.google.com/ig/modules/docs_content/hu_ALL.xml"
/>
+    <Locale lang="id" messages="https://www.google.com/ig/modules/docs_content/id_ALL.xml"
/>
+    <Locale lang="in" messages="https://www.google.com/ig/modules/docs_content/in_ALL.xml"
/>
+    <Locale lang="it" messages="https://www.google.com/ig/modules/docs_content/it_ALL.xml"
/>
+    <Locale lang="iw" messages="https://www.google.com/ig/modules/docs_content/iw_ALL.xml"
language_direction="rtl" />
+    <Locale lang="ja" messages="https://www.google.com/ig/modules/docs_content/ja_ALL.xml"
/>
+    <Locale lang="kn" messages="https://www.google.com/ig/modules/docs_content/kn_ALL.xml"
/>
+    <Locale lang="ko" messages="https://www.google.com/ig/modules/docs_content/ko_ALL.xml"
/>
+    <Locale lang="lt" messages="https://www.google.com/ig/modules/docs_content/lt_ALL.xml"
/>
+    <Locale lang="lv" messages="https://www.google.com/ig/modules/docs_content/lv_ALL.xml"
/>
+    <Locale lang="ml" messages="https://www.google.com/ig/modules/docs_content/ml_ALL.xml"
/>
+    <Locale lang="mr" messages="https://www.google.com/ig/modules/docs_content/mr_ALL.xml"
/>
+    <Locale lang="nl" messages="https://www.google.com/ig/modules/docs_content/nl_ALL.xml"
/>
+    <Locale lang="no" messages="https://www.google.com/ig/modules/docs_content/no_ALL.xml"
/>
+    <Locale lang="or" messages="https://www.google.com/ig/modules/docs_content/or_ALL.xml"
/>
+    <Locale lang="pl" messages="https://www.google.com/ig/modules/docs_content/pl_ALL.xml"
/>
+    <Locale lang="pt-BR" messages="https://www.google.com/ig/modules/docs_content/pt-BR_ALL.xml"
/>
+    <Locale lang="pt-PT" messages="https://www.google.com/ig/modules/docs_content/pt-PT_ALL.xml"
/>
+    <Locale lang="ro" messages="https://www.google.com/ig/modules/docs_content/ro_ALL.xml"
/>
+    <Locale lang="ru" messages="https://www.google.com/ig/modules/docs_content/ru_ALL.xml"
/>
+    <Locale lang="sk" messages="https://www.google.com/ig/modules/docs_content/sk_ALL.xml"
/>
+    <Locale lang="sl" messages="https://www.google.com/ig/modules/docs_content/sl_ALL.xml"
/>
+    <Locale lang="sr" messages="https://www.google.com/ig/modules/docs_content/sr_ALL.xml"
/>
+    <Locale lang="sv" messages="https://www.google.com/ig/modules/docs_content/sv_ALL.xml"
/>
+    <Locale lang="ta" messages="https://www.google.com/ig/modules/docs_content/ta_ALL.xml"
/>
+    <Locale lang="te" messages="https://www.google.com/ig/modules/docs_content/te_ALL.xml"
/>
+    <Locale lang="th" messages="https://www.google.com/ig/modules/docs_content/th_ALL.xml"
/>
+    <Locale lang="tr" messages="https://www.google.com/ig/modules/docs_content/tr_ALL.xml"
/>
+    <Locale lang="uk" messages="https://www.google.com/ig/modules/docs_content/uk_ALL.xml"
/>
+    <Locale lang="vi" messages="https://www.google.com/ig/modules/docs_content/vi_ALL.xml"
/>
+    <Locale lang="zh-CN" messages="https://www.google.com/ig/modules/docs_content/zh-CN_ALL.xml"
/>
+    <Locale lang="zh-TW" messages="https://www.google.com/ig/modules/docs_content/zh-TW_ALL.xml"
/>
+    <Require feature="dynamic-height"/>
+  </ModulePrefs>
+  <!-- <UserPref name="numDocuments" display_name="__MSG_num_documents_pref__" default_value="5"
datatype="enum"> -->
+  <!--   <EnumValue value="1" />                                               
                                  -->
+  <!--   <EnumValue value="2" />                                               
                                  -->
+  <!--   <EnumValue value="3" />                                               
                                  -->
+  <!--   <EnumValue value="4" />                                               
                                  -->
+  <!--   <EnumValue value="5" />                                               
                                  -->
+  <!--   <EnumValue value="6" />                                               
                                  -->
+  <!--   <EnumValue value="7" />                                               
                                  -->
+  <!--   <EnumValue value="8" />                                               
                                  -->
+  <!--   <EnumValue value="9" />                                               
                                  -->
+  <!-- </UserPref>                                                             
                                  -->
+  <!-- <Content type="url" href="https://docs.google.com/__ENV_google_apps_auth_path__API/IGoogle"/>
-->
+  <Content type="html">
+    <![CDATA[
+  <script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/docs.xml&amp;up_numDocuments=5&amp;synd=open&amp;w=320&amp;h=200&amp;lang=en&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
+  <script type="text/javascript">
+    gadgets.util.registerOnLoadHandler(function() {
+      setTimeout("gadgets.window.adjustHeight();", 300);   
+    });
+  </script>
+  ]]>
+  </Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/event-fc.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/event-fc.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/event-fc.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/event-fc.xml Fri Apr
 1 00:29:22 2011
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Module>
+    <ModulePrefs
+        title="Event (CTS)"
+        author_email="jenvor@gmail.com"
+        description="" 
+        height="300">
+        <Require feature="opensocial-0.8" />
+        <Require feature="dynamic-height" />
+    </ModulePrefs>
+    <Content type="html" view="home">
+  <![CDATA[
+  <!-- Include the Google Friend Connect javascript library. -->
+  <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+  <!-- Define the div tag where the gadget will be inserted. -->
+  <div id="div-8238847790439503766" style="width:282px;border:1px solid #cccccc;"></div>
+  <!-- Render the gadget into a div. -->
+  <script type="text/javascript">
+  google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html
*/);
+  google.friendconnect.container.renderOpenSocialGadget(
+   { id: 'div-8238847790439503766',
+     url:'http://www.google.com/ig/modules/socialevent.xml',
+     site: '@friendConnectSiteID@',
+     'view-params':{"title":"Attend CTS10","scope":"PAGE","tz":"America/Anguilla","address":"The
Westin Lombard Yorktown Center Chicago, Illinois, USA", "start":"2010-05-17 10:00:00","location":"Lombard,
IL","end":"2010-05-21 10:00:00"}
+   });
+gadgets.util.registerOnLoadHandler(function() {
+  // gadgets.window.adjustHeight();
+});
+  </script>
+  ]]>
+</Content>
+    <Content type="html" view="canvas">
+  <![CDATA[
+  <!-- Include the Google Friend Connect javascript library. -->
+  <script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
+  <!-- Define the div tag where the gadget will be inserted. -->
+  <div id="div-8238847790439503766" style="width:100%;border:1px solid #cccccc;"></div>
+  <!-- Render the gadget into a div. -->
+  <script type="text/javascript">
+  google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html
*/);
+  google.friendconnect.container.renderOpenSocialGadget(
+   { id: 'div-8238847790439503766',
+     url:'http://www.google.com/ig/modules/socialevent.xml',
+     site: '@friendConnectSiteID@',
+     'view-params':{"title":"Attend CTS10","scope":"PAGE","tz":"America/Anguilla","address":"The
Westin Lombard Yorktown Center Chicago, Illinois, USA", "start":"2010-05-17 10:00:00","location":"Lombard,
IL","end":"2010-05-21 10:00:00"}
+   });
+gadgets.util.registerOnLoadHandler(function() {
+  // gadgets.window.adjustHeight();
+});
+  </script>
+  ]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/facebook.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/facebook.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/facebook.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/facebook.xml Fri Apr
 1 00:29:22 2011
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+  <ModulePrefs title="Facebook"
+      title_url="http://www.facebook.com"
+      directory_title="Facebook Gadget"
+      description="View your Facebook news feed and update your status from iGoogle."
+      author="Brian N."
+      author_email="briann.gadgets+facebookgadget@gmail.com"
+      author_location="Seattle, WA"
+      author_affiliation="Google, Inc."
+      height="300"
+      scrolling="true"
+      screenshot="http://facebookiggadget.appspot.com/static/screenshot.png"
+      thumbnail="http://facebookiggadget.appspot.com/static/thumbnail.png">
+  </ModulePrefs>
+  <Content type="url" href="http://facebookiggadget.appspot.com/" view="home" />
+  <Content type="url" href="http://facebookiggadget.appspot.com/" view="canvas" />
+</Module>
\ No newline at end of file

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-1.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-1.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-1.xml
(added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-1.xml
Fri Apr  1 00:29:22 2011
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs title="RPC test"
+     title_url=""
+     description="A gadget to test inter-gadget communication"
+     height="250" 
+     screenshot=""
+     thumbnail=""
+     scrolling="true"
+     author="Gerald Guo"
+     author_affiliation="CGL, IU"
+     author_email="zhguo@indiana.edu" 
+     author_location="Innovation Center, IU"
+	 category="tools"
+     author_link=""
+     author_photo=""
+     author_aboutme=""
+     author_quote="" >
+  <Require feature="rpc"/>
+  <Require feature="dynamic-height"/>
+  </ModulePrefs>
+
+  <Content type="html" view="home, canvas">
+     <![CDATA[
+     <!-- <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"/>
-->
+     <script type="text/javascript">
+      function echoCb(msg) {
+        setMsg("Following message has been recieved by target:<br>" +
+          msg.replace(/\n/g, "<br>"));
+      }
+
+      function sendMsg() {
+        var form = document.getElementById("main_form");
+        var msg = form.msg.value;
+        var targetId = form.targetId.value;
+        gadgets.rpc.call("..", "rpcrelay", null, targetId, "echomsg", "echomsg", msg);
+      }
+
+      function setMsg(msg) {
+        var ele = document.getElementById("resultDiv");
+        ele.innerHTML = msg;
+        gadgets.window.adjustHeight();
+      }
+      gadgets.rpc.register("echomsg", function(msg) {
+        echoCb(msg);
+      });
+
+    </script>
+
+    <div class="authsec">
+      <h3>Inter-gadget communication test</h3>
+      <b>source gadget</b>
+      <form method="POST" action="#" id="main_form">
+        <div style="padding-bottom:7px;">
+          <span class="fieldName">Message: </span>
+          <input type="text" name="msg">
+        </div>
+        <div style="padding-bottom:7px;">
+          <span class="fieldName">Target gadget Id: </span>
+          <input type="text" name="targetId"><br>
+        </div>
+        <input type="submit" onclick="javascript: sendMsg(); return false;" value="Submit">
+      </form>
+
+      <div id="resultDiv" style="font-weight:bold">
+      </div>
+    </div>
+
+    ]]>
+  </Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-2.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-2.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-2.xml
(added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/g2g-communication-2.xml
Fri Apr  1 00:29:22 2011
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs title="RPC test"
+     title_url=""
+     description="A target gadget to test inter-gadget communication"
+     height="250" 
+     screenshot=""
+     thumbnail=""
+     scrolling="true"
+     author="Gerald Guo"
+     author_affiliation="CGL, IU"
+     author_email="zhguo@indiana.edu" 
+     author_location="Innovation Center, IU"
+	 category="tools"
+     author_link=""
+     author_photo=""
+     author_aboutme=""
+     author_quote="" >
+  <Require feature="rpc"/>
+  <Require feature="dynamic-height"/>
+  </ModulePrefs>
+
+  <Content type="html" view="home, canvas">
+     <![CDATA[
+     <script type="text/javascript">
+
+      function setMsg(msg) {
+        var ele = document.getElementById("resultDiv");
+        ele.innerHTML = msg;
+        gadgets.window.adjustHeight();
+      }
+      gadgets.rpc.register("echomsg", function(msg) {
+        setMsg(msg);
+        return msg;
+      });
+
+    </script>
+
+    <div class="authsec">
+      <h3>Inter-gadget communication test</h3>
+      <b>target gadget</b><br>
+
+      <span class="fieldName">Received message: </span>
+      <div id="resultDiv" style="font-weight:bold">
+      </div>
+    </div>
+
+    ]]>
+  </Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gmail.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gmail.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gmail.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gmail.xml Fri Apr 
1 00:29:22 2011
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+<ModulePrefs title="GMail" description="Check Your Emails of GMail. This is based on the
AllEmail 
+gadget."  title_url="http://www.technical-tejash.blogspot.com" author="Tejash" author_email="tejash.p.shah@gmail.com"
screenshot = "http://tejash.p.shah.googlepages.com/AllMail_screenshot.PNG" thumbnail = "http://tejash.p.shah.googlepages.com/AllEmail_thumb.PNG"
height="760" width="500">
+<Require feature="dynamic-height" />
+<Require feature="analytics" />
+<Require feature="setprefs" />
+<Require feature="views" />
+</ModulePrefs>
+ <Content type="html">
+  <![CDATA[
+  <!-- ALm6fM00GHVxs_gY45GXo1uEiyhcaV0XiWKOfxrJFyCxCm1RRGR4yOupkfkPMYZJO4Q5nQBElO3qCBvcZPctfbWUED-sA9i_VP_nluudm8czy3Q73SKmCuNjfo5OHtH9ssCK8-KnRNH7YcaRFHulYNmVZIfK6hE0EA==
-->
+<style>
+body, td, p, div, select, input {
+	font-family: trebuchet ms,Arial,sans-serif;
+	font-size:13px;
+	color:#000000;
+}
+</style>
+
+<table width="100%" border=0 id="gtable">
+
+<tr>
+<td >
+<div id="mmessage"></div>
+</td>
+</tr>
+<tr>
+<td>
+<div id="mailg"></div>
+</td>
+</tr>
+
+</table>
+
+<script language="javascript">
+
+
+function mnotify() {
+
+document.getElementById("mmessage").innerHTML = "";
+gadgets.window.adjustHeight();
+gadgets.window.adjustWidth();
+}
+
+function rendermailg()
+{
+
+  document.getElementById('mmessage').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'/>
Loading - Please wait...";
+   document.getElementById('mail_ifr').src =  'http://m.gmail.com';
+}
+
+function onLoad() {
+document.getElementById('mmessage').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'>
Loading - Please wait...";
+var mail_src_url = 'http://m.gmail.com';
+document.getElementById("mailg").innerHTML = "<iframe id='mail_ifr' src='" + mail_src_url
+ "' width='100%' height='500' frameborder='0' onload='mnotify();'>";
+rendermailg();
+
+}
+
+onLoad();
+
+</script>
+
+
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("UA-3818008-4");
+pageTracker._trackPageview();
+</script>
+
+    ]]>
+</Content>
+</Module>

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/googletalk.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/googletalk.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/googletalk.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/googletalk.xml Fri
Apr  1 00:29:22 2011
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" ?> 
+<Module>
+  <ModulePrefs 
+	  height="500"
+	  title="Google Talk Chat!"
+	  title_url=""     
+     scrolling="false"
+	  author="Preetam Purbia" 
+	  author_email="purbia.gadgets@gmail.com"
+	  description="Google Talk Chat is a free chat for your online friends. So start chat using
Google Talk Chat!"
+	  author_affiliation="http://www.purbia-gadgets.co.cc/"
+	  author_location="Udaipur, Rajasthan, India"
+	  screenshot="http://img111.imageshack.us/img111/8048/googletsy7.jpg"
+	  thumbnail="http://img111.imageshack.us/img111/8048/googletsy7.jpg" 
+	  author_photo=""
+	  author_aboutme="we are gadget makers"
+	  author_link="http://www.100india.com/">
+    <Require feature="opensocial-0.7" />
+    <Require feature="views" />
+	 <Require feature="analytics" /> 
+  </ModulePrefs>     
+  
+<Content type="html" view="home">
+<![CDATA[
+
+<center>
+  <iframe width="350" height="400" border="0" frameborder="0" framespacing="0" 
+    src="http://talkgadget.google.com/talkgadget/client" marginheight="0" marginwidth="0"
scrolling="auto"></iframe>
+</center>
+</center>
+]]>
+</Content> 
+<Content type="html" view="canvas">
+<![CDATA[
+
+<center>
+<iframe width="1000" height="800" border="0" frameborder="0" framespacing="0" src="http://talkgadget.google.com/talkgadget/client"
marginheight="0" marginwidth="0" scrolling="auto"></iframe>
+</center>
+<center>
+]]>
+</Content> 
+</Module>
+

Added: incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gtalk.xml
URL: http://svn.apache.org/viewvc/incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gtalk.xml?rev=1087520&view=auto
==============================================================================
--- incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gtalk.xml (added)
+++ incubator/rave/donations/ogce-gadget-container/third-party-gadgets/gtalk.xml Fri Apr 
1 00:29:22 2011
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+<ModulePrefs title="GMail" description="Check Your Emails of GMail. This is based on the
AllEmail 
+gadget."  title_url="http://www.technical-tejash.blogspot.com" author="Tejash" author_email="tejash.p.shah@gmail.com"
screenshot = "http://tejash.p.shah.googlepages.com/AllMail_screenshot.PNG" thumbnail = "http://tejash.p.shah.googlepages.com/AllEmail_thumb.PNG"
height="760" width="500">
+<Require feature="dynamic-height" />
+<Require feature="analytics" />
+<Require feature="setprefs" />
+<Require feature="views" />
+</ModulePrefs>
+ <Content type="html">
+  <![CDATA[
+<style>
+body, td, p, div, select, input {
+	font-family: trebuchet ms,Arial,sans-serif;
+	font-size:13px;
+	color:#000000;
+}
+</style>
+
+<table width="100%" border=0 id="gtable">
+
+<tr>
+<td >
+<div id="message"></div>
+</td>
+</tr>
+<tr>
+<td>
+<div id="content"></div>
+</td>
+</tr>
+
+</table>
+
+<script language="javascript">
+
+
+function update() {
+
+document.getElementById("message").innerHTML = "";
+gadgets.window.adjustHeight();
+}
+
+function renderContent()
+{
+
+  document.getElementById('message').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'/>
Loading - Please wait...";
+   document.getElementById('content').src = 'http://talkgadget.google.com/talkgadget/client';
+}
+
+function onLoad() {
+document.getElementById('message').innerHTML = "<img src='http://pages.google.com/-/images/pie.gif'>
Loading - Please wait...";
+var content_src_url = 'http://talkgadget.google.com/talkgadget/client';
+document.getElementById("content").innerHTML = "<iframe id='content_ifr' src='" + content_src_url
+ "' width='100%' height='500' frameborder='0' onload='update();'>";
+renderContent();
+
+}
+
+onLoad();
+
+</script>
+    ]]>
+</Content>
+</Module>



Mime
View raw message