Skip to content

Commit

Permalink
Update 1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
1ly4s0 committed May 12, 2024
1 parent 3ae708a commit 6c1e15c
Show file tree
Hide file tree
Showing 130 changed files with 5,975 additions and 1,638 deletions.
56 changes: 49 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "BattlyLauncher",
"productname": "Battly Launcher",
"version": "1.8.1",
"version": "1.8.2",
"description": "El mejor Launcher Personalizado para Minecraft Premium y No premium",
"main": "src/app.js",
"author": "TECNO BROS <contacto@tecnobros.es>",
Expand Down Expand Up @@ -30,6 +30,7 @@
"javascript-obfuscator": "^4.1.0",
"minecraft-launcher-core": "^3.18.0",
"nbtify": "^1.90.1",
"node-7z": "^3.0.0",
"node-fetch": "^2.7.0",
"node-notifier": "^10.0.1",
"protobufjs": "^7.2.6",
Expand All @@ -41,7 +42,7 @@
},
"devDependencies": {
"cross-env": "^7.0.3",
"electron": "^30.0.0",
"electron": "^30.0.1",
"electron-builder": "^24.13.3",
"nodemon": "^3.1.0"
},
Expand Down
8 changes: 4 additions & 4 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { Microsoft } = require("./assets/js/libs/mc/Index");
const { autoUpdater } = require("electron-updater");
const { io } = require("socket.io-client");
const socket = io("https://api.battlylauncher.com");
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
//process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0";
const fs = require("fs");
const path = require("path");
const dataDirectory =
Expand Down Expand Up @@ -428,7 +428,7 @@ ipcMain.on("new-status-discord", async () => {
},
},
})
.catch((error) => {});
.catch((error) => { });
});
});

Expand Down Expand Up @@ -471,7 +471,7 @@ ipcMain.on("new-status-discord-jugando", async (event, status) => {
},
},
})
.catch((error) => {});
.catch((error) => { });
});
});

Expand Down Expand Up @@ -510,7 +510,7 @@ ipcMain.on("delete-and-new-status-discord", async () => {
},
},
})
.catch((error) => {});
.catch((error) => { });
});
});

Expand Down
14 changes: 8 additions & 6 deletions src/assets/css/panels/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,15 @@ body, html {
cursor: pointer;
}

.radio-button-container {
display: flex;
align-items: center;
.radio-button-container {
display: flex;
align-items: center;
gap: 10px;
margin-left: -5px;
margin-top: 5px;
}
flex-wrap: wrap;
/* Agregamos esta propiedad para que los elementos se salten de línea */
margin-left: -5px;
margin-top: 5px;
}

.radio-button {
display: inline-block;
Expand Down
10 changes: 10 additions & 0 deletions src/assets/css/panels/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@
max-width: 29ch;
}

.add-account-name {
margin: 0 100px;
margin-top: 25px;
font: normal normal bold 40px/45px Poppins;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
max-width: 29ch;
}

.account-uuid {
margin: 0 100px;
font: normal normal normal 18px/27px Poppins;
Expand Down
Binary file added src/assets/images/icons/legacyfabric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/icons/neoforge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions src/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Splash {
await sleep(1000);

fetch("https://google.com").then(async () => {
this.maintenanceCheck();
this.checkUpdate();
}).catch(async () => {
this.setStatus(lang.checking_connection);
Expand Down Expand Up @@ -111,7 +112,7 @@ class Splash {
if (err.error) {
let error = err.message;
error = error.toString().slice(0, 50);
this.shutdown(`${lang.update_error}${error}`);
this.shutdown(`${lang.update_error}<br>${error}`);
}
}
})
Expand Down Expand Up @@ -161,11 +162,6 @@ class Splash {
config.GetConfig().then(async res => {
if (res.maintenance) return this.shutdown(res.maintenance_message);
this.setStatus(lang.starting_launcher);

//aplicar las animaciones pero al reves
this.splash.classList.remove("translate");
this.splashMessage.classList.add("animate__animated", "animate__flipOutX");
this.splashAuthor.classList.add("animate__animated", "animate__flipOutX");
await sleep(500);
setTimeout(() => {
this.startLauncher();
Expand All @@ -182,6 +178,9 @@ class Splash {
* @async
*/
async startLauncher() {
this.splash.classList.remove("translate");
this.splashMessage.classList.add("animate__animated", "animate__flipOutX");
this.splashAuthor.classList.add("animate__animated", "animate__flipOutX");
this.setStatus(lang.ending);
await sleep(500);
ipcRenderer.send('main-window-open');
Expand Down
83 changes: 83 additions & 0 deletions src/assets/js/libs/mc-/Authenticator/AZauth.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/**
* @author TECNO BROS
*/
export default class AZauth {
url: string;
constructor(url: string);
login(username: string, password: string, A2F?: any): Promise<{
A2F: boolean;
error?: undefined;
reason?: undefined;
message?: undefined;
access_token?: undefined;
client_token?: undefined;
uuid?: undefined;
name?: undefined;
user_properties?: undefined;
user_info?: undefined;
meta?: undefined;
} | {
error: boolean;
reason: any;
message: any;
A2F?: undefined;
access_token?: undefined;
client_token?: undefined;
uuid?: undefined;
name?: undefined;
user_properties?: undefined;
user_info?: undefined;
meta?: undefined;
} | {
access_token: any;
client_token: any;
uuid: any;
name: any;
user_properties: string;
user_info: {
banned: any;
money: any;
role: any;
};
meta: {
online: boolean;
type: string;
};
A2F?: undefined;
error?: undefined;
reason?: undefined;
message?: undefined;
}>;
verify(user: any): Promise<{
error: boolean;
reason: any;
message: any;
access_token?: undefined;
client_token?: undefined;
uuid?: undefined;
name?: undefined;
user_properties?: undefined;
user_info?: undefined;
meta?: undefined;
} | {
access_token: any;
client_token: any;
uuid: any;
name: any;
user_properties: string;
user_info: {
banned: any;
money: any;
role: any;
};
meta: {
online: boolean;
type: string;
};
error?: undefined;
reason?: undefined;
message?: undefined;
}>;
signout(user: any): Promise<boolean>;
}
Loading

0 comments on commit 6c1e15c

Please sign in to comment.