Add no whitelist page

This commit is contained in:
2026-03-22 17:11:03 +01:00
parent 5b7ef4c951
commit 7ecd952f08
8 changed files with 542 additions and 55 deletions

View File

@@ -7,7 +7,7 @@ from PySide6.QtGui import QColor
# ---------------------------------------------------------------------------
NO_STAFF = True
NO_WHITELIST = False
NO_WHITELIST = True
REDIRECT_URI = "http://localhost:5000/callback"
SCOPES = ["identify"]

View File

@@ -181151,6 +181151,119 @@ ill:#60C3AB;\x22 cx\
=\x22225.067\x22 cy=\x224\
43.733\x22 r=\x2211.73\
3\x22/>\x0d\x0a</svg>\
\x00\x00\x06\xe2\
<\
?xml version=\x221.\
0\x22 encoding=\x22utf\
-8\x22?><!-- Upload\
ed to: SVG Repo,\
www.svgrepo.com\
, Generator: SVG\
Repo Mixer Tool\
s -->\x0a<svg width\
=\x22800px\x22 height=\
\x22800px\x22 viewBox=\
\x220 0 16 16\x22 xmln\
s=\x22http://www.w3\
.org/2000/svg\x22>\x0d\
\x0a <path color\
=\x22#000000\x22 d=\x22M7\
.992 0A2.008 2.0\
08 0 0 0 6 2H5c-\
.657 0-1.178.06-\
1.617.225-.439.1\
64-.79.461-.998.\
838-.415.752-.37\
1.673-.385 2.93\
1v5.012c.015 1.2\
58-.03 2.179.385\
2.932.208.376.5\
6.673.998.838.43\
9.164.96.224 1.6\
17.224h3.762a4.5\
4.5 0 0 1-.498-\
1H5c-.592 0-1.00\
5-.063-1.265-.16\
-.26-.098-.372-.\
203-.473-.387C3.\
06 13.087 3.015 \
12.259 3 11V6c.0\
15-1.259.06-2.08\
7.262-2.453.101-\
.184.213-.29.473\
-.387C3.995 3.06\
2 4.408 3 5 3v.9\
99h6V3c.593 0 1.\
006.063 1.266.16\
.26.098.371.203.\
473.387.201.366.\
247 1.194.261 2.\
453v2.031a4.5 4.\
5 0 0 1 1 .233v-\
2.27c-.015-1.258\
.031-2.179-.385-\
2.932a1.88 1.88 \
0 0 0-.998-.837C\
12.179 2.06 11.6\
57 2 11 2H9.996a\
2.008 2.008 0 0 \
0-1.992-2zm.01 1\
c.559 0 1 .442 1\
1a.99.99 0 0 1-\
1 1 .982.982 0 0\
1-.922-.61A1.01\
1.01 0 0 1 7.00\
3 2c0-.558.441-1\
1-1zM5 6v1h6.01\
2V6zm0 2v1h4.674\
a4.5 4.5 0 0 1 1\
.338-.74V8zm-.01\
2v1h3v-1z\x22 fill\
=\x22gray\x22 font-fam\
ily=\x22sans-serif\x22\
font-weight=\x2240\
0\x22 overflow=\x22vis\
ible\x22 style=\x22lin\
e-height:normal;\
text-indent:0;te\
xt-align:start;t\
ext-decoration-l\
ine:none;text-de\
coration-style:s\
olid;text-decora\
tion-color:#0000\
00;text-transfor\
m:none;isolation\
:auto;mix-blend-\
mode:normal;mark\
er:none\x22 white-s\
pace=\x22normal\x22/>\x0d\
\x0a <path class\
=\x22error\x22 color=\x22\
#000000\x22 d=\x22M12.\
5 9A3.5 3.5 0 0 \
0 9 12.5a3.5 3.5\
0 0 0 3.5 3.5 3\
.5 3.5 0 0 0 3.5\
-3.5A3.5 3.5 0 0\
0 12.5 9zm-.5 1\
h1v1.168c0 .348-\
.016.667-.047.95\
7-.03.29-.069.58\
1-.115.875h-.666\
a12.898 12.898 0\
0 1-.125-.875 9\
.146 9.146 0 0 1\
-.047-.957zm.5 4\
a.5.5 0 0 1 .5.5\
.5.5 0 0 1-.5.5.\
5.5 0 0 1-.5-.5.\
5.5 0 0 1 .5-.5z\
\x22 fill=\x22#f22c42\x22\
overflow=\x22visib\
le\x22 style=\x22marke\
r:none\x22/>\x0d\x0a</svg\
>\
"
qt_resource_name = b"\
@@ -181217,12 +181330,16 @@ qt_resource_name = b"\
\x0cA\xab\xe7\
\x00c\
\x00o\x00m\x00p\x00u\x00t\x00e\x00r\x00-\x00t\x00v\x00.\x00s\x00v\x00g\
\x00\x10\
\x0b[_\x07\
\x00n\
\x00o\x00_\x00w\x00h\x00i\x00t\x00e\x00l\x00i\x00s\x00t\x00.\x00s\x00v\x00g\
"
qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0d\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x0e\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x01\xba\x00\x00\x00\x00\x00\x01\x00+\xdd\xc1\
\x00\x00\x01\x9c\x0ft\xac\xa3\
@@ -181240,6 +181357,8 @@ qt_resource_struct = b"\
\x00\x00\x01\x9c\xd8\xa1X\x0f\
\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x01\x00(\xfb*\
\x00\x00\x01\x9c\xd9\xa2\xfa\xf9\
\x00\x00\x02\x0e\x00\x00\x00\x00\x00\x01\x00,7\xc6\
\x00\x00\x01\x9d\x16B\x01\xc7\
\x00\x00\x00\xb2\x00\x00\x00\x00\x00\x01\x00)\x83\x02\
\x00\x00\x01\x9c\xed\xb0@\xf2\
\x00\x00\x01\xea\x00\x00\x00\x00\x00\x01\x00,1\x15\

View File

@@ -35,6 +35,21 @@ class MainWindow(QMainWindow):
self.setWindowFlags(Qt.WindowType.FramelessWindowHint | Qt.WindowType.Window)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
self.ui.stackedWidget.setCurrentIndex(0)
if NO_WHITELIST:
self.ui.stackedWidget.setCurrentIndex(2)
# msg = CustomMessageBox(
# title="La Tanière: Non whitelisté",
# message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
# "Assure-toi de te faire whitelister.\n\n"
# "Lorsque cela sera fait, relance le launcher.",
# icon_type=CustomMessageBox.WARNING,
# buttons=CustomMessageBox.OK
# )
# msg.exec()
# quit_application()
# Test bouton en contruction
en_chantier = True
if en_chantier:
@@ -87,17 +102,6 @@ class MainWindow(QMainWindow):
self._center_window()
self.show()
if NO_WHITELIST:
msg = CustomMessageBox(
title="La Tanière: Non whitelisté",
message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
"Assure-toi de te faire whitelister.\n\n"
"Lorsque cela sera fait, relance le launcher.",
icon_type=CustomMessageBox.WARNING,
buttons=CustomMessageBox.OK
)
msg.exec()
quit_application()
# ------------------------------------------------------------------
# Setup