...
 
Commits (3)
index.html,1543023412185,b26c8700c93aed2d63eef5b5c32a839f50c7797496698660ffcbf46f4c25c4df
runtime.a66f828dca56eeb90e02.js,1543023412184,15b133152628f639dc16c0c6fae022a627c362bd997ac64070851fa94e829254
3rdpartylicenses.txt,1543023412185,8f34274d1e6d5682d3bbf2da0bb7a95f2e65d3e8b3ab3e85eaf957ae5765a61a
favicon.ico,1543023412184,3c8f1dca744007357393e9228949f1d36e0865c21c06cb504be0fa21e397df5f
styles.5e5790a62a7e82c26048.css,1543023412184,fee43fb4b270d65273bce9719bf5b79db8db19b9d37dca457abe2a12b9f57d20
polyfills.7fb637d055581aa28d51.js,1543023412184,eba56ec373a543cb1d5362790bdd0a356717d4d0d573f165d2fe074df3c03fb7
main.968d34c96fae8f2a94dc.js,1543023412184,5fcd1d0de977a0f58fa1f7638cabd059d013d506d85a7e648c77ab2b6f958cfd
index.html,1543508553249,4eebe0aaf51167d752987e2018a0f4d7e69e4145e428f24ab49679921cedd052
runtime.a66f828dca56eeb90e02.js,1543508553249,15b133152628f639dc16c0c6fae022a627c362bd997ac64070851fa94e829254
3rdpartylicenses.txt,1543508553249,8f34274d1e6d5682d3bbf2da0bb7a95f2e65d3e8b3ab3e85eaf957ae5765a61a
favicon.ico,1543508553249,3c8f1dca744007357393e9228949f1d36e0865c21c06cb504be0fa21e397df5f
styles.5e5790a62a7e82c26048.css,1543508553249,fee43fb4b270d65273bce9719bf5b79db8db19b9d37dca457abe2a12b9f57d20
polyfills.7fb637d055581aa28d51.js,1543508553249,eba56ec373a543cb1d5362790bdd0a356717d4d0d573f165d2fe074df3c03fb7
main.a55b2bf432831f702b9d.js,1543508553250,d86c7d2da2f4fa1341aa50128d9189da364cb4a01552aa81d3ff903718fb9de5
index.html,1543023412185,b26c8700c93aed2d63eef5b5c32a839f50c7797496698660ffcbf46f4c25c4df
favicon.ico,1543023412184,3c8f1dca744007357393e9228949f1d36e0865c21c06cb504be0fa21e397df5f
3rdpartylicenses.txt,1543023412185,8f34274d1e6d5682d3bbf2da0bb7a95f2e65d3e8b3ab3e85eaf957ae5765a61a
runtime.a66f828dca56eeb90e02.js,1543023412184,15b133152628f639dc16c0c6fae022a627c362bd997ac64070851fa94e829254
styles.5e5790a62a7e82c26048.css,1543023412184,fee43fb4b270d65273bce9719bf5b79db8db19b9d37dca457abe2a12b9f57d20
polyfills.7fb637d055581aa28d51.js,1543023412184,eba56ec373a543cb1d5362790bdd0a356717d4d0d573f165d2fe074df3c03fb7
main.968d34c96fae8f2a94dc.js,1543023412184,5fcd1d0de977a0f58fa1f7638cabd059d013d506d85a7e648c77ab2b6f958cfd
index.html,1543420825164,d0d37450ce987783c1c9b61daa985ef3d227995b163b4c1bd6c428b352e46a49
3rdpartylicenses.txt,1543420825164,8f34274d1e6d5682d3bbf2da0bb7a95f2e65d3e8b3ab3e85eaf957ae5765a61a
runtime.a66f828dca56eeb90e02.js,1543420825164,15b133152628f639dc16c0c6fae022a627c362bd997ac64070851fa94e829254
favicon.ico,1543420825164,3c8f1dca744007357393e9228949f1d36e0865c21c06cb504be0fa21e397df5f
styles.5e5790a62a7e82c26048.css,1543420825164,fee43fb4b270d65273bce9719bf5b79db8db19b9d37dca457abe2a12b9f57d20
polyfills.7fb637d055581aa28d51.js,1543420825164,eba56ec373a543cb1d5362790bdd0a356717d4d0d573f165d2fe074df3c03fb7
main.cd89b26de414c8312e71.js,1543420825462,2d2f119d95299fd643d0de33f452ba5768a504f725da7d5e3ccf96e1539e8b7d
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/public
/dist
/tmp
/out-tsc
......
......@@ -10,8 +10,7 @@
]
},
"hosting": {
"target": "1",
"public": "public",
"public": "dist/el-mantecas",
"ignore": [
"firebase.json",
"**/.*",
......
This diff is collapsed.
<!doctype html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<meta charset="utf-8">
<title>Intercambio TingSoluciones!</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.5e5790a62a7e82c26048.css"></head>
<body>
<app-root></app-root>
<script type="text/javascript" src="runtime.a66f828dca56eeb90e02.js"></script><script type="text/javascript" src="polyfills.7fb637d055581aa28d51.js"></script><script type="text/javascript" src="main.968d34c96fae8f2a94dc.js"></script></body>
</html>
This diff is collapsed.
This diff is collapsed.
!function(r){function e(e){for(var t,p,c=e[0],a=e[1],f=e[2],l=0,s=[];l<c.length;l++)o[p=c[l]]&&s.push(o[p][0]),o[p]=0;for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(r[t]=a[t]);for(i&&i(e);s.length;)s.shift()();return u.push.apply(u,f||[]),n()}function n(){for(var r,e=0;e<u.length;e++){for(var n=u[e],t=!0,c=1;c<n.length;c++)0!==o[n[c]]&&(t=!1);t&&(u.splice(e--,1),r=p(p.s=n[0]))}return r}var t={},o={0:0},u=[];function p(e){if(t[e])return t[e].exports;var n=t[e]={i:e,l:!1,exports:{}};return r[e].call(n.exports,n,n.exports,p),n.l=!0,n.exports}p.m=r,p.c=t,p.d=function(r,e,n){p.o(r,e)||Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:n})},p.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},p.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return p.d(e,"a",e),e},p.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},p.p="";var c=window.webpackJsonp=window.webpackJsonp||[],a=c.push.bind(c);c.push=e,c=c.slice();for(var f=0;f<c.length;f++)e(c[f]);var i=a;n()}([]);
\ No newline at end of file
This diff is collapsed.
......@@ -31,13 +31,47 @@
</ul>
</mat-step>
</mat-horizontal-stepper>
<mat-card>
<mat-card-title>Participantes confirmados ({{people.length}})</mat-card-title>
<mat-card-content>
<mat-list role="list">
<mat-list-item role="listitem" *ngFor="let person of people">{{ person.name}}</mat-list-item>
</mat-list>
</mat-card-content>
</mat-card>
<mat-tab-group>
<mat-tab label="Participantes ({{people.length}})">
<mat-card>
<mat-card-content>
<mat-list role="list">
<mat-list-item role="listitem" *ngFor="let person of people">
{{ person.name }} <a *ngIf="person.facebook" href="{{person.facebook }}" target="_blank" mat-button color="accent">Stalkear</a>
</mat-list-item>
</mat-list>
</mat-card-content>
</mat-card>
</mat-tab>
<mat-tab label="¿Cómo va la cosa?">
<mat-card>
<mat-card-content>
<article>
<h4>Los retos para la posada son los siguientes:</h4>
</article>
<mat-list role="list">
<mat-list-item role="listitem" *ngFor="let challeger of challegers">
{{ challeger.personName}} - {{ challeger.paper}}
</mat-list-item>
</mat-list>
</mat-card-content>
</mat-card>
</mat-tab>
<mat-tab label="¿Quién falta de papelito?">
<mat-card>
<mat-card-content>
<article>
<h4>Personas antisociales, en contra de una democracia participativa:</h4>
</article>
<mat-list role="list">
<mat-list-item role="listitem" *ngFor="let paper of notPaper">
{{ paper.name}}
</mat-list-item>
</mat-list>
<img src="https://www.telemundo.com/sites/nbcutelemundo/files/styles/large/public/screen_shot_2018-07-01_at_10.15.15_pm.png?itok=_1Xe88SJ" alt="che Jesus">
</mat-card-content>
</mat-card>
</mat-tab>
</mat-tab-group>
</mat-sidenav-content>
</mat-sidenav-container>
......@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { FirestoreService } from './services/firestore/firestore.service';
import { MatSnackBar } from '@angular/material';
import { copyStyles } from '@angular/animations/browser/src/util';
@Component({
selector: 'app-root',
......@@ -18,6 +19,8 @@ export class AppComponent implements OnInit {
extraPapers = [];
assignedPapers = [];
hasChallenge = false;
challegers = [];
notPaper = [];
config: any;
constructor(
......@@ -59,9 +62,12 @@ export class AppComponent implements OnInit {
phone: data.phone,
password: data.password,
name: data.name,
hasPaper: data.hasPaper
hasPaper: data.hasPaper,
papers: data.papers,
facebook: data.facebook
});
})
});
this.buildChallengers();
});
this.firestoreService.getExtraPapers().subscribe((extraPapersSnapshot) => {
......@@ -142,4 +148,20 @@ export class AppComponent implements OnInit {
}
}
}
buildChallengers() {
for(let person of this.people) {
let challeger = {personName: person.name};
if(person.hasPaper) {
for(let paper of person.papers) {
if (paper.kind === 1){
challeger['paper'] = paper.name;
this.challegers.push(challeger);
}
}
} else {
this.notPaper.push(person);
}
}
}
}
......@@ -2,7 +2,7 @@ import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { MatToolbarModule, MatDividerModule, MatButtonModule, MatStepperModule, MatSnackBarModule, MatGridListModule, MatSidenavModule, MatInputModule, MatFormFieldModule, MatIconModule, MatListModule, MatCardModule } from '@angular/material';
import { MatToolbarModule, MatDividerModule, MatTabsModule, MatButtonModule, MatStepperModule, MatSnackBarModule, MatGridListModule, MatSidenavModule, MatInputModule, MatFormFieldModule, MatIconModule, MatListModule, MatCardModule } from '@angular/material';
import { AngularFireModule } from 'angularfire2';
import { AngularFirestore } from 'angularfire2/firestore';
......@@ -34,7 +34,8 @@ import { LayoutModule } from '@angular/cdk/layout';
MatGridListModule,
MatStepperModule,
MatSnackBarModule,
MatDividerModule
MatDividerModule,
MatTabsModule
],
providers: [AngularFirestore],
bootstrap: [AppComponent]
......