text: (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{209:function(e,t,a){"use strict";a.r(t),a.d(t,"AllGithubProjects",function(){return g});a(65),a(62);var n=a(451),r=a.n(n),c=(a(215),a(316),a(0)),i=a.n(c),o=a(216),l=a(214),s=a(283),u=a(312),m=a(463),d=a(281),f=a.n(d),p=a(253),h=a(219),E=a(477);function v(e,t,a,n,r,c,i){try{var o=e[c](i),l=o.value}catch(s){return void a(s)}o.done?t(l):Promise.resolve(l).then(n,r)}var g=function(){var e=Object(c.useState)([]),t=e[0],a=e[1],n=Object(c.useState)(1),o=n[0],l=n[1],d=Object(c.useState)(""),g=d[0],b=d[1],w=Object(c.useState)(!0),j=w[0],y=w[1];return Object(c.useEffect)(function(){var e=!0;return function(){var t,n=(t=r.a.mark(function t(){var n,c,i;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a([]),b(""),y(!0),t.prev=3,t.next=6,fetch("https://api.github.com/users/jazeee/repos?sort=updated&page="+o);case 6:if(!(n=t.sent).ok){t.next=14;break}return t.next=10,n.json();case 10:c=t.sent,e&&(i=c.map(function(e){var t=e.name,a=e.description,n=e.full_name;return{name:t,description:a||"-",url:e.html_url,githubFullName:n}}),a(i),y(!1)),t.next=15;break;case 14:throw new Error(n.status+" - Bad response.");case 15:t.next=22;break;case 17:t.prev=17,t.t0=t.catch(3),b("Error retrieving data: "+t.t0),console.log(t.t0),y(!1);case 22:case"end":return t.stop()}},t,null,[[3,17]])}),function(){var e=this,a=arguments;return new Promise(function(n,r){var c=t.apply(e,a);function i(e){v(c,n,r,i,o,"next",e)}function o(e){v(c,n,r,i,o,"throw",e)}i(void 0)})});return function(){return n.apply(this,arguments)}}()(),function(){return e=!1}},[a,y,o,b]),i.a.createElement(s.a,{className:f.a.projects},i.a.createElement("h1",{className:f.a.header},"All Github Projects"),j&&i.a.createElement(E.a,null),g&&i.a.createElement(m.a,{variant:"h4"},g),t.map(function(e){return i.a.createElement(p.a,{key:e.name,project:e})}),i.a.createElement(s.a,{className:f.a.actions},i.a.createElement(u.a,{variant:"contained",disabled:o<=1,onClick:function(){return l(o-1)}},"Previous Page"),i.a.createElement(u.a,{variant:"contained",disabled:30!==t.length,onClick:function(){return l(o+1)}},"Next Page"),i.a.createElement(u.a,null,i.a.createElement(h.a,{to:"/software-projects"},"Featured Projects"))))};t.default=function(){return i.a.createElement(o.a,null,i.a.createElement(l.a,{title:"All Github Projects"}),i.a.createElement(g,null))}},212:function(e,t,a){var n;e.exports=(n=a(224))&&n.default||n},213:function(e,t,a){"use strict";a.d(t,"a",function(){return i});a(135),a(95),a(62),a(226),a(60);var n=a(0),r=a.n(n),c=a(462);var i=function(e){var t=e.children,a=function(e,t){if(null==e)return{};var a,n,r={},c=Object.keys(e);for(n=0;n<c.length;n++)a=c[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,["children"]);return r.a.createElement(c.a,Object.assign({},a,{target:"_blank",rel:"noopener noreferrer"}),t)}},214:function(e,t,a){"use strict";a.d(t,"a",function(){return l});var n=a(225),r=a(0),c=a.n(r),i=a(232),o=a.n(i);function l(e){var t=e.description,a=e.lang,r=e.meta,i=e.title,l=n.data.site,s=t||l.siteMetadata.description;return c.a.createElement(o.a,{htmlAttributes:{lang:a},title:i,titleTemplate:"%s | "+l.siteMetadata.title,meta:[{name:"description",content:s},{property:"og:title",content:i},{property:"og:description",content:s},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:l.siteMetadata.author},{name:"twitter:title",content:i},{name:"twitter:description",content:s},{name:"keywords",content:l.siteMetadata.keywords}].concat(r)})}l.defaultProps={lang:"en",meta:[],description:""}},216:function(e,t,a){"use strict";var n=a(223),r=a(0),c=a.n(r),i=a(470),o=a(471),l=a(323),s=a(457),u=Object(s.a)({palette:{primary:{main:"#2F2001"},secondary:{main:"#0094FF"},error:{main:l.a.A400},background:{default:"#000"}}}),m=(a(230),a(466)),d=a(468),f=a(463),p=a(469),h=a(231),E=a.n(h),v=a(465),g=a(219),b=a(213),w=a(218),j=(a(60),a(288));function y(e){return c.a.createElement(j.a,Object.assign({fontSize:"inherit"},e),c.a.createElement("path",{d:"M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3H19M18.5,18.5V13.2A3.26,3.26 0 0,0 15.24,9.94C14.39,9.94 13.4,10.46 12.92,11.24V10.13H10.13V18.5H12.92V13.57C12.92,12.8 13.54,12.17 14.31,12.17A1.4,1.4 0 0,1 15.71,13.57V18.5H18.5M6.88,8.56A1.68,1.68 0 0,0 8.56,6.88C8.56,5.95 7.81,5.19 6.88,5.19A1.69,1.69 0 0,0 5.19,6.88C5.19,7.81 5.95,8.56 6.88,8.56M8.27,18.5V10.13H5.5V18.5H8.27Z"}))}var k=a(464),M=a(479);function S(e){var t=e.children,a=Object(k.a)();return c.a.createElement(M.a,{appear:!1,direction:"down",in:!a},t)}var x=Object(v.a)(function(e){return{root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1},social:{marginLeft:e.spacing(1)}}}),N=function(e){var t=e.siteTitle,a=x();return c.a.createElement("div",{className:a.root},c.a.createElement(S,null,c.a.createElement(m.a,null,c.a.createElement(d.a,null,c.a.createElement(p.a,{edge:"start",className:a.menuButton,color:"inherit","aria-label":"Menu"},c.a.createElement(E.a,null)),c.a.createElement(f.a,{variant:"h6",className:a.title},c.a.createElement(g.a,{to:"/",color:"inherit"},t)),c.a.createElement(f.a,{variant:"h6",className:a.social},c.a.createElement(b.a,{color:"secondary",href:"http://www.linkedin.com/in/jazeee"},c.a.createElement(y,null))),c.a.createElement(f.a,{variant:"h6",className:a.social},c.a.createElement(b.a,{color:"secondary",href:"https://github.com/jazeee"},c.a.createElement(w.a,null)))))),c.a.createElement(d.a,null))};N.defaultProps={siteTitle:""},a.d(t,"a",function(){return O});var O=function(e){var t=e.children,a=n.data;return c.a.createElement(c.a.Fragment,null,c.a.createElement(i.a,null),c.a.createElement(o.a,{theme:u},c.a.createElement(N,{siteTitle:a.site.siteMetadata.title}),c.a.createElement("div",null,t),c.a.createElement("footer",null,"© ",(new Date).getFullYear(),", Built with"," ",c.a.createElement("a",{href:"https://www.gatsbyjs.org"},"Gatsby"))))}},218:function(e,t,a){"use strict";a.d(t,"a",function(){return i});a(60);var n=a(0),r=a.n(n),c=a(288);function i(e){return r.a.createElement(c.a,Object.assign({fontSize:"inherit"},e),r.a.createElement("path",{d:"M12.007 0C6.12 0 1.1 4.27.157 10.08c-.944 5.813 2.468 11.45 8.054 13.312.19.064.397.033.555-.084.16-.117.25-.304.244-.5v-2.042c-3.33.735-4.037-1.56-4.037-1.56-.22-.726-.694-1.35-1.334-1.756-1.096-.75.074-.735.074-.735.773.103 1.454.557 1.846 1.23.694 1.21 2.23 1.638 3.45.96.056-.61.327-1.178.766-1.605-2.67-.3-5.462-1.335-5.462-6.002-.02-1.193.42-2.35 1.23-3.226-.327-1.015-.27-2.116.166-3.09 0 0 1.006-.33 3.3 1.23 1.966-.538 4.04-.538 6.003 0 2.295-1.5 3.3-1.23 3.3-1.23.445 1.006.49 2.144.12 3.18.81.877 1.25 2.033 1.23 3.226 0 4.607-2.805 5.627-5.476 5.927.578.583.88 1.386.825 2.206v3.29c-.005.2.092.393.26.507.164.115.377.14.565.063 5.568-1.88 8.956-7.514 8.007-13.313C22.892 4.267 17.884.007 12.008 0z"}))}},219:function(e,t,a){"use strict";a(60);var n=a(0),r=a.n(n),c=a(462),i=a(59),o=a.n(i);a(212),r.a.createContext({});a.d(t,"a",function(){return l});var l=r.a.forwardRef(function(e,t){return r.a.createElement(c.a,Object.assign({component:o.a,ref:t},e))})},223:function(e){e.exports={data:{site:{siteMetadata:{title:"Jaz Singh"}}}}},224:function(e,t,a){"use strict";a.r(t);a(60);var n=a(0),r=a.n(n),c=a(96);t.default=function(e){var t=e.location,a=e.pageResources;return a?r.a.createElement(c.a,Object.assign({location:t,pageResources:a},a.json)):null}},225:function(e){e.exports={data:{site:{siteMetadata:{title:"Jaz Singh",description:"Jaz Singh: a software engineer and technical lead. I work with React, ES6+, Meteor, Java, PostgreSQL, MySQL, Arduino, ESP8266 among other things.",author:"@jazeee",keywords:"jazeee Jaz Software Engineer React ES6 JavaScript PostgreSQL MySQL Mongo Meteor Java c++"}}}}},253:function(e,t,a){"use strict";a.d(t,"a",function(){return u});a(215);var n=a(0),r=a.n(n),c=a(282),i=a.n(c),o=a(463),l=a(213),s=a(218),u=function(e){var t=e.project;return r.a.createElement("div",{className:i.a.project},r.a.createElement(o.a,{className:i.a.summary},r.a.createElement(l.a,{color:"secondary",href:t.url},t.name)," ","- ",t.description),r.a.createElement(o.a,{className:i.a.codeLink},r.a.createElement(l.a,{color:"secondary",href:"https://github.com/"+t.githubFullName},r.a.createElement(s.a,{className:i.a.GithubIcon}),"Github")))}}}]);
  //# sourceMappingURL=component---src-pages-software-projects-all-github-projects-js-9ca46b85f81e1b4f2e63.js.map