/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/engine/local-console.tsx
19 строк
656 B
chrisnojima
build(mobile): harden gobuild.sh and go bind pipeline 2 (#29364)
08 июл 2026, 15:25
Не верифицирован
08 июл 2026, 15:25
19b55b3
Код
Авторство
О чём код?
const localLog = console.log.bind(console) export const green = ( shortLabel: string, longerMessage?: string, optionalSuffix?: string, ...rest: Array<unknown> ) => localLog( `%c%s%c%s%c%s%c`, 'background-color: #388E3C; color: #fff; padding: 2px 4px; font-weight: bold;', shortLabel || '', 'background-color: #A5D6A7; color: #000; padding: 2px 4px;', longerMessage || '', optionalSuffix ? 'background-color: #388E3C; color: #fff; padding: 2px 4px; font-weight: bold;' : '', optionalSuffix || '', 'background-color: white; color: black; padding: 2px 4px; font-weight: normal; font-style: italic;', ...rest )