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
const truncateText = ( | |
str, | |
len = 42, | |
end = '...', | |
words = true, | |
regex = /[-.*+?^${}()|[\]\\]/g, | |
after = ' ', | |
) => { | |
const replaced = str.replace(regex, ''); | |
const string = replaced.substr(0, len); |
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
ENVIRONMENT=development | |
HOSTNAME=localhost:4000 | |
MONGODB_DB=reactnodenew | |
MONGODB_HOST=localhost | |
MONGODB_PASS= | |
MONGODB_PORT=27017 | |
MONGODB_QUERIES= | |
MONGODB_SSL=FALSE | |
MONGODB_USER= | |
NODE_ENV=development |
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 mongoose, { Schema } from 'mongoose' | |
const userSchema = new Schema({ | |
loginInfo: { | |
providerID: { | |
type: String | |
}, | |
providerKey: { | |
type: String | |
} |
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
export function requestGet(path: string, headers?:{}){ | |
return execute( | |
axios.get(api_path + path, extendHeadersWithAuthentication(headers)) | |
) | |
} | |
export function requestPost(path: string, data : any, headers?:{}){ | |
return execute( | |
axios.post(api_path + path, data, extendHeadersWithAuthentication(headers)) | |
) |
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 Vue from 'vue' | |
import pl from 'vee-validate/dist/locale/pl' | |
import VeeValidate, { Validator } from 'vee-validate' | |
import maxDimensionsRule from './maxDimensionsRule' | |
import Component from '@/components/Component.vue' | |
Validator.localize('pl', pl) | |
Vue.use(VeeValidate, {}) | |
/* eslint-disable no-new */ |
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
# Configure the reverse-proxy on port 443 | |
server { | |
# general configs | |
keepalive_timeout 30; | |
listen 127.0.0.1:443 ssl; | |
server_name api.example.com; | |
# ssl configs | |
ssl_certificate /path/to/api.crt; | |
ssl_certificate_key /path/to/api.key; |
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
{"lastUpload":"2019-01-18T14:59:17.858Z","extensionVersion":"v3.2.4"} |
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
export default { | |
data() { | |
return { | |
galleryAlbums: [], | |
dialogAlbumImages: false | |
} | |
}, | |
created() { | |
this.getAlbums() |
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
'use strict' | |
const functions = require('firebase-functions') | |
const mkdirp = require('mkdirp-promise') | |
const gcs = require('@google-cloud/storage')({ | |
keyFilename: '***********************************-c3d9469093.json' | |
}) | |
const admin = require('firebase-admin') | |
const spawn = require('child-process-promise').spawn | |
const path = require('path') |
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
export default { | |
data() { | |
return { | |
images: [] | |
} | |
}, | |
created() { | |
this.getImages() | |
}, |