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
<template> | |
<div> | |
<div is="sui-container"> | |
<sui-grid> | |
<sui-grid-row> | |
<sui-grid-column :width="7" class="centered" > | |
<sui-segment centered class="signup-div"> | |
<sui-image :src="require('./../../assets/dummy-img.png')" size="tiny" shape="circular" class="centered" /> | |
<form is="sui-form" @submit="signupUser"> | |
<div is="sui-form-field"> |
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
//add to src/sw.js | |
importScripts('workbox-sw.dev.v2.0.0.js'); | |
const workboxSW = new self.WorkboxSW(); | |
workboxSW.precache([]); | |
//create a folder in the project folder and name it 'workbox-cli-config.js' | |
// then add the below snippet | |
module.exports = { |
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
exports.sendFollowerNotification = functions.database.ref('/followers/{followedUid}/{followerUid}').onWrite(event => { | |
const followerUid = event.params.followerUid; | |
const followedUid = event.params.followedUid; | |
// Get the list of device notification tokens. | |
const getDeviceTokensPromise = admin.database().ref(`/users/${followedUid}/notificationTokens`).once('value'); | |
//fetch followers information | |
const getFollowerProfilePromise = admin.auth().getUser(followerUid); | |
return Promise.all([getDeviceTokensPromise, getFollowerProfilePromise]).then(results => { |
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
[ | |
{"name": "Afghanistan", "code": "AF"}, | |
{"name": "Åland Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "Andorra", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
NewerOlder