Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 2e8d731

Browse files
committed
feat: update version to 1.1.1 and improve instance selection feedback in home panel
1 parent 45b7490 commit 2e8d731

5 files changed

Lines changed: 206 additions & 210 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "MultiGames-Studio-Launcher",
33
"preductname": "MultiGames Studio Launcher",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "Launcher Mincraft pour le serveur MultiGames-Studio",
66
"main": "src/app.js",
77
"author": {

src/assets/css/output.css

Lines changed: 6 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
--color-red-50: oklch(97.1% 0.013 17.38);
1111
--color-red-200: oklch(88.5% 0.062 18.334);
1212
--color-red-300: oklch(80.8% 0.114 19.571);
13-
--color-red-400: oklch(70.4% 0.191 22.216);
1413
--color-red-500: oklch(63.7% 0.237 25.331);
1514
--color-red-600: oklch(57.7% 0.245 27.325);
1615
--color-red-700: oklch(50.5% 0.213 27.518);
@@ -19,15 +18,8 @@
1918
--color-green-400: oklch(79.2% 0.209 151.711);
2019
--color-green-500: oklch(72.3% 0.219 149.579);
2120
--color-green-700: oklch(52.7% 0.154 150.069);
22-
--color-blue-100: oklch(93.2% 0.032 255.585);
23-
--color-blue-200: oklch(88.2% 0.059 254.128);
24-
--color-blue-300: oklch(80.9% 0.105 251.813);
25-
--color-blue-400: oklch(70.7% 0.165 254.624);
2621
--color-blue-500: oklch(62.3% 0.214 259.815);
27-
--color-blue-600: oklch(54.6% 0.245 262.881);
2822
--color-blue-700: oklch(48.8% 0.243 264.376);
29-
--color-blue-800: oklch(42.4% 0.199 265.638);
30-
--color-blue-900: oklch(37.9% 0.146 265.522);
3123
--color-gray-50: oklch(98.5% 0.002 247.839);
3224
--color-gray-100: oklch(96.7% 0.003 264.542);
3325
--color-gray-200: oklch(92.8% 0.006 264.531);
@@ -37,14 +29,11 @@
3729
--color-gray-600: oklch(44.6% 0.03 256.802);
3830
--color-gray-700: oklch(37.3% 0.034 259.733);
3931
--color-gray-800: oklch(27.8% 0.033 256.848);
40-
--color-gray-900: oklch(21% 0.034 264.665);
4132
--color-black: #000;
4233
--color-white: #fff;
4334
--spacing: 0.25rem;
44-
--container-xs: 20rem;
4535
--container-md: 28rem;
4636
--container-lg: 32rem;
47-
--container-xl: 36rem;
4837
--container-2xl: 42rem;
4938
--container-3xl: 48rem;
5039
--container-4xl: 56rem;
@@ -78,17 +67,14 @@
7867
--font-weight-semibold: 600;
7968
--font-weight-bold: 700;
8069
--font-weight-extrabold: 800;
81-
--tracking-tight: -0.025em;
8270
--tracking-wide: 0.025em;
8371
--tracking-widest: 0.1em;
8472
--leading-relaxed: 1.625;
85-
--radius-md: 0.375rem;
8673
--radius-lg: 0.5rem;
8774
--radius-xl: 0.75rem;
8875
--radius-2xl: 1rem;
8976
--radius-3xl: 1.5rem;
9077
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
91-
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
9278
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
9379
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
9480
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
@@ -272,9 +258,6 @@
272258
.inset-y-0 {
273259
inset-block: calc(var(--spacing) * 0);
274260
}
275-
.-top-2 {
276-
top: calc(var(--spacing) * -2);
277-
}
278261
.-top-2\.5 {
279262
top: calc(var(--spacing) * -2.5);
280263
}
@@ -314,9 +297,6 @@
314297
.bottom-0 {
315298
bottom: calc(var(--spacing) * 0);
316299
}
317-
.bottom-1 {
318-
bottom: calc(var(--spacing) * 1);
319-
}
320300
.bottom-1\/3 {
321301
bottom: calc(1/3 * 100%);
322302
}
@@ -332,9 +312,6 @@
332312
.left-0 {
333313
left: calc(var(--spacing) * 0);
334314
}
335-
.left-1 {
336-
left: calc(var(--spacing) * 1);
337-
}
338315
.left-1\/2 {
339316
left: calc(1/2 * 100%);
340317
}
@@ -509,6 +486,9 @@
509486
.h-14 {
510487
height: calc(var(--spacing) * 14);
511488
}
489+
.h-15 {
490+
height: calc(var(--spacing) * 15);
491+
}
512492
.h-16 {
513493
height: calc(var(--spacing) * 16);
514494
}
@@ -518,9 +498,6 @@
518498
.h-24 {
519499
height: calc(var(--spacing) * 24);
520500
}
521-
.h-28 {
522-
height: calc(var(--spacing) * 28);
523-
}
524501
.h-32 {
525502
height: calc(var(--spacing) * 32);
526503
}
@@ -533,9 +510,6 @@
533510
.h-64 {
534511
height: calc(var(--spacing) * 64);
535512
}
536-
.h-72 {
537-
height: calc(var(--spacing) * 72);
538-
}
539513
.h-96 {
540514
height: calc(var(--spacing) * 96);
541515
}
@@ -554,9 +528,6 @@
554528
.min-h-screen {
555529
min-height: 100vh;
556530
}
557-
.w-1 {
558-
width: calc(var(--spacing) * 1);
559-
}
560531
.w-1\/2 {
561532
width: calc(1/2 * 100%);
562533
}
@@ -587,6 +558,9 @@
587558
.w-12 {
588559
width: calc(var(--spacing) * 12);
589560
}
561+
.w-15 {
562+
width: calc(var(--spacing) * 15);
563+
}
590564
.w-16 {
591565
width: calc(var(--spacing) * 16);
592566
}
@@ -596,9 +570,6 @@
596570
.w-24 {
597571
width: calc(var(--spacing) * 24);
598572
}
599-
.w-28 {
600-
width: calc(var(--spacing) * 28);
601-
}
602573
.w-32 {
603574
width: calc(var(--spacing) * 32);
604575
}
@@ -611,9 +582,6 @@
611582
.w-64 {
612583
width: calc(var(--spacing) * 64);
613584
}
614-
.w-72 {
615-
width: calc(var(--spacing) * 72);
616-
}
617585
.w-96 {
618586
width: calc(var(--spacing) * 96);
619587
}
@@ -650,19 +618,9 @@
650618
.flex-1 {
651619
flex: 1;
652620
}
653-
.flex-shrink {
654-
flex-shrink: 1;
655-
}
656621
.flex-shrink-0 {
657622
flex-shrink: 0;
658623
}
659-
.border-collapse {
660-
border-collapse: collapse;
661-
}
662-
.-translate-x-1 {
663-
--tw-translate-x: calc(var(--spacing) * -1);
664-
translate: var(--tw-translate-x) var(--tw-translate-y);
665-
}
666624
.-translate-x-1\/2 {
667625
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
668626
translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -703,9 +661,6 @@
703661
.cursor-pointer {
704662
cursor: pointer;
705663
}
706-
.resize {
707-
resize: both;
708-
}
709664
.appearance-none {
710665
appearance: none;
711666
}
@@ -1073,11 +1028,6 @@
10731028
--tw-gradient-from: var(--color-white);
10741029
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
10751030
}
1076-
.via-\[\#3A1A1C\] {
1077-
--tw-gradient-via: #3A1A1C;
1078-
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
1079-
--tw-gradient-stops: var(--tw-gradient-via-stops);
1080-
}
10811031
.via-\[\#5a2529\] {
10821032
--tw-gradient-via: #5a2529;
10831033
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
@@ -1331,9 +1281,6 @@
13311281
.text-\[\#F8BA59\] {
13321282
color: #F8BA59;
13331283
}
1334-
.text-\[\#F8BA59\]\/70 {
1335-
color: color-mix(in oklab, #F8BA59 70%, transparent);
1336-
}
13371284
.text-gray-100 {
13381285
color: var(--color-gray-100);
13391286
}
@@ -1460,10 +1407,6 @@
14601407
.ring-\[\#F8BA59\]\/20 {
14611408
--tw-ring-color: color-mix(in oklab, #F8BA59 20%, transparent);
14621409
}
1463-
.outline {
1464-
outline-style: var(--tw-outline-style);
1465-
outline-width: 1px;
1466-
}
14671410
.blur {
14681411
--tw-blur: blur(8px);
14691412
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
@@ -2047,11 +1990,6 @@
20471990
background-color: #232021;
20481991
}
20491992
}
2050-
.dark\:bg-\[\#232021\]\/90 {
2051-
@media (prefers-color-scheme: dark) {
2052-
background-color: color-mix(in oklab, #232021 90%, transparent);
2053-
}
2054-
}
20551993
.dark\:text-\[\#F8BA59\] {
20561994
@media (prefers-color-scheme: dark) {
20571995
color: #F8BA59;
@@ -2247,11 +2185,6 @@
22472185
inherits: false;
22482186
initial-value: 0 0 #0000;
22492187
}
2250-
@property --tw-outline-style {
2251-
syntax: "*";
2252-
inherits: false;
2253-
initial-value: solid;
2254-
}
22552188
@property --tw-blur {
22562189
syntax: "*";
22572190
inherits: false;
@@ -2397,7 +2330,6 @@
23972330
--tw-ring-offset-width: 0px;
23982331
--tw-ring-offset-color: #fff;
23992332
--tw-ring-offset-shadow: 0 0 #0000;
2400-
--tw-outline-style: solid;
24012333
--tw-blur: initial;
24022334
--tw-brightness: initial;
24032335
--tw-contrast: initial;

src/assets/js/panels/home.js

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,24 @@ class Home {
433433
let instance = instancesObj[selectedKey];
434434
if (!instance) return;
435435

436-
document.querySelector('.server-title').textContent = instance.displayName || instance.name || "PALADIUM";
437-
document.querySelector('.server-desc').innerHTML = instance.description || "Aucune description.";
438-
document.querySelector('.server-version').textContent = instance.loadder?.minecraft_version || "1.21.4";
439-
document.querySelector('.server-loader').textContent = instance.loadder?.loadder_type || "Forge";
440-
document.querySelector('.server-status-name').textContent = instance.status?.name || "Multigames-Studio.fr";
441-
document.querySelector('.server-status-text').innerHTML =
442-
`${instance.status?.text || "Opérationnel"} • <span class="font-bold text-[#F8BA59] player-count">${instance.status?.players || 0}</span> joueurs`;
436+
437+
if (!instance) {
438+
document.querySelector('.server-title').textContent = "Veuillez sélectionner une instance";
439+
document.querySelector('.server-desc').innerHTML = "";
440+
document.querySelector('.server-version').textContent = "";
441+
document.querySelector('.server-loader').textContent = "";
442+
document.querySelector('.server-status-name').textContent = "";
443+
document.querySelector('.server-status-text').innerHTML = "";
444+
return;
445+
}
446+
447+
document.querySelector('.server-title').textContent = instance.displayName || instance.name || "PALADIUM";
448+
document.querySelector('.server-desc').innerHTML = instance.description || "Aucune description.";
449+
document.querySelector('.server-version').textContent = instance.loadder?.minecraft_version || "1.21.4";
450+
document.querySelector('.server-loader').textContent = instance.loadder?.loadder_type || "Forge";
451+
document.querySelector('.server-status-name').textContent = instance.status?.name || "Multigames-Studio.fr";
452+
document.querySelector('.server-status-text').innerHTML =
453+
`${instance.status?.text || "Opérationnel"} • <span class="font-bold text-[#F8BA59] player-count">${instance.status?.players || 0}</span> joueurs`;
443454
}
444455

445456
getdate(e) {

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<!-- Texte bas de page -->
4141
<div class="absolute bottom-8 left-0 w-full flex flex-col items-center">
4242
<div class="text-white/80 text-base font-mojang text-center mb-1 font-bold uppercase">MULTIGAMES STUDIO 2025</div>
43-
<div class="text-white text-base font-mojang text-center font-bold uppercase">TÉLÉCHARGEMENT DE JAVA</div>
43+
4444
</div>
4545
</div>
4646
<script src="assets/js/index.js" type="module"></script>

0 commit comments

Comments
 (0)