From 8bf78521ac7a7417a5fc9763d2f9d480e48b5881 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:09:28 -0700 Subject: [PATCH] add themes to json, consolidate into 1 json file --- public/resources/data.json | 280 +++++++++++++++++++++++++++++ public/resources/data/mods.json | 191 -------------------- public/resources/data/updates.json | 59 ------ public/settings/index.html | 10 -- src/resources/scripts/main.ts | 54 ++++-- 5 files changed, 316 insertions(+), 278 deletions(-) create mode 100644 public/resources/data.json delete mode 100644 public/resources/data/mods.json delete mode 100644 public/resources/data/updates.json diff --git a/public/resources/data.json b/public/resources/data.json new file mode 100644 index 0000000..5b4cbfa --- /dev/null +++ b/public/resources/data.json @@ -0,0 +1,280 @@ +{ + "themes": [ + { + "id": "default", + "name": "Default" + }, + { + "id": "light", + "name": "Light" + }, + { + "id": "hyperdark", + "name": "Hyperdark" + }, + { + "id": "overworld", + "name": "Overworld" + }, + { + "id": "nether", + "name": "Nether" + }, + { + "id": "the-end", + "name": "The End" + }, + { + "id": "cherry-blossom", + "name": "Cherry Blossom" + }, + { + "id": "retro", + "name": "Retro" + }, + { + "id": "starfall", + "name": "Starfall" + }, + { + "id": "campfire", + "name": "Campfire" + } + ], + "updates": [ + { + "version": "1.6", + "changelog": ["You can now install mods directly from the mods list"] + }, + { + "version": "1.5", + "changelog": ["You can now install the launcher as a PWA web app"] + }, + { + "version": "1.4", + "changelog": [ + "Added Starlike Client", + "Added welcome and setup screen", + "Show changelog when the launcher is updated", + "Added themes and backgrounds", + "Settings now update automatically without saving them", + "You will now stay on the same page when reloading", + "Username rules have been updated to match Minecraft" + ] + }, + { + "version": "1.3", + "changelog": ["Redesigned archive page", "Added offline page"] + }, + { + "version": "1.2", + "changelog": ["Added Eaglercraft 1.2.5", "Added more mods and resource packs", "Fix and optimize mobile site"] + }, + { + "version": "1.1", + "changelog": [ + "Added a mods and resource packs list", + "Temporary workaround for keyboard not working in the game", + "Moved most images and assets to this websites in case they are blocked", + "Added a 404 page", + "Added Discord link to bottom bar", + "Added Peyton's Infdev and Classic versions", + "Updated client versions" + ] + }, + { + "version": "1.0", + "changelog": ["Major rewrite, check it out yourself!"] + } + ], + "addons": { + "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": "updated-textures-for-1-8-9", + "name": "Updated Textures for 1.8.9", + "description": "This resource pack aims to backport textures and sounds from the Texture Update and onward to Minecraft version 1.8.9.", + "author": "Arky", + "authorLink": "https://www.planetminecraft.com/member/arky/", + "source": "https://www.planetminecraft.com/texture-pack/updated-textures-for-1-8-9/" + }, + { + "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/data/mods.json b/public/resources/data/mods.json deleted file mode 100644 index 607f0fa..0000000 --- a/public/resources/data/mods.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "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": "updated-textures-for-1-8-9", - "name": "Updated Textures for 1.8.9", - "description": "This resource pack aims to backport textures and sounds from the Texture Update and onward to Minecraft version 1.8.9.", - "author": "Arky", - "authorLink": "https://www.planetminecraft.com/member/arky/", - "source": "https://www.planetminecraft.com/texture-pack/updated-textures-for-1-8-9/" - }, - { - "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/data/updates.json b/public/resources/data/updates.json deleted file mode 100644 index 3b71d61..0000000 --- a/public/resources/data/updates.json +++ /dev/null @@ -1,59 +0,0 @@ -[ - { - "version": "1.6", - "changelog": [ - "You can now install mods directly from the mods list" - ] - }, - { - "version": "1.5", - "changelog": [ - "You can now install the launcher as a PWA web app" - ] - }, - { - "version": "1.4", - "changelog": [ - "Added Starlike Client", - "Added welcome and setup screen", - "Show changelog when the launcher is updated", - "Added themes and backgrounds", - "Settings now update automatically without saving them", - "You will now stay on the same page when reloading", - "Username rules have been updated to match Minecraft" - ] - }, - { - "version": "1.3", - "changelog": [ - "Redesigned archive page", - "Added offline page" - ] - }, - { - "version": "1.2", - "changelog": [ - "Added Eaglercraft 1.2.5", - "Added more mods and resource packs", - "Fix and optimize mobile site" - ] - }, - { - "version": "1.1", - "changelog": [ - "Added a mods and resource packs list", - "Temporary workaround for keyboard not working in the game", - "Moved most images and assets to this websites in case they are blocked", - "Added a 404 page", - "Added Discord link to bottom bar", - "Added Peyton's Infdev and Classic versions", - "Updated client versions" - ] - }, - { - "version": "1.0", - "changelog": [ - "Major rewrite, check it out yourself!" - ] - } -] diff --git a/public/settings/index.html b/public/settings/index.html index f8df834..1b94628 100644 --- a/public/settings/index.html +++ b/public/settings/index.html @@ -60,16 +60,6 @@