@icreate/ics-chromely-plugin-core
Advanced tools
Comparing version 0.0.20-beta.9 to 0.0.20-beta.10
@@ -169,3 +169,3 @@ import { LogLevels } from '@icreate/core'; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -183,3 +183,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -190,10 +190,2 @@ }; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:39:46 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-29 22:00:08 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\window.ts | ||
*/ | ||
var Window = /** @class */ (function () { | ||
@@ -275,3 +267,3 @@ function Window() { | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -353,3 +345,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -366,3 +358,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -449,3 +441,2 @@ }; | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
if (this.isChromely) { | ||
@@ -458,10 +449,2 @@ this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-12-13 15:13:33 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts | ||
*/ | ||
var Duplex; | ||
@@ -495,3 +478,5 @@ (function (Duplex) { | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
// let opts = | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return icsChromelyRequest.function({ | ||
@@ -509,5 +494,2 @@ url: "Printer/".concat(url), | ||
Printer.getPrinterList = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('List'); | ||
@@ -530,5 +512,2 @@ }; | ||
Printer.getPrinterListEx = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('ListEx'); | ||
@@ -538,5 +517,2 @@ }; | ||
Printer.getPrinterDefault = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve(null); | ||
} | ||
return this.OperateEx('Default'); | ||
@@ -546,5 +522,2 @@ }; | ||
Printer.isPrinterExists = function (printerName) { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve(false); | ||
} | ||
return this.OperateEx('Exists', { printerName: printerName }); | ||
@@ -558,5 +531,2 @@ }; | ||
if (settings === void 0) { settings = null; } | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
} | ||
var params = [], url = 'PrintPdf'; | ||
@@ -793,3 +763,3 @@ // 如果有打印设置则拼接url参数 | ||
else { | ||
return Promise.resolve(null); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -868,3 +838,3 @@ }; | ||
else { | ||
return Promise.resolve(); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -871,0 +841,0 @@ }; |
@@ -176,3 +176,3 @@ (function (global, factory) { | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -190,3 +190,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -197,10 +197,2 @@ }; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:39:46 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-29 22:00:08 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\window.ts | ||
*/ | ||
var Window = /** @class */ (function () { | ||
@@ -282,3 +274,3 @@ function Window() { | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -360,3 +352,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -373,3 +365,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -456,3 +448,2 @@ }; | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
if (this.isChromely) { | ||
@@ -465,10 +456,2 @@ this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-12-13 15:13:33 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts | ||
*/ | ||
var Duplex; | ||
@@ -502,3 +485,5 @@ (function (Duplex) { | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
// let opts = | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return icsChromelyRequest__default["default"].function({ | ||
@@ -516,5 +501,2 @@ url: "Printer/".concat(url), | ||
Printer.getPrinterList = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('List'); | ||
@@ -537,5 +519,2 @@ }; | ||
Printer.getPrinterListEx = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('ListEx'); | ||
@@ -545,5 +524,2 @@ }; | ||
Printer.getPrinterDefault = function () { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve(null); | ||
} | ||
return this.OperateEx('Default'); | ||
@@ -553,5 +529,2 @@ }; | ||
Printer.isPrinterExists = function (printerName) { | ||
if (!Chromely.isChromely) { | ||
return Promise.resolve(false); | ||
} | ||
return this.OperateEx('Exists', { printerName: printerName }); | ||
@@ -565,5 +538,2 @@ }; | ||
if (settings === void 0) { settings = null; } | ||
if (!Chromely.isChromely) { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
} | ||
var params = [], url = 'PrintPdf'; | ||
@@ -800,3 +770,3 @@ // 如果有打印设置则拼接url参数 | ||
else { | ||
return Promise.resolve(null); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -875,3 +845,3 @@ }; | ||
else { | ||
return Promise.resolve(); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -878,0 +848,0 @@ }; |
@@ -92,3 +92,3 @@ "use strict"; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -106,3 +106,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -109,0 +109,0 @@ }; |
@@ -79,3 +79,2 @@ "use strict"; | ||
Chromely.prototype.$emit = function (eventName, data) { | ||
// let args = Array.prototype.slice.call(arguments, 1) | ||
if (this.isChromely) { | ||
@@ -82,0 +81,0 @@ this.cefSharp.PostMessage(JSON.stringify({ eventName: eventName, data: data })); |
@@ -214,3 +214,3 @@ "use strict"; | ||
else { | ||
return Promise.resolve(null); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -289,3 +289,3 @@ }; | ||
else { | ||
return Promise.resolve(); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -292,0 +292,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PrinterSettings = void 0; | ||
/* | ||
* @Author: 刘邓 | ||
* @Date: 2022-05-05 15:20:51 | ||
* @LastEditors: 陶慧灵 | ||
* @LastEditTime: 2022-12-13 15:13:33 | ||
* @Description: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\printer.ts | ||
*/ | ||
var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
@@ -51,3 +43,5 @@ var ics_chromely_plugin_core_1 = require("../ics-chromely-plugin-core"); | ||
if (headers === void 0) { headers = { 'Content-Type': 'application/json' }; } | ||
// let opts = | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
return ics_chromely_js_sdk_1.default.function({ | ||
@@ -65,5 +59,2 @@ url: "Printer/".concat(url), | ||
Printer.getPrinterList = function () { | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('List'); | ||
@@ -86,5 +77,2 @@ }; | ||
Printer.getPrinterListEx = function () { | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.resolve([]); | ||
} | ||
return this.OperateEx('ListEx'); | ||
@@ -94,5 +82,2 @@ }; | ||
Printer.getPrinterDefault = function () { | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.resolve(null); | ||
} | ||
return this.OperateEx('Default'); | ||
@@ -102,5 +87,2 @@ }; | ||
Printer.isPrinterExists = function (printerName) { | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.resolve(false); | ||
} | ||
return this.OperateEx('Exists', { printerName: printerName }); | ||
@@ -114,5 +96,2 @@ }; | ||
if (settings === void 0) { settings = null; } | ||
if (!ics_chromely_plugin_core_1.Chromely.isChromely) { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
} | ||
var params = [], url = 'PrintPdf'; | ||
@@ -119,0 +98,0 @@ // 如果有打印设置则拼接url参数 |
"use strict"; | ||
/* | ||
* @Author: 文贝 | ||
* @Date: 2022-02-11 23:39:46 | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-10-29 22:00:08 | ||
* @Descripttion: | ||
* @FilePath: \ics-chromely-plugin-core\src\core\window.ts | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -89,3 +81,3 @@ var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk"); | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -167,3 +159,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -180,3 +172,3 @@ }; | ||
else { | ||
return Promise.reject('浏览器下不支持!!!'); | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
@@ -183,0 +175,0 @@ }; |
{ | ||
"name": "@icreate/ics-chromely-plugin-core", | ||
"version": "0.0.20-beta.9", | ||
"version": "0.0.20-beta.10", | ||
"description": "提供Ics Chromely Client核心本地操作插件js sdk,包含本地日志、主窗体控制、打开三方浏览器、打印机列表、硬件IP和Mac地址、本地配置获取和注册表读写等", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -0,0 +0,0 @@ <!-- |
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
272685
3993