mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Update SayHello
This commit is contained in:
parent
7179c7e770
commit
55ac359959
@ -6,7 +6,7 @@ import { ICommunicationManager } from './communication/ICommunicationManager';
|
|||||||
import { ConfigurationManager } from './configuration/ConfigurationManager';
|
import { ConfigurationManager } from './configuration/ConfigurationManager';
|
||||||
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
||||||
import { INitroCore } from './INitroCore';
|
import { INitroCore } from './INitroCore';
|
||||||
import { NitroVersion } from './NitroVersion';
|
import { SayHello } from './utils/SayHello';
|
||||||
|
|
||||||
export class NitroCore extends Disposable implements INitroCore
|
export class NitroCore extends Disposable implements INitroCore
|
||||||
{
|
{
|
||||||
@ -18,9 +18,7 @@ export class NitroCore extends Disposable implements INitroCore
|
|||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
|
|
||||||
window.console.log.apply(console, [
|
SayHello();
|
||||||
`\n%c _ ___ __ \n / | / (_) /__________ \n / |/ / / __/ ___/ __ \\ \n / /| / / /_/ / / /_/ / \n /_/ |_/_/\\__/_/ \\____/ \n \n Thanks for using Nitro \n To report bugs or issues \n join us on Discord \n https://nitrots.co/discord \n \n Renderer: v${ NitroVersion.RENDERER_VERSION } \n UI: v${ NitroVersion.UI_VERSION } \n \n`,
|
|
||||||
'color: #FFFFFF; background: #000000; padding:0px 0;' ]);
|
|
||||||
|
|
||||||
this._configuration = new ConfigurationManager();
|
this._configuration = new ConfigurationManager();
|
||||||
this._communication = new CommunicationManager();
|
this._communication = new CommunicationManager();
|
||||||
|
26
src/core/utils/SayHello.ts
Normal file
26
src/core/utils/SayHello.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { NitroVersion } from '..';
|
||||||
|
|
||||||
|
export const SayHello = () =>
|
||||||
|
{
|
||||||
|
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
|
||||||
|
{
|
||||||
|
const args = [
|
||||||
|
`\n %c %c %c Nitro ${ NitroVersion.UI_VERSION } - Renderer ${ NitroVersion.RENDERER_VERSION } %c %c %c https://nitrots.co/discord %c %c \n\n`,
|
||||||
|
'background: #ffffff; padding:5px 0;',
|
||||||
|
'background: #ffffff; padding:5px 0;',
|
||||||
|
'color: #ffffff; background: #000000; padding:5px 0;',
|
||||||
|
'background: #ffffff; padding:5px 0;',
|
||||||
|
'background: #ffffff; padding:5px 0;',
|
||||||
|
'background: #000000; padding:5px 0;',
|
||||||
|
'background: #ffffff; padding:5px 0;',
|
||||||
|
'background: #ffffff; padding:5px 0;'
|
||||||
|
];
|
||||||
|
|
||||||
|
self.console.log(...args);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if(self.console)
|
||||||
|
{
|
||||||
|
self.console.log(`Nitro ${ NitroVersion.UI_VERSION } - Renderer ${ NitroVersion.RENDERER_VERSION } `);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user