Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing and fix broken links / images #77

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion alternatives/camera-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const mod = new Mod(
.add_category("Utility", "Zoom")
.add_link(
{ host: "modrinth"},
{ host: "curseforge", params: { namespace: "camera-utils" } }
{ host: "curseforge", params: { namespace: "camera-utils" } },
{ host: "github" }
);

await mod.import_versions_from_modrinth("camera-utils");
Expand Down
2 changes: 1 addition & 1 deletion alternatives/connected_block_textures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default new Mod(
"TwilightFlower",
"An implementation of the MCPatcher/Optifine connected textures format on the Fabric modloader. Unmaintained.",
)
.icon("https://cdn.discordapp.com/attachments/523633816078647296/708497185003536424/connected.png")
.icon("images/connected-block-textures.png")
.add_version({ loader: ["fabric"], v: [16] })
.add_category("Cosmetic")
.add_link(
Expand Down
2 changes: 1 addition & 1 deletion alternatives/dynamic-fps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const mod = new Mod(
.add_link(
{ host: "modrinth" },
{ host: "curseforge" },
{ host: "github" }
{ host: "github", params: { author: "juliand665" } }
);

await mod.import_versions_from_modrinth("dynamic-fps");
Expand Down
2 changes: 1 addition & 1 deletion alternatives/entity-model-features.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mod = new Mod(
"Traben",
"A Fabric mod implementing support for OptiFine-format custom entity model (CEM) resourcepacks. Fully compatible with Sodium & Fresh Animations.",
)
.icon("https://cdn.modrinth.com/data/4I1XuqiY/5e127e83e3b55e3cebf32e3e8b355296ea62d87d.png")
.icon("https://cdn.modrinth.com/data/4I1XuqiY/7a6acd528931a1a0d1b60fd0925b88227fb345cc.png")
.add_version({ loader: ["quilt"], v: [ 19.4] }, { loader: ["fabric", "forge"], v: [ 19.4] })
.add_category("Cosmetic")
.add_link(
Expand Down
1 change: 1 addition & 0 deletions alternatives/lithium.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const mod = new Mod(
.add_category("Performance", "General")
.add_link(
{ host: "modrinth" },
{ host: "curseforge" },
{ host: "github", params: { namespace: "lithium-fabric" } }
);

Expand Down
3 changes: 2 additions & 1 deletion alternatives/no-telemetry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const mod = new Mod(
.add_category("Utility")
.add_link(
{ host: "modrinth"},
{ host: "curseforge"}
{ host: "curseforge"},
{ host: "github", params: { author: "kb-1000" } }
);

await mod.import_versions_from_modrinth("no-telemetry");
Expand Down
2 changes: 1 addition & 1 deletion alternatives/okzoomer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mod = new Mod(
"EnnuiL",
"Adds a highly-configurable zoom key for Quilt. The zoom is yours!",
)
.icon("https://cdn.modrinth.com/data/aXf2OSFU/icon.png")
.icon("https://cdn.modrinth.com/data/aXf2OSFU/e4eadd819f064a6c652313229b218fc207d6b805.png")
.add_version({ loader: ["quilt"], v: [18.2, 19, 20.1] }, { loader: ["fabric"], v: [15, 17, 18] })
.add_category("Utility", "Zoom")
.add_link(
Expand Down
1 change: 1 addition & 0 deletions alternatives/quilt-loading-screen.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const mod = new Mod(
.add_category("Cosmetic", "Splash Screen")
.add_link(
{ host: "modrinth" },
{ host: "curseforge" },
{ host: "github", params: { author: "emmods" } }
);

Expand Down
1 change: 1 addition & 0 deletions alternatives/resolution-control-plus.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const mod = new Mod(
.add_category("Utility")
.add_link(
{ host: "modrinth" },
{ host: "curseforge", params: { namespace: "resolutioncontrol" }},
{ host: "github", params: { namespace: "resolution-control" } }
);

Expand Down
1 change: 1 addition & 0 deletions alternatives/sodium.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const mod = new Mod(
.add_category("Performance", "Client")
.add_link(
{ host: "modrinth" },
{ host: "curseforge" },
{ host: "github", params: { namespace: "sodium-fabric" } }
);

Expand Down
6 changes: 4 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { load_mods } from "./build_src/mod.mjs";
const WEBSITE = "https://optifine.alternatives.lambdaurora.dev";
const WEBSITE_PREFIX = WEBSITE + "/";
const BUILD_DIR = "./build";
const IMAGES_DIR = BUILD_DIR + "/images";
const DECODER = new TextDecoder("utf-8");
const ENCODER = new TextEncoder();

Expand All @@ -13,7 +14,7 @@ const ENCODER = new TextEncoder();
console.log("Creating build directory.");
if (existsSync(BUILD_DIR))
await Deno.remove(BUILD_DIR, {recursive: true});
await Deno.mkdir(BUILD_DIR);
await Deno.mkdir(IMAGES_DIR, { recursive: true });

console.log("Building...");
const categorized_mods = await fetch_mods();
Expand Down Expand Up @@ -113,7 +114,8 @@ async function build_readme_file(mods) {
async function build_pages(mods) {
Promise.all([
Deno.copyFile("giscus_style.css", BUILD_DIR + "/giscus_style.css"),
Deno.copyFile("forge.png", BUILD_DIR + "/forge.png")
Deno.copyFile("images/forge.png", IMAGES_DIR + "/forge.png"),
Deno.copyFile("images/connected-block-textures.png", IMAGES_DIR + "/connected-block-textures.png")
]);

async function build_mod_cards(parent, mods, level = 3) {
Expand Down
Binary file added images/connected-block-textures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 1 addition & 1 deletion loaders/forge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default new Loader(
"Forge",
"https://files.minecraftforge.net/",
(html, width, height) => html.create_element("img")
.with_attr("src", "forge.png")
.with_attr("src", "images/forge.png")
.with_attr("width", `${width}`)
.with_attr("height", `${height}`)
);
Loading