-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
13 changed files
with
292 additions
and
122 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
//do_not_put_quptes_around_values | ||
//do_not_put_quotes_around_values | ||
REACT_APP_BACKEND_URL= https://paws-backend.azurewebsites.net | ||
|
||
//vapid | ||
REACT_APP_VAPID_KEY= your vapid key | ||
REACT_APP_VAPID_KEY= your vapid key | ||
|
||
|
||
//google maps | ||
REACT_APP_GOOGLE_MAPS_API_KEY= your google maps api key | ||
|
||
//cloudinary(image upload) | ||
REACT_APP_CLOUDINARY_UPLOAD_URL= your cloudinary url | ||
REACT_APP_CLOUDINARY_UPLOAD_PRESET= your cloudinary preset | ||
REACT_APP_CLOUDINARY_UPLOAD_PRESET= your cloudinary preset |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Greetings | ||
|
||
on: [pull_request_target, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible." | ||
pr-message: "Welcome to Our repository.🎊 Thank you so much for taking the time to point this out." |
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
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
/* eslint-disable no-undef */ | ||
importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js'); | ||
importScripts('https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js'); | ||
importScripts("https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"); | ||
importScripts( | ||
"https://www.gstatic.com/firebasejs/8.10.1/firebase-messaging.js" | ||
); | ||
|
||
const firebaseConfig = { | ||
apiKey: "AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w", | ||
authDomain: "paws-b9b64.firebaseapp.com", | ||
projectId: "paws-b9b64", | ||
storageBucket: "paws-b9b64.appspot.com", | ||
messagingSenderId: "610215952536", | ||
appId: "1:610215952536:web:4f832813ef5d58acb010ed", | ||
measurementId: "G-3TBQ0B47KK" | ||
apiKey: "AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w", | ||
authDomain: "paws-b9b64.firebaseapp.com", | ||
projectId: "paws-b9b64", | ||
storageBucket: "paws-b9b64.appspot.com", | ||
messagingSenderId: "610215952536", | ||
appId: "1:610215952536:web:4f832813ef5d58acb010ed", | ||
measurementId: "G-3TBQ0B47KK", | ||
}; | ||
|
||
firebase.initializeApp(firebaseConfig); | ||
|
||
const messaging = firebase.messaging(); | ||
|
||
messaging.onBackgroundMessage((payload) => { | ||
console.log('[firebase-messaging-sw.js] Received background message ', payload); | ||
console.log( | ||
"[firebase-messaging-sw.js] Received background message ", | ||
payload | ||
); | ||
|
||
const notificationTitle = payload.notification.title; | ||
const notificationOptions = { | ||
body: payload.notification.body, | ||
icon: './notification_icon.ico' | ||
}; | ||
const notificationTitle = payload.notification.title; | ||
const notificationOptions = { | ||
body: payload.notification.body, | ||
icon: "./notification_icon.ico", | ||
}; | ||
|
||
// eslint-disable-next-line no-restricted-globals | ||
self.registration.showNotification(notificationTitle, | ||
notificationOptions); | ||
// eslint-disable-next-line no-restricted-globals | ||
self.registration.showNotification(notificationTitle, notificationOptions); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
// Import the functions you need from the SDKs you need | ||
import { initializeApp } from "firebase/app"; | ||
import { getMessaging } from "firebase/messaging"; | ||
import { getMessaging } from "firebase/messaging"; | ||
import { getAuth } from "firebase/auth"; | ||
|
||
const firebaseConfig = { | ||
apiKey: "AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w", | ||
authDomain: "paws-b9b64.firebaseapp.com", | ||
projectId: "paws-b9b64", | ||
storageBucket: "paws-b9b64.appspot.com", | ||
messagingSenderId: "610215952536", | ||
appId: "1:610215952536:web:4f832813ef5d58acb010ed", | ||
measurementId: "G-3TBQ0B47KK" | ||
apiKey: "AIzaSyBgRI7QrEqlrtj94hZ-MKtYc77XunOc_9w", | ||
authDomain: "paws-b9b64.firebaseapp.com", | ||
projectId: "paws-b9b64", | ||
storageBucket: "paws-b9b64.appspot.com", | ||
messagingSenderId: "610215952536", | ||
appId: "1:610215952536:web:4f832813ef5d58acb010ed", | ||
measurementId: "G-3TBQ0B47KK", | ||
}; | ||
|
||
// Initialize Firebase | ||
const app = initializeApp(firebaseConfig); | ||
export const messaging = getMessaging(app); | ||
export const messaging = getMessaging(app); | ||
export const auth = getAuth(app); |
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
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
Oops, something went wrong.