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
'use latest'; | |
const request = require('request'); | |
module.exports = function(context, cb, res) { | |
const nodemailer = require('nodemailer'); | |
const smtpConfig = { | |
host: 'SSL0.OVH.NET', | |
port: 465, | |
secure: true, | |
auth: { | |
user: '[email protected]', |
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
// All the mission that aren't being taken | |
let missionsQueue = []; | |
let currentTime = 0; | |
// Init list 50 masssageurs | |
let massageurs = []; | |
for (let i = 1; i <= 50; i++) { | |
massageurs.push({ | |
index: i.toString(), | |
realIndex: i - 1, | |
availableAt: 0, |
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
const lib = { | |
'L': { | |
'N': 'W', | |
'E': 'N', | |
'S': 'E', | |
'W': 'S', | |
}, | |
'R': { | |
'N': 'E', | |
'E': 'S', |
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 { Action } from '@ngrx/store'; | |
export enum GlobalActionTypes { | |
ShowSpinner = '[Global] showSpinner', | |
HideSpinner = '[Global] HideSpinner', | |
} | |
export class ShowSpinner implements Action { | |
readonly type = GlobalActionTypes.ShowSpinner; | |
constructor() {} |
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 { assign } from '@utils/reducer'; | |
import { | |
GlobalActionTypes, | |
GlobalActionsUnion | |
} from '@app/core/actions/global.action'; | |
export interface State { | |
spinnerCounter: number; | |
} |
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 { | |
ActionReducerMap, | |
createSelector, | |
createFeatureSelector, | |
ActionReducer, | |
MetaReducer, | |
} from '@ngrx/store'; | |
import { environment } from '@environments/environment'; | |
import { storeFreeze } from 'ngrx-store-freeze'; | |
import * as fromGlobal from '@reducers/gloabal.reducer'; |
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 { Injectable } from '@angular/core'; | |
import * as globalAction from '@actions/global.action'; | |
import * as fromRoot from '@core/reducers'; | |
import { Store } from '@ngrx/store'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class LoaderService { |
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 { Injectable } from '@angular/core'; | |
import { | |
HttpClient, | |
HttpHeaders, | |
HttpParams, | |
HttpParameterCodec | |
} from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
import { LoaderService } from '@services/loader.service'; | |
import { |
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
<div *ngIf="isShowSpinner" class="spinner-container"><img src="./assets/spinner.gif" /></div> | |
<div | |
style=" | |
height: 100%; | |
" | |
> | |
<router-outlet></router-outlet> | |
<app-modal-container></app-modal-container> | |
</div> |
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, AfterViewInit } from '@angular/core'; | |
import { Angulartics2Piwik } from 'angulartics2/piwik';$ | |
import { LoaderService } from '@services/loader.service'; | |
import * as fromRoot from '@core/reducers'; | |
import { Store } from '@ngrx/store'; | |
import * as fromGlobal from '@actions/global.action'; | |
import { Subscription } from 'rxjs'; | |
import { OnDestroy } from '@angular/core'; |
OlderNewer