diff --git a/public/index.html b/public/index.html index f605899..79dc0cb 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ MineXLauncher + diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..74daff1 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "MineXLauncher", + "icons": [ + { + "src": "/resources/images/icons/minexlauncher-192x192.webp", + "sizes": "192x192", + "type": "image/webp" + }, + { + "src": "/resources/images/icons/minexlauncher-512x512.webp", + "sizes": "512x512", + "type": "image/webp" + } + ], + "start_url": "/", + "display": "standalone", + "background_color": "#333", + "theme_color": "#333" +} diff --git a/public/mods/client/index.html b/public/mods/client/index.html index 230d662..e259416 100644 --- a/public/mods/client/index.html +++ b/public/mods/client/index.html @@ -47,7 +47,7 @@
diff --git a/public/mods/mods/index.html b/public/mods/mods/index.html index 294179b..8ca0879 100644 --- a/public/mods/mods/index.html +++ b/public/mods/mods/index.html @@ -48,7 +48,7 @@
diff --git a/public/mods/resourcepacks/index.html b/public/mods/resourcepacks/index.html index 8406880..afe8bfa 100644 --- a/public/mods/resourcepacks/index.html +++ b/public/mods/resourcepacks/index.html @@ -48,7 +48,7 @@
diff --git a/public/resources/data/mods.json b/public/resources/data/mods.json deleted file mode 100644 index aa0419a..0000000 --- a/public/resources/data/mods.json +++ /dev/null @@ -1,226 +0,0 @@ -{ - "mods": [ - { - "modId": "burmod", - "displayName": "Burmod WIP", - "description": "client for eaglerforge (v0.2)", - "icon": "/resources/images/icons/mods/all.webp", - "author": "Murturtle", - "authorLink": "https://github.com/Murturtle", - "repoLink": "https://github.com/Murturtle/Burmod", - "downloadLink": "/resources/mods/burmod.js" - }, - { - "modId": "statshud", - "displayName": "StatsHud", - "author": "Neverflagastralis", - "authorLink": "https://github.com/AstralisLLC", - "description": "An all-new StatsHud, soon to be updated with customization functionality!", - "icon": "/resources/images/icons/mods/statshud.webp", - "repoLink": "https://github.com/AstralisLLC/EaglerForge-Mods/blob/main/StatsHudV3.js", - "downloadLink": "/resources/mods/statshud.js" - }, - { - "modId": "freshui", - "displayName": "FreshEaglerUI", - "author": "Murturtle", - "authorLink": "https://github.com/Murturtle", - "description": "Makes the UIs slide in and re works the main screen!", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/Murturtle/MursMods/blob/main/FreshEaglerUI.js", - "downloadLink": "/resources/mods/freshui.js" - }, - { - "modId": "chatcmd", - "displayName": "Chat commands mod", - "author": "Neverflagastralis", - "authorLink": "https://github.com/AstralisLLC", - "description": "An open source mod with a built in customizable bug reports system!", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/AstralisLLC/EaglerForge-Mods/blob/main/chat%20utils.js", - "downloadLink": "/resources/mods/chatcmd.js" - }, - { - "modId": "autologin", - "displayName": "SemiAutoLogin", - "author": "Murturtle", - "authorLink": "https://github.com/Murturtle", - "description": "Press L to login without typing!", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/Murturtle/MursMods/blob/main/SemiAutoLogin.js", - "downloadLink": "/resources/mods/autologin.js" - }, - { - "modId": "blur", - "displayName": "Blur", - "author": "Murturtle", - "authorLink": "https://github.com/Murturtle", - "description": "Makes your fps 5 when unfocused!", - "icon": "/resources/images/icons/mods/blur.webp", - "repoLink": "https://github.com/Murturtle/MursMods/blob/main/Blur.js", - "downloadLink": "/resources/mods/blur.js" - }, - { - "modId": "jetpack", - "displayName": "Jetpack", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "allows you to fly as if you had a jetpack. keybind(hold): h", - "icon": "/resources/images/icons/mods/jetpack.webp", - "repoLink": "https://github.com/radmanplays/eaglerreborn-plugins/blob/main/jetpack-ef.js", - "downloadLink": "/resources/mods/jetpack.js" - }, - { - "modId": "barneysmusicmod", - "displayName": "Barney's Music Mod", - "author": "BarneyTheGod", - "authorLink": "https://github.com/BarneyCompiler", - "description": "Plays a users music through a direct mp3 link. Saves music through Local Browser storage.", - "icon": "/resources/images/icons/mods/barneysmusicmod.webp", - "repoLink": "https://github.com/BarneyCompiler/barneysmods/blob/main/Barneys%20Music%20Player", - "downloadLink": "/resources/mods/barneysmusicmod.js" - }, - { - "modId": "blinkmod", - "displayName": "Blink", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "use by typing the .blinkon and .blinkoff commands and sending it", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/radmanplays/eaglerreborn-plugins", - "downloadLink": "/resources/mods/blinkmod.js" - }, - { - "modId": "graplehookmod", - "displayName": "GrappleHook", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "grappling hook mod. how to use: 1.grab a fishing rod 2.use the fishing rod 3.grappling hook! ", - "icon": "/resources/images/icons/mods/graplehookmod.webp", - "repoLink": "https://github.com/radmanplays/eaglerreborn-plugins", - "downloadLink": "/resources/mods/graplehookmod.js" - }, - { - "modId": "xraymod", - "displayName": "Xray", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "simple xray mod. its recommended to use this with Fullbright. keybind: x", - "icon": "/resources/images/icons/mods/xraymod.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/Xray.js", - "downloadLink": "/resources/mods/xraymod.js" - }, - { - "modId": "fullbright", - "displayName": "Fullbright", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "full bright mod for eaglerforge. keybind(enabled by default): f", - "icon": "/resources/images/icons/mods/fullbright.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/fullbright.js", - "downloadLink": "/resources/mods/fullbright.js" - }, - { - "modId": "autoclicker", - "displayName": "Autoclicker", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "this mod clicks for you", - "icon": "/resources/images/icons/mods/autoclicker.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/autoclicker.js", - "downloadLink": "/resources/mods/autoclicker.js" - }, - { - "modId": "speedmod", - "displayName": "Speed Mod", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "makes you faster", - "icon": "/resources/images/icons/mods/speedmod.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/Speed.js", - "downloadLink": "/resources/mods/speedmod.js" - }, - { - "modId": "chatshortcutsmod", - "displayName": "Chat Shortcuts", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "shortcuts: {health}, {pos}, {name}, {me}, {x}, {y}, {z}, {level}, {walked}, {chunk}", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/ChatShortcuts.js", - "downloadLink": "/resources/mods/chatshortcutsmod.js" - }, - { - "modId": "nofallmod", - "displayName": "NoFall", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "makes you not take fall damage", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/NoFall.js", - "downloadLink": "/resources/mods/nofallmod.js" - }, - { - "modId": "autofishmod", - "displayName": "AutoFish", - "author": "radmanplays", - "authorLink": "https://github.com/radmanplays", - "description": "fishes for you. just throw a fishing rod in water to use this mod", - "icon": "/resources/images/icons/mods/all.webp", - "repoLink": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/AutoFish.js", - "downloadLink": "/resources/mods/autofishmod.js" - } - ], - "resourcepacks": [ - { - "modId": "barebones-bossbars", - "displayName": "Barebones Bossbars", - "author": "vexcenot", - "authorLink": "https://modrinth.com/user/vexcenot", - "description": "simplistic per-mob icons and colors to decorate boss bars with", - "icon": "/resources/images/icons/resourcepacks/barebones-bossbars.webp", - "repoLink": "https://modrinth.com/resourcepack/barebones-bossbars", - "downloadLink": "/resources/resourcepacks/barebones-bossbars.zip" - }, - { - "modId": "daggers", - "displayName": "Daggers", - "author": "devin", - "authorLink": "https://modrinth.com/user/devin", - "description": "Shorter swords for better visibility.", - "icon": "/resources/images/icons/resourcepacks/daggers.webp", - "repoLink": "https://modrinth.com/resourcepack/daggers", - "downloadLink": "/resources/resourcepacks/daggers.zip" - }, - { - "modId": "faithful-32x", - "displayName": "Faithful (32x)", - "author": "Faithful-Resource-Pack", - "authorLink": "https://modrinth.com/user/Faithful-Resource-Pack", - "description": "The original Minecraft texture feel, with double the resolution and double the fun!", - "icon": "/resources/images/icons/resourcepacks/faithful-32x.webp", - "repoLink": "https://modrinth.com/resourcepack/faithful-32x", - "downloadLink": "/resources/resourcepacks/faithful-32x.zip" - }, - { - "modId": "low-on-fire", - "displayName": "Low On Fire", - "author": "Haikis", - "authorLink": "https://modrinth.com/user/Haikis", - "description": "Low fire on your screen! Vanilla Friendly", - "icon": "/resources/images/icons/resourcepacks/low-on-fire.webp", - "repoLink": "https://modrinth.com/resourcepack/low-on-fire", - "downloadLink": "/resources/resourcepacks/low-on-fire.zip" - }, - { - "modId": "serified-font", - "displayName": "Serified Font", - "author": "bebebea_loste", - "authorLink": "https://modrinth.com/user/bebebea_loste", - "description": "My take on a fancier Minecraft typeface", - "icon": "/resources/images/icons/resourcepacks/serified-font.webp", - "repoLink": "https://modrinth.com/resourcepack/serified-font", - "downloadLink": "/resources/resourcepacks/serified-font.zip" - } - ] -} diff --git a/public/resources/images/icons/minexlauncher-192x192.webp b/public/resources/images/icons/minexlauncher-192x192.webp new file mode 100644 index 0000000..f73f0cc Binary files /dev/null and b/public/resources/images/icons/minexlauncher-192x192.webp differ diff --git a/public/resources/images/icons/minexlauncher-512x512.webp b/public/resources/images/icons/minexlauncher-512x512.webp new file mode 100644 index 0000000..b1fa888 Binary files /dev/null and b/public/resources/images/icons/minexlauncher-512x512.webp differ diff --git a/public/resources/mods/data.json b/public/resources/mods/data.json new file mode 100644 index 0000000..db2bb52 --- /dev/null +++ b/public/resources/mods/data.json @@ -0,0 +1,183 @@ +{ + "mods": [ + { + "id": "burmod", + "name": "Burmod", + "description": "client for eaglerforge (v0.2)", + "author": "Murturtle", + "authorLink": "https://github.com/Murturtle", + "source": "https://github.com/Murturtle/Burmod" + }, + { + "id": "statshud", + "name": "StatsHud", + "description": "An all-new StatsHud, soon to be updated with customization functionality!", + "author": "Neverflagastralis", + "authorLink": "https://github.com/AstralisLLC", + "source": "https://github.com/AstralisLLC/EaglerForge-Mods/blob/main/StatsHudV3.js" + }, + { + "id": "fresheaglerui", + "name": "FreshEaglerUI", + "description": "Makes the UIs slide in and re works the main screen!", + "author": "Murturtle", + "authorLink": "https://github.com/Murturtle", + "source": "https://github.com/Murturtle/MursMods/blob/main/FreshEaglerUI.js" + }, + { + "id": "chat-commands-mod", + "name": "Chat commands mod", + "description": "An open source mod with a built in customizable bug reports system!", + "author": "Neverflagastralis", + "authorLink": "https://github.com/AstralisLLC", + "source": "https://github.com/AstralisLLC/EaglerForge-Mods/blob/main/chat%20utils.js" + }, + { + "id": "semiautologin", + "name": "SemiAutoLogin", + "description": "Press L to login without typing!", + "author": "Murturtle", + "authorLink": "https://github.com/Murturtle", + "source": "https://github.com/Murturtle/MursMods/blob/main/SemiAutoLogin.js" + }, + { + "id": "blur", + "name": "Blur", + "description": "Makes your fps 5 when unfocused!", + "author": "Murturtle", + "authorLink": "https://github.com/Murturtle", + "source": "https://github.com/Murturtle/MursMods/blob/main/Blur.js" + }, + { + "id": "jetpack", + "name": "Jetpack", + "description": "allows you to fly as if you had a jetpack. keybind(hold): h", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/radmanplays/eaglerreborn-plugins/blob/main/jetpack-ef.js" + }, + { + "id": "barneys-music-mod", + "name": "Barney's Music Mod", + "description": "Plays a users music through a direct mp3 link. Saves music through Local Browser storage.", + "author": "BarneyTheGod", + "authorLink": "https://github.com/BarneyCompiler", + "source": "https://github.com/BarneyCompiler/barneysmods/blob/main/Barneys%20Music%20Player" + }, + { + "id": "blink", + "name": "Blink", + "description": "use by typing the .blinkon and .blinkoff commands and sending it", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/radmanplays/eaglerreborn-plugins" + }, + { + "id": "grapplehook", + "name": "GrappleHook", + "description": "grappling hook mod. how to use: 1.grab a fishing rod 2.use the fishing rod 3.grappling hook!", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/radmanplays/eaglerreborn-plugins" + }, + { + "id": "xray", + "name": "Xray", + "description": "simple xray mod. its recommended to use this with Fullbright. keybind: x", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/Xray.js" + }, + { + "id": "fullbright", + "name": "Fullbright", + "description": "full bright mod for eaglerforge. keybind(enabled by default): f", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/fullbright.js" + }, + { + "id": "autoclicker", + "name": "Autoclicker", + "description": "this mod clicks for you", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/autoclicker.js" + }, + { + "id": "speed-mod", + "name": "Speed Mod", + "description": "makes you faster", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/Speed.js" + }, + { + "id": "chat-shortcuts", + "name": "Chat Shortcuts", + "description": "shortcuts: {health}, {pos}, {name}, {me}, {x}, {y}, {z}, {level}, {walked}, {chunk}", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/ChatShortcuts.js" + }, + { + "id": "nofall", + "name": "NoFall", + "description": "makes you not take fall damage", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/NoFall.js" + }, + { + "id": "autofish", + "name": "AutoFish", + "description": "fishes for you. just throw a fishing rod in water to use this mod", + "author": "radmanplays", + "authorLink": "https://github.com/radmanplays", + "source": "https://github.com/EaglerRinth/eaglerrinth.github.io/blob/main/CommunityMods/AutoFish.js" + } + ], + + "resourcepacks": [ + { + "id": "barebones-bossbars", + "name": "Barebones Bossbars", + "description": "simplistic per-mob icons and colors to decorate boss bars with", + "author": "vexcenot", + "authorLink": "https://modrinth.com/user/vexcenot", + "source": "https://modrinth.com/resourcepack/barebones-bossbars" + }, + { + "id": "daggers", + "name": "Daggers", + "description": "Shorter swords for better visibility.", + "author": "devin", + "authorLink": "https://modrinth.com/user/devin", + "source": "https://modrinth.com/resourcepack/daggers" + }, + { + "id": "faithful-32x", + "name": "Faithful (32x)", + "description": "The original Minecraft texture feel, with double the resolution and double the fun!", + "author": "Faithful-Resource-Pack", + "authorLink": "https://modrinth.com/user/Faithful-Resource-Pack", + "source": "https://modrinth.com/resourcepack/faithful-32x" + }, + { + "id": "low-on-fire", + "name": "Low On Fire", + "description": "Low fire on your screen! Vanilla Friendly", + "author": "Haikis", + "authorLink": "https://modrinth.com/user/Haikis", + "source": "https://modrinth.com/resourcepack/low-on-fire" + }, + { + "id": "serified-font", + "name": "Serified Font", + "description": "My take on a fancier Minecraft typeface", + "author": "bebebea_loste", + "authorLink": "https://modrinth.com/user/bebebea_loste", + "source": "https://modrinth.com/resourcepack/serified-font" + } + ] +} diff --git a/public/resources/mods/autoclicker.js b/public/resources/mods/downloads/autoclicker.js similarity index 100% rename from public/resources/mods/autoclicker.js rename to public/resources/mods/downloads/autoclicker.js diff --git a/public/resources/mods/autofishmod.js b/public/resources/mods/downloads/autofish.js similarity index 100% rename from public/resources/mods/autofishmod.js rename to public/resources/mods/downloads/autofish.js diff --git a/public/resources/resourcepacks/barebones-bossbars.zip b/public/resources/mods/downloads/barebones-bossbars.zip similarity index 100% rename from public/resources/resourcepacks/barebones-bossbars.zip rename to public/resources/mods/downloads/barebones-bossbars.zip diff --git a/public/resources/mods/barneysmusicmod.js b/public/resources/mods/downloads/barneys-music-mod.js similarity index 100% rename from public/resources/mods/barneysmusicmod.js rename to public/resources/mods/downloads/barneys-music-mod.js diff --git a/public/resources/mods/blinkmod.js b/public/resources/mods/downloads/blink.js similarity index 100% rename from public/resources/mods/blinkmod.js rename to public/resources/mods/downloads/blink.js diff --git a/public/resources/mods/blur.js b/public/resources/mods/downloads/blur.js similarity index 100% rename from public/resources/mods/blur.js rename to public/resources/mods/downloads/blur.js diff --git a/public/resources/mods/burmod.js b/public/resources/mods/downloads/burmod.js similarity index 100% rename from public/resources/mods/burmod.js rename to public/resources/mods/downloads/burmod.js diff --git a/public/resources/mods/chatcmd.js b/public/resources/mods/downloads/chat-commands-mod.js similarity index 100% rename from public/resources/mods/chatcmd.js rename to public/resources/mods/downloads/chat-commands-mod.js diff --git a/public/resources/mods/chatshortcutsmod.js b/public/resources/mods/downloads/chat-shortcuts.js similarity index 100% rename from public/resources/mods/chatshortcutsmod.js rename to public/resources/mods/downloads/chat-shortcuts.js diff --git a/public/resources/resourcepacks/daggers.zip b/public/resources/mods/downloads/daggers.zip similarity index 100% rename from public/resources/resourcepacks/daggers.zip rename to public/resources/mods/downloads/daggers.zip diff --git a/public/resources/resourcepacks/faithful-32x.zip b/public/resources/mods/downloads/faithful-32x.zip similarity index 100% rename from public/resources/resourcepacks/faithful-32x.zip rename to public/resources/mods/downloads/faithful-32x.zip diff --git a/public/resources/mods/freshui.js b/public/resources/mods/downloads/fresheaglerui.js similarity index 100% rename from public/resources/mods/freshui.js rename to public/resources/mods/downloads/fresheaglerui.js diff --git a/public/resources/mods/fullbright.js b/public/resources/mods/downloads/fullbright.js similarity index 100% rename from public/resources/mods/fullbright.js rename to public/resources/mods/downloads/fullbright.js diff --git a/public/resources/mods/graplehookmod.js b/public/resources/mods/downloads/grapplehook.js similarity index 100% rename from public/resources/mods/graplehookmod.js rename to public/resources/mods/downloads/grapplehook.js diff --git a/public/resources/mods/jetpack.js b/public/resources/mods/downloads/jetpack.js similarity index 100% rename from public/resources/mods/jetpack.js rename to public/resources/mods/downloads/jetpack.js diff --git a/public/resources/resourcepacks/low-on-fire.zip b/public/resources/mods/downloads/low-on-fire.zip similarity index 100% rename from public/resources/resourcepacks/low-on-fire.zip rename to public/resources/mods/downloads/low-on-fire.zip diff --git a/public/resources/mods/nofallmod.js b/public/resources/mods/downloads/nofall.js similarity index 100% rename from public/resources/mods/nofallmod.js rename to public/resources/mods/downloads/nofall.js diff --git a/public/resources/mods/autologin.js b/public/resources/mods/downloads/semiautologin.js similarity index 100% rename from public/resources/mods/autologin.js rename to public/resources/mods/downloads/semiautologin.js diff --git a/public/resources/resourcepacks/serified-font.zip b/public/resources/mods/downloads/serified-font.zip similarity index 100% rename from public/resources/resourcepacks/serified-font.zip rename to public/resources/mods/downloads/serified-font.zip diff --git a/public/resources/mods/speedmod.js b/public/resources/mods/downloads/speed-mod.js similarity index 100% rename from public/resources/mods/speedmod.js rename to public/resources/mods/downloads/speed-mod.js diff --git a/public/resources/mods/statshud.js b/public/resources/mods/downloads/statshud.js similarity index 100% rename from public/resources/mods/statshud.js rename to public/resources/mods/downloads/statshud.js diff --git a/public/resources/mods/xraymod.js b/public/resources/mods/downloads/xray.js similarity index 100% rename from public/resources/mods/xraymod.js rename to public/resources/mods/downloads/xray.js diff --git a/public/resources/images/icons/mods/all.webp b/public/resources/mods/icons/all.webp similarity index 100% rename from public/resources/images/icons/mods/all.webp rename to public/resources/mods/icons/all.webp diff --git a/public/resources/images/icons/mods/autoclicker.webp b/public/resources/mods/icons/autoclicker.webp similarity index 100% rename from public/resources/images/icons/mods/autoclicker.webp rename to public/resources/mods/icons/autoclicker.webp diff --git a/public/resources/images/icons/resourcepacks/barebones-bossbars.webp b/public/resources/mods/icons/barebones-bossbars.webp similarity index 100% rename from public/resources/images/icons/resourcepacks/barebones-bossbars.webp rename to public/resources/mods/icons/barebones-bossbars.webp diff --git a/public/resources/images/icons/mods/barneysmusicmod.webp b/public/resources/mods/icons/barneys-music-mod.webp similarity index 100% rename from public/resources/images/icons/mods/barneysmusicmod.webp rename to public/resources/mods/icons/barneys-music-mod.webp diff --git a/public/resources/images/icons/mods/blur.webp b/public/resources/mods/icons/blur.webp similarity index 100% rename from public/resources/images/icons/mods/blur.webp rename to public/resources/mods/icons/blur.webp diff --git a/public/resources/images/icons/resourcepacks/daggers.webp b/public/resources/mods/icons/daggers.webp similarity index 100% rename from public/resources/images/icons/resourcepacks/daggers.webp rename to public/resources/mods/icons/daggers.webp diff --git a/public/resources/images/icons/resourcepacks/faithful-32x.webp b/public/resources/mods/icons/faithful-32x.webp similarity index 100% rename from public/resources/images/icons/resourcepacks/faithful-32x.webp rename to public/resources/mods/icons/faithful-32x.webp diff --git a/public/resources/images/icons/mods/fullbright.webp b/public/resources/mods/icons/fullbright.webp similarity index 100% rename from public/resources/images/icons/mods/fullbright.webp rename to public/resources/mods/icons/fullbright.webp diff --git a/public/resources/images/icons/mods/graplehookmod.webp b/public/resources/mods/icons/grapplehook.webp similarity index 100% rename from public/resources/images/icons/mods/graplehookmod.webp rename to public/resources/mods/icons/grapplehook.webp diff --git a/public/resources/images/icons/mods/jetpack.webp b/public/resources/mods/icons/jetpack.webp similarity index 100% rename from public/resources/images/icons/mods/jetpack.webp rename to public/resources/mods/icons/jetpack.webp diff --git a/public/resources/images/icons/resourcepacks/low-on-fire.webp b/public/resources/mods/icons/low-on-fire.webp similarity index 100% rename from public/resources/images/icons/resourcepacks/low-on-fire.webp rename to public/resources/mods/icons/low-on-fire.webp diff --git a/public/resources/images/icons/resourcepacks/serified-font.webp b/public/resources/mods/icons/serified-font.webp similarity index 100% rename from public/resources/images/icons/resourcepacks/serified-font.webp rename to public/resources/mods/icons/serified-font.webp diff --git a/public/resources/images/icons/mods/speedmod.webp b/public/resources/mods/icons/speed-mod.webp similarity index 100% rename from public/resources/images/icons/mods/speedmod.webp rename to public/resources/mods/icons/speed-mod.webp diff --git a/public/resources/images/icons/mods/statshud.webp b/public/resources/mods/icons/statshud.webp similarity index 100% rename from public/resources/images/icons/mods/statshud.webp rename to public/resources/mods/icons/statshud.webp diff --git a/public/resources/images/icons/mods/xraymod.webp b/public/resources/mods/icons/xray.webp similarity index 100% rename from public/resources/images/icons/mods/xraymod.webp rename to public/resources/mods/icons/xray.webp diff --git a/public/service-worker.js b/public/service-worker.js index cb45961..6a74a56 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,7 +1,5 @@ -const CACHE_NAME = 'minexlauncher'; -const OFFLINE_URL = '/offline.html'; -const ASSETS_TO_CACHE = [ - OFFLINE_URL, +const cacheAssets = [ + '/offline.html', '/resources/images/icons/favicon.webp', '/resources/scripts/google-tag.js', '/resources/scripts/main.js', @@ -27,23 +25,9 @@ const ASSETS_TO_CACHE = [ self.addEventListener('install', (event) => { event.waitUntil( - caches.delete(CACHE_NAME), - caches.open(CACHE_NAME).then(async (cache) => { - return await cache.addAll(ASSETS_TO_CACHE); - }) - ); -}); - -self.addEventListener('activate', (event) => { - event.waitUntil( - caches.keys().then((keyList) => { - return Promise.all( - keyList.map((key) => { - if (key !== CACHE_NAME) { - return caches.delete(key); - } - }) - ); + caches.delete('minexlauncher'), + caches.open('minexlauncher').then(async (cache) => { + return await cache.addAll(cacheAssets); }) ); }); @@ -52,7 +36,7 @@ self.addEventListener('fetch', (event) => { if (event.request.mode === 'navigate') { event.respondWith( fetch(event.request).catch(() => { - return caches.match(OFFLINE_URL); + return caches.match('/offline.html'); }) ); } else { diff --git a/src/resources/scripts/mods/mods.ts b/src/resources/scripts/mods/mods.ts index 2b74571..10ae5dd 100644 --- a/src/resources/scripts/mods/mods.ts +++ b/src/resources/scripts/mods/mods.ts @@ -1,29 +1,13 @@ document.addEventListener('DOMContentLoaded', async () => { - try { - const response = await fetch('/resources/data/mods.json'); - const data = await response.json(); - const modListElement = document.querySelector('.mod-list'); + const response = await fetch('/resources/mods/data.json'); + const data = await response.json(); + const modListElement = document.querySelector('.mod-list'); - data.mods.forEach(({ icon, author, description, displayName, authorLink, repoLink, downloadLink }) => { - const modItem = document.createElement('div'); - modItem.classList.add('mod-item'); - modItem.innerHTML = ` -
- -
-
-

${displayName}

-

By ${author}

-

${description}

- -
- `; - modListElement?.appendChild(modItem); - }); - } catch (error) { - console.error('Error fetching mods:', error); - } + // @ts-expect-error 123 + data.mods.forEach(({ id, name, description, author, authorLink, source }) => { + const div = document.createElement('div'); + div.classList.add('mod-item'); + div.innerHTML = `

${name}

By ${author}

${description}

`; + modListElement?.appendChild(div); + }); }); diff --git a/src/resources/scripts/mods/resourcepacks.ts b/src/resources/scripts/mods/resourcepacks.ts index ec9b099..0431a22 100644 --- a/src/resources/scripts/mods/resourcepacks.ts +++ b/src/resources/scripts/mods/resourcepacks.ts @@ -1,29 +1,13 @@ -document.addEventListener('DOMContentLoaded', function () { - fetch('/resources/data/mods.json') - .then((response) => response.json()) - .then((data: { resourcepacks: { [x: string]: string; icon: string; author: string; description: string }[] }) => { - const modListElement = document.querySelector('.mod-list'); - data.resourcepacks.forEach((mod: { [x: string]: string; icon: string; author: string; description: string }) => { - const modItem = document.createElement('div'); - modItem.classList.add('mod-item'); - modItem.innerHTML = ` -
- -
-
-

${mod['display-name'] ?? ''}

-

By ${mod.author}

-

${mod.description}

- -
- `; - modListElement?.appendChild(modItem); - }); - }) - .catch((error: unknown) => { - console.error('Error fetching resource packs:', error); - }); +document.addEventListener('DOMContentLoaded', async () => { + const response = await fetch('/resources/mods/data.json'); + const data = await response.json(); + const modListElement = document.querySelector('.mod-list'); + + // @ts-expect-error 123 + data.resourcepacks.forEach(({ id, name, description, author, authorLink, source }) => { + const div = document.createElement('div'); + div.classList.add('mod-item'); + div.innerHTML = `

${name}

By ${author}

${description}

`; + modListElement?.appendChild(div); + }); });