Skip to content

Instantly share code, notes, and snippets.

View MaBbKhawaja's full-sized avatar

Mirza Anees Baig barlas MaBbKhawaja

View GitHub Profile
Variable Default Description
--upload-box-border-color #dcdcdc Border color of the drag-and-drop area
--upload-box-hover-border-color #4285f4 Border color when hovering over drop area
--btn-bg-color #4285f4 Background color of buttons
--btn-hover-bg-color #357ae8 Hover color for buttons
--file-card-bg-color #f9f9f9 Background color of file cards
--remove-file-color red Remove button color for files
Prop Type Default Description
clientId string Required Google OAuth 2.0 Client ID
redirectUri string Required Redirect URI after Google sign-in
maxFileSize number 10 * 1024 * 1024 Max file size (in bytes)
allowedFormats string[] ['*/*'] Allowed MIME types for uploaded files
import * as firebase from 'firebase/app';
import 'firebase/messaging'
// // Initialize Firebase
firebase.initializeApp({
'messagingSenderId': '744798928283'
});
navigator.serviceWorker.register('firebase-messaging-sw.js', {scope: "firebase-cloud-messaging-push-scope"})
.then((registration) => {
<template>
<div v-if="notify">
<div id="notification-box" class="notification-box">
<a href="#" id="notification-close" @click="closed()" title="close">x</a>
<div class="notification-data">
<div class="notification-title">
<p id="title">
{{from}}
<br />