v1.7.16/release - fix keyboard shortcut
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "watch-party-admin",
|
"name": "watch-party-admin",
|
||||||
"version": "1.7.15",
|
"version": "1.7.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ant-design/icons": "^4.2.2",
|
"@ant-design/icons": "^4.2.2",
|
||||||
|
|||||||
Generated
+22156
-35
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "watch-party-crx",
|
"name": "watch-party-crx",
|
||||||
"version": "1.7.15",
|
"version": "1.7.16",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ try {
|
|||||||
console.info("CHROME ENV");
|
console.info("CHROME ENV");
|
||||||
}
|
}
|
||||||
|
|
||||||
const APP_VERSION = "1.7.15";
|
const APP_VERSION = "1.7.16";
|
||||||
|
|
||||||
const firebaseConfig = {
|
const firebaseConfig = {
|
||||||
apiKey: "AIzaSyCJLuYpzXLDRmu2ttzFuSGmYcpFxqToWFU",
|
apiKey: "AIzaSyCJLuYpzXLDRmu2ttzFuSGmYcpFxqToWFU",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Watch Party",
|
"name": "Watch Party",
|
||||||
"short_name": "WP",
|
"short_name": "WP",
|
||||||
"version": "1.7.15",
|
"version": "1.7.16",
|
||||||
"description": "Watch streamed content together.",
|
"description": "Watch streamed content together.",
|
||||||
"background": {
|
"background": {
|
||||||
"page": "background.html"
|
"page": "background.html"
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ import {
|
|||||||
} from "./Api";
|
} from "./Api";
|
||||||
import Tutorial from "./Tutorial";
|
import Tutorial from "./Tutorial";
|
||||||
|
|
||||||
const APP_VERSION = "1.7.15";
|
const APP_VERSION = "1.7.16";
|
||||||
|
|
||||||
const darkTheme = createMuiTheme({
|
const darkTheme = createMuiTheme({
|
||||||
palette: {
|
palette: {
|
||||||
|
|||||||
+2
-1
@@ -1137,7 +1137,8 @@ export default class Chat extends Component {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
className="chat-message-box addFocus"
|
className="chat-message-box addFocus"
|
||||||
value={newMessage}
|
value={newMessage}
|
||||||
onChange={(e) => {
|
onChangeCapture={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
this.setState({ newMessage: e.target.value });
|
this.setState({ newMessage: e.target.value });
|
||||||
scrollThread();
|
scrollThread();
|
||||||
if (gif) {
|
if (gif) {
|
||||||
|
|||||||
+24
-45
@@ -89,25 +89,18 @@ export default class Create extends Component {
|
|||||||
this.createCall = this.createCall.bind(this);
|
this.createCall = this.createCall.bind(this);
|
||||||
this.joinCall = this.joinCall.bind(this);
|
this.joinCall = this.joinCall.bind(this);
|
||||||
this.success = this.success.bind(this);
|
this.success = this.success.bind(this);
|
||||||
this.partyNameAutocompleteProcessor = this.partyNameAutocompleteProcessor.bind(
|
this.partyNameAutocompleteProcessor =
|
||||||
this
|
this.partyNameAutocompleteProcessor.bind(this);
|
||||||
);
|
|
||||||
this.updateAllowAutoRejoin = this.updateAllowAutoRejoin.bind(this);
|
this.updateAllowAutoRejoin = this.updateAllowAutoRejoin.bind(this);
|
||||||
this.updateAllowAutoFollow = this.updateAllowAutoFollow.bind(this);
|
this.updateAllowAutoFollow = this.updateAllowAutoFollow.bind(this);
|
||||||
this.updateAllowChatNotification = this.updateAllowChatNotification.bind(
|
this.updateAllowChatNotification =
|
||||||
this
|
this.updateAllowChatNotification.bind(this);
|
||||||
);
|
|
||||||
this.clearPartyHistory = this.clearPartyHistory.bind(this);
|
this.clearPartyHistory = this.clearPartyHistory.bind(this);
|
||||||
this.handleSteps = this.handleSteps.bind(this);
|
this.handleSteps = this.handleSteps.bind(this);
|
||||||
}
|
}
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const {
|
const { lastActive, userName, partyName, partyPin, allowAutoRejoin } =
|
||||||
lastActive,
|
LocalData();
|
||||||
userName,
|
|
||||||
partyName,
|
|
||||||
partyPin,
|
|
||||||
allowAutoRejoin,
|
|
||||||
} = LocalData();
|
|
||||||
// CONTINUE TUTORIAL
|
// CONTINUE TUTORIAL
|
||||||
if (this.props.tutorialComplete === false) {
|
if (this.props.tutorialComplete === false) {
|
||||||
this.props.resetTutorial();
|
this.props.resetTutorial();
|
||||||
@@ -343,7 +336,10 @@ export default class Create extends Component {
|
|||||||
label="Name"
|
label="Name"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
value={userName}
|
value={userName}
|
||||||
onChange={(e) => this.userNameChange(e.target.value)}
|
onChangeCapture={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
this.userNameChange(e.target.value);
|
||||||
|
}}
|
||||||
helperText={
|
helperText={
|
||||||
userName
|
userName
|
||||||
? `${userName.length}/${CONSTANTS.USER_NAME_LENGTH} Characters`
|
? `${userName.length}/${CONSTANTS.USER_NAME_LENGTH} Characters`
|
||||||
@@ -357,10 +353,12 @@ export default class Create extends Component {
|
|||||||
autoComplete
|
autoComplete
|
||||||
freeSolo
|
freeSolo
|
||||||
value={{ name: name, pin: pin }}
|
value={{ name: name, pin: pin }}
|
||||||
onInputChange={(e, v, r) =>
|
onInputChange={(e, v, r) => {
|
||||||
this.partyNameAutocompleteProcessor({ name: v, pin: pin })
|
this.partyNameAutocompleteProcessor({ name: v, pin: pin });
|
||||||
}
|
}}
|
||||||
onChange={(e, v) => this.partyNameAutocompleteProcessor(v)}
|
onChange={(e, v) => {
|
||||||
|
this.partyNameAutocompleteProcessor(v);
|
||||||
|
}}
|
||||||
renderInput={(params) => (
|
renderInput={(params) => (
|
||||||
<TextField
|
<TextField
|
||||||
color="secondary"
|
color="secondary"
|
||||||
@@ -385,9 +383,14 @@ export default class Create extends Component {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
type="number"
|
type="number"
|
||||||
value={pin}
|
value={pin}
|
||||||
onChange={(e) => this.partyPinChange(e.target.value)}
|
onChangeCapture={(e) => {
|
||||||
|
this.partyPinChange(e.target.value);
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
helperText={
|
helperText={
|
||||||
pin ? `${pin.length}/${CONSTANTS.PIN_LENGTH} Digits` : null
|
pin
|
||||||
|
? `${pin.length}/${CONSTANTS.PIN_LENGTH} Digits`
|
||||||
|
: "Numbers only"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
@@ -415,31 +418,6 @@ export default class Create extends Component {
|
|||||||
}
|
}
|
||||||
labelPlacement="end"
|
labelPlacement="end"
|
||||||
/>
|
/>
|
||||||
{/* <FormControlLabel
|
|
||||||
className={`notification-switch admin-only-switch ${
|
|
||||||
mode !== "create" ? "admin-only-switch-hidden" : ""
|
|
||||||
}`}
|
|
||||||
control={
|
|
||||||
<Switch
|
|
||||||
checked={publicParty}
|
|
||||||
onChange={() => this.setState({ publicParty: !publicParty })}
|
|
||||||
name="publicParty"
|
|
||||||
color={publicParty ? "secondary" : "primary"}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
label={
|
|
||||||
<span>
|
|
||||||
Public Party (can be changed later)
|
|
||||||
<br />
|
|
||||||
<span style={{ color: "#8a8a8a" }}>
|
|
||||||
{publicParty
|
|
||||||
? "Party will be listed and available to join from Watch Party website"
|
|
||||||
: "Only people you share with can join"}
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
}
|
|
||||||
labelPlacement="end"
|
|
||||||
/> */}
|
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
@@ -665,6 +643,7 @@ export default class Create extends Component {
|
|||||||
>
|
>
|
||||||
Donate
|
Donate
|
||||||
</Button>
|
</Button>
|
||||||
|
z
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
+3
-2
@@ -58,7 +58,6 @@ body.visible .party-notification-container {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
transition: all ease-in-out 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.visible #party-width-dragger {
|
body.visible #party-width-dragger {
|
||||||
@@ -380,7 +379,9 @@ body.visible.hbo > div.default > div:nth-child(2) > div > div > div > div {
|
|||||||
body.visible.imdb-tv {
|
body.visible.imdb-tv {
|
||||||
max-width: var(--body-width) !important;
|
max-width: var(--body-width) !important;
|
||||||
}
|
}
|
||||||
body.visible.imdb-tv .freedive-video-container .freedive-video-modal.modal__open {
|
body.visible.imdb-tv
|
||||||
|
.freedive-video-container
|
||||||
|
.freedive-video-modal.modal__open {
|
||||||
max-width: var(--body-width);
|
max-width: var(--body-width);
|
||||||
}
|
}
|
||||||
/* PARAMOUNT FIXES */
|
/* PARAMOUNT FIXES */
|
||||||
|
|||||||
+19
-17
@@ -24,41 +24,41 @@ const PartyWrapper = document.createElement("div");
|
|||||||
PartyWrapper.id = "party_wrapper";
|
PartyWrapper.id = "party_wrapper";
|
||||||
document.body.appendChild(PartyWrapper);
|
document.body.appendChild(PartyWrapper);
|
||||||
|
|
||||||
window.addEventListener(
|
document.addEventListener(
|
||||||
"keydown",
|
"keydown",
|
||||||
(ev) => {
|
(ev) => {
|
||||||
|
if (
|
||||||
|
PartyWrapper.contains(ev.target) ||
|
||||||
|
ev.target.classList.contains("MuiAutocomplete-popper")
|
||||||
|
) {
|
||||||
ev.stopImmediatePropagation();
|
ev.stopImmediatePropagation();
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
if (ev.target.tagName === "INPUT" || ev.target.tagName === "TEXTAREA") {
|
|
||||||
document.querySelector('.chat-message-box').dispatchEvent(ev);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ capture: true }
|
{ capture: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
var cssId = 'watch-party-dynamic-styles';
|
var cssId = "watch-party-dynamic-styles";
|
||||||
var head = document.getElementsByTagName('head')[0];
|
var head = document.getElementsByTagName("head")[0];
|
||||||
var link = document.createElement('link');
|
var link = document.createElement("link");
|
||||||
link.id = cssId;
|
link.id = cssId;
|
||||||
link.rel = 'stylesheet';
|
link.rel = "stylesheet";
|
||||||
link.type = 'text/css';
|
link.type = "text/css";
|
||||||
link.href = 'https://www.chromewatchparty.com/styles/dynamic.css';
|
link.href = "https://www.chromewatchparty.com/styles/dynamic.css";
|
||||||
link.media = 'all';
|
link.media = "all";
|
||||||
head.appendChild(link);
|
head.appendChild(link);
|
||||||
|
|
||||||
switch (getPlayerSource()) {
|
switch (getPlayerSource()) {
|
||||||
case PLAYER_SOURCE.NETFLIX:
|
case PLAYER_SOURCE.NETFLIX:
|
||||||
document.body.classList.add("netflix");
|
document.body.classList.add("netflix");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PLAYER_SOURCE.HULU:
|
case PLAYER_SOURCE.HULU:
|
||||||
|
|
||||||
document.body.classList.add("hulu");
|
document.body.classList.add("hulu");
|
||||||
break;
|
break;
|
||||||
case PLAYER_SOURCE.AMAZON:
|
case PLAYER_SOURCE.IMDB:
|
||||||
if (window.location.href.includes(PLAYER_SOURCE.IMDB)) {
|
|
||||||
document.body.classList.add("imdb-tv");
|
document.body.classList.add("imdb-tv");
|
||||||
}
|
break;
|
||||||
|
case PLAYER_SOURCE.AMAZON:
|
||||||
document.body.classList.add("amazon-prime");
|
document.body.classList.add("amazon-prime");
|
||||||
break;
|
break;
|
||||||
case PLAYER_SOURCE.DISNEY:
|
case PLAYER_SOURCE.DISNEY:
|
||||||
@@ -80,10 +80,12 @@ switch (getPlayerSource()) {
|
|||||||
const tutorialWrapper = document.querySelector(".watch-party-tutorial");
|
const tutorialWrapper = document.querySelector(".watch-party-tutorial");
|
||||||
if (
|
if (
|
||||||
(partyWrapper && partyWrapper.contains(ev.target)) ||
|
(partyWrapper && partyWrapper.contains(ev.target)) ||
|
||||||
(tutorialWrapper && tutorialWrapper.contains(ev.target))
|
(tutorialWrapper && tutorialWrapper.contains(ev.target)) ||
|
||||||
|
ev.target.classList.contains("MuiAutocomplete-popper")
|
||||||
) {
|
) {
|
||||||
if (ev.target.id !== "party-width-dragger") {
|
|
||||||
ev.stopImmediatePropagation();
|
ev.stopImmediatePropagation();
|
||||||
|
ev.stopPropagation();
|
||||||
|
if (ev.target.id !== "party-width-dragger") {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "watch-party-api",
|
"name": "watch-party-api",
|
||||||
"version": "1.7.15",
|
"version": "1.7.16",
|
||||||
"description": "Cloud Functions for Watch Party",
|
"description": "Cloud Functions for Watch Party",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "watch-party",
|
"name": "watch-party",
|
||||||
"version": "1.7.15",
|
"version": "1.7.16",
|
||||||
"description": "Watch Party",
|
"description": "Watch Party",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "firebase emulators:start",
|
"start": "firebase emulators:start",
|
||||||
|
|||||||
Reference in New Issue
Block a user