@@ -1261,55 +1261,14 @@ function renderAccountLinks() {
12611261 </ div >
12621262 </ div >
12631263 < div class ="card " style ="margin-bottom:20px ">
1264- < h2 class ="card-title " style ="margin-bottom:8px "> Pterodactyl API Key</ h2 >
1265- < p style ="color:var(--text-secondary);font-size:0.85rem;line-height:1.6;margin-bottom:16px ">
1266- Add your Pterodactyl Client API key to enable live resource monitoring (CPU, RAM, Disk usage) directly in the dashboard.
1267- Generate one at < a href ="https://panel.zero-host.org/account/api " target ="_blank "> panel.zero-host.org/account/api</ a > .
1264+ < p style ="color:var(--text-secondary);font-size:0.85rem;line-height:1.6;margin:0 ">
1265+ Aucun système de liaison de comptes n'est activé pour le moment en raison de la complexité
1266+ à maintenir cela à la fois sur le dashboard et le panel Pyrodactyl. C'est pour cette raison
1267+ que nous avons retiré la création de compte et la connexion via Discord. Peut-être que cela
1268+ reviendra plus tard.
12681269 </ p >
1269- < form id ="api-key-form ">
1270- < div class ="api-key-input-group ">
1271- < input type ="password " id ="ptero-api-key-input " placeholder ="ptla_... " autocomplete ="off " />
1272- < button type ="submit " class ="btn btn-primary " id ="save-api-key-btn "> Save</ button >
1273- </ div >
1274- </ form >
1275- < div id ="api-key-status " style ="margin-top:8px;font-size:0.82rem;color:var(--text-muted) "> </ div >
12761270 </ div >
12771271 ` ;
1278-
1279- $ ( '#api-key-form' ) . addEventListener ( 'submit' , async ( e ) => {
1280- e . preventDefault ( ) ;
1281- const btn = $ ( '#save-api-key-btn' ) ;
1282- const input = $ ( '#ptero-api-key-input' ) ;
1283- const status = $ ( '#api-key-status' ) ;
1284- const key = input . value . trim ( ) ;
1285-
1286- if ( ! key ) {
1287- status . textContent = 'Please enter an API key.' ;
1288- status . style . color = 'var(--accent-red)' ;
1289- return ;
1290- }
1291-
1292- btn . disabled = true ;
1293- btn . innerHTML = '<span class="spinner"></span>' ;
1294- status . textContent = '' ;
1295-
1296- try {
1297- await api ( '/servers/client-api-key' , {
1298- method : 'PUT' ,
1299- body : JSON . stringify ( { apiKey : key } ) ,
1300- } ) ;
1301- status . textContent = 'API key saved successfully!' ;
1302- status . style . color = 'var(--accent-green)' ;
1303- input . value = '' ;
1304- showToast ( 'Pterodactyl API key saved' , 'success' ) ;
1305- } catch ( err ) {
1306- status . textContent = err . message ;
1307- status . style . color = 'var(--accent-red)' ;
1308- } finally {
1309- btn . disabled = false ;
1310- btn . innerHTML = 'Save' ;
1311- }
1312- } ) ;
13131272}
13141273
13151274async function handleChangeEmail ( e ) {
0 commit comments