|
@@ -130,18 +130,22 @@ export default {
|
|
},
|
|
},
|
|
meetingProp: {
|
|
meetingProp: {
|
|
type: Object
|
|
type: Object
|
|
|
|
+ },
|
|
|
|
+ clientUid: {
|
|
|
|
+ type: String,
|
|
|
|
+ required: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
user: {
|
|
user: {
|
|
- firstName: '',
|
|
|
|
- lastName: '',
|
|
|
|
|
|
+ firstName: "",
|
|
|
|
+ lastName: "",
|
|
dateOfBirth: null
|
|
dateOfBirth: null
|
|
},
|
|
},
|
|
- meetingUid: '',
|
|
|
|
- meetingName: sessionStorage.getItem('meeting_name') || '',
|
|
|
|
- stepper: sessionStorage.getItem('step') || 1,
|
|
|
|
|
|
+ meetingUid: "",
|
|
|
|
+ meetingName: sessionStorage.getItem("meeting_name") || "",
|
|
|
|
+ stepper: sessionStorage.getItem("step") || 1,
|
|
cameraWorkingConfirmed: false,
|
|
cameraWorkingConfirmed: false,
|
|
loading: false,
|
|
loading: false,
|
|
/* Copied */
|
|
/* Copied */
|
|
@@ -196,14 +200,14 @@ export default {
|
|
},
|
|
},
|
|
stepper: {
|
|
stepper: {
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
- sessionStorage.setItem('step', newVal)
|
|
|
|
|
|
+ sessionStorage.setItem("step", newVal);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
checkIn() {
|
|
checkIn() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.meetingName = `${this.user.firstName} ${this.user.lastName} ${this.user.dateOfBirth}`
|
|
|
|
|
|
+ this.meetingName = `${this.user.firstName} ${this.user.lastName} ${this.user.dateOfBirth}`;
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
url: "/post-to-api",
|
|
url: "/post-to-api",
|
|
@@ -224,19 +228,19 @@ export default {
|
|
this.stepper = 2;
|
|
this.stepper = 2;
|
|
this.meetingUid = data.data;
|
|
this.meetingUid = data.data;
|
|
|
|
|
|
- this.$socket.emit('userData', {
|
|
|
|
|
|
+ this.$socket.emit("userData", {
|
|
user: {
|
|
user: {
|
|
- uid: 'someuid',
|
|
|
|
|
|
+ uid: "someuid",
|
|
name: `${this.firstName} ${this.lastName}`,
|
|
name: `${this.firstName} ${this.lastName}`,
|
|
- type: 'STRANGER'
|
|
|
|
|
|
+ type: "STRANGER"
|
|
},
|
|
},
|
|
meeting: {
|
|
meeting: {
|
|
uid: this.meetingUid,
|
|
uid: this.meetingUid,
|
|
lobby_uid: this.lobbyProp.uid
|
|
lobby_uid: this.lobbyProp.uid
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
|
|
- if(!this.publisher){
|
|
|
|
|
|
+ if (!this.publisher) {
|
|
this.$nextTick(this.initializePublisher);
|
|
this.$nextTick(this.initializePublisher);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -274,8 +278,19 @@ export default {
|
|
this.$set(cont, "self", true);
|
|
this.$set(cont, "self", true);
|
|
this.cameraWorkingConfirmed = true;
|
|
this.cameraWorkingConfirmed = true;
|
|
|
|
|
|
- if(this.stepper == 3){
|
|
|
|
- this.gotoStep3()
|
|
|
|
|
|
+ this.$socket.emit("meetingJoined", {
|
|
|
|
+ lobby_uid: this.lobbyProp.uid,
|
|
|
|
+ meeting_name: this.meetingName,
|
|
|
|
+ meeting_uid: this.meetingUid,
|
|
|
|
+ user: {
|
|
|
|
+ name: `${this.user.firstName} ${this.user.lastName}`,
|
|
|
|
+ type: "STRANGER",
|
|
|
|
+ uid: this.clientUid
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ if (this.stepper == 3) {
|
|
|
|
+ this.gotoStep3();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -291,7 +306,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
gotoStep3() {
|
|
gotoStep3() {
|
|
- if(this.stepper != 3){
|
|
|
|
|
|
+ if (this.stepper != 3) {
|
|
this.stepper = 3;
|
|
this.stepper = 3;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -616,33 +631,33 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- if(this.meetingProp){
|
|
|
|
- this.user.firstName = this.meetingProp.strangerFirstName
|
|
|
|
- this.user.lastName = this.meetingProp.strangerLastName
|
|
|
|
- this.user.dateOfBirth = this.meetingProp.strangerDob
|
|
|
|
|
|
+ if (this.meetingProp) {
|
|
|
|
+ this.user.firstName = this.meetingProp.strangerFirstName;
|
|
|
|
+ this.user.lastName = this.meetingProp.strangerLastName;
|
|
|
|
+ this.user.dateOfBirth = this.meetingProp.strangerDob;
|
|
|
|
|
|
- if(this.stepper == 1){
|
|
|
|
- this.stepper = 2
|
|
|
|
|
|
+ if (this.stepper == 1) {
|
|
|
|
+ this.stepper = 2;
|
|
}
|
|
}
|
|
|
|
|
|
- this.$socket.emit('userData', {
|
|
|
|
|
|
+ this.$socket.emit("userData", {
|
|
user: {
|
|
user: {
|
|
- uid: 'someuid',
|
|
|
|
|
|
+ uid: "someuid",
|
|
name: `${this.firstName} ${this.lastName}`,
|
|
name: `${this.firstName} ${this.lastName}`,
|
|
- type: 'STRANGER'
|
|
|
|
|
|
+ type: "STRANGER"
|
|
},
|
|
},
|
|
meeting: {
|
|
meeting: {
|
|
uid: this.meetingUid,
|
|
uid: this.meetingUid,
|
|
lobby_uid: this.lobbyProp.uid
|
|
lobby_uid: this.lobbyProp.uid
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- if(this.meetingProp){
|
|
|
|
|
|
+ if (this.meetingProp) {
|
|
this.meetingUid = this.meetingProp.uid;
|
|
this.meetingUid = this.meetingProp.uid;
|
|
this.$nextTick(this.initializePublisher);
|
|
this.$nextTick(this.initializePublisher);
|
|
- let self = this
|
|
|
|
|
|
+ let self = this;
|
|
}
|
|
}
|
|
|
|
|
|
let self = this;
|
|
let self = this;
|