Skip to content

Commit

Permalink
General: fix char color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Dec 8, 2024
1 parent e116a4e commit cb3151c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"batch_overallProgress": "Progresso geral: %VAR_0%% [%VAR_1% de %VAR_2%]",
"batch_updateCounter": "Atualizações: %VAR_0%",
"batch_errorCounter": "Erros: %VAR_0%",
"batch_elapsedTime": "Tempo decorrido: %VAR_0%%VAR_1%%VAR_2%",
"batch_elapsedTime": "Tempo decorrido: %VAR_0%",
"batchProcessList": "==> Processos ativos:",

"batchProcess": "%VAR_0% %VAR_1% Processo %VAR_2% - Progresso: %VAR_3%% [%VAR_4% de %VAR_5%] - Atualizações: %VAR_6%, Erros: %VAR_7%%VAR_8%",
Expand Down
2 changes: 1 addition & 1 deletion src/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export var langDatabase:any = {
"batch_overallProgress": "Overall Progress: %VAR_0%% [%VAR_1% of %VAR_2%]",
"batch_updateCounter": "Update counter: %VAR_0%",
"batch_errorCounter": "Error counter: %VAR_0%",
"batch_elapsedTime": "Elapsed time: %VAR_0%%VAR_1%%VAR_2%",
"batch_elapsedTime": "Elapsed time: %VAR_0%",
"batchProcessList": "==> Process list:",

"batchProcess": "%VAR_0% %VAR_1% Process %VAR_2% - Progress: %VAR_3%% [%VAR_4% of %VAR_5%] - Repos updated: %VAR_6%, Errors: %VAR_7%%VAR_8%",
Expand Down
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function processBatchResFiles(){

// Update entryChar if there is only one process and update elapsed time line
if (totalResFiles === 1) entryChar = '-->';
updateConsoleLine(0, 12, ` ├ ${grpp_convertLangVar(langDatabase.update.batch_elapsedTime, [consoleTextStyle.fgGreen, converMsToHHMMSS(parsePositive(performance.now() - startUpdateTime)), consoleTextStyle.reset])}`);
updateConsoleLine(0, 12, ` ├ ${grpp_convertLangVar(langDatabase.update.batch_elapsedTime, [converMsToHHMMSS(parsePositive(performance.now() - startUpdateTime))])}`);

// Check if process finished - if so, update checkbox char and update each process line
if (batchResData.currentRepo > (batchResData.totalRepos - 1)) checkboxChar = `[${consoleTextStyle.fgGreen}${consoleTextStyle.reset}]`;
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import { grppSettings } from './main';
import { grppRepoEntry } from './import';
import { grpp_convertLangVar, langDatabase } from './lang';
import { consoleClear, converMsToHHMMSS, convertArrayToString, createLogEntry, execReasonListCheck, trimString } from './tools';
import { consoleClear, consoleTextStyle, converMsToHHMMSS, createLogEntry, execReasonListCheck, trimString } from './tools';

/*
Require node modules
Expand Down Expand Up @@ -57,7 +57,7 @@ export function grpp_printStatus(){
*/
export function grpp_getLogoString(removeColors:boolean = !1):string {

var logo = `
var logo = `${consoleTextStyle.reset}
<=====================================================>
<=| Git Repo Preservation Project (GRPP) |=>
<=| Created by TheMitoSan (@themitosan.bsky.social) |=>
Expand Down

0 comments on commit cb3151c

Please sign in to comment.