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 el = document.createElement('peculiar-fortify-certificates'); | |
el.debug = true; | |
el.filters = { | |
onlyWithPrivateKey: true | |
}; | |
el.addEventListener('cancel', function() { | |
alert('"cancel" callback'); | |
}); | |
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 * as admin from 'firebase-admin'; | |
import * as functions from "firebase-functions"; | |
admin.initializeApp(); | |
exports.createUser = functions.https.onRequest( (req, res) => { | |
let { email, password } = req.body | |
if ( !(email || password) ) { | |
res.status(500).json({ |
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 { Directive, ElementRef, HostListener } from '@angular/core'; | |
// Source: https://codeburst.io/digit-only-directive-in-angular-3db8a94d80c3 | |
@Directive({ | |
selector: '[onlyNumber]' | |
}) | |
export class OnlyNumberDirective { | |
private navigationKeys = [ | |
'Backspace', | |
'Delete', |
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 { Directionality } from '@angular/cdk/bidi'; | |
import { CdkStep, CdkStepper, StepperSelectionEvent } from '@angular/cdk/stepper'; | |
import { | |
AfterViewChecked, | |
AfterViewInit, | |
ChangeDetectionStrategy, | |
ChangeDetectorRef, | |
Component, | |
ContentChildren, | |
ElementRef, |