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> | |
<nav aria-label="Page navigation"> | |
<ul class="pagination"> | |
<li :class="{ 'disabled' : currentPage <= 1 }"> | |
<a href="#" @click.prevent="pageChanged(currentPage - 1)" aria-label="Previous"> | |
<span aria-hidden="true">«</span> | |
</a> | |
</li> | |
<template v-if="needLeftDots"> | |
<li v-for="n in 2" :key="n" :class="activePage(n)"> |
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
import { get } from 'lodash' | |
import { get as _get } from 'genesis/infra/storage' | |
import store from 'genesis/infra/store/index' | |
import { APP_USER } from 'genesis/support/index' | |
import menu from 'src/bootstrap/menus/drawer' | |
import options from 'src/bootstrap/menus/options' | |
import configurePath from 'src/bootstrap/configure/path' | |
const user = _get(APP_USER) |
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
error_reporting(E_ALL); | |
ini_set( 'display_errors','1'); | |
$url = "http://192.168.0.90:8088/asterisk/amxml?Action=QueueStatus&Queue=8889&Member=Agent/19513"; | |
$username = "dashboard_enel"; | |
$password = "enel@890678"; | |
$options = array( | |
CURLOPT_HTTPHEADER => array('Authorization: Basic '. base64_encode($username . ":" . $password)) | |
CURLOPT_URL => $url, |
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
#!/bin/bash | |
# get script dir | |
if [ -L $0 ]; then | |
BASEDIR=$(dirname $(readlink $0)) | |
else | |
BASEDIR="$(cd "$(dirname "$0")" && pwd -P)" | |
fi | |
DIR="$BASEDIR/../dist" |
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
<section> | |
<script type="text/javascript"> | |
// Função ocutar | |
function ocutar(){ | |
document.getElementById('fundo').style.display="none" | |
} | |
//função Mostra |
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
/** | |
* By Rogério M. de Queiroz([email protected]) | |
* https://github.com/rogeriomq | |
* Funções de filtros diversos. | |
* Código inspirado nos .js de igorcosta/ng-filters-br: | |
* https://github.com/igorcosta/ng-filters-br/tree/master/src/brasil/filters | |
*/ | |
const cpfFormatter = (input) => { | |
let str = input + '' |
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
OrgaoLotacaoModule.factory('OrgaoLotacaoFactory', ['$resource', | |
function ($resource) { | |
return $resource('/api/con-orgao-lotacao/:id', {}, { | |
get: {method: 'GET'}, | |
save: {method: 'POST', requestType: 'json'}, | |
query: {method: 'GET'}, | |
querySiglas: { | |
method: 'GET', | |
url: '/api/con-orgao-lotacao/?_method=get-siglas' | |
}, |
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 | |
namespace App\Http\Middleware; | |
use Closure; | |
class EnableCors | |
{ | |
/** | |
* Handle an incoming request. |
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 Child extends Father | |
{ | |
public function entrypoint() | |
{ | |
} | |
} |
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
atualizacao() { | |
//FAÇO O REQUEST PARA PEGAR AS OS | |
this.http.get("127.0.0.1/minhasos.php") | |
.map(res => res.json()).subscribe(dataAtualiza => { | |
if (!dataAtualiza) { | |
alert("ERRO AO ATUALIZAR O SISTEMA"); | |
return; | |
} |