/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages-internal/core-docs/src/DocsApp/consoleBanner.ts
28 строк
986 B
Brijesh Bittu
[code-infra] Setup workflow to publish internal packages (#47952)
02 апр 2026, 19:42
Не верифицирован
02 апр 2026, 19:42
d7d328c
Код
Авторство
О чём код?
import { getTheme } from '../branding'; interface WindowWithTheme extends Window { theme?: ReturnType<typeof getTheme>; } declare const window: WindowWithTheme; export function printConsoleBanner(): void { if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') { window.theme = getTheme('ltr'); // eslint-disable-next-line no-console console.log( `%c ███╗ ███╗ ██╗ ██╗ ██████╗ ████╗ ████║ ██║ ██║ ██╔═╝ ██╔████╔██║ ██║ ██║ ██║ ██║╚██╔╝██║ ██║ ██║ ██║ ██║ ╚═╝ ██║ ╚██████╔╝ ██████╗ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ Tip: you can access the documentation \`theme\` object directly in the console. `, 'font-family:monospace;color:#1976d2;font-size:12px;', ); } }