feat: Add Repair Game button, UserData backup and cache clearing (#79)

* feat: Add Repair Game functionality including UserData backup and cache clearing

* feat: Add In-App Logs Viewer and Logs Folder shortcut

* feat: Add Open Logs feature

* disable dev tools

* Fix Settings UI

* fix reorder settings section in index.html

relocated sections in settings from most used to least:
1. game options (playername, opengamedir, repair, GPUpreference)
2. player uuid management
3. discord integration rich presence
4. custom java path

---------

Co-authored-by: Fazri Gading <super.fai700@gmail.com>
This commit is contained in:
Rahul Sahani
2026-01-21 03:57:33 +05:30
committed by GitHub
parent 30265549cf
commit b05aeef66d
10 changed files with 616 additions and 203 deletions

View File

@@ -6,8 +6,9 @@ import './mods.js';
import './players.js';
import './chat.js';
import './settings.js';
import './logs.js';
window.closeDiscordNotification = function() {
window.closeDiscordNotification = function () {
const notification = document.getElementById('discordNotification');
if (notification) {
notification.classList.add('hidden');
@@ -24,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (!dismissed) {
setTimeout(() => {
notification.style.display = 'flex';
}, 3000);
}, 3000);
} else {
notification.style.display = 'none';
}
@@ -32,7 +33,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
const originalClose = window.closeDiscordNotification;
window.closeDiscordNotification = function() {
window.closeDiscordNotification = function () {
localStorage.setItem('discordNotificationDismissed', 'true');
originalClose();
};