mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 07:04:25 +00:00
1 line
98 KiB
JavaScript
1 line
98 KiB
JavaScript
|
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports.VueCalendarHeatmap=factory():root.VueCalendarHeatmap=factory()}(this,function(){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){return value},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=4)}([function(module,exports){var g,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":_typeof(window))&&(g=window)}module.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return DEFAULT_RANGE_COLOR}),__webpack_require__.d(__webpack_exports__,"e",function(){return DEFAULT_LOCALE}),__webpack_require__.d(__webpack_exports__,"b",function(){return DEFAULT_TOOLTIP_UNIT}),__webpack_require__.d(__webpack_exports__,"f",function(){return DAYS_IN_ONE_YEAR}),__webpack_require__.d(__webpack_exports__,"c",function(){return DAYS_IN_WEEK}),__webpack_require__.d(__webpack_exports__,"d",function(){return SQUARE_SIZE});var DEFAULT_RANGE_COLOR=["#ebedf0","#dae2ef","#c0ddf9","#73b3f3","#3886e1","#17459e"],DEFAULT_LOCALE={months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],on:"on",less:"Less",more:"More"},DEFAULT_TOOLTIP_UNIT="contributions",DAYS_IN_ONE_YEAR=365,DAYS_IN_WEEK=7,SQUARE_SIZE=10},function(module,exports,__webpack_require__){__webpack_require__(8),__webpack_require__(7);var Component=__webpack_require__(9)(__webpack_require__(6),__webpack_require__(10),"data-v-a9cfea66",null);module.exports=Component.exports},function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var __WEBPACK_IMPORTED_MODULE_0__consts__=__webpack_require__(1),_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),CalendarHeatmap=function(){function CalendarHeatmap(endDate,values,max){_classCallCheck(this,CalendarHeatmap),this.endDate=this._parseDate(endDate),this.max=max||Math.ceil(Math.max.apply(Math,_toConsumableArray(values.map(function(day){return day.count})))/5*4),this.startDate=this._shiftDate
|