@@ -1035,6 +1025,13 @@
//Create an object from the form data entries
let formDataObject = Object.fromEntries(formData.entries());
console.log(formDataObject);
+ var checkedRadio = $('.root-input:checked');
+ let zip_root_path = ""
+ if (checkedRadio.length > 0) {
+ // Get the value of the checked radio button
+ var checkedValue = checkedRadio.val();
+ zip_root_path = checkedValue; // Return the checked value if needed
+ }
let send_data = {
"name": formDataObject.name,
"roles": calcRoles(),
@@ -1047,7 +1044,7 @@
"minecraft_java_create_data": {
"create_type": "import_server",
"import_server_create_data": {
- "existing_server_path": formDataObject.root_path,
+ "existing_server_path": zip_root_path,
"jarfile": formDataObject.server_jar,
"mem_min": formDataObject.mem_min,
"mem_max": formDataObject.mem_max,
@@ -1071,6 +1068,13 @@
//Create an object from the form data entries
let formDataObject = Object.fromEntries(formData.entries());
console.log(formDataObject);
+ var checkedRadio = $('.root-input:checked');
+ let zip_root_path = ""
+ if (checkedRadio.length > 0) {
+ // Get the value of the checked radio button
+ var checkedValue = checkedRadio.val();
+ zip_root_path = checkedValue; // Return the checked value if needed
+ }
let send_data = {
"name": formDataObject.name,
"roles": calcRoles(),
@@ -1083,7 +1087,7 @@
"minecraft_java_create_data": {
"create_type": "import_server",
"import_server_create_data": {
- "existing_server_path": formDataObject.root_path,
+ "existing_server_path": zip_root_path,
"jarfile": formDataObject.server_jar,
"mem_min": formDataObject.mem_min,
"mem_max": formDataObject.mem_max,
diff --git a/app/translations/cs_CS.json b/app/translations/cs_CS.json
index 4d496e2a..839eabb9 100644
--- a/app/translations/cs_CS.json
+++ b/app/translations/cs_CS.json
@@ -619,7 +619,6 @@
"dashboard": "Ovládací panel",
"documentation": "Dokumentace",
"inApp": "V lokalní dokumentaci",
- "navigation": "Navigace",
"newServer": "Vytvořit nový server",
"servers": "Servery"
},
@@ -698,4 +697,4 @@
"webhook_body": "Webhook Body",
"webhooks": "Webhooky"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/de_DE.json b/app/translations/de_DE.json
index adeb7f4c..937db853 100644
--- a/app/translations/de_DE.json
+++ b/app/translations/de_DE.json
@@ -600,7 +600,6 @@
"dashboard": "Dashboard",
"documentation": "Dokumentation",
"inApp": "In-App-Dokumentation",
- "navigation": "Navigation",
"newServer": "Neuen Server erstellen",
"servers": "Server"
},
@@ -679,4 +678,4 @@
"webhook_body": "Webhook-Inhalt",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/en_EN.json b/app/translations/en_EN.json
index 38d1fc74..af6b1d36 100644
--- a/app/translations/en_EN.json
+++ b/app/translations/en_EN.json
@@ -596,7 +596,6 @@
"dashboard": "Dashboard",
"documentation": "Documentation",
"inApp": "In App Docs",
- "navigation": "Navigation",
"newServer": "Create New Server",
"servers": "Servers"
},
@@ -675,4 +674,4 @@
"webhook_body": "Webhook Body",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/es_ES.json b/app/translations/es_ES.json
index bc9f7adb..a0a079c5 100644
--- a/app/translations/es_ES.json
+++ b/app/translations/es_ES.json
@@ -600,7 +600,6 @@
"dashboard": "Panel de control",
"documentation": "Documentación",
"inApp": "Documentación de la Aplicación",
- "navigation": "Navegación",
"newServer": "Crear nuevo Servidor",
"servers": "Servidores"
},
@@ -679,4 +678,4 @@
"webhook_body": "Cuerpo del Webhook",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/fi_FI_incomplete.json b/app/translations/fi_FI_incomplete.json
index 8d6168a6..14a7d6dc 100644
--- a/app/translations/fi_FI_incomplete.json
+++ b/app/translations/fi_FI_incomplete.json
@@ -520,7 +520,6 @@
"credits": "Hyvitykset",
"dashboard": "Kojelauta",
"documentation": "Dokumentaatio",
- "navigation": "Navigaatio",
"newServer": "Luo uusi palvelin",
"servers": "Palvelimet"
},
diff --git a/app/translations/fr_FR.json b/app/translations/fr_FR.json
index 6e1e4ad5..092536ee 100644
--- a/app/translations/fr_FR.json
+++ b/app/translations/fr_FR.json
@@ -600,7 +600,6 @@
"dashboard": "Tableau de Bord",
"documentation": "Documentation",
"inApp": "Documentation Interne",
- "navigation": "Navigation",
"newServer": "Créer un Nouveau Serveur",
"servers": "Serveurs"
},
@@ -679,4 +678,4 @@
"webhook_body": "Corps du Webhook",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/fy_NL_incomplete.json b/app/translations/fy_NL_incomplete.json
index 6c5d76e8..54105eab 100644
--- a/app/translations/fy_NL_incomplete.json
+++ b/app/translations/fy_NL_incomplete.json
@@ -489,7 +489,6 @@
"credits": "Credits",
"dashboard": "Dashboard",
"documentation": "Dokumintaasje",
- "navigation": "Navigaasje",
"newServer": "Nije server oanmeitsje",
"servers": "Servers"
},
diff --git a/app/translations/he_IL.json b/app/translations/he_IL.json
index 865222cd..f3c45e40 100644
--- a/app/translations/he_IL.json
+++ b/app/translations/he_IL.json
@@ -184,6 +184,8 @@
"error": {
"agree": "מסכים",
"bedrockError": "הורדות Bedrock אינן זמינות. אנא בדוק",
+ "bigBucket1": "בדיקת הבריאות של Big Bucket נכשלה. אנא בדוק",
+ "bigBucket2": "כדי לקבל את המידע המעודכן ביותר.",
"cancel": "בטל",
"contact": "בבקשה צרו קשר עם תמיכת פאנל קראפטי באמצעות דיסקורד",
"craftyStatus": "דף המצב של Crafty",
@@ -206,6 +208,7 @@
"portReminder": "זיהינו שזו הפעם הראשונה ש-{} מופעל. הקפידו להעביר את היציאה {} דרך הנתב/חומת האש שלכם כדי להפוך אותה לנגישה מרחוק מהאינטרנט.",
"privMsg": "וה",
"return": "חזרה לפאנל",
+ "selfHost": "אם אתה מארח בעצמך את הריפו הזה, אנא בדוק את הכתובת שלך או התייעץ עם מדריך פתרון הבעיות שלנו.",
"serverJars1": "API של צנצנות השרת אינו נגיש. אנא בדוק",
"serverJars2": "למידע מעודכן ביותר.",
"start-error": "השרת {} לא הצליח להתחיל עם קוד שגיאה: {}",
@@ -597,12 +600,12 @@
"dashboard": "פאנל",
"documentation": "ויקיפדייה",
"inApp": "מסמכים באפליקציה",
- "navigation": "ניווט",
"newServer": "צור שרת חדש",
"servers": "שרתים"
},
"startup": {
"almost": "מסיימים. תחזיקו חזק...",
+ "cache": "מרענן את קובץ המטמון של Big Bucket",
"internals": "הגדרה והפעלה של הרכיבים הפנימיים של Crafty",
"internet": "בודק את חיבור האינטרנט",
"server": "אתחול ",
@@ -675,4 +678,4 @@
"webhook_body": "גוף ה-Webhook",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/hr_HR_incomplete.json b/app/translations/hr_HR_incomplete.json
index 392ee098..975741e7 100644
--- a/app/translations/hr_HR_incomplete.json
+++ b/app/translations/hr_HR_incomplete.json
@@ -489,7 +489,6 @@
"credits": "Zasluge",
"dashboard": "Upravljačka ploča",
"documentation": "Dokumentacija",
- "navigation": "Navigacija",
"newServer": "Stvorite novi poslužitelj",
"servers": "Poslužitelji"
},
diff --git a/app/translations/id_ID_incomplete.json b/app/translations/id_ID_incomplete.json
index c2e8813d..c7a1fb6f 100644
--- a/app/translations/id_ID_incomplete.json
+++ b/app/translations/id_ID_incomplete.json
@@ -496,7 +496,6 @@
"credits": "Kredit",
"dashboard": "Dasbor",
"documentation": "Documentasi",
- "navigation": "Navigasi",
"newServer": "Membuat Server Baru",
"servers": "Server"
},
diff --git a/app/translations/it_IT.json b/app/translations/it_IT.json
index 84b7e39a..7aec26b3 100644
--- a/app/translations/it_IT.json
+++ b/app/translations/it_IT.json
@@ -600,7 +600,6 @@
"dashboard": "Pannello di controllo",
"documentation": "Documentazione",
"inApp": "Documenti in app",
- "navigation": "Navigazione",
"newServer": "Crea un Nuovo Server",
"servers": "Servers"
},
@@ -679,4 +678,4 @@
"webhook_body": "Corpo del Webhook",
"webhooks": "Webhook"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/lol_EN.json b/app/translations/lol_EN.json
index 387be725..282ffb36 100644
--- a/app/translations/lol_EN.json
+++ b/app/translations/lol_EN.json
@@ -600,7 +600,6 @@
"dashboard": "DASHBORD",
"documentation": "DOCUMENTASHUN",
"inApp": "IN APPZ DOCS",
- "navigation": "NAVIGASHUN",
"newServer": "CONSTWUCT A SERVR",
"servers": "SERVRS"
},
@@ -679,4 +678,4 @@
"webhook_body": "WEBHOOK FISH",
"webhooks": "WEBHOOKZ"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/lv_LV.json b/app/translations/lv_LV.json
index a80fee2d..6e1f1397 100644
--- a/app/translations/lv_LV.json
+++ b/app/translations/lv_LV.json
@@ -601,7 +601,6 @@
"dashboard": "Panelis",
"documentation": "Dokumentācija",
"inApp": "Iebūvētā dokumentācija",
- "navigation": "Navigācija",
"newServer": "Izveidot Jaunu Serveri",
"servers": "Serveri"
},
@@ -680,4 +679,4 @@
"webhook_body": "Webhook Saturs",
"webhooks": "Webhooki"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/nl_BE.json b/app/translations/nl_BE.json
index a29287cb..0abef0b4 100644
--- a/app/translations/nl_BE.json
+++ b/app/translations/nl_BE.json
@@ -600,7 +600,6 @@
"dashboard": "Dashboard",
"documentation": "Documentatie",
"inApp": "In-app documentatie",
- "navigation": "Navigatie",
"newServer": "Nieuwe server maken",
"servers": "Servers"
},
@@ -679,4 +678,4 @@
"webhook_body": "Webhook-body",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/nl_NL_incomplete.json b/app/translations/nl_NL_incomplete.json
index 1d158594..53db0def 100644
--- a/app/translations/nl_NL_incomplete.json
+++ b/app/translations/nl_NL_incomplete.json
@@ -489,7 +489,6 @@
"credits": "Credits",
"dashboard": "Dashboard",
"documentation": "Documentatie",
- "navigation": "Navigatie",
"newServer": "Nieuwe server maken",
"servers": "Servers"
},
diff --git a/app/translations/pl_PL.json b/app/translations/pl_PL.json
index fdb3d892..7385db3f 100644
--- a/app/translations/pl_PL.json
+++ b/app/translations/pl_PL.json
@@ -599,7 +599,6 @@
"dashboard": "Panel",
"documentation": "Dokumentacja",
"inApp": "Dokumentacja w Aplikacji",
- "navigation": "Nawigacja",
"newServer": "Stwórz nowy serwer",
"servers": "Serwery"
},
@@ -678,4 +677,4 @@
"webhook_body": "Treść Webhooka",
"webhooks": "Webhooki"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/pt_BR_incomplete.json b/app/translations/pt_BR_incomplete.json
index dcd375f6..037c1aac 100644
--- a/app/translations/pt_BR_incomplete.json
+++ b/app/translations/pt_BR_incomplete.json
@@ -497,7 +497,6 @@
"credits": "Créditos",
"dashboard": "Painel de Controle",
"documentation": "Documentação",
- "navigation": "Navegação",
"newServer": "Criar Novo Servidor",
"servers": "Servidores"
},
diff --git a/app/translations/th_TH.json b/app/translations/th_TH.json
index 8c9d014e..12c24fa7 100644
--- a/app/translations/th_TH.json
+++ b/app/translations/th_TH.json
@@ -184,6 +184,8 @@
"error": {
"agree": "ยอมรับ",
"bedrockError": "การดาวน์โหลดเวอร์ชั่น Bedrock ไม่พร้อมใช้งาน โปรดตรวจสอบ",
+ "bigBucket1": "การตรวจสอบสุขภาพ Big Bucket ล้มเหลว โปรดตรวจสอบ",
+ "bigBucket2": "สำหรับข้อมูลล่าสุด",
"cancel": "ยกเลิก",
"contact": "ติดต่อฝ่ายสนับสนุน Crafty Control ผ่านดิสคอร์ด",
"craftyStatus": "หน้าสถานะของ Crafty",
@@ -206,6 +208,7 @@
"portReminder": "เราตรวจพบว่านี่เป็นครั้งแรกที่มีการเรียกใช้ {} ตรวจสอบให้แน่ใจว่าได้ Forward port {} ผ่านเราเตอร์/ไฟร์วอลล์ของคุณเพื่อให้สามารถเข้าถึงได้จากอินเทอร์เน็ตจากระยะไกล",
"privMsg": "และ ",
"return": "ย้อนกลับไปยังแผงควบคุม",
+ "selfHost": "หากคุณโฮสต์ repo นี้ด้วยตนเอง โปรดตรวจสอบที่อยู่ของคุณ หรือศึกษาคู่มือแก้ปัญหาของเรา",
"serverJars1": "ไม่สามารถเข้าถึงเซิร์ฟเวอร์ JARs API กรุณาตรวจสอบ",
"serverJars2": "เพื่อข้อมูลที่ทันสมัยที่สุด",
"start-error": "เซิร์ฟเวอร์ {} ไม่สามารถเริ่มต้นได้เนื่องจากรหัสข้อผิดพลาด: {}",
@@ -596,12 +599,12 @@
"dashboard": "แผงควบคุม",
"documentation": "เอกสารประกอบ",
"inApp": "เอกสารประกอบภายในแอป",
- "navigation": "เมนูนำทาง",
"newServer": "สร้างเซิร์ฟเวอร์ใหม่",
"servers": "เซิร์ฟเวอร์"
},
"startup": {
"almost": "เสร็จสิ้นการทำงาน. รอซักครู่...",
+ "cache": "กำลังรีเฟรชไฟล์แคช Big Bucket",
"internals": "กำหนดค่าและเริ่มการทำงานภายในของ Crafty",
"internet": "กำลังตรวจสอบการเชื่อมต่ออินเทอร์เน็ต",
"server": "กำลังเริ่มต้นการทำงาน ",
@@ -674,4 +677,4 @@
"webhook_body": "ภายใน Webhook",
"webhooks": "Webhooks"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/tr_TR.json b/app/translations/tr_TR.json
index c05c6d66..709f9e43 100644
--- a/app/translations/tr_TR.json
+++ b/app/translations/tr_TR.json
@@ -599,7 +599,6 @@
"dashboard": "Arayüz",
"documentation": "Dokümantasyon",
"inApp": "Uygulama İçi Dokümanlar",
- "navigation": "Navigasyon",
"newServer": "Yeni Sunucu Oluştur",
"servers": "Sunucular"
},
@@ -678,4 +677,4 @@
"webhook_body": "Webhook Gövdesi",
"webhooks": "Webhooklar"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/uk_UA.json b/app/translations/uk_UA.json
index ed614e59..792b6f56 100644
--- a/app/translations/uk_UA.json
+++ b/app/translations/uk_UA.json
@@ -599,7 +599,6 @@
"dashboard": "Панель",
"documentation": "Документація",
"inApp": "Швидка документація",
- "navigation": "Навігація",
"newServer": "Створити новий сервер",
"servers": "Сервери"
},
@@ -678,4 +677,4 @@
"webhook_body": "Код Вебхука",
"webhooks": "Вебхуки"
}
-}
+}
\ No newline at end of file
diff --git a/app/translations/zh_CN.json b/app/translations/zh_CN.json
index 6b488382..95e71d70 100644
--- a/app/translations/zh_CN.json
+++ b/app/translations/zh_CN.json
@@ -600,7 +600,6 @@
"dashboard": "仪表板",
"documentation": "文档",
"inApp": "内置文档",
- "navigation": "导航栏",
"newServer": "创建新服务器",
"servers": "服务器"
},
@@ -679,4 +678,4 @@
"webhook_body": "Webhook 消息体(Body)",
"webhooks": "Webhook"
}
-}
+}
\ No newline at end of file
diff --git a/main.py b/main.py
index fd84328b..617fe5f4 100644
--- a/main.py
+++ b/main.py
@@ -367,7 +367,15 @@ if __name__ == "__main__":
encoding="utf-8",
) as cred_file:
cred_file.write(
- json.dumps({"username": "admin", "password": PASSWORD}, indent=4)
+ json.dumps(
+ {
+ "username": "admin",
+ "password": PASSWORD,
+ "info": "This is NOT where you change your password."
+ " This file is only a means to give you a default password.",
+ },
+ indent=4,
+ )
)
os.chmod(
os.path.join(APPLICATION_PATH, "app", "config", "default-creds.txt"), 0o600