Changeset 1162128
- Timestamp:
- 05/17/2015 11:20:15 AM (11 years ago)
- Location:
- wp-github-tools
- Files:
-
- 17 added
- 6 edited
-
tags/1.2.5 (added)
-
tags/1.2.5/Gruntfile.js (added)
-
tags/1.2.5/README.md (added)
-
tags/1.2.5/README.txt (added)
-
tags/1.2.5/css (added)
-
tags/1.2.5/css/admin.css (added)
-
tags/1.2.5/css/chart.css (added)
-
tags/1.2.5/includes (added)
-
tags/1.2.5/includes/WP_Github_Tools_API.php (added)
-
tags/1.2.5/includes/WP_Github_Tools_Cache.php (added)
-
tags/1.2.5/includes/WP_Github_Tools_Commits_Widget.php (added)
-
tags/1.2.5/includes/WP_Github_Tools_Options.php (added)
-
tags/1.2.5/js (added)
-
tags/1.2.5/js/chart.js (added)
-
tags/1.2.5/uninstall.php (added)
-
tags/1.2.5/wp_github_tools.php (added)
-
trunk/Gruntfile.js (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/css/admin.css (modified) (1 diff)
-
trunk/css/chart.css (modified) (1 diff)
-
trunk/js/chart.js (modified) (1 diff)
-
trunk/wp_github_tools.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-github-tools/trunk/README.md
r830255 r1162128 85 85 *1.2 30 December 2013* 86 86 * Added Chart functionality (beta) that allows users to display their commit activity using a graph. 87 * Enabled automatic build to deliver updates more quickly. 88 * Minifying assets for greater performance. 87 89 88 90 *1.1 10 October 2013* -
wp-github-tools/trunk/README.txt
r1161857 r1162128 4 4 Requires at least: 3.3 5 5 Tested up to: 4.2.2 6 Stable tag: 1.2. 46 Stable tag: 1.2.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 95 95 * Added Chart functionality (beta) that allows users to display their commit activity using a graph. 96 96 * Enabled automatic build to deliver updates more quickly. 97 * Minifying assets for greater performance. 97 98 98 99 = 1.1 = -
wp-github-tools/trunk/css/admin.css
r830255 r1162128 1 /* This stylesheet is used to style the admin option form of the plugin. */ 2 #github-tools-information-bar{ display:none;} 3 .github-tools-image{ vertical-align: middle; margin:-3px 5px 0 5px; display:none;} 4 #github-tools-feedback{ display:none;} 5 6 .github-commits{ 7 list-style: disc; 8 padding-left: 40px; 9 } 10 11 .github-commits li{ 12 margin:0 0 5px 0; 13 padding:0; 14 } 15 16 .wp_github_summary{ margin-bottom:10px;} 17 .wp_github_summary:after{ content:''; display:block; height:1px; clear:both;} 18 19 .clear{ display:block; clear:both;} 20 21 .wp_github_tright{ text-align: right;} 22 23 .code-preview{ padding:1em 10px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } 24 .code-preview h3{ margin:0;} 25 26 .thumbnail{ float:left; margin:0 15px 0 0; display: inline-block; height: 100px; width:100px; padding: 4px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px;} 27 .thumbnail img{ margin:0 auto; max-width: 100%; border:0; vertical-align: middle;} 28 29 .admin-github-chart{ 30 margin:10px auto; 31 } 1 #github-tools-feedback,#github-tools-information-bar{display:none}.github-tools-image{vertical-align:middle;margin:-3px 5px 0;display:none}.clear,.wp_github_summary:after{display:block;clear:both}.github-commits{list-style:disc;padding-left:40px}.github-commits li{margin:0 0 5px;padding:0}.wp_github_summary{margin-bottom:10px}.wp_github_summary:after{content:'';height:1px}.wp_github_tright{text-align:right}.code-preview{padding:1em 10px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.code-preview h3{margin:0}.thumbnail{float:left;margin:0 15px 0 0;display:inline-block;height:100px;width:100px;padding:4px;background-color:#fff;border:1px solid #ddd;border-radius:4px}.thumbnail img{margin:0 auto;max-width:100%;border:0;vertical-align:middle}.admin-github-chart{margin:10px auto} -
wp-github-tools/trunk/css/chart.css
r830255 r1162128 1 .github-chart .nv-bar{ 2 fill-opacity:1; 3 } 4 .github-chart .nvtooltip { 5 background-color: #fff; 6 border: 1px solid rgba(0, 0, 0, 0.2); 7 z-index: 10000; 8 font-family: Arial; 9 font-size: 13px; 10 -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 11 -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 12 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); 13 -webkit-border-radius: 6px; 14 -moz-border-radius: 6px; 15 border-radius: 6px; 16 pointer-events: none; 17 -webkit-touch-callout: none; 18 -webkit-user-select: none; 19 -khtml-user-select: none; 20 -moz-user-select: none; 21 -ms-user-select: none; 22 user-select: none; 23 } 24 25 .github-chart .nvtooltip.x-nvtooltip, 26 .github-chart .nvtooltip.y-nvtooltip { 27 padding: 8px; 28 } 29 30 .github-chart .nvtooltip h3 { 31 margin: 0; 32 padding: 4px 14px; 33 line-height: 18px; 34 font-weight: normal; 35 font-size: 13px; 36 background-color: rgba(247, 247, 247, 0.75); 37 text-align: center; 38 border-bottom: 0 solid #ebebeb; 39 color:#000; 40 font-family: Arial, serif; 41 text-shadow: none; 42 -webkit-border-radius: 5px 5px 0 0; 43 -moz-border-radius: 5px 5px 0 0; 44 border-radius: 5px 5px 0 0; 45 } 46 47 .github-chart .nvtooltip p { 48 margin: 0; 49 padding: 5px 14px; 50 text-align: center; 51 } 52 53 .github-chart .nvtooltip span { 54 display: inline-block; 55 margin: 2px 0; 56 } 1 .github-chart .nv-bar{fill-opacity:1}.github-chart .nvtooltip{background-color:#fff;border:1px solid rgba(0,0,0,.2);z-index:10000;font-family:Arial;font-size:13px;-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.github-chart .nvtooltip.x-nvtooltip,.github-chart .nvtooltip.y-nvtooltip{padding:8px}.github-chart .nvtooltip h3{margin:0;padding:4px 14px;line-height:18px;font-weight:400;font-size:13px;background-color:rgba(247,247,247,.75);text-align:center;border-bottom:0 solid #ebebeb;color:#000;font-family:Arial,serif;text-shadow:none;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.github-chart .nvtooltip p{margin:0;padding:5px 14px;text-align:center}.github-chart .nvtooltip span{display:inline-block;margin:2px 0} -
wp-github-tools/trunk/js/chart.js
r830255 r1162128 1 'use strict'; 2 /* 3 * Github chart handler. 4 * Requires nvd3 library. 5 */ 6 var CHART = (function (chart, $, window) { 7 8 var _create_chart = function(CHART_DATA){ 9 return nv.models.discreteBarChart() 10 .x(function(d) { return d.date }) 11 .y(function(d) { return d.value }) 12 .staggerLabels(false) 13 .tooltips(true) 14 .showValues(false) 15 .transitionDuration(250) 16 .margin({top: 15, right: 10, bottom: 20, left: 20}) 17 .color(function(d){ 18 return CHART_DATA.color; 19 }) 20 .tooltipContent(function(key, x, y, e, graph){ 21 return parseInt(y, 10) !== 1 ? '<h3>'+y+' commits</h3>' : '<h3>'+y+' commit</h3>'; 22 }); 23 }; 24 25 var _apply_styles = function(d3_chart, CHART_DATA){ 26 if($.isNumeric(CHART_DATA.width) && CHART_DATA.width > 0){ 27 d3_chart.style('width', CHART_DATA.width); 28 } 29 if($.isNumeric(CHART_DATA.height) && CHART_DATA.height > 0){ 30 d3_chart.style('height', CHART_DATA.height); 31 } 32 33 d3_chart.style('background', CHART_DATA.background); 34 }; 35 36 var _format_axis = function(chart){ 37 chart.xAxis 38 .tickFormat(function(d) { 39 return d3.time.format('%e %b')(new Date(d)); 40 }); 41 chart.yAxis 42 .tickFormat(d3.format('d')); 43 }; 44 45 chart.init = function(){ 46 nv.addGraph(function() { 47 d3.selectAll('.github-chart svg').each(function(d, index){ 48 var chart = d3.select(this); 49 var data = window[chart.attr('id')]; 50 var nvchart = _create_chart(data); 51 52 // format the axises 53 _format_axis(nvchart); 54 55 // apply any styles to the chart 56 _apply_styles(chart, data); 57 58 chart.datum([ 59 { 60 key: "Github Repository", 61 values: data.data 62 } 63 ]) 64 .call(nvchart); 65 66 nv.utils.windowResize(nvchart.update); 67 }); 68 }); 69 } 70 71 return chart; 72 }(CHART || {}, jQuery, window)); 73 74 jQuery(document).ready(CHART.init); 75 76 77 78 79 1 /*! Github-Tools-for-WordPress - v1.2.5 - 2015-05-17 */"use strict";var CHART=function(a,b,c){var d=function(a){return nv.models.discreteBarChart().x(function(a){return a.date}).y(function(a){return a.value}).staggerLabels(!1).tooltips(!0).showValues(!1).transitionDuration(250).margin({top:15,right:10,bottom:20,left:20}).color(function(b){return a.color}).tooltipContent(function(a,b,c,d,e){return 1!==parseInt(c,10)?"<h3>"+c+" commits</h3>":"<h3>"+c+" commit</h3>"})},e=function(a,c){b.isNumeric(c.width)&&c.width>0&&a.style("width",c.width),b.isNumeric(c.height)&&c.height>0&&a.style("height",c.height),a.style("background",c.background)},f=function(a){a.xAxis.tickFormat(function(a){return d3.time.format("%e %b")(new Date(a))}),a.yAxis.tickFormat(d3.format("d"))};return a.init=function(){nv.addGraph(function(){d3.selectAll(".github-chart svg").each(function(a,b){var g=d3.select(this),h=c[g.attr("id")],i=d(h);f(i),e(g,h),g.datum([{key:"Github Repository",values:h.data}]).call(i),nv.utils.windowResize(i.update)})})},a}(CHART||{},jQuery,window);jQuery(document).ready(CHART.init); -
wp-github-tools/trunk/wp_github_tools.php
r1161857 r1162128 4 4 Plugin URI: https://github.com/vilmosioo/Github-Tools-for-WordPress 5 5 Description: A plugin that creates live updates for any GitHub repository. 6 Version: 1.2. 46 Version: 1.2.5 7 7 Author: Vilmos Ioo 8 8 Author URI: http://vilmosioo.co.uk
Note: See TracChangeset
for help on using the changeset viewer.