send help
This commit is contained in:
parent
8c000ba0b7
commit
b76e879350
104 changed files with 4260 additions and 142 deletions
|
@ -1,20 +1,6 @@
|
|||
import { highlightElement } from "@speed-highlight/core";
|
||||
import { createRef } from "tsx-dom";
|
||||
import socket from "../../Socket";
|
||||
|
||||
const statusTypes = {
|
||||
online: "0, 150, 0",
|
||||
idle: "150, 150, 0",
|
||||
dnd: "150, 0, 0",
|
||||
offline: "150, 150, 150",
|
||||
};
|
||||
|
||||
const gradientTypes = {
|
||||
online: "0, 150, 0",
|
||||
idle: "150, 150, 0",
|
||||
dnd: "150, 0, 0",
|
||||
offline: "150, 150, 150",
|
||||
};
|
||||
import socket from "../../utilities/socket";
|
||||
|
||||
const activityTypes: Record<number, string> = {
|
||||
0: "Playing",
|
||||
|
@ -31,8 +17,6 @@ export default () => {
|
|||
socket.addEventListener("lanyard", (event: Event) => {
|
||||
const lanyard = (event as CustomEvent<LanyardData>).detail;
|
||||
|
||||
document.body.style = `--status-color: rgb(${statusTypes[lanyard.discord_status]}); --gradient-color: rgba(${gradientTypes[lanyard.discord_status]}, 0.1);`;
|
||||
|
||||
if (container.current) {
|
||||
container.current.textContent = JSON.stringify(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue