Skip to content

Commit

Permalink
Merge branch 's7' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMocha authored Apr 21, 2024
2 parents 1d4ed86 + bddcd3c commit 9a0ab87
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ dist
node-v*
data
.DS_Store
AppData
.idea
.vscode
4 changes: 4 additions & 0 deletions package-lock.json

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

11 changes: 6 additions & 5 deletions src/assets/js/panels/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Home {
<div class="news-header">
<img class="server-status-icon" src="assets/images/icon.png">
<div class="header-text">
<div class="title">Aucun news n'ai actuellement disponible.</div>
<div class="title">Aucun news n'est actuellement disponible.</div>
</div>
<div class="date">
<div class="day">1</div>
Expand All @@ -38,7 +38,7 @@ class Home {
</div>
<div class="news-content">
<div class="bbWrapper">
<p>Vous pourrez suivre ici toutes les news relative au serveur.</p>
<p>Vous pourrez suivre ici toutes les nouvelles relatives au serveur.</p>
</div>
</div>`
newsElement.appendChild(blockNews);
Expand Down Expand Up @@ -72,16 +72,17 @@ class Home {
blockNews.classList.add('news-block');
blockNews.innerHTML = `
<div class="news-header">
<img class="server-status-icon" src="assets/images/icon.png">
<div class="header-text">
<div class="title">Error.</div>
<div class="title">Erreur :</div>
</div>
<div class="date">
<div class="day">1</div>
<div class="month">Janvier</div>
</div>
</div>
<div class="news-content">
</div>
<div class="news-content">
<div class="bbWrapper">
<p>Impossible de contacter le serveur des news.</br>Merci de vérifier votre configuration.</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/assets/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ async function accountSelect(data) {

async function isVIP(uuid) {
try {
const { data: response } = await axios.get(`https://api.almyria.fr/minecraft/checkvip/` + uuid);
return response;
const { data: response } = await axios.get(`https://api.almyria.fr/launcher/checkvip/` + uuid);
return response.vip;
} catch (error) {
console.log(error);
}
Expand All @@ -97,7 +97,7 @@ async function headplayer(pseudo, uuid) {
async function VIPperks(uuid) {
const checkVIP = await isVIP(uuid);

if (checkVIP == true) {
if (checkVIP) {
var styleVIP = `
.account-name::before, .player-username::before {
font-weight: bold;
Expand Down
12 changes: 7 additions & 5 deletions src/assets/js/utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ let cdn = pkg.cdn_url;
let config = `${url}/launcher/config-launcher/config.json`;
let news = `${url}/launcher/news-launcher/news.json`;
let launcherstatus = `${api}/launcher/status`;
let staffmembers = `${api}/users/staffmembers`;
let checkbughunter = `${api}/minecraft/checkbughunter`;

let staffmembers = `${api}/config/staffmembers`;
let checkbughunter = `${api}/launcher/checkbughunter`;


class Config {
GetConfig() {
Expand Down Expand Up @@ -82,18 +84,18 @@ class Config {

async GetLauncherStatus() {
let status = await axios.get(launcherstatus);
return status.data[0].launcher_status;
return status.data.status;
}

async GetStaffUsernames() {
let staff = await axios.get(staffmembers);
// Return only the usernames
return staff.data.map(staff => staff.username_mc);
return staff.data.staff.map(staff => staff.username_mc);
}

async IsPlayerBugHunter(uuid) {
let bughunter = await axios.get(checkbughunter + "/" + uuid);
return bughunter.data;
return bughunter.data.bughunter;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/assets/js/windows/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function createWindow() {
mainWindow.show()
}
});
mainWindow.webContents.openDevTools({ mode: 'undocked' });
}

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions src/panels/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<div class="container dark">
<div class="login-home login-tabs">
<img alt="logo" style="height: 120px" src="assets/images/logo/AO.png"/>

<p>Connectez-vous avec votre compte <span class="store">Microsoft</span> pour vous connecter au launcher.</p>
<p>Vos données de connexion restent sur votre ordinateur, elles ne sont pas partagées.</p>
<div class="login-type">
Expand Down
1 change: 1 addition & 0 deletions src/panels/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</div>
</div>


<div id="java-tab" class="container-settings content-scroll">
<div class="titre-tab">Paramètre de votre RAM</div>
<div class="settings-elements-box">
Expand Down

0 comments on commit 9a0ab87

Please sign in to comment.