Skip to content

Commit

Permalink
chore(CacaX): update assets (PreMiD#7918)
Browse files Browse the repository at this point in the history
chore: update assets

Signed-off-by: SeMiD <[email protected]>
  • Loading branch information
SeMiD authored Jan 7, 2024
1 parent cc21e39 commit e7bc925
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions websites/C/CacaX/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"www.cacax.fun",
"cacax.fun"
],
"version": "1.0.0",
"logo": "https://i.imgur.com/9szXrvz.png",
"thumbnail": "https://i.imgur.com/yZHviH7.jpg",
"version": "1.0.1",
"logo": "https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/thumbnail.jpg",
"color": "#78350F",
"category": "socials",
"tags": [
Expand Down
13 changes: 8 additions & 5 deletions websites/C/CacaX/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const presence = new Presence({
presence.on("UpdateData", async () => {
const { pathname, href } = document.location,
presenceData: PresenceData = {
largeImageKey: "https://i.imgur.com/9szXrvz.png",
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/logo.png",
},
images = document.querySelectorAll("img");

Expand Down Expand Up @@ -44,10 +45,11 @@ presence.on("UpdateData", async () => {
// si rien trouvé
if (imgUrl === "") {
presenceData.largeImageKey =
"https://www.cacax.fun/images/placeholder.png";
"https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/0.png";
} else presenceData.largeImageKey = imgUrl;

presenceData.smallImageKey = "https://i.imgur.com/9szXrvz.png";
presenceData.smallImageKey =
"https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/logo.png";
} else if (pathname.includes("/posts/")) {
presenceData.details = "Posts";
presenceData.state = `Regarde le post de ${
Expand All @@ -73,10 +75,11 @@ presence.on("UpdateData", async () => {
//si rien trouvé
if (imgUrl === "") {
presenceData.smallImageKey =
"https://www.cacax.fun/images/placeholder.png";
"https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/0.png";
} else presenceData.smallImageKey = imgUrl;

presenceData.largeImageKey = "https://i.imgur.com/9szXrvz.png";
presenceData.largeImageKey =
"https://cdn.rcd.gg/PreMiD/websites/C/CacaX/assets/logo.png";
} else {
switch (pathname) {
case "/":
Expand Down

0 comments on commit e7bc925

Please sign in to comment.