feat: 静态资源

This commit is contained in:
testadmin
2026-04-29 07:00:00 +08:00
parent 2c2f7140d6
commit 1538fa70e0
519 changed files with 112035 additions and 0 deletions
@@ -0,0 +1,19 @@
/**
* If you want to enable logs from datafeed set it to `true`
*/
var isLoggingEnabled = false;
export function logMessage(message) {
if (isLoggingEnabled) {
var now = new Date();
console.log(now.toLocaleTimeString() + "." + now.getMilliseconds() + "> " + message);
}
}
export function getErrorMessage(error) {
if (error === undefined) {
return '';
}
else if (typeof error === 'string') {
return error;
}
return error.message;
}