mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Merge branch 'main' into DevelopCkutls
This commit is contained in:
@@ -16,7 +16,11 @@ export function ConnectToChat() {
|
|||||||
|
|
||||||
webSocket.onmessage = function (event) {
|
webSocket.onmessage = function (event) {
|
||||||
|
|
||||||
eventBus.emit('dataChat', event.data)
|
const dataObject = JSON.parse(event.data);
|
||||||
|
|
||||||
|
if (dataObject && Object.prototype.hasOwnProperty.call(dataObject, 'SpUserName') && Object.prototype.hasOwnProperty.call(dataObject, 'Message')) {
|
||||||
|
eventBus.emit('dataChat', event.data);
|
||||||
|
}
|
||||||
|
|
||||||
console.log('Message from Server:', event.data);
|
console.log('Message from Server:', event.data);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export default {
|
|||||||
eventBus.on("dataChat", (dataFromServer) => {
|
eventBus.on("dataChat", (dataFromServer) => {
|
||||||
try {
|
try {
|
||||||
const dataObject = JSON.parse(dataFromServer);
|
const dataObject = JSON.parse(dataFromServer);
|
||||||
|
|
||||||
let imageUrl =
|
let imageUrl =
|
||||||
"https://avatar.spworlds.ru/face/55/" + dataObject.SpUserName;
|
"https://avatar.spworlds.ru/face/55/" + dataObject.SpUserName;
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
<!-- <div class="header__card--auth"> -->
|
<!-- <div class="header__card--auth"> -->
|
||||||
<div class="auth__card--content">
|
<div class="auth__card--content">
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="https://media.discordapp.net/attachments/1175674631684898866/1203382105934139422/Untitled.png?ex=65d0e3eb&is=65be6eeb&hm=226770699b0ac57c74b1516868e9d7ddb6eb1cb952366ea07e62ccf4ee551a1d&=&format=webp&quality=lossless"
|
||||||
@click="auth = true"
|
@click="auth = true"
|
||||||
><span
|
><span
|
||||||
><img
|
><img
|
||||||
|
|||||||
Reference in New Issue
Block a user