diff --git a/setup.mjs b/setup.mjs index 71b0cea..da2a2c5 100644 --- a/setup.mjs +++ b/setup.mjs @@ -84,32 +84,36 @@ function abort(msg) { const logoLines = [ ".............................+@@@@@@@@@@=.............................", - ".............................#@@@@@@@@@@-.............................", ".............................@@@@@@@@@@@:.............................", - "....................@@%:.....@@@@@@@@@@%......:@@-....................", "...................+@@@@@@*-:@@@@@@@@@@%...=@@@@@@-...................", - "..................:@@@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@:..................", "..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%..................", - ".................#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................", "................=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+................", - "................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+:....................", "...................-=+%@@@@@@@@@@@@@@@@@@@@@*:........................", - "........................:@@@@@@@@@@@@@@@@@@@@%........................", ".......................#@@@@@@@@@@@@@@@@@@@@@@@+......................", - ".....................-@@@@@@@@@@@@@@@@@@@@@@@@@@@+....................", "....................%@@@@@@@@@@@@@%#@@@@@@@@@@@@*.....................", - "..................-@@@@@@@@@@@@@@=..:@@@@@@@@@@-......................", "....................+@@@@@@@@@@@......*@@@@@@#........................", - ".......................#@@@@@@*........:@@@@-.........................", ".........................:#@@=...........+#...........................", ]; +const nameLines = [ + " ___ __ __ _ _ ", + " / _ \\ _ __ ___ _ __ | \\/ | ___ _ __ ___| |_(_)___ ", + " | | | | '_ \\ / _ \\ '_ \\| |\\/| |/ _ \\| '_ \\ / _ \\ __| / __|", + " | |_| | |_) | __/ | | | | | | (_) | | | | __/ |_| \\__ \\", + " \\___/| .__/ \\___|_| |_|_| |_|\\___/|_| |_|\\___|\\__|_|___/", + " |_| ", +]; + +const nameStart = Math.floor((logoLines.length - nameLines.length) / 2); + console.log(); -for (const line of logoLines) { - console.log(c.orange + line.replaceAll(".", " ") + c.reset); +for (let i = 0; i < logoLines.length; i++) { + const logoCol = c.orange + logoLines[i].replaceAll(".", " ").substring(14, 56).padEnd(42) + c.reset; + const nameIdx = i - nameStart; + const nameCol = nameIdx >= 0 && nameIdx < nameLines.length ? nameLines[nameIdx] : ""; + console.log(logoCol + " " + nameCol); } -console.log(`\n${" ".repeat(29)}${c.bold}OpenMonetis${c.reset}`); -console.log(`${" ".repeat(19)}${c.dim}Gestão financeira · self-hosted${c.reset}\n`); +console.log(`\n${" ".repeat(46)}${c.dim}Gestão financeira · self-hosted${c.reset}\n`); // ─── ETAPA 1: Verificações do sistema ────────────────────────────────────────