-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4fcdb9
commit e9a723c
Showing
6 changed files
with
51 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.log = exports.info = exports.warn = void 0; | ||
var warnColors = { | ||
background: 'yellow', | ||
text: 'black' | ||
}; | ||
var infoColors = { | ||
background: 'blue', | ||
text: 'white' | ||
}; | ||
var logColors = { | ||
background: '#e2e2e2', | ||
text: 'black' | ||
}; | ||
var warn = function (label, message) { | ||
console.warn('%c' + label, "background-color: " + warnColors.background + "; color: " + warnColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; | ||
exports.warn = warn; | ||
var info = function (label, message) { | ||
console.info('%c' + label, "background-color: " + infoColors.background + "; color: " + infoColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; | ||
exports.info = info; | ||
var log = function (label, message) { | ||
console.log('%c' + label, "background-color: " + logColors.background + "; color: " + logColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; | ||
exports.log = log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare const warn: (label: string, message: string) => void; | ||
export declare const info: (label: string, message: string) => void; | ||
export declare const log: (label: string, message: string) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var warnColors = { | ||
background: 'yellow', | ||
text: 'black' | ||
}; | ||
var infoColors = { | ||
background: 'blue', | ||
text: 'white' | ||
}; | ||
var logColors = { | ||
background: '#e2e2e2', | ||
text: 'black' | ||
}; | ||
export var warn = function (label, message) { | ||
console.warn('%c' + label, "background-color: " + warnColors.background + "; color: " + warnColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; | ||
export var info = function (label, message) { | ||
console.info('%c' + label, "background-color: " + infoColors.background + "; color: " + infoColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; | ||
export var log = function (label, message) { | ||
console.log('%c' + label, "background-color: " + logColors.background + "; color: " + logColors.text + "; padding: 5px; font-weight: bold;", message); | ||
}; |