- Get and Start Kong and Co
git clone git@github.com:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
- Create Kong API Route
/* | |
* @function mostraLoading Show loading and execute any function. | |
* @param {Object} loading referência a variavel de loading que será utilizada | |
* @param {Function} anyFunction function to execute while loading shows. | |
*/ | |
function mostraLoading(loading, anyFunction, ...anyParam) { | |
loading.show(); | |
setTimeout(function () { | |
anyFunction(...anyParam); | |
loading.hide(); |
function inicializaCamposZoom() { | |
if (typeof window['filial'].setValue != 'function') { | |
setTimeout(inicializaCamposZoom, 500); | |
} else { | |
// Seu código aqui... | |
// disableZoom('filial') | |
// prepareReload('motivo', 'tipoRequisicao', '4') | |
} | |
} |
const ds = DatasetFactory.getDataset('workflowProcess', null, null, null); | |
const outObject = ds.values.reduce(function(a, e) { | |
let estKey = (e['processId']); | |
(a[estKey] ? a[estKey] : (a[estKey] = null || [])).push(e); | |
return a; | |
}, {}); | |
console.log(outObject); |
function gerarArquivo(conteudo, pastaDestinoId, nomeDocumento) { | |
var docDto = docAPI.newDocumentDto(); | |
docDto.setDocumentId(0); | |
docDto.setDocumentTypeId(""); | |
docDto.setDocumentDescription(nomeDocumento); | |
docDto.setParentDocumentId(parseInt(pastaDestinoId)); | |
var attachArray = new java.util.ArrayList(); | |
var mainAttach = docAPI.newAttachment(); |
FROM php:7.4-fpm | |
# Arguments defined in docker-compose.yml | |
ARG user | |
ARG uid | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
curl \ |
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
/* | |
* Clona um documento, salva em uma pasta especifica e deleta o documento clonado | |
* Retorna o código do documento clonado | |
*/ | |
function moverDocumento(documentoId, versaoDocumento, pastaDestinoId) { | |
var phisicalFile = docAPI.copyDocumentToUploadArea(documentoId, versaoDocumento)[0]; | |
var docDto = docAPI.newDocumentDto(); | |
docDto.setDocumentId(0); | |
docDto.setDocumentTypeId(""); |
/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v2.8.3 - 2015-01-29 | |
* Desc: Include this file in any page being loaded into an iframe | |
* to force the iframe to resize to the content size. | |
* Requires: iframeResizer.min.js on host page. | |
* Copyright: (c) 2015 David J. Bradshaw - dave@bradshaw.net | |
* License: MIT | |
*/ | |
!function(){function a(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"in window&&a.attachEvent("on"+b,c)}function b(a){return ab+"["+cb+"] "+a}function c(a){_&&"object"==typeof window.console&&console.log(b(a))}function d(a){"object"==typeof window.console&&console.warn(b(a))}function e(){c("Initialising iFrame"),f(),i(),h("background",M),h("padding",P),o(),m(),j(),q(),n(),Z=p(),E("init","Init message from host page")}function f(){function a(a){return"true"===a?!0:!1}var b=Y.substr(bb).split(":");cb=b[0],N=void 0!==b[1]?Number(b[1]):N,Q=void 0!==b[2]?a(b[2]):Q,_=void 0!==b[3]?a(b[3]):_,$=void 0!==b[4]?Number(b[4]):$,db=void 0!==b[5]?a(b[5]):db,K=void |