mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
Compare commits
10 Commits
DevelopCku
...
Swino4ka
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6ccf9f368 | ||
|
|
a3b078c7c2 | ||
|
|
e3122f477a | ||
|
|
5f9ae77b9f | ||
|
|
1df75ba3ee | ||
|
|
327dd6c7e9 | ||
|
|
c90f249eb6 | ||
|
|
8b6a3b03e0 | ||
|
|
73efda2f93 | ||
|
|
3215d994be |
@@ -407,7 +407,7 @@
|
||||
}
|
||||
.Swino4ka_text_2 {
|
||||
width: 244px;
|
||||
height: 221.5px;
|
||||
height: 219.7px;
|
||||
display: inline-block;
|
||||
flex-flow: column-reverse;
|
||||
|
||||
@@ -451,6 +451,36 @@
|
||||
margin-left: 3px;
|
||||
|
||||
}
|
||||
.Swino4ka__whatjob_2 {
|
||||
display: flex;
|
||||
width: 183px;
|
||||
height: 16px;
|
||||
margin-left: 19px;
|
||||
font-family: 'Montserrat';
|
||||
margin-top: 10px;
|
||||
}
|
||||
.Swino4ka__whatjob_2 img {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
}
|
||||
.Swino4ka__whatjob_2 p {
|
||||
margin-left: 3px;
|
||||
}
|
||||
.Swino4ka__whatjob_3 {
|
||||
display: flex;
|
||||
width: 183px;
|
||||
height: 16px;
|
||||
margin-left: 19px;
|
||||
font-family: 'Montserrat';
|
||||
margin-top: 9px;
|
||||
}
|
||||
.Swino4ka__whatjob_3 img {
|
||||
width: 17px;
|
||||
height: 15px;
|
||||
}
|
||||
.Swino4ka__whatjob_3 p {
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.Swino4ka_skin_2 {
|
||||
width: 244px;
|
||||
|
||||
@@ -177,7 +177,30 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* /Crash-Graph */
|
||||
/* /Crash-History */
|
||||
|
||||
.crash__history {
|
||||
background: linear-gradient(90deg, rgba(34, 37, 47, 0.8) -0.54%, rgba(34, 37, 47, 0.8) 83.03%, rgba(73, 59, 74, 0.64) 103.54%);
|
||||
width: 66%;
|
||||
height: 50px;
|
||||
border-radius: 18px;
|
||||
margin-left: 455px;
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border: 1px solid rgba(0, 0, 0, 0.8);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.crash-history__element {
|
||||
height: 80%;
|
||||
border-radius: 18px;
|
||||
background: rgba(34, 37, 47, 0.8);
|
||||
}
|
||||
|
||||
/* Crash-Players */
|
||||
|
||||
|
||||
@@ -69,14 +69,37 @@ export default {
|
||||
return msg.msg.includes(GetCookie("SpUserName"));
|
||||
},
|
||||
ClaimDatamsg(msg) {
|
||||
const now = Date.now();
|
||||
if (!this.lastMsgTime || now - this.lastMsgTime >= 1000) {
|
||||
SendMessageToChat(msg[0]);
|
||||
this.lastMsgTime = now;
|
||||
} else {
|
||||
alert("Вы не можете отправлять сообщения так часто");
|
||||
}
|
||||
},
|
||||
const now = Date.now();
|
||||
if (!this.lastMsgTime || now - this.lastMsgTime >= 1000) {
|
||||
const processedMsg = this.processMessage(msg[0]);
|
||||
|
||||
SendMessageToChat(processedMsg);
|
||||
this.lastMsgTime = now;
|
||||
} else {
|
||||
alert("Вы не можете отправлять сообщения так часто");
|
||||
}
|
||||
},
|
||||
processMessage(message) {
|
||||
const maxLength = 5; // Тут макс допустимых символов писать
|
||||
const processedMessage = [];
|
||||
let currentSymbol = "";
|
||||
let count = 0;
|
||||
|
||||
for (let i = 0; i < message.length; i++) {
|
||||
if (message[i] === currentSymbol) {
|
||||
count++;
|
||||
} else {
|
||||
currentSymbol = message[i];
|
||||
count = 1;
|
||||
}
|
||||
|
||||
if (count <= maxLength) {
|
||||
processedMessage.push(message[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return processedMessage.join("");
|
||||
},
|
||||
muteChat() {
|
||||
// Mute the chat by disabling the event listener for incoming messages.
|
||||
this.eventBus.$off("dataChat");
|
||||
@@ -110,29 +133,52 @@ export default {
|
||||
});
|
||||
},
|
||||
created() {
|
||||
GetChatHistory().then((response) => {
|
||||
if (response && response.length) {
|
||||
response.forEach((element) => {
|
||||
let imageUrl =
|
||||
"https://avatar.spworlds.ru/face/55/" + element.userName;
|
||||
GetChatHistory().then((response) => {
|
||||
if (response && response.length) {
|
||||
response.forEach((element) => {
|
||||
let imageUrl =
|
||||
"https://avatar.spworlds.ru/face/55/" + element.userName;
|
||||
|
||||
const MsgUser = {
|
||||
id: this.id + 1,
|
||||
msg: element.message,
|
||||
username: element.userName,
|
||||
icon: imageUrl,
|
||||
};
|
||||
const processedMsg = this.processMessage(element.message); // Process the message
|
||||
|
||||
if (MsgUser.username === "🛠️ System") {
|
||||
MsgUser.icon = "https://avatar.spworlds.ru/face/55/CONSOLE";
|
||||
}
|
||||
const MsgUser = {
|
||||
id: this.id + 1,
|
||||
msg: processedMsg, // Use the processed message
|
||||
username: element.userName,
|
||||
icon: imageUrl,
|
||||
};
|
||||
|
||||
this.array.push(MsgUser);
|
||||
});
|
||||
this.ScrollToBottom();
|
||||
}
|
||||
});
|
||||
},
|
||||
if (MsgUser.username === "🛠️ System") {
|
||||
MsgUser.icon = "https://avatar.spworlds.ru/face/55/CONSOLE";
|
||||
}
|
||||
|
||||
this.array.push(MsgUser);
|
||||
});
|
||||
this.ScrollToBottom();
|
||||
}
|
||||
});
|
||||
},
|
||||
processMessage(message) {
|
||||
const maxLength = 5; // Тут макс допустимых символов писать
|
||||
const processedMessage = [];
|
||||
let currentSymbol = "";
|
||||
let count = 0;
|
||||
|
||||
for (let i = 0; i < message.length; i++) {
|
||||
if (message[i] === currentSymbol) {
|
||||
count++;
|
||||
} else {
|
||||
currentSymbol = message[i];
|
||||
count = 1;
|
||||
}
|
||||
|
||||
if (count <= maxLength) {
|
||||
processedMessage.push(message[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return processedMessage.join("");
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
<div class="Ckutls__whatjob_1">
|
||||
<img src="@/assets/icons-developcard/html.png" alt="html">
|
||||
<p>HTML 5,CSS</p>
|
||||
<p>HTML 5, CSS</p>
|
||||
</div>
|
||||
<div class="Ckutls__whatjob_2">
|
||||
<img src="@/assets/icons-developcard/js.png" alt="html">
|
||||
@@ -114,8 +114,16 @@
|
||||
</div>
|
||||
<div class="Swino4ka_whatjob_1">
|
||||
<img src="@/assets/icons-developcard/html.png" alt="html">
|
||||
<p>HTML 5,CSS</p>
|
||||
<p>HTML 5, CSS</p>
|
||||
</div>
|
||||
<div class="Swino4ka__whatjob_2">
|
||||
<img src="@/assets/icons-developcard/js.png" alt="html">
|
||||
<p>JavaScript</p>
|
||||
</div>
|
||||
<div class="Swino4ka__whatjob_3">
|
||||
<img src="@/assets/icons-developcard/Vue.png" alt="html">
|
||||
<p>Vue 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Swino4ka_skin_2">
|
||||
<div class="Swino4ka_skin_2_skin">
|
||||
@@ -159,7 +167,7 @@
|
||||
</div>
|
||||
<div class="whatjob">
|
||||
<img src="@/assets/icons-developcard/html.png" alt="html">
|
||||
<p>HTML 5,CSS</p>
|
||||
<p>HTML 5, CSS</p>
|
||||
</div>
|
||||
<div class="icons">
|
||||
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" ><img src="@/assets/icons-developcard/odniclasniki.png" alt=""></a>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
type="checkbox"
|
||||
:class="{ 'animate-start-btn': errorAgree }"
|
||||
/>
|
||||
<h3>Я согласен с <a href="https://docs.google.com/document/d/1lU_zTWJdD1lcMlIAFDIVz-DlZAoq3a-OFkoO8WBIkzo/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
<h3>Я согласен с <a href="https://docs.google.com/document/d/1ytKHnXr67o7mu5TKqlpgRjO8DEvQDRHNnaphhzbr_sg/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
</div>
|
||||
<div
|
||||
class="btn-deposit btn-text-style btn-display-deposit btn-style-payments"
|
||||
@@ -115,7 +115,7 @@
|
||||
</div>
|
||||
<div class="withdraw-checkbox checkbox-styles">
|
||||
<input @click="agreeUser = !agreeUser" type="checkbox" />
|
||||
<h3>Я согласен <a href="https://docs.google.com/document/d/1lU_zTWJdD1lcMlIAFDIVz-DlZAoq3a-OFkoO8WBIkzo/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
<h3>Я согласен <a href="https://docs.google.com/document/d/1ytKHnXr67o7mu5TKqlpgRjO8DEvQDRHNnaphhzbr_sg/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
</div>
|
||||
<div class="error-captcha" v-if="errorCaptcha && agreeUser === true">
|
||||
<h2>Пройдите проверку!</h2>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
type="checkbox"
|
||||
:class="{ 'animate-start-btn': errorAgree }"
|
||||
/>
|
||||
<h3>Я согласен с <a href="https://docs.google.com/document/d/1lU_zTWJdD1lcMlIAFDIVz-DlZAoq3a-OFkoO8WBIkzo/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
<h3>Я согласен с <a href="https://docs.google.com/document/d/1ytKHnXr67o7mu5TKqlpgRjO8DEvQDRHNnaphhzbr_sg/edit?usp=sharing">пользовательским соглашением</a></h3>
|
||||
</div>
|
||||
<div
|
||||
class="btn-deposit btn-text-style btn-display-deposit btn-style-payments"
|
||||
|
||||
Reference in New Issue
Block a user