diff --git a/app/public/background.js b/app/public/background.js index 61f43e4..6c98d00 100644 --- a/app/public/background.js +++ b/app/public/background.js @@ -45,6 +45,7 @@ const fetcher = async (request, sendResponse) => { headers: { Authorization: `Token ${idToken}:${firebase.auth().currentUser.uid}`, 'Access-Control-Allow-Origin': '*', + 'Keep-Alive': true, }, ...request, }) diff --git a/app/src/Api.js b/app/src/Api.js index d8efc89..2adc1d0 100644 --- a/app/src/Api.js +++ b/app/src/Api.js @@ -11,7 +11,7 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION. ************************************************************************/ /*global chrome*/ -const API_HOST = 'https://us-central1-watch-party-crx.cloudfunctions.net/widgets'; +const API_HOST = 'https://api.chromewatchparty.com'; export const PLAYER_STATUS = { PLAYING: 'PLAYING', diff --git a/app/src/Thread.css b/app/src/Thread.css index cfdd39e..7f3d18b 100644 --- a/app/src/Thread.css +++ b/app/src/Thread.css @@ -19,7 +19,7 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION. .thread-wrapper { max-height: 100%; flex: 1; - overflow-y: auto; + overflow-y: auto !important; margin-bottom: 1rem; padding: 0 15px; margin-top: 1rem; @@ -33,7 +33,7 @@ COPIED, EDITED, OR REPRODUCED WITHOUT PERMISSION. width: fit-content; margin: 10px 0; width: 100%; - transition: all ease-in-out 0.3s; + transition: none !important; } .thread-item.highlight .thread-message img, .thread-item.highlight .thread-message p { diff --git a/functions/.gcloudignore b/functions/.gcloudignore new file mode 100644 index 0000000..481bd26 --- /dev/null +++ b/functions/.gcloudignore @@ -0,0 +1,17 @@ +# This file specifies files that are *not* uploaded to Google Cloud Platform +# using gcloud. It follows the same syntax as .gitignore, with the addition of +# "#!include" directives (which insert the entries of the given .gitignore-style +# file at that point). +# +# For more information, run: +# $ gcloud topic gcloudignore +# +.gcloudignore +# If you would like to upload your .git directory, .gitignore file or files +# from your .gitignore file, remove the corresponding line +# below: +.git +.gitignore + +node_modules +#!include:.gitignore diff --git a/functions/gcdeploy.ps1 b/functions/gcdeploy.ps1 new file mode 100644 index 0000000..657270f --- /dev/null +++ b/functions/gcdeploy.ps1 @@ -0,0 +1,7 @@ +foreach ($api in gcloud functions list --filter="name:( api- )" --format="csv[no-heading](NAME,REGION)") { + $apiData = $api.Split(",") + $apiName = $apiData[0] + $apiRegion = $apiData[1] + Write-Host "`n==========================================================`nAPI: $apiName `t REGION: $apiRegion `n==========================================================`n" + gcloud functions deploy $apiName --region $apiRegion --entry-point widgets +} \ No newline at end of file diff --git a/functions/gcdeploy.sh b/functions/gcdeploy.sh new file mode 100644 index 0000000..9366186 --- /dev/null +++ b/functions/gcdeploy.sh @@ -0,0 +1,8 @@ +#!/bin/bash +for api in $(gcloud functions list --filter="name:( api- )" --format="csv[no-heading](NAME,REGION)") +do + apiName="$(cut -d',' -f1 <<<"$api")" + apiRegion="$(cut -d',' -f2 <<<"$api")" + echo $'\n'==========================================================$'\n'API: "$apiName" $'\t'REGION: "$apiRegion"$'\n'==========================================================$'\n' + $(gcloud functions deploy $apiName --region $apiRegion --entry-point widgets) +done \ No newline at end of file