2021-11-18 22:05:49 +05:30
import { s _ _ , sprintf } from '~/locale' ;
2021-11-11 11:23:49 +05:30
const HANDSHAKE = String . fromCodePoint ( 0x1f91d ) ;
const MAG = String . fromCodePoint ( 0x1f50e ) ;
2021-11-18 22:05:49 +05:30
const ROCKET = String . fromCodePoint ( 0x1f680 ) ;
2021-11-11 11:23:49 +05:30
export const logHello = ( ) => {
// eslint-disable-next-line no-console
console . log (
2021-11-18 22:05:49 +05:30
` %c ${ s _ _ ( 'HelloMessage|Welcome to GitLab!' ) } %c
2021-11-11 11:23:49 +05:30
2021-11-18 22:05:49 +05:30
$ { s _ _ (
'HelloMessage|Does this page need fixes or improvements? Open an issue or contribute a merge request to help make GitLab more lovable. At GitLab, everyone can contribute!' ,
) }
2021-11-11 11:23:49 +05:30
2021-11-18 22:05:49 +05:30
$ { sprintf ( s _ _ ( 'HelloMessage|%{handshake_emoji} Contribute to GitLab: %{contribute_link}' ) , {
handshake _emoji : ` ${ HANDSHAKE } ` ,
contribute _link : 'https://about.gitlab.com/community/contribute/' ,
} ) }
$ { sprintf ( s _ _ ( 'HelloMessage|%{magnifier_emoji} Create a new GitLab issue: %{new_issue_link}' ) , {
magnifier _emoji : ` ${ MAG } ` ,
new _issue _link : 'https://gitlab.com/gitlab-org/gitlab/-/issues/new' ,
} ) }
$ {
window . gon ? . dot _com
? ` ${ sprintf (
s _ _ (
'HelloMessage|%{rocket_emoji} We like your curiosity! Help us improve GitLab by joining the team: %{jobs_page_link}' ,
) ,
{ rocket _emoji : ` ${ ROCKET } ` , jobs _page _link : 'https://about.gitlab.com/jobs/' } ,
) } `
: ''
} ` ,
2021-11-11 11:23:49 +05:30
` padding-top: 0.5em; font-size: 2em; ` ,
'padding-bottom: 0.5em;' ,
) ;
} ;