Restructured src files into a more logical hierarchy
141
Gruntfile.js
|
@ -1,7 +1,7 @@
|
||||||
var webpack = require("webpack"),
|
var webpack = require("webpack"),
|
||||||
ExtractTextPlugin = require("extract-text-webpack-plugin");
|
ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
module.exports = function (grunt) {
|
||||||
grunt.file.defaultEncoding = "utf8";
|
grunt.file.defaultEncoding = "utf8";
|
||||||
grunt.file.preserveBOM = false;
|
grunt.file.preserveBOM = false;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask("prod",
|
grunt.registerTask("prod",
|
||||||
"Creates a production-ready build. Use the --msg flag to add a compile message.",
|
"Creates a production-ready build. Use the --msg flag to add a compile message.",
|
||||||
["eslint", "test", "exec:stats", "clean", "jsdoc", "webpack:web", "copy:htmlDev", "copy:htmlProd", "copy:htmlInline",
|
["eslint", "test", "exec:stats", "clean", "jsdoc", "webpack:web", "copy:htmlDev", "copy:htmlProd", "copy:htmlInline",
|
||||||
"copy:staticDev", "copy:staticProd", "cssmin", "uglify:prod", "inline", "htmlmin", "docs", "chmod"]);
|
"copy:staticDev", "copy:staticProd", "cssmin", "uglify:prod", "inline", "htmlmin", "chmod"]);
|
||||||
|
|
||||||
grunt.registerTask("docs",
|
grunt.registerTask("docs",
|
||||||
"Compiles documentation in the /docs directory.",
|
"Compiles documentation in the /docs directory.",
|
||||||
|
@ -61,32 +61,32 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
|
|
||||||
var compileTime = grunt.template.today("dd/mm/yyyy HH:MM:ss") + " UTC",
|
var compileTime = grunt.template.today("dd/mm/yyyy HH:MM:ss") + " UTC",
|
||||||
banner = '/**\n\
|
banner = "/**\n" +
|
||||||
* CyberChef - The Cyber Swiss Army Knife\n\
|
"* CyberChef - The Cyber Swiss Army Knife\n" +
|
||||||
*\n\
|
"*\n" +
|
||||||
* @copyright Crown Copyright 2016\n\
|
"* @copyright Crown Copyright 2016\n" +
|
||||||
* @license Apache-2.0\n\
|
"* @license Apache-2.0\n" +
|
||||||
*\n\
|
"*\n" +
|
||||||
* Copyright 2016 Crown Copyright\n\
|
"* Copyright 2016 Crown Copyright\n" +
|
||||||
*\n\
|
"*\n" +
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");\n\
|
'* Licensed under the Apache License, Version 2.0 (the "License");\n' +
|
||||||
* you may not use this file except in compliance with the License.\n\
|
"* you may not use this file except in compliance with the License.\n" +
|
||||||
* You may obtain a copy of the License at\n\
|
"* You may obtain a copy of the License at\n" +
|
||||||
*\n\
|
"*\n" +
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0\n\
|
"* http://www.apache.org/licenses/LICENSE-2.0\n" +
|
||||||
*\n\
|
"*\n" +
|
||||||
* Unless required by applicable law or agreed to in writing, software\n\
|
"* Unless required by applicable law or agreed to in writing, software\n" +
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,\n\
|
'* distributed under the License is distributed on an "AS IS" BASIS,\n' +
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
|
"* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
|
||||||
* See the License for the specific language governing permissions and\n\
|
"* See the License for the specific language governing permissions and\n" +
|
||||||
* limitations under the License.\n\
|
"* limitations under the License.\n" +
|
||||||
*/\n';
|
"*/\n";
|
||||||
|
|
||||||
var templateOptions = {
|
var templateOptions = {
|
||||||
data: {
|
data: {
|
||||||
compileTime: compileTime,
|
compileTime: compileTime,
|
||||||
compileMsg: grunt.option("compile-msg") || grunt.option("msg") || "",
|
compileMsg: grunt.option("compile-msg") || grunt.option("msg") || "",
|
||||||
codebaseStats: grunt.file.read("src/static/stats.txt").split("\n").join("<br>")
|
codebaseStats: grunt.file.read("src/web/static/stats.txt").split("\n").join("<br>")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,13 +94,12 @@ module.exports = function(grunt) {
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
eslint: {
|
eslint: {
|
||||||
options: {
|
options: {
|
||||||
configFile: "src/js/.eslintrc.json"
|
configFile: "src/.eslintrc.json"
|
||||||
},
|
},
|
||||||
gruntfile: ["Gruntfile.js"],
|
gruntfile: ["Gruntfile.js"],
|
||||||
core: ["src/js/core/**/*.js"],
|
core: ["src/core/**/*.js", "!src/core/lib/**/*"],
|
||||||
config: ["src/js/config/**/*.js"],
|
web: ["src/web/**/*.js"],
|
||||||
views: ["src/js/views/**/*.js"],
|
node: ["src/node/**/*.js"],
|
||||||
operations: ["src/js/operations/**/*.js"],
|
|
||||||
tests: ["test/**/*.js"],
|
tests: ["test/**/*.js"],
|
||||||
},
|
},
|
||||||
jsdoc: {
|
jsdoc: {
|
||||||
|
@ -113,8 +112,8 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
all: {
|
all: {
|
||||||
src: [
|
src: [
|
||||||
"src/js/**/*.js",
|
"src/**/*.js",
|
||||||
"!src/js/lib/**/*",
|
"!src/core/lib/**/*",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -165,8 +164,8 @@ module.exports = function(grunt) {
|
||||||
"bootstrap",
|
"bootstrap",
|
||||||
"bootstrap-switch",
|
"bootstrap-switch",
|
||||||
"bootstrap-colorpicker",
|
"bootstrap-colorpicker",
|
||||||
"./src/css/index.js",
|
"./src/web/css/index.js",
|
||||||
"./src/js/views/html/main.js"
|
"./src/web/index.js"
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
filename: "scripts.js",
|
filename: "scripts.js",
|
||||||
|
@ -218,7 +217,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
node: {
|
node: {
|
||||||
target: "node",
|
target: "node",
|
||||||
entry: ["babel-polyfill", "./src/js/views/node/index.js"],
|
entry: ["babel-polyfill", "./src/node/index.js"],
|
||||||
output: {
|
output: {
|
||||||
filename: "CyberChef.js",
|
filename: "CyberChef.js",
|
||||||
path: "build/node",
|
path: "build/node",
|
||||||
|
@ -236,25 +235,25 @@ module.exports = function(grunt) {
|
||||||
copy: {
|
copy: {
|
||||||
htmlDev: {
|
htmlDev: {
|
||||||
options: {
|
options: {
|
||||||
process: function(content, srcpath) {
|
process: function (content, srcpath) {
|
||||||
return grunt.template.process(content, templateOptions);
|
return grunt.template.process(content, templateOptions);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src: "src/html/index.html",
|
src: "src/web/html/index.html",
|
||||||
dest: "build/dev/index.html"
|
dest: "build/dev/index.html"
|
||||||
},
|
},
|
||||||
htmlProd: {
|
htmlProd: {
|
||||||
options: {
|
options: {
|
||||||
process: function(content, srcpath) {
|
process: function (content, srcpath) {
|
||||||
return grunt.template.process(content, templateOptions);
|
return grunt.template.process(content, templateOptions);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src: "src/html/index.html",
|
src: "src/web/html/index.html",
|
||||||
dest: "build/prod/index.html"
|
dest: "build/prod/index.html"
|
||||||
},
|
},
|
||||||
htmlInline: {
|
htmlInline: {
|
||||||
options: {
|
options: {
|
||||||
process: function(content, srcpath) {
|
process: function (content, srcpath) {
|
||||||
// TODO: Do all this in Jade
|
// TODO: Do all this in Jade
|
||||||
content = content.replace(
|
content = content.replace(
|
||||||
'<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;" download>Download CyberChef<img src="images/download-24x24.png" /></a>',
|
'<a href="cyberchef.htm" style="float: left; margin-left: 10px; margin-right: 80px;" download>Download CyberChef<img src="images/download-24x24.png" /></a>',
|
||||||
|
@ -262,14 +261,14 @@ module.exports = function(grunt) {
|
||||||
return grunt.template.process(content, templateOptions);
|
return grunt.template.process(content, templateOptions);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src: "src/html/index.html",
|
src: "src/web/html/index.html",
|
||||||
dest: "build/prod/cyberchef.htm"
|
dest: "build/prod/cyberchef.htm"
|
||||||
},
|
},
|
||||||
staticDev: {
|
staticDev: {
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: "src/static/",
|
cwd: "src/web/static/",
|
||||||
src: [
|
src: [
|
||||||
"**/*",
|
"**/*",
|
||||||
"**/.*",
|
"**/.*",
|
||||||
|
@ -284,7 +283,7 @@ module.exports = function(grunt) {
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: "src/static/",
|
cwd: "src/web/static/",
|
||||||
src: [
|
src: [
|
||||||
"**/*",
|
"**/*",
|
||||||
"**/.*",
|
"**/.*",
|
||||||
|
@ -297,7 +296,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
ghPages: {
|
ghPages: {
|
||||||
options: {
|
options: {
|
||||||
process: function(content, srcpath) {
|
process: function (content, srcpath) {
|
||||||
// Add Google Analytics code to index.html
|
// Add Google Analytics code to index.html
|
||||||
content = content.replace("</body></html>",
|
content = content.replace("</body></html>",
|
||||||
grunt.file.read("src/static/ga.html") + "</body></html>");
|
grunt.file.read("src/static/ga.html") + "</body></html>");
|
||||||
|
@ -310,7 +309,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
options: {
|
options: {
|
||||||
preserveComments: function(node, comment) {
|
preserveComments: function (node, comment) {
|
||||||
if (comment.value.indexOf("* @license") === 0) return true;
|
if (comment.value.indexOf("* @license") === 0) return true;
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
@ -403,47 +402,39 @@ module.exports = function(grunt) {
|
||||||
stderr: false
|
stderr: false
|
||||||
},
|
},
|
||||||
stats: {
|
stats: {
|
||||||
command: "rm src/static/stats.txt;" +
|
command: "rm src/web/static/stats.txt;" +
|
||||||
[
|
[
|
||||||
"ls src/ -R1 | grep '^$' -v | grep ':$' -v | wc -l | xargs printf '%b\tsource files\n'",
|
"ls src/ -R1 | grep '^$' -v | grep ':$' -v | wc -l | xargs printf '%b\tsource files\n'",
|
||||||
"find src/ -regex '.*\..*' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
"find src/ -regex '.*\..*' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
||||||
"du -hs src/ | pcregrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
"du -hs src/ | pcregrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
||||||
|
|
||||||
"ls src/js/ -R1 | grep '\.js$' | wc -l | xargs printf '\n%b\tJavaScript source files\n'",
|
"find src/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | wc -l | xargs printf '\n%b\tJavaScript source files\n'",
|
||||||
"find src/js/ -regex '.*\.js' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
"find src/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
||||||
"find src/js/ -regex '.*\.js' -exec du -hcs {} \+ | tail -n1 | egrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
"find src/ -regex '.*\.js' -not -regex '.*/lib/.*' -exec du -hcs {} \+ | tail -n1 | egrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
||||||
|
|
||||||
"find src/js/ -regex '.*/lib/.*\.js' -print | wc -l | xargs printf '\n%b\tthird party JavaScript source files\n'",
|
"du build/dev/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '\n%b\tuncompressed JavaScript size\n'",
|
||||||
"find src/js/ -regex '.*/lib/.*\.js' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
"du build/prod/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '%b\tcompressed JavaScript size\n'",
|
||||||
"find src/js/ -regex '.*/lib/.*\.js' -exec du -hcs {} \+ | tail -n1 | egrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
|
||||||
|
|
||||||
"find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | wc -l | xargs printf '\n%b\tfirst party JavaScript source files\n'",
|
"grep -E '^\\s+name: ' src/core/config/Categories.js | wc -l | xargs printf '\n%b\tcategories\n'",
|
||||||
"find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
|
"grep -E '^\\s+\"[A-Za-z0-9 \\-]+\": {' src/core/config/OperationConfig.js | wc -l | xargs printf '%b\toperations\n'",
|
||||||
"find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -exec du -hcs {} \+ | tail -n1 | egrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
|
|
||||||
|
|
||||||
"du build/dev/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '\n%b\tuncompressed JavaScript size\n'",
|
].join(" >> src/web/static/stats.txt;") + " >> src/web/static/stats.txt;",
|
||||||
"du build/prod/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '%b\tcompressed JavaScript size\n'",
|
|
||||||
|
|
||||||
"grep -E '^\\s+name: ' src/js/config/Categories.js | wc -l | xargs printf '\n%b\tcategories\n'",
|
|
||||||
"grep -E '^\\s+\"[A-Za-z0-9 \\-]+\": {' src/js/config/OperationConfig.js | wc -l | xargs printf '%b\toperations\n'",
|
|
||||||
|
|
||||||
].join(" >> src/static/stats.txt;") + " >> src/static/stats.txt;",
|
|
||||||
stderr: false
|
stderr: false
|
||||||
},
|
},
|
||||||
displayStats: {
|
displayStats: {
|
||||||
command: "cat src/static/stats.txt"
|
command: "cat src/web/static/stats.txt"
|
||||||
},
|
},
|
||||||
cleanGit: {
|
cleanGit: {
|
||||||
command: "git gc --prune=now --aggressive"
|
command: "git gc --prune=now --aggressive"
|
||||||
},
|
},
|
||||||
deployGhPages: {
|
deployGhPages: {
|
||||||
command: [
|
command: [
|
||||||
"git add build/prod/index.html -v",
|
"git add build/prod/index.html -v",
|
||||||
"COMMIT_HASH=$(git rev-parse HEAD)",
|
"COMMIT_HASH=$(git rev-parse HEAD)",
|
||||||
"git commit -m \"GitHub Pages release for ${COMMIT_HASH}\"",
|
"git commit -m \"GitHub Pages release for ${COMMIT_HASH}\"",
|
||||||
"git push origin `git subtree split --prefix build/prod master`:gh-pages --force",
|
"git push origin `git subtree split --prefix build/prod master`:gh-pages --force",
|
||||||
"git reset HEAD~",
|
"git reset HEAD~",
|
||||||
"git checkout build/prod/index.html"
|
"git checkout build/prod/index.html"
|
||||||
].join(";")
|
].join(";")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -452,19 +443,19 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
css: {
|
css: {
|
||||||
files: ["src/css/**/*.css", "src/css/**/*.less"],
|
files: ["src/web/css/**/*.css", "src/web/css/**/*.less"],
|
||||||
tasks: ["webpack:web", "chmod:build"]
|
tasks: ["webpack:web", "chmod:build"]
|
||||||
},
|
},
|
||||||
js: {
|
js: {
|
||||||
files: "src/js/**/*.js",
|
files: "src/**/*.js",
|
||||||
tasks: ["webpack:web", "chmod:build"]
|
tasks: ["webpack:web", "chmod:build"]
|
||||||
},
|
},
|
||||||
html: {
|
html: {
|
||||||
files: "src/html/**/*.html",
|
files: "src/web/html/**/*.html",
|
||||||
tasks: ["copy:htmlDev", "chmod:build"]
|
tasks: ["copy:htmlDev", "chmod:build"]
|
||||||
},
|
},
|
||||||
static: {
|
static: {
|
||||||
files: ["src/static/**/*", "src/static/**/.*"],
|
files: ["src/web/static/**/*", "src/web/static/**/.*"],
|
||||||
tasks: ["copy:staticDev", "chmod:build"]
|
tasks: ["copy:staticDev", "chmod:build"]
|
||||||
},
|
},
|
||||||
grunt: {
|
grunt: {
|
||||||
|
|
|
@ -220,4 +220,4 @@ Recipe.prototype.fromString = function(recipeStr) {
|
||||||
|
|
||||||
// Required here to prevent circular dependency where Recipe returns an empty object
|
// Required here to prevent circular dependency where Recipe returns an empty object
|
||||||
// See http://stackoverflow.com/a/30390378
|
// See http://stackoverflow.com/a/30390378
|
||||||
var OperationConfig = require("../config/OperationConfig.js");
|
var OperationConfig = require("./config/OperationConfig.js");
|
|
@ -1,4 +1,4 @@
|
||||||
var FlowControl = require("../core/FlowControl.js"),
|
var FlowControl = require("../FlowControl.js"),
|
||||||
Base = require("../operations/Base.js"),
|
Base = require("../operations/Base.js"),
|
||||||
Base58 = require("../operations/Base58.js"),
|
Base58 = require("../operations/Base58.js"),
|
||||||
Base64 = require("../operations/Base64.js"),
|
Base64 = require("../operations/Base64.js"),
|
|
@ -26,7 +26,7 @@
|
||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
var UAS_parser = {
|
var UAS_parser = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
CryptoJS = require("crypto-js");
|
CryptoJS = require("crypto-js");
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* globals app */
|
/* globals app */
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
CryptoJS = require("crypto-js");
|
CryptoJS = require("crypto-js");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
CryptoJS = require("crypto-js"),
|
CryptoJS = require("crypto-js"),
|
||||||
Blowfish = require("sladex-blowfish");
|
Blowfish = require("sladex-blowfish");
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
VKbeautify = require("vkbeautify"),
|
VKbeautify = require("vkbeautify"),
|
||||||
dom = require("xmldom").DOMParser,
|
dom = require("xmldom").DOMParser,
|
||||||
xpath = require("xpath"),
|
xpath = require("xpath"),
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
rawdeflate = require("zlibjs/bin/rawdeflate.min"),
|
rawdeflate = require("zlibjs/bin/rawdeflate.min"),
|
||||||
rawinflate = require("zlibjs/bin/rawinflate.min"),
|
rawinflate = require("zlibjs/bin/rawinflate.min"),
|
||||||
zlibAndGzip = require("zlibjs/bin/zlib_and_gzip.min"),
|
zlibAndGzip = require("zlibjs/bin/zlib_and_gzip.min"),
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
CryptoJS = require("crypto-js"),
|
CryptoJS = require("crypto-js"),
|
||||||
CryptoApi = require("crypto-api"),
|
CryptoApi = require("crypto-api"),
|
||||||
Checksum = require("./Checksum.js");
|
Checksum = require("./Checksum.js");
|
|
@ -1,5 +1,5 @@
|
||||||
/* globals app */
|
/* globals app */
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
Checksum = require("./Checksum.js"),
|
Checksum = require("./Checksum.js"),
|
||||||
BigInteger = require("jsbn").BigInteger;
|
BigInteger = require("jsbn").BigInteger;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
r = require("jsrsasign");
|
r = require("jsrsasign");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js"),
|
var Utils = require("../Utils.js"),
|
||||||
JsDiff = require("diff");
|
JsDiff = require("diff");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,6 +1,5 @@
|
||||||
/* globals unescape */
|
/* globals unescape */
|
||||||
|
var Utils = require("../Utils.js");
|
||||||
var Utils = require("../core/Utils.js");
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../core/Utils.js");
|
var Utils = require("../Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Chef = require("../../core/Chef.js");
|
var Chef = require("../core/Chef.js");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
214 source files
|
|
||||||
115922 lines
|
|
||||||
4.3M size
|
|
||||||
|
|
||||||
144 JavaScript source files
|
|
||||||
106730 lines
|
|
||||||
3.8M size
|
|
||||||
|
|
||||||
83 third party JavaScript source files
|
|
||||||
86259 lines
|
|
||||||
3.0M size
|
|
||||||
|
|
||||||
61 first party JavaScript source files
|
|
||||||
20471 lines
|
|
||||||
764K size
|
|
||||||
|
|
||||||
3.5M uncompressed JavaScript size
|
|
||||||
1.9M compressed JavaScript size
|
|
||||||
|
|
||||||
15 categories
|
|
||||||
177 operations
|
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../../core/Utils.js");
|
var Utils = require("../core/Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,5 +1,5 @@
|
||||||
var Utils = require("../../core/Utils.js"),
|
var Utils = require("../core/Utils.js"),
|
||||||
Chef = require("../../core/Chef.js"),
|
Chef = require("../core/Chef.js"),
|
||||||
Manager = require("./Manager.js"),
|
Manager = require("./Manager.js"),
|
||||||
HTMLCategory = require("./HTMLCategory.js"),
|
HTMLCategory = require("./HTMLCategory.js"),
|
||||||
HTMLOperation = require("./HTMLOperation.js"),
|
HTMLOperation = require("./HTMLOperation.js"),
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../../core/Utils.js");
|
var Utils = require("../core/Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../../core/Utils.js");
|
var Utils = require("../core/Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
var Utils = require("../../core/Utils.js");
|
var Utils = require("../core/Utils.js");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -15,4 +15,4 @@ require("bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css");
|
||||||
require("./structure/overrides.css");
|
require("./structure/overrides.css");
|
||||||
require("./structure/layout.css");
|
require("./structure/layout.css");
|
||||||
require("./structure/utils.css");
|
require("./structure/utils.css");
|
||||||
require("./themes/classic.css");
|
require("./themes/classic.css");
|
|
@ -5,9 +5,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var HTMLApp = require("./HTMLApp.js"),
|
var HTMLApp = require("./HTMLApp.js"),
|
||||||
Categories = require("../../config/Categories.js"),
|
Categories = require("../core/config/Categories.js"),
|
||||||
OperationConfig = require("../../config/OperationConfig.js"),
|
OperationConfig = require("../core/config/OperationConfig.js"),
|
||||||
CanvasComponents = require("../../lib/canvascomponents.js");
|
CanvasComponents = require("../core/lib/canvascomponents.js");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main function used to build the CyberChef web app.
|
* Main function used to build the CyberChef web app.
|
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 773 B After Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 702 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 746 B |
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |