This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checks if value is empty. Deep-checks arrays and objects | |
* Note: isEmpty([]) == true, isEmpty({}) == true, | |
* isEmpty([{0: false}, "", 0]) == true, isEmpty({0: 1}) == false | |
* @author EdwinBetanc0urt <[email protected]> | |
* @param {boolean|array|object|number|string|date|map|set|function} value | |
* @returns {boolean} | |
*/ | |
export const isEmptyValue = function(value) { | |
let isEmpty = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-02-20T15:42:58.759Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<el-table | |
v-loading="isLoaded" | |
:row-key="getterPanel.keyColumn" | |
:data="showTableSearch ? filterResult() : getterDataRecords" | |
:element-loading-text="$t('notifications.loading')" | |
element-loading-background="rgba(255, 255, 255, 0.8)" | |
element-loading-spinner="el-icon-loading" | |
cell-class-name="datatable-max-cell-height" | |
@row-click="handleRowClick" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template v-else-if="item.componentPath === 'Date' || item.componentPath == 'Time'"> | |
<!-- replace number timestamp value for date --> | |
{{ typeof scope.row[item.columnName] === 'number' ? new Date(scope.row[item.columnName]) : scope.row[item.columnName] }} | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Copy me to the .git/hooks directory and rename file to "pre-commit" | |
# | |
# This script is invoked by "git commit" and runs some PHP and JS syntax checks | |
# on the files staged for commit. It exits with a non-zero status if any check | |
# fails. | |
use strict; | |
use warnings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @class DecimalFormat | |
* @constructor | |
* @param {String} formatStr | |
* @author Oskan Savli | |
*/ | |
function DecimalFormat(formatStr) | |
{ | |
/** | |
* @fieldOf DecimalFormat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Metodo getDiasHabiles | |
* | |
* Permite devolver un arreglo con los dias habiles | |
* entre el rango de fechas dado excluyendo los | |
* dias feriados dados (Si existen) | |
* | |
* @param string $fechainicio Fecha de inicio en formato Y-m-d | |
* @param string $fechafin Fecha de fin en formato Y-m-d |