Skip to content

Commit

Permalink
refactor(SlimeRead): add new case branches and change hex color (PreM…
Browse files Browse the repository at this point in the history
…iD#7923)

* feat: add new case branches and change hex color

* chore: bump version to 1.0.2
  • Loading branch information
Luscarvalho authored Jan 8, 2024
1 parent e7bc925 commit 39bad58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websites/S/SlimeRead/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"slimeread.com",
"www.slimeread.com"
],
"version": "1.0.1",
"version": "1.0.2",
"logo": "https://cdn.rcd.gg/PreMiD/websites/S/SlimeRead/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/S/SlimeRead/assets/thumbnail.png",
"color": "#FF4F4F",
"color": "#5794CE",
"category": "anime",
"tags": [
"manga",
Expand Down
12 changes: 12 additions & 0 deletions websites/S/SlimeRead/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ presence.on("UpdateData", async () => {
presenceData.details = "Visualizando recentes";
break;

case "admin":
if (pathname.includes("/scan"))
presenceData.details = "Visualizando scan";
else if (pathname.includes("/criar/novo"))
presenceData.details = "Criando mangá";
else if (pathname.includes("/listar"))
presenceData.details = "Listando mangás";
else if (pathname.includes("/criar-scan"))
presenceData.details = "Criando scan";
else presenceData.details = "Visualizando painel";
break;

case "pesquisa-obras":
if (pathname.includes("/pesquisar")) {
const searchValue =
Expand Down

0 comments on commit 39bad58

Please sign in to comment.