Skip to content

Commit

Permalink
Cook the incompatible mod list
Browse files Browse the repository at this point in the history
- Move the endpoint inside the API (with redirect)
- Add icons, status, and tracking issues
- Remove old entries that are already fixed
- Make a HTML view for the page
  • Loading branch information
simpledemon committed Apr 4, 2024
1 parent 81e20d0 commit 70fbba4
Show file tree
Hide file tree
Showing 8 changed files with 279 additions and 147 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"i18next": "^21.10.0",
"i18next-fluent": "^2.0.0",
"i18next-fs-fluent-backend": "github:pluiedev/i18next-fs-fluent-backend",
"marked": "^12.0.1",
"node-fetch": "^3.3.2",
"quilt-bulma": "0.0.23",
"rehype-autolink-headings": "^6.1.1",
Expand All @@ -39,6 +40,6 @@
"semver-sort": "^1.0.0"
},
"engines": {
"node": ">=20"
}
"node": ">=20"
}
}
20 changes: 11 additions & 9 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/faq /about/faq 308
/community/moderation /staff/moderation/moderation 308
/community/tupperbox /community/pluralkit 308
/blog /blog/1 308
/qsl https://modrinth.com/mod/qsl 308
/qsl https://modrinth.com/mod/qsl 308
/incompatible-mods.json /api/v1/incompatible-mods.json 308

/en/faq /about/faq 308
/en/community/moderation /staff/moderation/moderation 308
/en/community/tupperbox /community/pluralkit 308
/en/blog /blog/1 308
/faq /about/faq 308
/community/moderation /staff/moderation/moderation 308
/community/tupperbox /community/pluralkit 308
/blog /blog/1 308

/en/faq /about/faq 308
/en/community/moderation /staff/moderation/moderation 308
/en/community/tupperbox /community/pluralkit 308
/en/blog /blog/1 308
135 changes: 135 additions & 0 deletions public/api/v1/incompatible-mods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
[{
"ids": ["better_loading_screen"],
"name": "Better Loading Screen",
"type": "GAME",
"status": "WONT_FIX",
"tracking": "https://github.com/shedaniel/BetterLoadingScreen/issues/20",
"icon": "https://media.forgecdn.net/avatars/511/148/637829105007128197.png"
},

{
"ids": ["bigbeacons"],
"name": "Big Beacons",
"type": "GAME",
"status": "UNKNOWN",
"tracking": "UNKNOWN",
"icon": "https://media.forgecdn.net/avatars/348/332/637499126404745895.png"
},

{
"ids": ["decorative_blocks"],
"name": "Decorative Blocks",
"type": "GAME",
"status": "IN_PROGRESS",
"tracking": "https://github.com/lilypuree/Decorative-Blocks/issues/76",
"icon": "https://media.forgecdn.net/avatars/248/967/637171183613258353.png"
},

{
"ids": ["logbegone"],
"name": "Log Begone",
"type": "SELF",
"status": "BLOCKED",
"tracking": "https://github.com/AzureDoom/Log-Begone/issues/3",
"note": "Not all log messages are passed through the mod's filter.",
"icon": "https://media.forgecdn.net/avatars/557/92/637903174661344067.png"
},

{
"ids": ["vulkanmod"],
"name": "VulkanMod",
"type": "GAME",
"status": "NO_ANSWER",
"tracking": "https://github.com/xCollateral/VulkanMod/issues/204",
"icon": "https://cdn.modrinth.com/data/JYQhtZtO/05e927ce5f83fd03e9575441d18707d8bd72437d.png"
},

{
"ids": ["codex"],
"name": "Codex",
"type": "GAME",
"status": "WONT_FIX",
"tracking": "https://github.com/IMB11/Codex/issues/3",
"icon": "https://media.forgecdn.net/avatars/893/179/638335912397170484.png"
},

{
"ids": ["libjf"],
"name": "LibJF",
"type": "GAME",
"status": "ON_HOLD",
"tracking": "https://github.com/Fabulously-Optimized/fabulously-optimized/issues/210#issuecomment-1232601249",
"icon": "https://media.forgecdn.net/avatars/382/525/637566912042948257.png"
},

{
"ids": ["optifabric", "optifine"],
"name": "OptiFabric/OptiFine",
"type": "GAME",
"status": "NO_ANSWER",
"tracking": "https://github.com/Chocohead/OptiFabric/issues/751",
"icon": "https://media.forgecdn.net/avatars/204/621/636941511294490034.png"
},

{
"ids": ["rpgdifficulty"],
"name": "Rpg Difficulty",
"type": "GAME",
"status": "WONT_FIX",
"tracking": "https://github.com/Globox1997/RpgDifficulty/issues/39",
"icon": "https://media.forgecdn.net/avatars/380/837/637563157215396535.png"
},

{
"ids": ["fldf"],
"name": "Fast Leaf Decay",
"type": "GAME",
"status": "UNKNOWN",
"tracking": "UNKNOWN",
"note": "Tries to crash the game as part of a targeted harassment campaign against Quilt and its users.",
"icon": "https://quiltmc.org/assets/img/unknown.png"
},
{
"ids": ["dynmap"],
"name": "Dynmap",
"type": "GAME",
"status": "WONT_FIX",
"tracking": "https://github.com/webbukkit/dynmap/issues/4016",
"icon": "https://media.forgecdn.net/avatars/467/189/637748639594181930.png"
},
{
"ids": ["chattriggers"],
"name": "ChatTriggers",
"type": "SELF",
"status": "UNKNOWN",
"tracking": "UNKNOWN",
"note": "Modules can be loaded and managed, but are unable to be executed on Quilt.",
"icon": "https://media.forgecdn.net/avatars/497/51/637812567601108749.png"
},
{
"ids": ["creativecore"],
"name": "CreativeCore",
"type": "WORKAROUND",
"status": "WONT_FIX",
"tracking": "https://github.com/CreativeMD/CreativeCore/issues/205",
"note": "Occasionally breaks the search tab in the creative mode item screen, and spams errors in logs. The issue can be fixed via using its `/cmdclientconfig` command to set `playSoundWithOffset` to `false`.",
"icon": "https://media.forgecdn.net/avatars/86/225/636207446427836220.png"
},
{
"ids": ["wetlands"],
"name": "Beneath the Wetlands",
"type": "GAME",
"status": "NO_ANSWER",
"tracking": "https://github.com/birchfolks/Beneath-the-Wetlands/issues/13",
"icon": "https://media.forgecdn.net/avatars/953/375/638444045210140536.png"
},
{
"ids": ["essential-container"],
"name": "Essential",
"type": "WORKAROUND",
"status": "WONT_FIX",
"tracking": "https://gist.github.com/OroArmor/66632962acdd4bbbacc71d858befab29",
"note": "Prevents Quilt clients from connecting to local worlds on 1.20.2+. Add `-Dquilt.networking.reserialize_custom_payloads=true` to the java arguments. Provided direct help to developers and was turned down. Issue on their end. Will also not be present in Mod Menu.",
"icon": "https://media.forgecdn.net/avatars/597/210/637973904487237935.png"
}
]
Binary file added public/assets/img/unknown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
136 changes: 0 additions & 136 deletions public/incompatible-mods.json

This file was deleted.

71 changes: 71 additions & 0 deletions src/components/atoms/IncompatibleModCard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
import { marked } from "marked";
export interface Mod {
name: string;
ids: string[];
icon: string;
note?: string;
tracking: string;
status: string;
}
export interface Props {
mod: Mod;
}
const mod = Astro.props.mod;
const [statusText, statusIcon] = {
"UNKNOWN": ["Status is currently unknown", "fa-question"],
"WONT_FIX": ["Will not be fixed", "fa-ban"],
"IN_PROGRESS": ["Fix in progress", "fa-spinner"],
"BLOCKED": ["Fix is blocked by an external factor", "fa-shield-halved"],
"NO_ANSWER": ["The tracking issue is awaiting a response from maintainers", "fa-hourglass-half"],
"ON_HOLD": ["Fix is currently on hold", "fa-pause"],
}[mod.status || "UNKNOWN"]
---
<div class="mod">
<div class="card">
<div class="card-content p-3 mb-3">
<div class="media">
<div class="media-left">
<figure class="image is-64x64" style="margin-left: 1vw; margin-right: 1vw">
<img
src={mod.icon}
alt="Mod icon"
/>
</figure>
</div>
<div class="media-content">
<p class="title is-4">{mod.name}</p>
<p class="subtitle is-6">{mod.ids.join(', ')}</p>
</div>
<div>
<div class="icon has-tooltip-arrow has-tooltip-left" data-tooltip={statusText}>
<i class={"fas fa-lg " + statusIcon}></i>
</div>
{
(mod.tracking === "UNKNOWN") ? (
<span class="icon">
<i class="fas fa-lg fa-question"></i>
</span>
) : (
<a href={mod.tracking} target="_blank" class="icon" style="color: inherit">
<i class="fas fa-lg fa-external-link-alt"></i>
</a>
)
}
</div>
</div>

{
(mod.note) && (
<div class="content">
<p set:html={marked.parse(mod.note)}></p>
</div>
)
}
</div>
</div>
</div>
Loading

0 comments on commit 70fbba4

Please sign in to comment.