All files / src/lib/modules info.ts

58.33% Statements 7/12
100% Branches 0/0
0% Functions 0/3
58.33% Lines 7/12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 212x 2x 2x 2x 2x   2x   2x                        
import {Module} from "../module";
import {Util} from "../util";
import {PuzzleJs} from "../puzzle";
import {on} from "../decorators";
import {EVENT} from "../enums";
 
export class Info extends Module {
  @on(EVENT.ON_PAGE_LOAD)
  static showInformation() {
    Util.wrapGroup('PuzzleJs', 'Debug Mode - Package Info', () => {
      this.logo();
      Util.log(`PuzzleJs: ${PuzzleJs.PACKAGE_VERSION}`);
      Util.table(PuzzleJs.DEPENDENCIES);
    });
  }
 
  static logo() {
    window.console.log('%c       ', `font-size: 400px; background: url(${PuzzleJs.LOGO}) no-repeat;`);
  }
}