@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.20-beta.10 to 0.0.20-beta.11
@@ -165,8 +165,3 @@ import { LogLevels } from '@icreate/core'; | ||
Browser.HtmlToPdf = function (settings) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('HtmlToPdf', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('HtmlToPdf', settings); | ||
}; | ||
@@ -179,8 +174,3 @@ /** | ||
Browser.PrintHtml = function (settings) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('PrintHtml', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('PrintHtml', settings); | ||
}; | ||
@@ -262,8 +252,3 @@ return Browser; | ||
Window.State = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('state'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('state'); | ||
}; | ||
@@ -340,8 +325,3 @@ /** | ||
Window.ChangeInputMethod = function (name) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
}; | ||
@@ -353,8 +333,3 @@ /** | ||
Window.GetInputMethodList = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('GetInputMethodList'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetInputMethodList'); | ||
}; | ||
@@ -475,5 +450,2 @@ return Window; | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return icsChromelyRequest.function({ | ||
@@ -751,8 +723,3 @@ url: "Printer/".concat(url), | ||
Hardware.getMacAddress = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('GetMacAddress'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetMacAddress'); | ||
}; | ||
@@ -826,8 +793,3 @@ // 获取本机Ip地址 | ||
Hardware.SetLocalTime = function (date) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
}; | ||
@@ -834,0 +796,0 @@ return Hardware; |
@@ -172,8 +172,3 @@ (function (global, factory) { | ||
Browser.HtmlToPdf = function (settings) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('HtmlToPdf', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('HtmlToPdf', settings); | ||
}; | ||
@@ -186,8 +181,3 @@ /** | ||
Browser.PrintHtml = function (settings) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('PrintHtml', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('PrintHtml', settings); | ||
}; | ||
@@ -269,8 +259,3 @@ return Browser; | ||
Window.State = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('state'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('state'); | ||
}; | ||
@@ -347,8 +332,3 @@ /** | ||
Window.ChangeInputMethod = function (name) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
}; | ||
@@ -360,8 +340,3 @@ /** | ||
Window.GetInputMethodList = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('GetInputMethodList'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetInputMethodList'); | ||
}; | ||
@@ -482,5 +457,2 @@ return Window; | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return icsChromelyRequest__default["default"].function({ | ||
@@ -758,8 +730,3 @@ url: "Printer/".concat(url), | ||
Hardware.getMacAddress = function () { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('GetMacAddress'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetMacAddress'); | ||
}; | ||
@@ -833,8 +800,3 @@ // 获取本机Ip地址 | ||
Hardware.SetLocalTime = function (date) { | ||
if (Chromely.isChromely) { | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
}; | ||
@@ -841,0 +803,0 @@ return Hardware; |
@@ -88,8 +88,3 @@ "use strict"; | ||
Browser.HtmlToPdf = function (settings) { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('HtmlToPdf', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('HtmlToPdf', settings); | ||
}; | ||
@@ -102,8 +97,3 @@ /** | ||
Browser.PrintHtml = function (settings) { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('PrintHtml', settings); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('PrintHtml', settings); | ||
}; | ||
@@ -110,0 +100,0 @@ return Browser; |
@@ -210,8 +210,3 @@ "use strict"; | ||
Hardware.getMacAddress = function () { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('GetMacAddress'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetMacAddress'); | ||
}; | ||
@@ -285,8 +280,3 @@ // 获取本机Ip地址 | ||
Hardware.SetLocalTime = function (date) { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('SetLocalTime', { date: date }); | ||
}; | ||
@@ -293,0 +283,0 @@ return Hardware; |
@@ -5,3 +5,2 @@ "use strict"; | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); | ||
var Duplex; | ||
@@ -44,5 +43,2 @@ (function (Duplex) { | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return ics_chromely_js_sdk_1.default.function({ | ||
@@ -49,0 +45,0 @@ url: "Printer/".concat(url), |
@@ -77,8 +77,3 @@ "use strict"; | ||
Window.State = function () { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('state'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('state'); | ||
}; | ||
@@ -155,8 +150,3 @@ /** | ||
Window.ChangeInputMethod = function (name) { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('ChangeInputMethod', { name: name }); | ||
}; | ||
@@ -168,8 +158,3 @@ /** | ||
Window.GetInputMethodList = function () { | ||
if (ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return this.OperateEx('GetInputMethodList'); | ||
} | ||
else { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return this.OperateEx('GetInputMethodList'); | ||
}; | ||
@@ -176,0 +161,0 @@ return Window; |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.20-beta.10", | ||
"version": "0.0.20-beta.11", | ||
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
263731
3878