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
| "use strict"; | |
| var __importDefault = (this && this.__importDefault) || function (mod) { | |
| return (mod && mod.__esModule) ? mod : { "default": mod }; | |
| }; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| require("reflect-metadata"); | |
| const source_map_support_1 = __importDefault(require("source-map-support")); | |
| const standalone_1 = require("@adonisjs/core/build/standalone"); | |
| source_map_support_1.default.install({ handleUncaughtExceptions: false }); | |
| const ignitor = new standalone_1.Ignitor(__dirname); |
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 requests | |
| link = "https://cdn.tse.jus.br/estatistica/sead/eleicoes/eleicoes2022/arqurnatot/bu_imgbu_logjez_rdv_vscmr_2022_{0}_{1}.zip" | |
| ufs = ["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MS","MT","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","ZZ"] | |
| def download(url, filename): | |
| headers = { | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36', | |
| } |
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
| <ion-header> | |
| <ion-navbar> | |
| <ion-title>Minhas Tarefas</ion-title> | |
| <ion-buttons end> | |
| <button ion-button icon-only (click)="adicionar()"> | |
| <ion-icon name="add"></ion-icon> | |
| </button> | |
| <button ion-button icon-only (click)="sair()"> |
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
| npm install firebase angularfire2 |
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 config = { | |
| apiKey: "", | |
| authDomain: "", | |
| databaseURL: "", | |
| projectId: "", | |
| storageBucket: "", | |
| messagingSenderId: "" | |
| }; |
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
| ionic serve --lab |
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
| <ion-tabs> | |
| <ion-tab [root]="tab1Root" tabTitle="Tarefas" tabIcon="list"></ion-tab> | |
| <ion-tab [root]="tab2Root" tabTitle="Concluídas" tabIcon="checkbox"></ion-tab> | |
| </ion-tabs> |
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 } from '@angular/core'; | |
| import { NavController } from 'ionic-angular'; | |
| // Páginas que serão usadas para redirecionamento | |
| import { HomePage } from '../home/home'; | |
| import { LoginPage } from '../login/login'; | |
| import { TarefasFinalizadasPage } from '../tarefas-finalizadas/tarefas-finalizadas'; | |
| // Serviço de autenticação | |
| import { AuthProvider } from '../../providers/auth/auth' |
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
| <ion-header> | |
| <ion-navbar> | |
| <ion-title>Tarefas Finalizadas</ion-title> | |
| </ion-navbar> | |
| </ion-header> | |
| <ion-content padding> | |
| <ion-item *ngFor="let tarefa of tarefas | async"> |
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 } from '@angular/core'; | |
| import { IonicPage, NavController, NavParams } from 'ionic-angular'; | |
| // Imports adicionados | |
| import { Observable } from 'rxjs/Observable'; | |
| // Serviço de tarefas | |
| import { TarefasProvider } from '../../providers/tarefas/tarefas'; | |
| // Modelo de tarefas |
NewerOlder