Deploy upm.mraa.io to github.com/intel-iot-devkit/upm.git:gh-pages

This commit is contained in:
Deployment Bot (from Travis CI)
2018-11-07 21:32:23 +00:00
commit c515bd76c9
2945 changed files with 357940 additions and 0 deletions

File diff suppressed because one or more lines are too long

1
assets/content/facets.json Executable file
View File

@ -0,0 +1 @@
{"facets":[{"name":"Project Type","id":"1","type":["Prototyping","Industrial","Medical","Commercial","Extended"]},{"name":"Categories","id":"2","type":["Pressure","Color sensor","Humidity","Temperature","Accelerometer","Button","Analog Input","Light","Radio","Light Controller","Compass","Gyroscope","Motor","Led","Servos","Other"]},{"name":"Connections","id":"3","type":["gpio","i2c","spi","AIO","PWM","Analog"]},{"name":"Starter Kit","id":"4","type":["GSK","DFRobot 3PA","DFRobot 4WD","Robok","Environment & Agriculture Kit","Grove Starter Kit","Home Automation Kit","Robotics Kit","Transportation & Safety Kit"]},{"name":"API Language Support","id":"5","type":["C++","Python","Java","Node.js","C"]},{"name":"Manufacturer","id":"6","type":["Amsys","Silabs","Semtech","Texas Instruments","Meanwell","Seeed","Maxim Integrated","Vishay","DFrobot","Sparkfun","Generic","Honeywell","Emax","Bosch","Acme Co","Max","Kernel","adafruit","Studio"]}]}

File diff suppressed because one or more lines are too long

5
assets/css/style.css Normal file

File diff suppressed because one or more lines are too long

BIN
assets/images/FPO-Detail.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/images/FPO.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
assets/images/HowItWorks.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
assets/images/carousel1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
assets/images/client1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
assets/images/client2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
assets/images/client3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/images/client4.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
assets/images/detect.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

BIN
assets/images/down_arrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

BIN
assets/images/favicon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
assets/images/filter_arrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

BIN
assets/images/header-bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
assets/images/header.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
assets/images/homePage.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
assets/images/logo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
assets/images/menu1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
assets/images/right_arrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

BIN
assets/images/sensor-img.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

1
assets/js/common.js Executable file
View File

@ -0,0 +1 @@
function ConcatenateArray(e){for(var t="",r=0,a=e.length;r<a;r++)0==r?t=e[r]:t+=r==a-1?" & "+e[r]:", "+e[r];return t}function SanitizeToken(e){return e.replace(/(_\|_)/g," ")}function ResizeImage(e){var t=$(e).parent();t.width()/t.height()>e.width/e.height?$(e).css({height:"98%",width:"auto"}):$(e).css({height:"auto",width:"100%"}),$(e).show()}function getQueryVariable(e){for(var t=window.location.search.substring(1),r=t.split("&"),a=0;a<r.length;a++){var n=r[a].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return""}function PrepareLunrIndex(e){idx=elasticlunr.Index.load(e)}var idx,parsedObject;Handlebars.registerHelper("ifnonempty",function(e,t){return e=e||"",""!=e?t.fn(this):""}),Handlebars.registerHelper("ifMultipleElements",function(e,t){var r=!1;for(key in e)if(e[key].length>1){r=!0;break}return 1==r?t.fn(this):t.inverse(this)}),Handlebars.registerHelper("concat",function(e,t){var r="";try{a=e.length}catch(e){a=0}for(var a,n=0;n<a;n++)0==n?r=SanitizeToken(e[n]):r+=n==a-1?" & "+SanitizeToken(e[n]):", "+SanitizeToken(e[n]);return r}),Handlebars.registerHelper("ifeven",function(e,t){return e%2==0?t.fn(this):t.inverse(this)}),Handlebars.registerHelper("ifarray",function(e,t){return"[object Array]"===Object.prototype.toString.call(e)?t.fn(this):t.inverse(this)}),Handlebars.registerHelper("ifobject",function(e,t){return"[object Object]"===Object.prototype.toString.call(e)?t.fn(this):t.inverse(this)}),Handlebars.registerHelper("ifequal",function(e,t,r){return"[object Array]"===Object.prototype.toString.call(e)&&(e=e[0]),"[object Array]"===Object.prototype.toString.call(t)&&(t=t[0]),e.toString().toLowerCase()===t.toString().toLowerCase()?r.fn(this):r.inverse(this)}),Handlebars.registerHelper("getfirst",function(e,t){return"[object Array]"===Object.prototype.toString.call(e)&&e.length>0?e[0]:""}),Handlebars.registerHelper("getCategoryBacklinks",function(e,t){for(var r=e.join(","),a=0;a<e.length;a++)e[a]=e[a].toLowerCase();return r=e.join(","),'<a class="link" href="/findSensor.html?category='+encodeURIComponent(r)+'">See all </a>'}),Handlebars.registerHelper("getKitsBacklinks",function(e,t){return'<a class="link" href="/findSensor.html?category='+encodeURIComponent(e)+'">'+e+"</a>"}),Handlebars.registerHelper("language",function(e){return"Node.js"==e?"javascript":"C++"==e?"cpp":"Java"==e?"java":"Python"==e?"python":"C"==e?"cpp":void 0}),Handlebars.registerHelper("imagelinkDetail",function(e){return e?"https://raw.githubusercontent.com/intel-iot-devkit/upm/master/docs/images/"+e:"/assets/images/FPO-Detail.png"}),Handlebars.registerHelper("codeSnippetFolder",function(e){return"Node.js"==e?"javascript":"C++"==e?encodeURIComponent("c++"):"Java"==e?"java":"Python"==e?"python":"C"==e?"c":void 0}),Handlebars.registerHelper("sourceURL",function(e){switch(e){case"Java":return"http://iotdk.intel.com/docs/master/upm/java/group__";case"Python":return"http://iotdk.intel.com/docs/master/upm/python/pyupm_";case"C++":return"http://iotdk.intel.com/docs/master/upm/group__";case"Node.js":return"http://iotdk.intel.com/docs/master/upm/node/modules/";case"C":return"http://iotdk.intel.com/docs/master/upm/group__";default:return"http://iotdk.intel.com/docs/master/upm/group__"}}),Handlebars.registerHelper("imagelink",function(e){return e?"https://raw.githubusercontent.com/intel-iot-devkit/upm/master/docs/images/"+e:"/assets/images/FPO.png"});

2
assets/js/library/bootstrap.min.js vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
assets/js/library/handlebars.min.js vendored Executable file

File diff suppressed because one or more lines are too long

1
assets/js/library/highlight.js Executable file

File diff suppressed because one or more lines are too long

3
assets/js/library/jquery-2.2.4.min.js vendored Executable file

File diff suppressed because one or more lines are too long

8
assets/js/library/jquery-ui.min.js vendored Executable file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
!function(e){e.fn.pajinate=function(a){function i(i){new_page=parseInt(d.data(u))-1,1==e(i).siblings(".active_page").prev(".page_link").length?(t(i,new_page),s(new_page)):a.wrap_around&&s(f-1)}function n(i){new_page=parseInt(d.data(u))+1,1==e(i).siblings(".active_page").next(".page_link").length?(l(i,new_page),s(new_page)):a.wrap_around&&s(0)}function s(e){e=parseInt(e,10);var i=parseInt(d.data(g));start_from=e*i,end_on=start_from+i;var n=o.hide().slice(start_from,end_on);n.show(),c.find(a.nav_panel_id).children(".page_link[longdesc="+e+"]").addClass("active_page "+m).siblings(".active_page").removeClass("active_page "+m),d.data(u,e);var s=parseInt(d.data(u)+1),l=p.children().size(),t=Math.ceil(l/a.items_per_page);c.find(a.nav_info_id).html(a.nav_label_info.replace("{0}",start_from+1).replace("{1}",start_from+n.length).replace("{2}",o.length).replace("{3}",s).replace("{4}",t)),_(),r(),void 0!==a.onPageDisplayed&&a.onPageDisplayed.call(this,e+1)}function l(i,n){var s=n;"none"==e(i).siblings(".active_page").siblings(".page_link[longdesc="+s+"]").css("display")&&h.each(function(){e(this).children(".page_link").hide().slice(parseInt(s-a.num_page_links_to_display+1),s+1).show()})}function t(i,n){var s=n;"none"==e(i).siblings(".active_page").siblings(".page_link[longdesc="+s+"]").css("display")&&h.each(function(){e(this).children(".page_link").hide().slice(s,s+parseInt(a.num_page_links_to_display)).show()})}function _(){h.children(".page_link:visible").hasClass("last")?h.children(".more").hide():h.children(".more").show(),h.children(".page_link:visible").hasClass("first")?h.children(".less").hide():h.children(".less").show()}function r(){h.children(".last").hasClass("active_page")?h.children(".next_link").add(".last_link").addClass("no_more "+b):h.children(".next_link").add(".last_link").removeClass("no_more "+b),h.children(".first").hasClass("active_page")?h.children(".previous_link").add(".first_link").addClass("no_more "+b):h.children(".previous_link").add(".first_link").removeClass("no_more "+b)}var d,p,c,o,h,f,u="current_page",g="items_per_page",v={item_container_id:".content",items_per_page:10,nav_panel_id:".page_navigation",nav_info_id:".info_text",num_page_links_to_display:20,start_page:0,wrap_around:!1,nav_label_first:"First",nav_label_prev:"Prev",nav_label_next:"Next",nav_label_last:"Last",nav_order:["first","prev","num","next","last"],nav_label_info:"Showing {0}-{1} of {2} results",show_first_last:!0,abort_on_small_lists:!1,jquery_ui:!1,jquery_ui_active:"ui-state-highlight",jquery_ui_default:"ui-state-default",jquery_ui_disabled:"ui-state-disabled"},a=e.extend(v,a),k=a.jquery_ui?a.jquery_ui_default:"",m=a.jquery_ui?a.jquery_ui_active:"",b=a.jquery_ui?a.jquery_ui_disabled:"";return this.each(function(){if(c=e(this),p=e(this).find(a.item_container_id),o=c.find(a.item_container_id).children(),a.abort_on_small_lists&&a.items_per_page>=o.size())return c;d=c,d.data(u,0),d.data(g,a.items_per_page);for(var v=p.children().size(),b=Math.ceil(v/a.items_per_page),w=a.show_first_last?'<a class="first_link '+k+'" href="">'+a.nav_label_first+"</a>":"",y=a.show_first_last?'<a class="last_link '+k+'" href="">'+a.nav_label_last+"</a>":"",x="",C=0;C<a.nav_order.length;C++)switch(a.nav_order[C]){case"first":x+=w;break;case"last":x+=y;break;case"next":x+='<a class="next_link '+k+'" href="">'+a.nav_label_next+"</a>";break;case"prev":x+='<a class="previous_link '+k+'" href="">'+a.nav_label_prev+"</a>";break;case"num":x+='<span class="ellipse less">...</span>';for(var j=0;b>j;)x+='<a class="page_link '+k+'" href="" longdesc="'+j+'">'+(j+1)+"</a>",j++;x+='<span class="ellipse more">...</span>'}h=c.find(a.nav_panel_id),h.html(x).each(function(){e(this).find(".page_link:first").addClass("first"),e(this).find(".page_link:last").addClass("last")}),h.children(".ellipse").hide(),h.find(".previous_link").next().next().addClass("active_page "+m),o.hide(),o.slice(0,d.data(g)).show(),f=c.find(a.nav_panel_id+":first").children(".page_link").size(),a.num_page_links_to_display=Math.min(a.num_page_links_to_display,f),h.children(".page_link").hide(),h.each(function(){e(this).children(".page_link").slice(0,a.num_page_links_to_display).show()}),c.find(".first_link").click(function(a){a.preventDefault(),t(e(this),0),s(0)}),c.find(".last_link").click(function(a){a.preventDefault();var i=f-1;l(e(this),i),s(i)}),c.find(".previous_link").click(function(a){a.preventDefault(),i(e(this))}),c.find(".next_link").click(function(a){a.preventDefault(),n(e(this))}),c.find(".page_link").click(function(a){a.preventDefault(),s(e(this).attr("longdesc"))}),s(parseInt(a.start_page)),_(),a.wrap_around||r()})}}(jQuery);

1
assets/js/library/lunr.js Executable file

File diff suppressed because one or more lines are too long

1
assets/js/library/prism.js Executable file

File diff suppressed because one or more lines are too long

1
assets/js/search.js Executable file
View File

@ -0,0 +1 @@
function GetLunrIndex(){$.ajax({cache:!0,url:"/assets/content/LunrIndex.json?_=2",type:"GET",dataType:"json",success:function(e){PrepareLunrIndex(e);var t="",n=getQueryVariable("category")||"";if(""!=n){var a=n.split(",");for(i=0;i<a.length;i++){var r=$('input[type="checkbox"][value="'+a[i]+'"]');r.prop("checked",!0);var o=r.parentsUntil(".panel-default",".panel-body");o.hasClass("read-more")&&o.siblings(".show-more").click()}t=PrepareFilter()}Search(t)},error:function(e){alert("Error! Please try again."+e.responseText),console.log(e)}})}function FilterLurData(){Search(PrepareFilter())}function PrepareFilter(){var e=[];return $filterCheckboxes.filter(":checked").length>0?$filterCheckboxes.filter(":checked").each(function(){var t=this.name.replace(/\s/g,"");e.hasOwnProperty(t)||(e[t]=[]),e[t].push(this.value.replace(/\s+/g,"_|_"))}):e=null,e}function Search(e){var t=null;if(e)for(var n in e){var a=Object(),r=new Object;r[n]={boost:1},a.fields=r;var o=[];o.push(idx.search(e[n].join(" "),a)),o.length>0&&(o=o[0],t?(t=t||[],t=Intersect(t,o)):t=o)}else{t=[];for(var n in idx.documentStore.docs)t.push(idx.documentStore.docs[n])}BindSensorResult(t)}function Intersect(e,t){for(var n=[],a=0;a<e.length;a++)for(var r=0;r<t.length;r++)if(e[a].ref===t[r].ref){n.push(e[a]);break}return n}function bindPagination(){$(".page_navigation").show(),$("#findSensor").pajinate({num_page_links_to_display:6,items_per_page:50})}function hidePagination(){$(".page_navigation").hide()}function BindSensorResult(e){var t=Handlebars.compile($("#findSensorDetail").html()),n=$("#findSensor .content");n.html("");var a=[];if(e.length>0){if(e[0].ref)for(var r=0;r<e.length;r++)a.push(e[r].doc);else a=e;n.html(t(a)),bindPagination()}else{n.html('<div class="no-results">No sensors match the selected filters.</div>'),hidePagination()}}function GetFacetsData(){$.ajax({cache:!0,url:"/assets/content/facets.json?_=2",type:"GET",dataType:"json",success:function(e){PrepareFacetOptions(e),$filterCheckboxes=$('#leftSection input[type="checkbox"]')},error:function(e){alert("Error! Please try again."+e.responseText),console.log(e)}})}function PrepareFacetOptions(e){var t=$("#accordianTemplate").html(),n=Handlebars.compile(t),a=n(e);$("#accordion").html(a),checkSeeMoreOption()}function checkSeeMoreOption(){var e=$(".panel-body");for(i=0;i<e.length;i++)e[i].children.length>5?(e[i].nextElementSibling.style.display="block",e[i].style.height="160px"):e[i].style.height="auto"}function LoadMoreData(){$(this).parent().find(".panel-body").toggleClass("read-less").toggleClass("read-more"),"See more..."==$(this).text()?$(this).text("See less..."):$(this).text("See more...")}var searchterm=[];$(document).ready(function(){GetFacetsData(),GetLunrIndex()}),jQuery.ui.autocomplete.prototype._resizeMenu=function(){this.menu.element.outerWidth(this.element.outerWidth())},$("#searchBox").length>0&&($("#searchBox").autocomplete({source:function(e,t){var n=idx.search(e.term,{fields:{PartNumbers:{boost:2},Brief:{boost:2}},expand:!0});if(0==n.length){var a=new Object;a.ref=-1,n.push(a)}t(n)},focus:function(e,t){return(t.item.ref||"").length>0&&$("#searchBox").val(t.item.doc.Brief),!1},select:function(e,t){e.preventDefault(),(t.item.ref||"").length>0&&(location.href="/sensorDetail.html?name="+t.item.ref)}}).autocomplete("instance")._renderItem=function(e,t){return-1!=t.ref?$("<li>").addClass("ui-menu-item").attr("data-id",t.ref).append("<div class='ui-menu-item-wrapper'>"+t.doc.Brief+" ("+ConcatenateArray(t.doc.PartNumbers)+")</div>").appendTo(e):$("<li>").addClass("ui-autocomplete-noresult").append("<div class='ui-menu-item-wrapper'>No Results Found !!</div>").appendTo(e)},$(window).resize(function(){$("#searchBox").autocomplete("close")})),$("body").on("click",".show-more",LoadMoreData),$("#menu-hide").click(function(){$(".left-container").hasClass("open")?$(".left-container").removeClass("open"):$(".left-container").addClass("open")}),$(document).ready(function(){$("#menu-hide").click(function(){$(this).toggleClass("open")})});

1
assets/js/sensorDetail.js Executable file
View File

@ -0,0 +1 @@
function loadSensorDetailData(a,e){for(var t=0;t<e.length;t++){var l=e[t]["Sensor Class"];for(var r in l)if(r==a){var i=l[a];i.Library=e[t].Library;var o=$("#sensorDetailPageTemplate").html(),s=Handlebars.compile(o),n=s(i);$("#sensorDetailPage").html(n)}}}function GetSensorData(){$.ajax({cache:!0,url:"/assets/content/sensorDetail.json?_=2",type:"GET",dataType:"json",success:function(a){loadSensorDetailData(getQueryVariable("name"),a),InitializeCarousel(a),InitializeCodeSample()},error:function(a){alert("Error! Please try again."+a.responseText),console.log(a)}})}function InitializeCarousel(a){$(".carousel .item").length?($(".carousel").find(".item").first().addClass("active"),$(".carousel").find(".carousel-indicators li").first().addClass("active"),$(".carousel").carousel({interval:2e3})):$("#carousel-section").hide()}function InitializeCodeSample(){$('a[data-toggle="tab"]').on("show.bs.tab",function(a){loadCodeSamples($(a.target).parent())}),loadCodeSamples($(".nav-pills li:first"))}function loadCodeSamples(a){var e=a;"false"==(e.attr("data-flag")||"false")&&$.ajax({cache:!1,url:"https://raw.githubusercontent.com/intel-iot-devkit/upm/master/examples/"+a.attr("data-parent")+"/"+a.attr("data-value").split(",")[0],success:function(a,t,l){var r=a;r="python"==e.attr("data-parent")?a.replace(/(#.*?\n){4,}/g,""):a.replace(/\/\*[^]*?\*\//g,""),r=r.replace(/^[\s]*$\n/m,""),$("#"+e.attr("data-id")).find("code").text(r),hljs.highlightBlock($("#"+e.attr("data-id")).find("code")[0]),e.attr("data-flag","true")}})}$(document).ready(function(){GetSensorData()});