This file contains hidden or 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
export const environment = { | |
production: false, | |
serverSocket: 'http://localhost:5000' | |
}; |
This file contains hidden or 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 { Injectable, EventEmitter, Output } from '@angular/core'; | |
/** | |
* -------------------------------------- | |
* Importamos los paquetes necesarios "ngx-socket-io" tambien nuestro "environments" y por último | |
* "ngx-cookie-service", | |
* ---------------------------------------- | |
*/ | |
import { Socket } from 'ngx-socket-io'; | |
import { environment } from 'src/environments/environment'; |
This file contains hidden or 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 { Component, Injectable, OnInit } from '@angular/core'; | |
import { SocketProviderConnect } from './web-socket.service'; | |
import { CookieService } from 'ngx-cookie-service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] |
This file contains hidden or 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
const puppeteer = require('puppeteer'); | |
const moment = require('moment'); | |
var xl = require('excel4node'); | |
var monedas = [ | |
{code:'MXN',moneda:'MXN'}, | |
{code:'€',moneda:'EUR'}, | |
]; | |
var moneda_select = {code:'€',moneda:'EUR'}; | |
This file contains hidden or 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
{ | |
"name": "prerender", | |
"version": "1.0.0", | |
"description": "Tutorial de SSR con puppeter", | |
"main": "index.js", | |
"scripts": { | |
"start":"node index.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "[email protected]", |
This file contains hidden or 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
/** | |
* Author: [email protected] | |
* Repo: https://github.com/leifermendez | |
*/ | |
/** | |
* -------------------------------------------------- SECCION 1 Declarar dependencias | |
*/ | |
const express = require('express'); | |
const app = express(); |
This file contains hidden or 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
location / { | |
try_files $uri @prerender; | |
} | |
location @prerender { | |
proxy_set_header X-Prerender-Token YOUR_TOKEN; | |
set $prerender 0; | |
if ($http_user_agent ~* "googlebot|bingbot|yandex|baiduspider|twitterbot|facebookexternalhit|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp") { | |
set $prerender 1; |
This file contains hidden or 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
/************************************ | |
* ********** SEARCH FLIGH ********** | |
*************************************/ | |
exports.getFlights = async (params) => new Promise(async (resolve, reject) => { | |
try { | |
let query = await checkParamsFlights(params) | |
query.signature = await createMd5Signature(query) |
This file contains hidden or 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
{ | |
"docs": [ | |
{ | |
"_id": "5f04f940a5470263e165e5f5", | |
"gallery": [ | |
{ | |
"_id": "5f04f940a5470263e165e5f4", | |
"original": "https://app.kitagil.com/media/original_Sd9isfSrFkI86WXnYeCzrlEyErgi0l.jpg", | |
"small": "https://app.kitagil.com/media/small_Sd9isfSrFkI86WXnYeCzrlEyErgi0l.jpg", | |
"medium": "https://app.kitagil.com/media/medium_Sd9isfSrFkI86WXnYeCzrlEyErgi0l.jpg", |
This file contains hidden or 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
module.exports = { | |
env: { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
extends: [ | |
'airbnb-base' | |
], | |
parserOptions: { |