删除ionic相关ts代码
This commit is contained in:
parent
c71ca05380
commit
520ddf1a8c
46
native/index.d.ts
vendored
46
native/index.d.ts
vendored
@ -1,46 +0,0 @@
|
||||
import { IonicNativePlugin } from '@ionic-native/core';
|
||||
export interface Printer {
|
||||
name: string;
|
||||
address: string;
|
||||
}
|
||||
export interface PrinterStatus {
|
||||
connected: boolean;
|
||||
isReadyToPrint?: boolean;
|
||||
isPaused?: boolean;
|
||||
isReceiveBufferFull?: boolean;
|
||||
isRibbonOut?: boolean;
|
||||
isPaperOut?: boolean;
|
||||
isHeadTooHot?: boolean;
|
||||
isHeadOpen?: boolean;
|
||||
isHeadCold?: boolean;
|
||||
isPartialFormatInProgress?: boolean;
|
||||
}
|
||||
/**
|
||||
* @name Zebra Printer
|
||||
* @description
|
||||
* This plugin does something
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { ZebraPrinter } from '@ionic-native/zebra-printer';
|
||||
*
|
||||
*
|
||||
* constructor(private zebraPrinter: ZebraPrinter) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.zebraPrinter.functionName('Hello', 123)
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
export declare class ZebraPrinter extends IonicNativePlugin {
|
||||
print(cpcl: string): Promise<any>;
|
||||
isConnected(): Promise<boolean>;
|
||||
printerStatus(): Promise<PrinterStatus>;
|
||||
connect(adress: string): Promise<any>;
|
||||
disconnect(): Promise<any>;
|
||||
discover(): Promise<Array<Printer>>;
|
||||
}
|
120
native/index.js
120
native/index.js
@ -1,120 +0,0 @@
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var 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 function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
/**
|
||||
* This is a template for new plugin wrappers
|
||||
*
|
||||
* TODO:
|
||||
* - Add/Change information below
|
||||
* - Document usage (importing, executing main functionality)
|
||||
* - Remove any imports that you are not using
|
||||
* - Remove all the comments included in this template, EXCEPT the @Plugin wrapper docs and any other docs you added
|
||||
* - Remove this note
|
||||
*
|
||||
*/
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
/**
|
||||
* @name Zebra Printer
|
||||
* @description
|
||||
* This plugin does something
|
||||
*
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { ZebraPrinter } from '@ionic-native/zebra-printer';
|
||||
*
|
||||
*
|
||||
* constructor(private zebraPrinter: ZebraPrinter) { }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
*
|
||||
* this.zebraPrinter.functionName('Hello', 123)
|
||||
* .then((res: any) => console.log(res))
|
||||
* .catch((error: any) => console.error(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
var ZebraPrinter = (function (_super) {
|
||||
__extends(ZebraPrinter, _super);
|
||||
function ZebraPrinter() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
ZebraPrinter.prototype.print = function (cpcl) { return; };
|
||||
ZebraPrinter.prototype.isConnected = function () { return; };
|
||||
ZebraPrinter.prototype.printerStatus = function (adderss) { return; };
|
||||
ZebraPrinter.prototype.connect = function (adress) { return; };
|
||||
ZebraPrinter.prototype.disconnect = function () { return; };
|
||||
ZebraPrinter.prototype.discover = function () { return; };
|
||||
ZebraPrinter.decorators = [
|
||||
{ type: Injectable },
|
||||
];
|
||||
/** @nocollapse */
|
||||
ZebraPrinter.ctorParameters = function () { return []; };
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "print", null);
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "isConnected", null);
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "printerStatus", null);
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "connect", null);
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "disconnect", null);
|
||||
__decorate([
|
||||
Cordova(),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", Promise)
|
||||
], ZebraPrinter.prototype, "discover", null);
|
||||
ZebraPrinter = __decorate([
|
||||
Plugin({
|
||||
pluginName: 'ZebraPrinter',
|
||||
plugin: 'ca-cleversolutions-zebraprinter',
|
||||
pluginRef: 'cordova.plugins.zebraPrinter',
|
||||
repo: 'git@github.com:cleversolutions/cordova-zebra-printer.git',
|
||||
install: '',
|
||||
installVariables: [],
|
||||
platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS']
|
||||
})
|
||||
], ZebraPrinter);
|
||||
return ZebraPrinter;
|
||||
}(IonicNativePlugin));
|
||||
export { ZebraPrinter };
|
||||
//# sourceMappingURL=index.js.map
|
@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/@ionic-native/plugins/zebra-printer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,UAAA,EAAW,MAAO,eAAA,CAAgB;AAC3C,OAAO,EAAE,MAAA,EAAQ,OAAA,EAAS,iBAAA,EAAkB,MAAO,oBAAA,CAAqB;AAoBxE;;;;;;;;;;;;;;;;;;;;GAoBG;AAWH;IAAkC,gCAAiB;IAAnD;;IAqBA,CAAC;IAnBC,2BAAI,GAAJ,UAAK,KAAa,IAAmB,MAAM,CAAC,CAAC,CAAC;IAE9C,4BAAK,GAAL,UAAM,IAAY,IAAmB,MAAM,CAAC,CAAC,CAAC;IAE9C,kCAAW,GAAX,cAAkC,MAAM,CAAC,CAAC,CAAC;IAE3C,oCAAa,GAAb,UAAc,OAAe,IAA4B,MAAM,CAAC,CAAC,CAAC;IAElE,8BAAO,GAAP,UAAQ,MAAc,IAAkB,MAAM,CAAC,CAAC,CAAC;IAEjD,iCAAU,GAAV,cAA6B,MAAM,CAAC,CAAC,CAAC;IAEtC,+BAAQ,GAAR,cAAsC,MAAM,CAAC,CAAC,CAAC;IAC1C,uBAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,UAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,2BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IAlBA;QADC,OAAO,EAAE;;;;4CACoC;IAE9C;QADC,OAAO,EAAE;;;;6CACoC;IAE9C;QADC,OAAO,EAAE;;;;mDACiC;IAE3C;QADC,OAAO,EAAE;;;;qDACwD;IAElE;QADC,OAAO,EAAE;;;;+CACuC;IAEjD;QADC,OAAO,EAAE;;;;kDAC4B;IAEtC;QADC,OAAO,EAAE;;;;gDACqC;IAdpC,YAAY;QAVxB,MAAM,CAAC;YACN,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,iCAAiC;YACzC,SAAS,EAAE,8BAA8B;YACzC,IAAI,EAAE,0DAA0D;YAChE,OAAO,EAAE,EAAE;YACX,gBAAgB,EAAE,EAAE;YACpB,SAAS,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,4DAA4D;SAC3F,CAAC;OAEW,YAAY,CAqBxB;IAAD,mBAAC;CArBD,AAqBC,CArBiC,iBAAiB,GAqBlD;SArBY,YAAY","file":"index.js","sourceRoot":"","sourcesContent":["/**\n * This is a template for new plugin wrappers\n *\n * TODO:\n * - Add/Change information below\n * - Document usage (importing, executing main functionality)\n * - Remove any imports that you are not using\n * - Remove all the comments included in this template, EXCEPT the @Plugin wrapper docs and any other docs you added\n * - Remove this note\n *\n */\nimport { Injectable } from '@angular/core';\nimport { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';\n\nexport interface Printer {\n name: string;\n address: string;\n}\n\nexport interface PrinterStatus {\n connected: boolean;\n isReadyToPrint?: boolean;\n isPaused?: boolean;\n isReceiveBufferFull?: boolean;\n isRibbonOut?: boolean;\n isPaperOut?: boolean;\n isHeadTooHot?: boolean;\n isHeadOpen?: boolean;\n isHeadCold?: boolean;\n isPartialFormatInProgress?: boolean;\n}\n\n/**\n * @name Zebra Printer\n * @description\n * This plugin does something\n *\n * @usage\n * ```typescript\n * import { ZebraPrinter } from '@ionic-native/zebra-printer';\n *\n *\n * constructor(private zebraPrinter: ZebraPrinter) { }\n *\n * ...\n *\n *\n * this.zebraPrinter.functionName('Hello', 123)\n * .then((res: any) => console.log(res))\n * .catch((error: any) => console.error(error));\n *\n * ```\n */\n@Plugin({\n pluginName: 'ZebraPrinter',\n plugin: 'ca-cleversolutions-zebraprinter', // npm package name, example: cordova-plugin-camera\n pluginRef: 'cordova.plugins.zebraPrinter', // the variable reference to call the plugin, example: navigator.geolocation\n repo: 'git@github.com:cleversolutions/cordova-zebra-printer.git', // the github repository URL for the plugin\n install: '', // OPTIONAL install command, in case the plugin requires variables\n installVariables: [], // OPTIONAL the plugin requires variables\n platforms: ['Android', 'iOS'] // Array of platforms supported, example: ['Android', 'iOS']\n})\n\nexport class ZebraPrinter extends IonicNativePlugin {\n @Cordova()\n echo(value: string ): Promise<any> { return; }\n @Cordova()\n print(cpcl: string ): Promise<any> { return; }\n @Cordova()\n isConnected(): Promise<boolean> { return; }\n @Cordova()\n printerStatus(adderss: string): Promise<PrinterStatus> { return; }\n @Cordova()\n connect(adress: string): Promise<any> { return; }\n @Cordova()\n disconnect(): Promise<any> { return; }\n @Cordova()\n discover(): Promise<Array<Printer>> { return; }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
@ -1 +0,0 @@
|
||||
[{"__symbolic":"module","version":3,"metadata":{"Printer":{"__symbolic":"interface"},"PrinterStatus":{"__symbolic":"interface"},"ZebraPrinter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"ZebraPrinter","plugin":"ca-cleversolutions-zebraprinter","pluginRef":"cordova.plugins.zebraPrinter","repo":"git@github.com:cleversolutions/cordova-zebra-printer.git","install":"","installVariables":[],"platforms":["Android","iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"echo":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"print":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"isConnected":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"printerStatus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"connect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"disconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"discover":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"Printer":{"__symbolic":"interface"},"PrinterStatus":{"__symbolic":"interface"},"ZebraPrinter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"ZebraPrinter","plugin":"ca-cleversolutions-zebraprinter","pluginRef":"cordova.plugins.zebraPrinter","repo":"git@github.com:cleversolutions/cordova-zebra-printer.git","install":"","installVariables":[],"platforms":["Android","iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"echo":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"print":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"isConnected":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"printerStatus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"connect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"disconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}],"discover":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}}]
|
39
native/package-lock.json
generated
39
native/package-lock.json
generated
@ -1,39 +0,0 @@
|
||||
{
|
||||
"name": "@ionic-native/zebra-printer",
|
||||
"version": "4.7.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"@angular/core": {
|
||||
"version": "7.2.11",
|
||||
"resolved": "https://registry.npmjs.org/@angular/core/-/core-7.2.11.tgz",
|
||||
"integrity": "sha512-2FUgXbGn75D6HQESVVmnrjqP1l2YNwwIZISembzpr4WvTm0lxzq/9WsuPFJNWggwCerajyjYz+kDJT3RsonGZg==",
|
||||
"requires": {
|
||||
"tslib": "^1.9.0"
|
||||
}
|
||||
},
|
||||
"@ionic-native/core": {
|
||||
"version": "4.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@ionic-native/core/-/core-4.20.0.tgz",
|
||||
"integrity": "sha512-8ppRT4zXKwtalv9HJomLQjDnMfPAiKdNUQSSKpwZePmI+8TpYRL7UNr0o0hmjiTXx1oGcKQFzHpDc1M2yeR3BA=="
|
||||
},
|
||||
"rxjs": {
|
||||
"version": "5.5.12",
|
||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz",
|
||||
"integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==",
|
||||
"requires": {
|
||||
"symbol-observable": "1.0.1"
|
||||
}
|
||||
},
|
||||
"symbol-observable": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz",
|
||||
"integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ="
|
||||
},
|
||||
"tslib": {
|
||||
"version": "1.9.3",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz",
|
||||
"integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ=="
|
||||
}
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"name": "@ionic-native/zebra-printer",
|
||||
"version": "4.7.0",
|
||||
"description": "Ionic Native - Native plugins for ionic apps",
|
||||
"module": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"author": "ionic",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@ionic-native/core": "^4.2.0",
|
||||
"@angular/core": "*",
|
||||
"rxjs": "^5.0.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ionic-team/ionic-native.git"
|
||||
}
|
||||
}
|
3072
package-lock.json
generated
3072
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user