To check out and include:
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 | |
set -e # termina o script com um código diferente de 0 se alguma coisa falhar | |
# roda o script de build da nossa aplicação | |
npm run build | |
# pull requests e commits para outras branches diferentes da master | |
# não devem fazer o deploy, isso é opcional caso queira deletar as próximas 6 linhas | |
# fique a vontade | |
SOURCE_BRANCH="master" |
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
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<title>$http Service | AngularJS</title> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js"></script> | |
<script type="text/javascript"> | |
<!-- | |
(function() { |
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
["+247-####","+376-###-###","+971-5#-###-####","+971-#-###-####","+93-##-###-####","+1(268)###-####","+1(264)###-####","+355(###)###-###","+374-##-###-###","+599-###-####","+599-###-####","+599-9###-####","+244(###)###-###","+672-1##-###","+54(###)###-####","+1(684)###-####","+43(###)###-####","+61-#-####-####","+297-###-####","+994-##-###-##-##","+387-##-#####","+387-##-####","+1(246)###-####","+880-##-###-###","+32(###)###-###","+226-##-##-####","+359(###)###-###","+973-####-####","+257-##-##-####","+229-##-##-####","+1(441)###-####","+673-###-####","+591-#-###-####","+55 (##) ####-####","+55 (##) #####-####","+1(242)###-####","+975-17-###-###","+975-#-###-###","+267-##-###-###","+375(##)###-##-##","+501-###-####","+243(###)###-###","+236-##-##-####","+242-##-###-####","+41-##-###-####","+225-##-###-###","+682-##-###","+56-#-####-####","+237-####-####","+86(###)####-####","+86(###)####-###","+86-##-#####-#####","+57(###)###-####","+506-####-####","+53-#-###-####","+238(###)##-##","+599-###-####","+357-##-## |
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
if ('geolocation' in navigator) { | |
console.log('Supports HTML geolocation API'); | |
(function () { | |
var onSuccess = function (location) { | |
console.log('User location', location); | |
var userLat = location.coords.latitude, | |
userLon = location .coords.longitude; | |
}, |
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
// cache storage API | |
workbox.routing.registerRoute( | |
// new RegExp('https://api-production.vimbo.com.br/storage/empresas/*.*'), | |
new RegExp('https://api-production.vimbo.com.br/storage/empresas/*'), | |
workbox.strategies.networkFirst({ | |
cacheName: 'vimbo-cache-api-principal-v1-storage', | |
method: 'GET', | |
plugins: [ | |
new workbox.expiration.Plugin({ |
Os APP's eles devem ser agnósticos e independente, uma vez que o mesmo não será utilizado, deve simplesmente remover suas pasta, fazendo isso removerá todas as suas dependencias.
obs : A pasta principal, onde irá armazenar a pasta do APP parte do Backend, deve ter em sua raiz algum autoload, uma vez que uma nova pasta é inserida ali dentro, automaticamente é carregada.
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 bash | |
#instalar | |
#npm install --save-dev --save-exact prettier | |
#npm install @types/prettier --save-dev | |
#criar arquivos (.prettierrc) e (.prettierignore), exemplo (https://github.com/nrwl/nx) | |
read -p "Digite o nome da pasta do módulo, que deve ser verificada? " response | |
if [ "$response" != "" ]; then |
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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule, ErrorHandler, Injectable, LOCALE_ID } from '@angular/core'; | |
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { TranslateModule } from '@ngx-translate/core'; | |
import 'hammerjs'; | |
import ptBr from '@angular/common/locales/pt'; | |
import { registerLocaleData } from '@angular/common'; |
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 { Component, OnInit } from '@angular/core';'; | |
import { FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors } from '@angular/forms'; | |
import { Router } from '@angular/router' | |
import { CommonValidators } from '../service/CommonValidator'; | |
import { Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import { GlobalService } from '../../shared/service/global.service'; | |
import { AuthHttp } from 'angular2-jwt' | |
declare var $: any; | |
import 'rxjs/add/operator/delay'; |