Converted all modules from CommonJS to ES6
This commit is contained in:
1 parent
0f2a5014be
commit
131b3a83c1
75 files changed
+395
-282
No files matched your search
@@ -10,7 +10,7 @@
|
||||
* @constant
|
||||
* @namespace
|
||||
*/
|
||||
var CanvasComponents = module.exports = {
|
||||
const CanvasComponents = {
|
||||
|
||||
drawLine: function(ctx, startX, startY, endX, endY) {
|
||||
ctx.beginPath();
|
||||
@@ -182,3 +182,5 @@ var CanvasComponents = module.exports = {
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
export default CanvasComponents;
|
||||
@@ -24,11 +24,10 @@
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
var Utils = require("../Utils.js");
|
||||
import Utils from "../Utils.js";
|
||||
|
||||
var UAS_parser = {
|
||||
const UAS_parser = {
|
||||
|
||||
parse: function (userAgent) {
|
||||
var result = {
|
||||
@@ -135,7 +134,7 @@ var UAS_parser = {
|
||||
}
|
||||
};
|
||||
|
||||
var UAS_cache = {
|
||||
const UAS_cache = {
|
||||
version: '20131025-01',
|
||||
robots: {
|
||||
'3': {
|
||||
@@ -25816,4 +25815,7 @@ var UAS_cache = {
|
||||
'35'
|
||||
]
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export {UAS_parser, UAS_cache};
|
||||
export default UAS_parser;
|
||||
Reference in new issue
Block a user