v1.7.10/release:
-abandon Google Drive, -fix video listeners, -add backup webhook, -complete admin dashboard
This commit is contained in:
+14
-12
@@ -1,9 +1,9 @@
|
||||
import firebase from 'firebase/app';
|
||||
import 'firebase/auth';
|
||||
import firebase from "firebase/app";
|
||||
import "firebase/auth";
|
||||
|
||||
const API = window.location.href.includes('localhost')
|
||||
? 'http://localhost:5001/watch-party-crx/us-central1/admin'
|
||||
: 'https://us-central1-watch-party-crx.cloudfunctions.net/admin';
|
||||
const API = window.location.href.includes("localhost")
|
||||
? "http://localhost:5001/watch-party-crx/us-central1/admin"
|
||||
: "https://us-central1-watch-party-crx.cloudfunctions.net/admin";
|
||||
|
||||
const fetcher = async ({ endpoint, method, bodyData }) => {
|
||||
const idToken = await firebase.auth().currentUser.getIdToken();
|
||||
@@ -12,19 +12,21 @@ const fetcher = async ({ endpoint, method, bodyData }) => {
|
||||
method,
|
||||
headers: {
|
||||
Authorization: `Token ${idToken}:${firebase.auth().currentUser.uid}`,
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
},
|
||||
body,
|
||||
});
|
||||
};
|
||||
|
||||
export const getPartyDashboardData = () => fetcher({ endpoint: 'partyDashboard', method: 'GET' });
|
||||
export const getServerDashboardData = () => fetcher({ endpoint: 'serverDashboard', method: 'GET' });
|
||||
export const getPartyDashboardData = () =>
|
||||
fetcher({ endpoint: "partyDashboard", method: "GET" });
|
||||
export const getServerDashboardData = () =>
|
||||
fetcher({ endpoint: "serverDashboard", method: "GET" });
|
||||
export const postUpdateVersionActive = (bodyData) =>
|
||||
fetcher({ endpoint: 'updateVersionActive', method: 'POST', bodyData });
|
||||
fetcher({ endpoint: "updateVersionActive", method: "POST", bodyData });
|
||||
export const postUpdateVideoSelectors = (bodyData) =>
|
||||
fetcher({ endpoint: 'updateVideoSelectors', method: 'POST', bodyData });
|
||||
fetcher({ endpoint: "updateVideoSelectors", method: "POST", bodyData });
|
||||
export const postUpdateVideoNameSelectors = (bodyData) =>
|
||||
fetcher({ endpoint: 'updateVideoNameSelectors', method: 'POST', bodyData });
|
||||
fetcher({ endpoint: "updateVideoNameSelectors", method: "POST", bodyData });
|
||||
export const postSendMessage = (bodyData) =>
|
||||
fetcher({ endpoint: 'sendMessage', method: 'POST', bodyData });
|
||||
fetcher({ endpoint: "sendMessage", method: "POST", bodyData });
|
||||
|
||||
+507
-156
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user