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
<template> | |
<v-container> | |
<v-layout class="xs8 offset-xs2"> | |
<v-card> | |
<v-toolbar flat color="primary"> | |
<v-toolbar-title class="secondary--text" | |
>{{ title }}{{ project.name }}</v-toolbar-title | |
> | |
<v-spacer></v-spacer> | |
<v-toolbar-items> |
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
module.exports = { | |
/* | |
** Modules | |
*/ | |
modules: [ | |
'bootstrap-vue/nuxt', | |
['nuxt-sass-resources-loader', '@/../assets/css/style.scss'] | |
], | |
/* | |
** Headers of the page |
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
exports.updateItems = functions.database.ref('/update').onUpdate(event => { | |
return superagent | |
.get(zohoItemsRef + 'items?' + zohoToken + zohoOrg) | |
.query({ | |
authtoken: zohoToken, | |
organization_id: zohoOrg | |
}) | |
.set('cache-control', 'no-cache') | |
.then(res => { | |
res.body.items.forEach(function(item) { |
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 * as db from '../../db' | |
import firebase from 'firebase' | |
import _ from 'lodash' | |
export const RECEIVE_ACTIVE_PROJECTS = 'RECEIVE_ACTIVE_PROJECTS' | |
export const RECEIVE_DELETED_PROJECTS = 'RECEIVE_DELETED_PROJECTS' | |
export const LOADING_PROJECTS = 'LOADING_PROJECTS' | |
export const SELECT_PROJECT = 'SELECT_PROJECT' | |
// initial state |
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 functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
admin.initializeApp(functions.config().firebase) | |
const userRef = admin.firestore().collection('users') | |
exports.createUserAccount = functions.auth.user().onCreate(event => { | |
const uid = event.data.uid | |
const email = event.data.email | |
const photoUrl = |