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
| var today = new Date(); | |
| var day = today.getDay(); | |
| var dayList = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Thursday']; | |
| var hour = today.getHours(); | |
| var minutes = today.getMinutes(); |
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, ViewChild } from '@angular/core'; | |
| import { Nav, Platform, MenuController } from 'ionic-angular'; | |
| import { StatusBar } from '@ionic-native/status-bar'; | |
| import { SplashScreen } from '@ionic-native/splash-screen'; | |
| import { MenuProvider } from '../providers/menu/menu'; | |
| @Component({ | |
| templateUrl: 'app.html' | |
| }) | |
| export class MyApp { |
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 { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { AppComponent } from './app.component'; | |
| import { ModalModule } from 'ngx-bootstrap/modal'; | |
| import { HttpClientModule } from '@angular/common/http'; | |
| import { FormsModule } from '@angular/forms'; | |
| // Apollo | |
| import { GraphQLModule } from './graphql.module'; | |
| @NgModule({ |
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
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| var UserSchema = new Schema({ | |
| username: { | |
| type: String, | |
| unique: true, | |
| required: true | |
| }, | |
| fullname: String, | |
| email: { |
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
| profile.route('/api/1.0/profile/upload/profilePhotoUpload').put(uploadFile.uploadProfilePhoto); |