Skip to content

Commit

Permalink
attempt adding some of the 3rd party libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grainger committed Nov 29, 2016
1 parent 95daa65 commit 19c4b86
Show file tree
Hide file tree
Showing 17 changed files with 162 additions and 22 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,17 @@
},
"dependencies": {
"core-js": "^2.4.1",
"crypto-js": "^3.1.8",
"escodegen": "^1.8.1",
"esmangle": "^1.0.1",
"esprima": "^3.1.2",
"estraverse": "^4.2.0",
"jquery": "^3.1.1",
"json-loader": "^0.5.4",
"jsrsasign": "^6.2.2",
"moment": "^2.17.0",
"moment-timezone": "^0.5.10"
"moment-timezone": "^0.5.10",
"node-bzip": "^0.0.1-2",
"zlibjs": "^0.2.0"
}
}
2 changes: 1 addition & 1 deletion src/js/lib/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,4 +1052,4 @@ return /******/ (function(modules) { // webpackBootstrap
/* }
/******/ ])
});
;
;
18 changes: 17 additions & 1 deletion src/js/operations/Compress.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import Utils from '../core/Utils';
import Uint8Array from 'core-js/modules/es6.typed.uint8-array';

import rawdeflate from 'zlibjs/bin/rawdeflate.min';
import rawinflate from 'zlibjs/bin/rawinflate.min';
import zlibAndGzip from 'zlibjs/bin/zlib_and_gzip.min';
import zip from 'zlibjs/bin/zip.min';
import unzip from 'zlibjs/bin/unzip.min';
import bzip2 from '../lib/bzip2';

const Zlib = {
RawDeflate: rawdeflate.Zlib.RawDeflate,
RawInflate: rawinflate.Zlib.RawInflate,
Deflate: zlibAndGzip.Zlib.Deflate,
Inflate: zlibAndGzip.Zlib.Inflate,
Gzip: zlibAndGzip.Zlib.Gzip,
Gunzip: zlibAndGzip.Zlib.Gunzip,
Zip: zip.Zip,
Unzip: zip.Unzip,
}


/**
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/DateTime.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import moment from 'moment';

/**
* Date and time operations.
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/HTTP.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import UAS_parser from '../lib/uas_parser';

/**
* HTTP operations.
Expand Down
3 changes: 2 additions & 1 deletion src/js/operations/Hash.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CryptoJS from 'crypto-js';
import Utils from '../core/Utils';

import Checksum from './Checksum';


/**
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/Hexdump.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Hexdump = {
const w = (width - 13) / 4;
// w should be the specified width of the hexdump and therefore a round number
if (Math.floor(w) != w || input.indexOf('\r') != -1 || output.indexOf(13) != -1) {
app.options.attempt_highlight = false;
window.app.options.attempt_highlight = false;
}
return output;
},
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/IP.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BigInteger } from 'jsrsasign';
import Utils from '../core/Utils';



/**
* Internet Protocol address operations.
*
Expand Down
4 changes: 3 additions & 1 deletion src/js/operations/JS.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import esprima from 'esprima';
import escodegen from 'escodegen';
import esmangle from 'esmangle';

/**
* JavaScript operations.
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/PublicKey.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Utils from '../core/Utils';

import { X509, KJUR, ASN1HEX, BigInteger, KEYUTIL } from 'jrsasign';


/**
Expand Down
2 changes: 1 addition & 1 deletion src/js/operations/Punycode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import punycode from '../lib/punycode';

/**
* Punycode operations.
Expand Down
1 change: 1 addition & 0 deletions src/js/operations/StrUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Utils from '../core/Utils';
import JsDiff from '../lib/diff';



Expand Down
3 changes: 1 addition & 2 deletions src/js/views/html/HTMLApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import Chef from '../../core/Chef';
import Manager from './Manager';
import HTMLCategory from './HTMLCategory';
import HTMLOperation from './HTMLOperation';


import Split from '../lib/split';


/**
Expand Down
1 change: 1 addition & 0 deletions src/js/views/html/OperationsWaiter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import $ from 'jquery';
import HTMLOperation from './HTMLOperation';
import Sortable from '../../lib/Sortable';



Expand Down
1 change: 1 addition & 0 deletions src/js/views/html/RecipeWaiter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import $ from 'jquery';
import HTMLOperation from './HTMLOperation';
import Sortable from '../../lib/Sortable';


/**
Expand Down
3 changes: 2 additions & 1 deletion src/js/views/html/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import moment from './moment';
import HTMLApp from './HTMLApp';
import Categories from '../../config/Categories';
import OperationConfig from '../../config/OperationConfig';

import Split from '../../lib/split';

/**
* @author n1474335 [[email protected]]
Expand Down
Loading

0 comments on commit 19c4b86

Please sign in to comment.