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
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 |
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
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 |
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 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) => { |
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> | |
<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 /> |