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 mix = require('laravel-mix'); | |
const path = require('path'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for the application as well as bundling up all the JS files. |
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
// Install geojson from npm --> npm I -S geojson | |
import GeoJSON from 'geojson' | |
// Import your initalized Firebase/Firestore | |
// I have bundled it into a module | |
import { db } from '@/services/firebase' | |
// Query | |
db.collection('your_firestore_collection_id') | |
.get() |
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
methods: { | |
async uploadProfileImage(file) { | |
this.isLoading = true | |
const fileManager = new FileManager(file) | |
const extension = fileManager.getFileExtension() | |
const filename = `${this.profileImageFilename}.${extension}` | |
const path = this.userProfilePicturePath | |
try { |