Change Site-33 to Zone-Delta

This commit is contained in:
Furoxfufu 2023-03-28 20:27:22 +02:00
parent 4afd8f7e16
commit 6257638029
7 changed files with 20 additions and 18 deletions

View File

@ -1,7 +1,7 @@
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta charset="utf-8" http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-In6B8teKZQll5heMl9bS7CESTbGvuAt3VVV86BUQBDk='"/> <meta charset="utf-8" http-equiv="Content-Security-Policy" content="script-src 'self' 'sha256-In6B8teKZQll5heMl9bS7CESTbGvuAt3VVV86BUQBDk='"/>
<title>Site-33 Launcher</title> <title>Zone-Delta Launcher</title>
<script src="./assets/js/scripts/uicore.js"></script> <script src="./assets/js/scripts/uicore.js"></script>
<script src="./assets/js/scripts/uibinder.js"></script> <script src="./assets/js/scripts/uibinder.js"></script>
<link type="text/css" rel="stylesheet" href="./assets/css/launcher.css"> <link type="text/css" rel="stylesheet" href="./assets/css/launcher.css">

View File

@ -33,6 +33,8 @@ const log = LoggerUtil.getLogger('AuthManager')
* @returns {Promise.<Object>} Promise which resolves the resolved authenticated account object. * @returns {Promise.<Object>} Promise which resolves the resolved authenticated account object.
*/ */
exports.addMojangAccount = async function(email, password, a2f) { exports.addMojangAccount = async function(email, password, a2f) {
// Site pas encore dispo
//const auth = new azAuth.AuthClient('https://zone-delta.xyz')
const auth = new azAuth.AuthClient('https://site-33.net') const auth = new azAuth.AuthClient('https://site-33.net')
let result let result

View File

@ -543,9 +543,10 @@ let data = null
* @returns {Promise.<DistroIndex>} * @returns {Promise.<DistroIndex>}
*/ */
exports.pullRemote = function(){ exports.pullRemote = function(){
if(DEV_MODE){ //TODO Provisoire
/*if(DEV_MODE){
return exports.pullLocal() return exports.pullLocal()
} }*/
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const distroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' const distroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
//const distroURL = 'https://gist.githubusercontent.com/dscalzi/53b1ba7a11d26a5c353f9d5ae484b71b/raw/' //const distroURL = 'https://gist.githubusercontent.com/dscalzi/53b1ba7a11d26a5c353f9d5ae484b71b/raw/'

View File

@ -21,8 +21,7 @@ exports.MSFT_REPLY_TYPE = {
exports.MSFT_ERROR = { exports.MSFT_ERROR = {
ALREADY_OPEN: 'MSFT_AUTH_ERR_ALREADY_OPEN', ALREADY_OPEN: 'MSFT_AUTH_ERR_ALREADY_OPEN',
NOT_FINISHED: 'MSFT_AUTH_ERR_NOT_FINISHED' NOT_FINISHED: 'MSFT_AUTH_ERR_NOT_FINISHED'
} }*/
*/
exports.SHELL_OPCODE = { exports.SHELL_OPCODE = {
TRASH_ITEM: 'TRASH_ITEM' TRASH_ITEM: 'TRASH_ITEM'
} }

View File

@ -160,7 +160,7 @@ server_selection_button.onclick = (e) => {
} }
// Update Mojang Status Color // Update Mojang Status Color
const refreshMojangStatuses = async function(){ /*const refreshMojangStatuses = async function(){
loggerLanding.info('Refreshing Mojang Statuses..') loggerLanding.info('Refreshing Mojang Statuses..')
let status = 'grey' let status = 'grey'
@ -218,7 +218,7 @@ const refreshMojangStatuses = async function(){
document.getElementById('mojangStatusEssentialContainer').innerHTML = tooltipEssentialHTML document.getElementById('mojangStatusEssentialContainer').innerHTML = tooltipEssentialHTML
document.getElementById('mojangStatusNonEssentialContainer').innerHTML = tooltipNonEssentialHTML document.getElementById('mojangStatusNonEssentialContainer').innerHTML = tooltipNonEssentialHTML
document.getElementById('mojang_status_icon').style.color = MojangRestAPI.statusToHex(status) document.getElementById('mojang_status_icon').style.color = MojangRestAPI.statusToHex(status)
} }*/
const refreshServerStatus = async function(fade = false){ const refreshServerStatus = async function(fade = false){
loggerLanding.info('Refreshing Server Status') loggerLanding.info('Refreshing Server Status')
@ -251,11 +251,11 @@ const refreshServerStatus = async function(fade = false){
} }
refreshMojangStatuses() //refreshMojangStatuses()
// Server Status is refreshed in uibinder.js on distributionIndexDone. // Server Status is refreshed in uibinder.js on distributionIndexDone.
// Refresh statuses every hour. The status page itself refreshes every day so... // Refresh statuses every hour. The status page itself refreshes every day so...
let mojangStatusListener = setInterval(() => refreshMojangStatuses(true), 60*60*1000) //let mojangStatusListener = setInterval(() => refreshMojangStatuses(true), 60*60*1000)
// Set refresh rate to once every 5 minutes. // Set refresh rate to once every 5 minutes.
let serverStatusListener = setInterval(() => refreshServerStatus(true), 300000) let serverStatusListener = setInterval(() => refreshServerStatus(true), 300000)

View File

@ -57,10 +57,10 @@
<path d="M2.598.022h7.07L9.665 7c-.003 1.334-1.113 2.46-2.402 2.654H0V2.542C.134 1.2 1.3.195 2.598.022z" fill="#db2331" /> <path d="M2.598.022h7.07L9.665 7c-.003 1.334-1.113 2.46-2.402 2.654H0V2.542C.134 1.2 1.3.195 2.598.022z" fill="#db2331" />
<path d="M1.54 2.844c.314-.76 1.31-.46 1.954-.528.785-.083 1.503.272 2.1.758l.164-.9c.327.345.587.756.964 1.052.28.254.655-.342.86-.013.42.864.408 1.86.54 2.795l-.788-.373C6.9 4.17 5.126 3.052 3.656 3.685c-1.294.592-1.156 2.65.06 3.255 1.354.703 2.953.51 4.405.292-.07.42-.34.87-.834.816l-4.95.002c-.5.055-.886-.413-.838-.89l.04-4.315z" fill="#fff" /> <path d="M1.54 2.844c.314-.76 1.31-.46 1.954-.528.785-.083 1.503.272 2.1.758l.164-.9c.327.345.587.756.964 1.052.28.254.655-.342.86-.013.42.864.408 1.86.54 2.795l-.788-.373C6.9 4.17 5.126 3.052 3.656 3.685c-1.294.592-1.156 2.65.06 3.255 1.354.703 2.953.51 4.405.292-.07.42-.34.87-.834.816l-4.95.002c-.5.055-.886-.413-.838-.89l.04-4.315z" fill="#fff" />
</svg> </svg>
<span>Site</span> <span>Zone-Delta compte</span>
</div> </div>
<div class="settingsAuthAccountTypeHeaderRight"> <div class="settingsAuthAccountTypeHeaderRight">
<button class="settingsAddAuthAccount" id="settingsAddMojangAccount">+ Ajouter un compte Site-33</button> <button class="settingsAddAuthAccount" id="settingsAddMojangAccount">+ Ajouter un compte Zone-Delta</button>
</div> </div>
</div> </div>
@ -314,7 +314,7 @@
<div id="settingsAboutCurrentContent"> <div id="settingsAboutCurrentContent">
<div id="settingsAboutCurrentHeadline"> <div id="settingsAboutCurrentHeadline">
<img id="settingsAboutLogo" src="./assets/images/SealCircle.png"> <img id="settingsAboutLogo" src="./assets/images/SealCircle.png">
<span id="settingsAboutTitle">Site-33 Launcher</span> <span id="settingsAboutTitle">Zone-Delta Launcher</span>
</div> </div>
<div id="settingsAboutCurrentVersion"> <div id="settingsAboutCurrentVersion">
<div id="settingsAboutCurrentVersionCheck">&#10003;</div> <div id="settingsAboutCurrentVersionCheck">&#10003;</div>

View File

@ -1,13 +1,13 @@
{ {
"name": "Site-33-Launcher", "name": "Zone_Delta_Launcher",
"version": "0.0.2", "version": "0.0.2",
"productName": "Site-33-Launcher", "productName": "Zone_Delta_Launcher",
"description": "Modded Minecraft Launcher", "description": "Modded Minecraft Launcher",
"author": "Site-33 (Fork of Daniel Scalzi (https://github.com/dscalzi/))", "author": "Zone-Delta (Fork of Daniel Scalzi (https://github.com/dscalzi/))",
"license": "UNLICENSED", "license": "UNLICENSED",
"homepage": "https://github.com/project-site-33/Site-33-Launcher", "homepage": "https://github.com/project-site-33/Zone_Delta_Launcher",
"bugs": { "bugs": {
"url": "https://github.com/project-site-33/Site-33-Launcher/issues" "url": "https://github.com/project-site-33/Zone_Delta_Launcher/issues"
}, },
"private": true, "private": true,
"main": "index.js", "main": "index.js",