From 3476fda4db36f1d4ef47c8d50183624fc001b272 Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Sun, 29 Mar 2026 13:55:26 +0000 Subject: [PATCH] chore(setup): adicionar banner ASCII do logo e corrigir script db:extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Substitui o header simples pelo logo em ASCII art na cor primária (laranja) com nome e tagline centralizados. Corrige chamada db:enableExtensions → db:extensions após renomeio do script. Co-Authored-By: Claude Sonnet 4.6 --- setup.mjs | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/setup.mjs b/setup.mjs index ef77d8c..71b0cea 100644 --- a/setup.mjs +++ b/setup.mjs @@ -21,6 +21,7 @@ const c = { red: "\x1b[31m", yellow: "\x1b[33m", cyan: "\x1b[36m", + orange: "\x1b[38;5;214m", }; const sym = { @@ -81,10 +82,34 @@ function abort(msg) { // ─── Header ────────────────────────────────────────────────────────────────── -console.log(` -${c.bold}${c.cyan} OpenMonetis — Setup${c.reset} - ${c.dim}Gestão financeira self-hosted${c.reset} -`); +const logoLines = [ + ".............................+@@@@@@@@@@=.............................", + ".............................#@@@@@@@@@@-.............................", + ".............................@@@@@@@@@@@:.............................", + "....................@@%:.....@@@@@@@@@@%......:@@-....................", + "...................+@@@@@@*-:@@@@@@@@@@%...=@@@@@@-...................", + "..................:@@@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@:..................", + "..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%..................", + ".................#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................", + "................=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+................", + "................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+:....................", + "...................-=+%@@@@@@@@@@@@@@@@@@@@@*:........................", + "........................:@@@@@@@@@@@@@@@@@@@@%........................", + ".......................#@@@@@@@@@@@@@@@@@@@@@@@+......................", + ".....................-@@@@@@@@@@@@@@@@@@@@@@@@@@@+....................", + "....................%@@@@@@@@@@@@@%#@@@@@@@@@@@@*.....................", + "..................-@@@@@@@@@@@@@@=..:@@@@@@@@@@-......................", + "....................+@@@@@@@@@@@......*@@@@@@#........................", + ".......................#@@@@@@*........:@@@@-.........................", + ".........................:#@@=...........+#...........................", +]; + +console.log(); +for (const line of logoLines) { + console.log(c.orange + line.replaceAll(".", " ") + c.reset); +} +console.log(`\n${" ".repeat(29)}${c.bold}OpenMonetis${c.reset}`); +console.log(`${" ".repeat(19)}${c.dim}Gestão financeira · self-hosted${c.reset}\n`); // ─── ETAPA 1: Verificações do sistema ──────────────────────────────────────── @@ -329,7 +354,7 @@ if (useLocalDocker) { // Extensões s = spinner("Habilitando extensões do banco..."); try { - run("pnpm db:enableExtensions", { cwd: targetDir }); + run("pnpm db:extensions", { cwd: targetDir }); s.stop("Extensões habilitadas"); } catch { s.fail("Falha ao habilitar extensões");