From 438184ad100b9906094a6dbe3e8207550d017e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Tue, 15 Dec 2020 15:59:59 +0300 Subject: [PATCH] Fixed github graph --- assets/js/main.js | 40 +++++++++---------- assets/plugins/github-calendar/README.md | 2 +- .../dist/github-calendar-responsive.css | 8 ++++ .../github-calendar/dist/github-calendar.css | 10 +++++ .../dist/github-calendar.min.js | 2 +- .../github-calendar/example/css/style.css | 8 ++++ .../github-calendar/example/index.html | 4 -- .../github-calendar/example/js/main.js | 4 -- assets/plugins/github-calendar/package.json | 12 +++--- 9 files changed, 54 insertions(+), 36 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index da22f52..b510bc1 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,13 +1,13 @@ $(window).on('load', function() { $('.level-bar-inner').each(function() { - + var itemWidth = $(this).data('level'); - + $(this).animate({ width: itemWidth }, 800); - + }); }); @@ -17,55 +17,55 @@ jQuery(document).ready(function($) { /*======= Skillset *=======*/ - + $('.level-bar-inner').css('width', '0'); - - - + + + /* Bootstrap Tooltip for Skillset */ $('.level-label').tooltip(); - - + + /* jQuery RSS - https://github.com/sdepold/jquery-rss */ - + $("#rss-feeds").rss( - + //Change this to your own rss feeds "https://medium.com/feed/@yigitcolakoglu", - + { // how many entries do you want? // default: 4 // valid values: any integer limit: 3, - + // the effect, which is used to let the entries appear // default: 'show' // valid values: 'show', 'slide', 'slideFast', 'slideSynced', 'slideFastSynced' effect: 'slideFastSynced', - + // will request the API via https // default: false // valid values: false, true ssl: true, - + // outer template for the html transformation // default: "" // valid values: any string layoutTemplate: "
{entries}
", - + // inner template for each entry // default: '
  • [{author}@{date}] {title}
    {shortBodyPlain}
  • ' // valid values: any string entryTemplate: '

    {title}

    {shortBodyPlain}

    Read more
    ' - + } ); - + /* Github Calendar - https://github.com/IonicaBizau/github-calendar */ new GitHubCalendar("#github-graph", "yigitcolakoglu"); - - + + /* Github Activity Feed - https://github.com/caseyscarborough/github-activity */ GitHubActivity.feed({ username: "yigitcolakoglu", selector: "#ghfeed" }); diff --git a/assets/plugins/github-calendar/README.md b/assets/plugins/github-calendar/README.md index 8aec56d..363d2fb 100644 --- a/assets/plugins/github-calendar/README.md +++ b/assets/plugins/github-calendar/README.md @@ -117,7 +117,7 @@ yarn add github-calendar ``` -[Here](http://codepen.io/anon/pen/aZmjvZ?editors=1000) you can see this example in action. +[Here](https://bloggify.github.io/github-calendar/example/) you can see this example in action. diff --git a/assets/plugins/github-calendar/dist/github-calendar-responsive.css b/assets/plugins/github-calendar/dist/github-calendar-responsive.css index 2723e4b..4336476 100644 --- a/assets/plugins/github-calendar/dist/github-calendar-responsive.css +++ b/assets/plugins/github-calendar/dist/github-calendar-responsive.css @@ -1,3 +1,11 @@ +:root { + --color-calendar-graph-day-bg: #dddbdb; + --color-calendar-graph-day-L1-bg: #39dd34; + --color-calendar-graph-day-L2-bg: #45a045; + --color-calendar-graph-day-L3-bg: #047526; + --color-calendar-graph-day-L4-bg: #0a4208; +} + .calendar { font-family: Helvetica, arial; border: 1px solid #DDDDDD; diff --git a/assets/plugins/github-calendar/dist/github-calendar.css b/assets/plugins/github-calendar/dist/github-calendar.css index 918b366..bdabe43 100644 --- a/assets/plugins/github-calendar/dist/github-calendar.css +++ b/assets/plugins/github-calendar/dist/github-calendar.css @@ -1,3 +1,11 @@ +:root { + --color-calendar-graph-day-bg: #dddbdb; + --color-calendar-graph-day-L1-bg: #39dd34; + --color-calendar-graph-day-L2-bg: #45a045; + --color-calendar-graph-day-L3-bg: #047526; + --color-calendar-graph-day-L4-bg: #0a4208; +} + .calendar { width: 750px; font-family: Helvetica, arial; @@ -157,3 +165,5 @@ h2.f4.text-normal.mb-3 { border: 5px solid transparent; border-top-color: rgba(0,0,0,.85) } + + diff --git a/assets/plugins/github-calendar/dist/github-calendar.min.js b/assets/plugins/github-calendar/dist/github-calendar.min.js index dbdf270..4a3faff 100644 --- a/assets/plugins/github-calendar/dist/github-calendar.min.js +++ b/assets/plugins/github-calendar/dist/github-calendar.min.js @@ -1 +1 @@ -"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GitHubCalendar=e()}(function(){return function o(s,u,i){function c(t,e){if(!u[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var a=u[t]={exports:{}};s[t][0].call(a.exports,function(e){return c(s[t][1][e]||e)},a,a.exports,o,s,u,i)}return u[t].exports}for(var l="function"==typeof require&&require,e=0;e@'+e+"",m.cache=1e3*(m.cache||86400),!1===m.global_stats&&(b.style.minHeight="175px");var r={content:"gh_calendar_content."+e,expire_at:"gh_calendar_expire."+e};m.proxy=m.proxy||function(e){return fetch("https://api.bloggify.net/gh-calendar/?username="+e).then(function(e){return e.text()})},m.getCalendar=m.getCalendar||function(e){if(m.cache&&Date.now()<+localStorage.getItem(r.expire_at)){var t=localStorage.getItem(r.content);if(t)return Promise.resolve(t)}return m.proxy(e).then(function(e){return m.cache&&(localStorage.setItem(r.content,e),localStorage.setItem(r.expire_at,Date.now()+m.cache)),e})};return function g(){return m.getCalendar(e).then(function(e){var t=document.createElement("div");t.innerHTML=e;var r,n,a,o,s,u,i,c,l,d,f,p=t.querySelector(".js-yearly-contributions");y(".position-relative h2",p).remove(),p.querySelector(".float-left.text-gray").innerHTML=m.summary_text,p.querySelector("include-fragment")?setTimeout(g,500):(!0===m.responsive&&(n=(r=p.querySelector("svg.js-calendar-graph-svg")).getAttribute("width"),a=r.getAttribute("height"),r.removeAttribute("height"),r.setAttribute("width","100%"),r.setAttribute("viewBox","0 0 "+n+" "+a)),!1!==m.global_stats&&(s=(o=h(y("svg",p).outerHTML)).current_streak?M(o.current_streak_range[0],_)+" – "+M(o.current_streak_range[1],_):o.last_contributed?"Last contributed in "+M(o.last_contributed,_)+".":"Rock - Hard Place",u=o.longest_streak?M(o.longest_streak_range[0],_)+" – "+M(o.longest_streak_range[1],_):o.last_contributed?"Last contributed in "+M(o.last_contributed,_)+".":"Rock - Hard Place",i=y("
    ",{class:"contrib-column contrib-column-first table-column",html:'Contributions in the last year\n '+o.last_year+' total\n '+M(v.add(v.subtract(new Date,1,"year"),1,"day"),x)+" – "+M(new Date,x)+""}),c=y("
    ",{class:"contrib-column table-column",html:'Longest streak\n '+k(o.longest_streak)+'\n '+u+""}),l=y("
    ",{class:"contrib-column table-column",html:'Current streak\n '+k(o.current_streak)+'\n '+s+""}),p.appendChild(i),p.appendChild(c),p.appendChild(l)),b.innerHTML=p.innerHTML,!0===m.tooltips&&(d=b,(f=document.createElement("div")).classList.add("day-tooltip"),d.appendChild(f),d.querySelectorAll("rect.day").forEach(function(e){e.addEventListener("mouseenter",function(e){var t=e.target.getAttribute("data-count");"0"===t?t="No contributions":"1"===t?t="1 contribution":t+=" contributions";var r=new Date(e.target.getAttribute("data-date")),n=S[r.getUTCMonth()]+" "+r.getUTCDate()+", "+r.getUTCFullYear();f.innerHTML=""+t+" on "+n,f.classList.add("is-visible");var a=e.target.getBoundingClientRect(),o=a.left+window.pageXOffset-f.offsetWidth/2+a.width/2,s=a.bottom+window.pageYOffset-f.offsetHeight-2*a.height;f.style.top=s+"px",f.style.left=o+"px"}),e.addEventListener("mouseleave",function(){f.classList.remove("is-visible")})})))}).catch(function(e){return console.error(e)})}()}},{"add-subtract-date":2,elly:4,formatoid:6,"github-calendar-parser":8}],2:[function(e,t,r){function n(a){return function e(t,r,n){switch(r*=a,n){case"years":case"year":t.setFullYear(t.getFullYear()+r);break;case"months":case"month":t.setMonth(t.getMonth()+r);break;case"weeks":case"week":return e(t,7*r,"days");case"days":case"day":t.setDate(t.getDate()+r);break;case"hours":case"hour":t.setHours(t.getHours()+r);break;case"minutes":case"minute":t.setMinutes(t.getMinutes()+r);break;case"seconds":case"second":t.setSeconds(t.getSeconds()+r);break;case"milliseconds":case"millisecond":t.setMilliseconds(t.getMilliseconds()+r);break;default:throw new Error("Invalid range: "+n)}return t}}t.exports={add:n(1),subtract:n(-1)}},{}],3:[function(e,t,r){t.exports.en=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.exports.en.abbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t.exports.en.short=["Su","Mo","Tu","We","Th","Fr","Sa"],t.exports.fr=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],t.exports.fr.abbr=["dim","lun","mar","mer","jeu","ven","sam"],t.exports.fr.short=["di","lu","ma","me","je","ve","sa"],t.exports.es=["domingo","lunes","martes","miercoles","jueves","viernes","sabado"],t.exports.es.abbr=["dom","lun","mar","mir","jue","vie","sab"],t.exports.es.short=["do","lu","ma","mi","ju","vi","sa"],t.exports.it=["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],t.exports.it.abbr=["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],t.exports.it.short=["D","L","Ma","Me","G","V","S"],t.exports=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.exports.abbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t.exports.short=["Su","Mo","Tu","We","Th","Fr","Sa"]},{}],4:[function(e,t,r){var n=e("iterate-object"),a=e("sliced");function o(r,e){return"string"==typeof r?"<"===r.charAt(0)?(r=document.createElement(r.slice(1,-1)),n(e||{},function(e,t){switch(t){case"text":return void(r.textContent=e);case"html":return void(r.innerHTML=e)}r.setAttribute(t,e)}),r):(e=e||document).querySelector(r):r}o.$$=function(e,t){return"string"==typeof e?(t=t||document,a(t.querySelectorAll(e))):[e]},t.exports=o},{"iterate-object":9,sliced:13}],5:[function(e,t,r){t.exports=function(e,t,r){r=r||"0";var n=(t=t||2)-(e=e.toString()).length;return(n<=0?"":r.repeat(n))+e}},{}],6:[function(e,t,r){var n=e("months"),a=e("days"),o=e("fillo"),s=e("parse-it").Parser,u={YYYY:function(e,t){return t?e.getUTCFullYear():e.getFullYear()},YY:function(e,t){return u.YYYY(e,t)%100},MMMM:function(e,t){return t?n[e.getUTCMonth()]:n[e.getMonth()]},MMM:function(e,t){return t?n.abbr[e.getUTCMonth()]:n.abbr[e.getMonth()]},MM:function(e,t){return o(t?e.getUTCMonth()+1:e.getMonth()+1)},M:function(e,t){return t?e.getUTCMonth()+1:e.getMonth()+1},dddd:function(e,t){return a[u.d(e,t)]},ddd:function(e,t){return a.abbr[u.d(e,t)]},dd:function(e,t){return a.short[u.d(e,t)]},d:function(e,t){return t?e.getUTCDay():e.getDay()},DD:function(e,t){return o(u.D(e,t))},D:function(e,t){return t?e.getUTCDate():e.getDate()},A:function(e,t){return u.a(e,t).toUpperCase()},a:function(e,t){return 12<=u.H(e,t)?"pm":"am"},hh:function(e,t){return o(u.h(e,t))},h:function(e,t){return u.H(e,t)%12||12},HH:function(e,t){return o(u.H(e,t))},H:function(e,t){return t?e.getUTCHours():e.getHours()},mm:function(e,t){return o(u.m(e,t))},m:function(e,t){return t?e.getUTCMinutes():e.getMinutes()},ss:function(e,t){return o(u.s(e,t))},s:function(e,t){return t?e.getUTCSeconds():e.getSeconds()},S:function(e,t){return Math.round(u.s(e,t)/60*10)},SS:function(e,t){return o(u.s(e,t)/60*100)},SSS:function(e,t){return o(u.s(e,t)/60*1e3,3)},Z:function(e){var t=-e.getTimezoneOffset();return(0<=t?"+":"-")+o(parseInt(t/60))+":"+o(t%60)},ZZ:function(e){var t=-e.getTimezoneOffset();return(0<=t?"+":"-")+o(parseInt(t/60))+o(t%60)}},i=new s(u);t.exports=function(e,t){return i.run(t,[e,e._useUTC])}},{days:3,fillo:5,months:10,"parse-it":11}],7:[function(e,t,r){t.exports=["#eee","#d6e685","#8cc665","#44a340","#1e6823"]},{}],8:[function(e,t,r){var i=e("github-calendar-legend");t.exports=function(e){function o(){s.current_streak>s.longest_streak&&(s.longest_streak=s.current_streak,s.longest_streak_range[0]=s.current_streak_range[0],s.longest_streak_range[1]=s.current_streak_range[1])}var s={last_year:0,longest_streak:-1,longest_streak_range:[],current_streak:0,current_streak_range:[],weeks:[],days:[],last_contributed:null},u=[];return e.split("\n").slice(2).map(function(e){return e.trim()}).forEach(function(e){if(e.startsWith("o;)n[a-o]=e[a];return n}},{}]},{},[1])(1)}); \ No newline at end of file +"use strict";var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GitHubCalendar=e()}(function(){return function r(a,o,u){function s(t,e){if(!o[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(i)return i(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=o[t]={exports:{}},a[t][0].call(n.exports,function(e){return s(a[t][1][e]||e)},n,n.exports,r,a,o,u)}return o[t].exports}for(var i="function"==typeof require&&require,e=0;e@'+e+"",i.cache=1e3*(i.cache||86400),!1===i.global_stats&&(s.style.minHeight="175px");var n={content:"gh_calendar_content."+e,expire_at:"gh_calendar_expire."+e};return i.proxy=i.proxy||function(e){return fetch("https://api.bloggify.net/gh-calendar/?username="+e).then(function(e){return e.text()})},i.getCalendar=i.getCalendar||function(e){if(i.cache&&Date.now()<+localStorage.getItem(n.expire_at)){var t=localStorage.getItem(n.content);if(t)return Promise.resolve(t)}return i.proxy(e).then(function(e){return i.cache&&(localStorage.setItem(n.content,e),localStorage.setItem(n.expire_at,Date.now()+i.cache)),e})},function u(){return i.getCalendar(e).then(function(e){var t=document.createElement("div");t.innerHTML=e;var n,r,a,o,e=t.querySelector(".js-yearly-contributions");l(".position-relative h2",e).remove(),e.querySelector(".float-left.text-gray").innerHTML=i.summary_text,e.querySelector("include-fragment")?setTimeout(u,500):(!0===i.responsive&&(r=(a=e.querySelector("svg.js-calendar-graph-svg")).getAttribute("width"),n=a.getAttribute("height"),a.removeAttribute("height"),a.setAttribute("width","100%"),a.setAttribute("viewBox","0 0 "+r+" "+n)),!1!==i.global_stats&&(a=(t=c(l("svg",e).outerHTML)).current_streak?f(t.current_streak_range[0],g)+" – "+f(t.current_streak_range[1],g):t.last_contributed?"Last contributed in "+f(t.last_contributed,g)+".":"Rock - Hard Place",r=t.longest_streak?f(t.longest_streak_range[0],g)+" – "+f(t.longest_streak_range[1],g):t.last_contributed?"Last contributed in "+f(t.last_contributed,g)+".":"Rock - Hard Place",n=l("
    ",{class:"contrib-column contrib-column-first table-column",html:'Contributions in the last year\n '+t.last_year+' total\n '+f(d.add(d.subtract(new Date,1,"year"),1,"day"),p)+" – "+f(new Date,p)+""}),r=l("
    ",{class:"contrib-column table-column",html:'Longest streak\n '+m(t.longest_streak)+'\n '+r+""}),a=l("
    ",{class:"contrib-column table-column",html:'Current streak\n '+m(t.current_streak)+'\n '+a+""}),e.appendChild(n),e.appendChild(r),e.appendChild(a)),s.innerHTML=e.innerHTML,!0===i.tooltips&&(e=s,(o=document.createElement("div")).classList.add("day-tooltip"),e.appendChild(o),e.querySelectorAll("rect.day").forEach(function(e){e.addEventListener("mouseenter",function(e){var t=e.target.getAttribute("data-count");"0"===t?t="No contributions":"1"===t?t="1 contribution":t+=" contributions";var n=new Date(e.target.getAttribute("data-date")),n=b[n.getUTCMonth()]+" "+n.getUTCDate()+", "+n.getUTCFullYear();o.innerHTML=""+t+" on "+n,o.classList.add("is-visible");n=e.target.getBoundingClientRect(),e=n.left+window.pageXOffset-o.offsetWidth/2+n.width/2,n=n.bottom+window.pageYOffset-o.offsetHeight-2*n.height;o.style.top=n+"px",o.style.left=e+"px"}),e.addEventListener("mouseleave",function(){o.classList.remove("is-visible")})})))}).catch(function(e){return console.error(e)})}()}},{"add-subtract-date":2,elly:4,formatoid:6,"github-calendar-parser":8}],2:[function(e,t,n){function r(a){return function e(t,n,r){switch(n*=a,r){case"years":case"year":t.setFullYear(t.getFullYear()+n);break;case"months":case"month":t.setMonth(t.getMonth()+n);break;case"weeks":case"week":return e(t,7*n,"days");case"days":case"day":t.setDate(t.getDate()+n);break;case"hours":case"hour":t.setHours(t.getHours()+n);break;case"minutes":case"minute":t.setMinutes(t.getMinutes()+n);break;case"seconds":case"second":t.setSeconds(t.getSeconds()+n);break;case"milliseconds":case"millisecond":t.setMilliseconds(t.getMilliseconds()+n);break;default:throw new Error("Invalid range: "+r)}return t}}t.exports={add:r(1),subtract:r(-1)}},{}],3:[function(e,t,n){t.exports.en=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.exports.en.abbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t.exports.en.short=["Su","Mo","Tu","We","Th","Fr","Sa"],t.exports.fr=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],t.exports.fr.abbr=["dim","lun","mar","mer","jeu","ven","sam"],t.exports.fr.short=["di","lu","ma","me","je","ve","sa"],t.exports.es=["domingo","lunes","martes","miercoles","jueves","viernes","sabado"],t.exports.es.abbr=["dom","lun","mar","mir","jue","vie","sab"],t.exports.es.short=["do","lu","ma","mi","ju","vi","sa"],t.exports.it=["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],t.exports.it.abbr=["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],t.exports.it.short=["D","L","Ma","Me","G","V","S"],t.exports=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.exports.abbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],t.exports.short=["Su","Mo","Tu","We","Th","Fr","Sa"]},{}],4:[function(e,t,n){var r=e("iterate-object"),a=e("sliced");function o(n,e){return"string"==typeof n?"<"===n.charAt(0)?(n=document.createElement(n.slice(1,-1)),r(e||{},function(e,t){switch(t){case"text":return void(n.textContent=e);case"html":return void(n.innerHTML=e)}n.setAttribute(t,e)}),n):(e=e||document).querySelector(n):n}o.$$=function(e,t){return"string"==typeof e?(t=t||document,a(t.querySelectorAll(e))):[e]},t.exports=o},{"iterate-object":9,sliced:13}],5:[function(e,t,n){t.exports=function(e,t,n){n=n||"0";t=(t=t||2)-(e=e.toString()).length;return(t<=0?"":n.repeat(t))+e}},{}],6:[function(e,t,n){var r=e("months"),a=e("days"),o=e("fillo"),e=e("parse-it").Parser,u={YYYY:function(e,t){return t?e.getUTCFullYear():e.getFullYear()},YY:function(e,t){return u.YYYY(e,t)%100},MMMM:function(e,t){return t?r[e.getUTCMonth()]:r[e.getMonth()]},MMM:function(e,t){return t?r.abbr[e.getUTCMonth()]:r.abbr[e.getMonth()]},MM:function(e,t){return o(t?e.getUTCMonth()+1:e.getMonth()+1)},M:function(e,t){return t?e.getUTCMonth()+1:e.getMonth()+1},dddd:function(e,t){return a[u.d(e,t)]},ddd:function(e,t){return a.abbr[u.d(e,t)]},dd:function(e,t){return a.short[u.d(e,t)]},d:function(e,t){return t?e.getUTCDay():e.getDay()},DD:function(e,t){return o(u.D(e,t))},D:function(e,t){return t?e.getUTCDate():e.getDate()},A:function(e,t){return u.a(e,t).toUpperCase()},a:function(e,t){return 12<=u.H(e,t)?"pm":"am"},hh:function(e,t){return o(u.h(e,t))},h:function(e,t){return u.H(e,t)%12||12},HH:function(e,t){return o(u.H(e,t))},H:function(e,t){return t?e.getUTCHours():e.getHours()},mm:function(e,t){return o(u.m(e,t))},m:function(e,t){return t?e.getUTCMinutes():e.getMinutes()},ss:function(e,t){return o(u.s(e,t))},s:function(e,t){return t?e.getUTCSeconds():e.getSeconds()},S:function(e,t){return Math.round(u.s(e,t)/60*10)},SS:function(e,t){return o(u.s(e,t)/60*100)},SSS:function(e,t){return o(u.s(e,t)/60*1e3,3)},Z:function(e){e=-e.getTimezoneOffset();return(0<=e?"+":"-")+o(parseInt(e/60))+":"+o(e%60)},ZZ:function(e){e=-e.getTimezoneOffset();return(0<=e?"+":"-")+o(parseInt(e/60))+o(e%60)}},s=new e(u);t.exports=function(e,t){return s.run(t,[e,e._useUTC])}},{days:3,fillo:5,months:10,"parse-it":11}],7:[function(e,t,n){t.exports=["#eee","#d6e685","#8cc665","#44a340","#1e6823"]},{}],8:[function(e,t,n){var u=e("github-calendar-legend"),s=e("github-calendar-legend"),i=["day","day-L1","day-L4","day-L3","day-L2"];t.exports=function(e){function r(){a.current_streak>a.longest_streak&&(a.longest_streak=a.current_streak,a.longest_streak_range[0]=a.current_streak_range[0],a.longest_streak_range[1]=a.current_streak_range[1])}var a={last_year:0,longest_streak:-1,longest_streak_range:[],current_streak:0,current_streak_range:[],weeks:[],days:[],last_contributed:null},o=[];return e.split("\n").slice(2).map(function(e){return e.trim()}).forEach(function(e){if(e.startsWith("o;)r[a-o]=e[a];return r}},{}]},{},[1])(1)}); \ No newline at end of file diff --git a/assets/plugins/github-calendar/example/css/style.css b/assets/plugins/github-calendar/example/css/style.css index 3d0c83c..3bdde45 100644 --- a/assets/plugins/github-calendar/example/css/style.css +++ b/assets/plugins/github-calendar/example/css/style.css @@ -37,3 +37,11 @@ pre { p { color: #444444; } + +img.spinner { + text-align: center; + margin: 0 auto; + display: block; + height: 49px; + padding: 40px 0; +} diff --git a/assets/plugins/github-calendar/example/index.html b/assets/plugins/github-calendar/example/index.html index 6e27e01..ecd07e8 100644 --- a/assets/plugins/github-calendar/example/index.html +++ b/assets/plugins/github-calendar/example/index.html @@ -12,10 +12,6 @@

    Crunching @IonicaBizau's contributions just for you.

    -
    - -

    Crunching @IonicaBizau's contributions just for you.

    -
    diff --git a/assets/plugins/github-calendar/example/js/main.js b/assets/plugins/github-calendar/example/js/main.js index 70333b4..c712db4 100644 --- a/assets/plugins/github-calendar/example/js/main.js +++ b/assets/plugins/github-calendar/example/js/main.js @@ -2,7 +2,3 @@ GitHubCalendar(".calendar-1", "IonicaBizau", { responsive: true, tooltips: true }); -GitHubCalendar(".calendar-2", "bachdx2812", { - responsive: true, - tooltips: true -}); diff --git a/assets/plugins/github-calendar/package.json b/assets/plugins/github-calendar/package.json index fb6dfec..4119cbb 100644 --- a/assets/plugins/github-calendar/package.json +++ b/assets/plugins/github-calendar/package.json @@ -1,6 +1,6 @@ { "name": "github-calendar", - "version": "2.2.3", + "version": "2.2.6", "description": "Embed your GitHub contributions calendar anywhere.", "main": "lib/index.js", "directories": { @@ -34,10 +34,10 @@ }, "homepage": "https://github.com/Bloggify/github-calendar#readme", "dependencies": { - "add-subtract-date": "^1.0.5", - "elly": "^1.0.0", - "formatoid": "^1.0.3", - "github-calendar-parser": "^1.1.3" + "add-subtract-date": "^1.0.15", + "elly": "^1.1.11", + "formatoid": "^1.2.4", + "github-calendar-parser": "^1.1.12" }, "blah": { "example": [ @@ -79,7 +79,7 @@ } }, { - "p": "[Here](http://codepen.io/anon/pen/aZmjvZ?editors=1000) you can see this example in action." + "p": "[Here](https://bloggify.github.io/github-calendar/example/) you can see this example in action." } ], "description": [