@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -1,12 +0,3 @@ | ||
import { LogLevels } from '@icreate/core'; | ||
import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:18:18 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts | ||
*/ | ||
var Browser$$1 = /** @class */ (function () { | ||
@@ -449,3 +440,17 @@ function Browser$$1() { | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
@@ -720,13 +725,12 @@ return new (P || (P = Promise))(function (resolve, reject) { | ||
}; | ||
/** | ||
* 清理内存 | ||
* @returns 系统可用内存 | ||
*/ | ||
Hardware$$1.ClearMemory = function () { | ||
return this.OperateEx('ClearMemory'); | ||
}; | ||
return Hardware$$1; | ||
}()); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-18 11:19:25 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
var Regedit$$1 = /** @class */ (function () { | ||
@@ -776,10 +780,2 @@ function Regedit$$1() { | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-08-30 10:29:12 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\config.ts | ||
*/ | ||
var ConfigHelper$$1 = /** @class */ (function () { | ||
@@ -937,20 +933,88 @@ function ConfigHelper$$1() { | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:21:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-30 21:33:43 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts | ||
*/ | ||
var Chromely$1 = Chromely.getInstance(); | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-09 10:25:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:15:56 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts | ||
var LogLevels; | ||
(function (LogLevels) { | ||
LogLevels[LogLevels["DEBUG"] = 1] = "DEBUG"; | ||
LogLevels[LogLevels["INFO"] = 2] = "INFO"; | ||
LogLevels[LogLevels["WARN"] = 3] = "WARN"; | ||
LogLevels[LogLevels["ERROR"] = 4] = "ERROR"; | ||
LogLevels[LogLevels["FATAL"] = 5] = "FATAL"; | ||
})(LogLevels || (LogLevels = {})); | ||
/** | ||
* Pdf打印设置 | ||
*/ | ||
var PdfSettings = /** @class */ (function () { | ||
function PdfSettings() { | ||
/** | ||
* Scale of the webpage rendering. Defaults to 1. | ||
*/ | ||
this.scale = 1; | ||
/** | ||
* 纸张名称 A1,A2,A3,A4 | ||
*/ | ||
this.paperName = 'A4'; | ||
/** | ||
* Display header and footer. Defaults to false. | ||
*/ | ||
this.displayHeaderFooter = false; | ||
/** | ||
* Top margin in inches. Defaults to 1cm (~0.4 inches). | ||
*/ | ||
this.marginBottom = 0; | ||
/** | ||
* Right margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginRight = 0; | ||
/** | ||
* Top margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginTop = 0; | ||
/** | ||
* Left margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginLeft = 0; | ||
/** | ||
* 是否选择由css定义的页面大小。默认为false,在这种情况下,内容将缩放以适应纸张大小。 | ||
*/ | ||
this.preferCssPageSize = false; | ||
/** | ||
* Paper height in inches. Defaults to 11.69 inches. | ||
*/ | ||
this.paperHeight = 11.69; | ||
/** | ||
* Paper width in inches. Defaults to 8.27 inches. | ||
*/ | ||
this.paperWidth = 8.27; | ||
/** | ||
* Print background graphics. Defaults to false. | ||
*/ | ||
this.printBackground = false; | ||
/** | ||
* Paper orientation. Defaults to false. | ||
*/ | ||
this.landscape = false; | ||
} | ||
return PdfSettings; | ||
}()); | ||
/** | ||
* 打印设置 | ||
*/ | ||
var PrintSettings = /** @class */ (function (_super) { | ||
__extends(PrintSettings, _super); | ||
function PrintSettings() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
/** | ||
* 打印副本数 | ||
*/ | ||
_this.copies = 1; | ||
/** | ||
* 双面打印 | ||
*/ | ||
_this.duplex = 1; | ||
return _this; | ||
} | ||
return PrintSettings; | ||
}(PdfSettings)); | ||
var Logger$$1 = /** @class */ (function () { | ||
@@ -1026,10 +1090,2 @@ function Logger$$1(path) { | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:21:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-30 21:33:43 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts | ||
*/ | ||
var Chromely$2 = Chromely.getInstance(); | ||
@@ -1036,0 +1092,0 @@ var icsChromelyPluginCore$1 = { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@icreate/core'), require('@icreate/ics-chromely-js-sdk')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@icreate/core', '@icreate/ics-chromely-js-sdk'], factory) : | ||
(factory((global.icsChromelyPluginCore = {}),global.core,global.icsChromelyRequest)); | ||
}(this, (function (exports,core,icsChromelyRequest) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@icreate/ics-chromely-js-sdk')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@icreate/ics-chromely-js-sdk'], factory) : | ||
(factory((global.icsChromelyPluginCore = {}),global.icsChromelyRequest)); | ||
}(this, (function (exports,icsChromelyRequest) { 'use strict'; | ||
icsChromelyRequest = icsChromelyRequest && icsChromelyRequest.hasOwnProperty('default') ? icsChromelyRequest['default'] : icsChromelyRequest; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:18:18 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts | ||
*/ | ||
var Browser$$1 = /** @class */ (function () { | ||
@@ -454,3 +446,17 @@ function Browser$$1() { | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
@@ -725,13 +731,12 @@ return new (P || (P = Promise))(function (resolve, reject) { | ||
}; | ||
/** | ||
* 清理内存 | ||
* @returns 系统可用内存 | ||
*/ | ||
Hardware$$1.ClearMemory = function () { | ||
return this.OperateEx('ClearMemory'); | ||
}; | ||
return Hardware$$1; | ||
}()); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-18 11:19:25 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
var Regedit$$1 = /** @class */ (function () { | ||
@@ -781,10 +786,2 @@ function Regedit$$1() { | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-08-30 10:29:12 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\config.ts | ||
*/ | ||
var ConfigHelper$$1 = /** @class */ (function () { | ||
@@ -942,20 +939,88 @@ function ConfigHelper$$1() { | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:21:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-30 21:33:43 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts | ||
*/ | ||
var Chromely$1 = Chromely.getInstance(); | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-09 10:25:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:15:56 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts | ||
var LogLevels; | ||
(function (LogLevels) { | ||
LogLevels[LogLevels["DEBUG"] = 1] = "DEBUG"; | ||
LogLevels[LogLevels["INFO"] = 2] = "INFO"; | ||
LogLevels[LogLevels["WARN"] = 3] = "WARN"; | ||
LogLevels[LogLevels["ERROR"] = 4] = "ERROR"; | ||
LogLevels[LogLevels["FATAL"] = 5] = "FATAL"; | ||
})(LogLevels || (LogLevels = {})); | ||
/** | ||
* Pdf打印设置 | ||
*/ | ||
var PdfSettings = /** @class */ (function () { | ||
function PdfSettings() { | ||
/** | ||
* Scale of the webpage rendering. Defaults to 1. | ||
*/ | ||
this.scale = 1; | ||
/** | ||
* 纸张名称 A1,A2,A3,A4 | ||
*/ | ||
this.paperName = 'A4'; | ||
/** | ||
* Display header and footer. Defaults to false. | ||
*/ | ||
this.displayHeaderFooter = false; | ||
/** | ||
* Top margin in inches. Defaults to 1cm (~0.4 inches). | ||
*/ | ||
this.marginBottom = 0; | ||
/** | ||
* Right margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginRight = 0; | ||
/** | ||
* Top margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginTop = 0; | ||
/** | ||
* Left margin in inches. Defaults to 1cm (~0.4 inches).h | ||
*/ | ||
this.marginLeft = 0; | ||
/** | ||
* 是否选择由css定义的页面大小。默认为false,在这种情况下,内容将缩放以适应纸张大小。 | ||
*/ | ||
this.preferCssPageSize = false; | ||
/** | ||
* Paper height in inches. Defaults to 11.69 inches. | ||
*/ | ||
this.paperHeight = 11.69; | ||
/** | ||
* Paper width in inches. Defaults to 8.27 inches. | ||
*/ | ||
this.paperWidth = 8.27; | ||
/** | ||
* Print background graphics. Defaults to false. | ||
*/ | ||
this.printBackground = false; | ||
/** | ||
* Paper orientation. Defaults to false. | ||
*/ | ||
this.landscape = false; | ||
} | ||
return PdfSettings; | ||
}()); | ||
/** | ||
* 打印设置 | ||
*/ | ||
var PrintSettings = /** @class */ (function (_super) { | ||
__extends(PrintSettings, _super); | ||
function PrintSettings() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
/** | ||
* 打印副本数 | ||
*/ | ||
_this.copies = 1; | ||
/** | ||
* 双面打印 | ||
*/ | ||
_this.duplex = 1; | ||
return _this; | ||
} | ||
return PrintSettings; | ||
}(PdfSettings)); | ||
var Logger$$1 = /** @class */ (function () { | ||
@@ -965,3 +1030,3 @@ function Logger$$1(path) { | ||
this.logPath = ''; | ||
this.level = core.LogLevels.DEBUG; | ||
this.level = LogLevels.DEBUG; | ||
this.logPath = path; | ||
@@ -984,3 +1049,3 @@ } | ||
return icsChromelyRequest.function({ | ||
url: "logger/" + core.LogLevels[logLevel].toLowerCase(), | ||
url: "logger/" + LogLevels[logLevel].toLowerCase(), | ||
method: 'POST', | ||
@@ -996,3 +1061,3 @@ data: { logObject: logObject, logPath: this.logPath }, | ||
Logger$$1.prototype.debug = function (logObject) { | ||
return this.log(logObject, core.LogLevels.DEBUG); | ||
return this.log(logObject, LogLevels.DEBUG); | ||
}; | ||
@@ -1005,3 +1070,3 @@ /** | ||
Logger$$1.prototype.info = function (logObject) { | ||
return this.log(logObject, core.LogLevels.INFO); | ||
return this.log(logObject, LogLevels.INFO); | ||
}; | ||
@@ -1014,3 +1079,3 @@ /** | ||
Logger$$1.prototype.warn = function (logObject) { | ||
return this.log(logObject, core.LogLevels.WARN); | ||
return this.log(logObject, LogLevels.WARN); | ||
}; | ||
@@ -1023,3 +1088,3 @@ /** | ||
Logger$$1.prototype.error = function (logObject) { | ||
return this.log(logObject, core.LogLevels.ERROR); | ||
return this.log(logObject, LogLevels.ERROR); | ||
}; | ||
@@ -1032,3 +1097,3 @@ /** | ||
Logger$$1.prototype.fatal = function (logObject) { | ||
return this.log(logObject, core.LogLevels.FATAL); | ||
return this.log(logObject, LogLevels.FATAL); | ||
}; | ||
@@ -1038,10 +1103,2 @@ return Logger$$1; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:21:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-30 21:33:43 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts | ||
*/ | ||
var Chromely$2 = Chromely.getInstance(); | ||
@@ -1048,0 +1105,0 @@ var icsChromelyPluginCore$1 = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:18:18 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\browser.ts | ||
*/ | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
@@ -12,0 +4,0 @@ var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:25:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-08-30 10:29:12 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\config.ts | ||
*/ | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
@@ -12,0 +4,0 @@ var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); |
@@ -39,10 +39,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-22 12:21:12 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\hardware.ts | ||
*/ | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
@@ -282,2 +274,9 @@ var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); | ||
}; | ||
/** | ||
* 清理内存 | ||
* @returns 系统可用内存 | ||
*/ | ||
Hardware.ClearMemory = function () { | ||
return this.OperateEx('ClearMemory'); | ||
}; | ||
return Hardware; | ||
@@ -284,0 +283,0 @@ }()); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-09 10:25:53 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-05-31 15:15:56 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\logger.ts | ||
*/ | ||
var core_1 = require("@icreate/core"); | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); | ||
var interfaces_1 = require("../interfaces/interfaces"); | ||
var Logger = /** @class */ (function () { | ||
@@ -18,3 +10,3 @@ function Logger(path) { | ||
this.logPath = ''; | ||
this.level = core_1.LogLevels.DEBUG; | ||
this.level = interfaces_1.LogLevels.DEBUG; | ||
this.logPath = path; | ||
@@ -37,3 +29,3 @@ } | ||
return ics_chromely_js_sdk_1.default.function({ | ||
url: "logger/" + core_1.LogLevels[logLevel].toLowerCase(), | ||
url: "logger/" + interfaces_1.LogLevels[logLevel].toLowerCase(), | ||
method: 'POST', | ||
@@ -49,3 +41,3 @@ data: { logObject: logObject, logPath: this.logPath }, | ||
Logger.prototype.debug = function (logObject) { | ||
return this.log(logObject, core_1.LogLevels.DEBUG); | ||
return this.log(logObject, interfaces_1.LogLevels.DEBUG); | ||
}; | ||
@@ -58,3 +50,3 @@ /** | ||
Logger.prototype.info = function (logObject) { | ||
return this.log(logObject, core_1.LogLevels.INFO); | ||
return this.log(logObject, interfaces_1.LogLevels.INFO); | ||
}; | ||
@@ -67,3 +59,3 @@ /** | ||
Logger.prototype.warn = function (logObject) { | ||
return this.log(logObject, core_1.LogLevels.WARN); | ||
return this.log(logObject, interfaces_1.LogLevels.WARN); | ||
}; | ||
@@ -76,3 +68,3 @@ /** | ||
Logger.prototype.error = function (logObject) { | ||
return this.log(logObject, core_1.LogLevels.ERROR); | ||
return this.log(logObject, interfaces_1.LogLevels.ERROR); | ||
}; | ||
@@ -85,3 +77,3 @@ /** | ||
Logger.prototype.fatal = function (logObject) { | ||
return this.log(logObject, core_1.LogLevels.FATAL); | ||
return this.log(logObject, interfaces_1.LogLevels.FATAL); | ||
}; | ||
@@ -88,0 +80,0 @@ return Logger; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-11-18 11:19:25 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\regedit.ts | ||
*/ | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
@@ -12,0 +4,0 @@ var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Chromely = exports.KeyCode = exports.ConfigHelper = exports.RegeditHelper = exports.HardwareHelper = exports.PrinterHelper = exports.WindowHelper = exports.BrowserHelper = exports.LocalLogger = void 0; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:21:34 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-30 21:33:43 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\ics-chromely-plugin-core.ts | ||
*/ | ||
var logger_1 = require("./core/logger"); | ||
@@ -13,0 +5,0 @@ exports.LocalLogger = logger_1.default; |
@@ -16,3 +16,11 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PrintSettings = exports.PdfSettings = void 0; | ||
exports.PrintSettings = exports.PdfSettings = exports.LogLevels = void 0; | ||
var LogLevels; | ||
(function (LogLevels) { | ||
LogLevels[LogLevels["DEBUG"] = 1] = "DEBUG"; | ||
LogLevels[LogLevels["INFO"] = 2] = "INFO"; | ||
LogLevels[LogLevels["WARN"] = 3] = "WARN"; | ||
LogLevels[LogLevels["ERROR"] = 4] = "ERROR"; | ||
LogLevels[LogLevels["FATAL"] = 5] = "FATAL"; | ||
})(LogLevels = exports.LogLevels || (exports.LogLevels = {})); | ||
/** | ||
@@ -19,0 +27,0 @@ * Pdf打印设置 |
@@ -31,2 +31,7 @@ export default class Hardware { | ||
static SetLocalTime(date: string): Promise<any>; | ||
/** | ||
* 清理内存 | ||
* @returns 系统可用内存 | ||
*/ | ||
static ClearMemory(): Promise<any>; | ||
} |
@@ -1,3 +0,2 @@ | ||
import { LogLevels } from '@icreate/core'; | ||
import ILogger from '../interfaces/interfaces'; | ||
import ILogger, { LogLevels } from '../interfaces/interfaces'; | ||
export default class Logger implements ILogger { | ||
@@ -4,0 +3,0 @@ private logPath; |
@@ -1,2 +0,1 @@ | ||
import { LogLevels } from '@icreate/core/dist/types/interfaces/interfaces'; | ||
export default interface ILogger { | ||
@@ -10,2 +9,9 @@ level: LogLevels; | ||
} | ||
export declare enum LogLevels { | ||
DEBUG = 1, | ||
INFO = 2, | ||
WARN = 3, | ||
ERROR = 4, | ||
FATAL = 5 | ||
} | ||
export interface IBrowser { | ||
@@ -12,0 +18,0 @@ OpenChrome(url: string): void; |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等", | ||
@@ -120,6 +120,3 @@ "keywords": [], | ||
"typescript": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"@icreate/core": "^0.0.26" | ||
} | ||
} |
@@ -1,9 +0,1 @@ | ||
<!-- | ||
* @Author: 文贝 | ||
* @Date: 2022-02-08 21:36:57 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-12-13 15:05:17 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\README.md | ||
--> | ||
### Usage | ||
@@ -16,2 +8,3 @@ | ||
``` | ||
0.0.24 HardwareHelper新增清理系统内存 | ||
0.0.23 新增打开exe应用程序 | ||
@@ -293,2 +286,8 @@ 0.0.20-beta.8 适配chrome浏览器 | ||
SetLocalTime(): Promise<string> | ||
/** | ||
* 清理内存 | ||
* @returns 系统可用内存 | ||
*/ | ||
ClearMemory(): Promise<any> | ||
``` | ||
@@ -295,0 +294,0 @@ ### PrinterHelper |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
266837
0
4013
370
- Removed@icreate/core@^0.0.26
- Removed@icreate/core@0.0.26(transitive)