Browse Source

Restructured src files into a more logical hierarchy

n1474335 8 years ago
parent
commit
0f2a5014be
100 changed files with 103 additions and 157 deletions
  1. 66 75
      Gruntfile.js
  2. 0 2
      build/prod/cyberchef.htm
  3. 0 0
      build/prod/index.html
  4. 0 19
      build/prod/scripts.js
  5. 0 2
      build/prod/styles.css
  6. 0 0
      src/.eslintrc.json
  7. 0 0
      src/core/Chef.js
  8. 0 0
      src/core/Dish.js
  9. 0 0
      src/core/FlowControl.js
  10. 0 0
      src/core/Ingredient.js
  11. 0 0
      src/core/Operation.js
  12. 1 1
      src/core/Recipe.js
  13. 0 0
      src/core/Utils.js
  14. 0 0
      src/core/config/Categories.js
  15. 1 1
      src/core/config/OperationConfig.js
  16. 0 0
      src/core/lib/bzip2.js
  17. 0 0
      src/core/lib/canvascomponents.js
  18. 1 1
      src/core/lib/uas_parser.js
  19. 0 0
      src/core/operations/Base.js
  20. 1 1
      src/core/operations/Base58.js
  21. 1 1
      src/core/operations/Base64.js
  22. 1 1
      src/core/operations/BitwiseOp.js
  23. 1 1
      src/core/operations/ByteRepr.js
  24. 1 1
      src/core/operations/CharEnc.js
  25. 1 1
      src/core/operations/Checksum.js
  26. 1 1
      src/core/operations/Cipher.js
  27. 1 1
      src/core/operations/Code.js
  28. 1 1
      src/core/operations/Compress.js
  29. 0 0
      src/core/operations/Convert.js
  30. 0 0
      src/core/operations/DateTime.js
  31. 1 1
      src/core/operations/Endian.js
  32. 1 1
      src/core/operations/Entropy.js
  33. 0 0
      src/core/operations/Extract.js
  34. 1 1
      src/core/operations/FileType.js
  35. 1 1
      src/core/operations/HTML.js
  36. 0 0
      src/core/operations/HTTP.js
  37. 1 1
      src/core/operations/Hash.js
  38. 1 1
      src/core/operations/Hexdump.js
  39. 1 1
      src/core/operations/IP.js
  40. 0 0
      src/core/operations/JS.js
  41. 0 0
      src/core/operations/MAC.js
  42. 1 1
      src/core/operations/MorseCode.js
  43. 0 0
      src/core/operations/NetBIOS.js
  44. 0 0
      src/core/operations/Numberwang.js
  45. 0 0
      src/core/operations/OS.js
  46. 1 1
      src/core/operations/PublicKey.js
  47. 0 0
      src/core/operations/Punycode.js
  48. 0 0
      src/core/operations/QuotedPrintable.js
  49. 0 0
      src/core/operations/Rotate.js
  50. 1 1
      src/core/operations/SeqUtils.js
  51. 1 1
      src/core/operations/StrUtils.js
  52. 1 1
      src/core/operations/Tidy.js
  53. 1 2
      src/core/operations/URL.js
  54. 0 0
      src/core/operations/UUID.js
  55. 1 1
      src/core/operations/Unicode.js
  56. 1 1
      src/node/index.js
  57. 0 21
      src/static/stats.txt
  58. 1 1
      src/web/ControlsWaiter.js
  59. 2 2
      src/web/HTMLApp.js
  60. 0 0
      src/web/HTMLCategory.js
  61. 0 0
      src/web/HTMLIngredient.js
  62. 0 0
      src/web/HTMLOperation.js
  63. 1 1
      src/web/HighlighterWaiter.js
  64. 1 1
      src/web/InputWaiter.js
  65. 0 0
      src/web/Manager.js
  66. 0 0
      src/web/OperationsWaiter.js
  67. 0 0
      src/web/OptionsWaiter.js
  68. 1 1
      src/web/OutputWaiter.js
  69. 0 0
      src/web/RecipeWaiter.js
  70. 0 0
      src/web/SeasonalWaiter.js
  71. 0 0
      src/web/WindowWaiter.js
  72. 1 1
      src/web/css/index.js
  73. 0 0
      src/web/css/lib/bootstrap.less
  74. 0 0
      src/web/css/structure/layout.css
  75. 0 0
      src/web/css/structure/overrides.css
  76. 0 0
      src/web/css/structure/utils.css
  77. 0 0
      src/web/css/themes/classic.css
  78. 0 0
      src/web/html/index.html
  79. 3 3
      src/web/index.js
  80. 0 0
      src/web/static/.htaccess
  81. 0 0
      src/web/static/ga.html
  82. 0 0
      src/web/static/images/breakpoint-16x16.png
  83. 0 0
      src/web/static/images/bug-16x16.png
  84. 0 0
      src/web/static/images/clean-16x16.png
  85. 0 0
      src/web/static/images/code-16x16.png
  86. 0 0
      src/web/static/images/cook_female-32x32.png
  87. 0 0
      src/web/static/images/cook_male-32x32.png
  88. 0 0
      src/web/static/images/cyberchef-128x128.png
  89. 0 0
      src/web/static/images/cyberchef-16x16.png
  90. 0 0
      src/web/static/images/cyberchef-256x256.png
  91. 0 0
      src/web/static/images/cyberchef-32x32.png
  92. 0 0
      src/web/static/images/cyberchef-512x512.png
  93. 0 0
      src/web/static/images/cyberchef-64x64.png
  94. 0 0
      src/web/static/images/disable_deselected-16x16.png
  95. 0 0
      src/web/static/images/disable_selected-16x16.png
  96. 0 0
      src/web/static/images/download-24x24.png
  97. 0 0
      src/web/static/images/erase-16x16.png
  98. 0 0
      src/web/static/images/favicon.ico
  99. 0 0
      src/web/static/images/favourite-16x16.png
  100. 0 0
      src/web/static/images/favourite-24x24.png

+ 66 - 75
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\
- * CyberChef - The Cyber Swiss Army Knife\n\
- *\n\
- * @copyright Crown Copyright 2016\n\
- * @license Apache-2.0\n\
- *\n\
- *   Copyright 2016 Crown Copyright\n\
- *\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 obtain a copy of the License at\n\
- *\n\
- *     http://www.apache.org/licenses/LICENSE-2.0\n\
- *\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\
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
- * See the License for the specific language governing permissions and\n\
- * limitations under the License.\n\
- */\n';
+        banner = "/**\n" +
+            "* CyberChef - The Cyber Swiss Army Knife\n" +
+            "*\n" +
+            "* @copyright Crown Copyright 2016\n" +
+            "* @license Apache-2.0\n" +
+            "*\n" +
+            "*   Copyright 2016 Crown Copyright\n" +
+            "*\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 obtain a copy of the License at\n" +
+            "*\n" +
+            "*     http://www.apache.org/licenses/LICENSE-2.0\n" +
+            "*\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' +
+            "* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" +
+            "* See the License for the specific language governing permissions and\n" +
+            "* limitations under the License.\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"],
-            config: ["src/js/config/**/*.js"],
-            views: ["src/js/views/**/*.js"],
-            operations: ["src/js/operations/**/*.js"],
+            core: ["src/core/**/*.js", "!src/core/lib/**/*"],
+            web: ["src/web/**/*.js"],
+            node: ["src/node/**/*.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/lib/**/*",
+                    "src/**/*.js",
+                    "!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/js/views/html/main.js"
+                    "./src/web/css/index.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;" +
-                    [
-                        "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'",
-                        "du -hs src/ | pcregrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
+                command: "rm src/web/static/stats.txt;" +
+                [
+                    "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'",
+                    "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/js/ -regex '.*\.js' -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/.*' -print | wc -l | xargs printf '\n%b\tJavaScript source files\n'",
+                    "find src/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | xargs cat | wc -l | xargs printf '%b\tlines\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'",
-                        "find src/js/ -regex '.*/lib/.*\.js' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
-                        "find src/js/ -regex '.*/lib/.*\.js' -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'",
+                    "du build/prod/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '%b\tcompressed JavaScript size\n'",
 
 
-                        "find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | wc -l | xargs printf '\n%b\tfirst party JavaScript source files\n'",
-                        "find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -print | xargs cat | wc -l | xargs printf '%b\tlines\n'",
-                        "find src/js/ -regex '.*\.js' -not -regex '.*/lib/.*' -exec du -hcs {} \+ | tail -n1 | egrep -o '^[^\t]*' | xargs printf '%b\tsize\n'",
+                    "grep -E '^\\s+name: ' src/core/config/Categories.js | wc -l | xargs printf '\n%b\tcategories\n'",
+                    "grep -E '^\\s+\"[A-Za-z0-9 \\-]+\": {' src/core/config/OperationConfig.js | wc -l | xargs printf '%b\toperations\n'",
 
 
-                        "du build/dev/scripts.js -h | egrep -o '^[^\t]*' | xargs printf '\n%b\tuncompressed JavaScript size\n'",
-                        "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;",
+                ].join(" >> src/web/static/stats.txt;") + " >> src/web/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",
-                        "COMMIT_HASH=$(git rev-parse HEAD)",
-                        "git commit -m \"GitHub Pages release for ${COMMIT_HASH}\"",
-                        "git push origin `git subtree split --prefix build/prod master`:gh-pages --force",
-                        "git reset HEAD~",
-                        "git checkout build/prod/index.html"
+                    "git add build/prod/index.html -v",
+                    "COMMIT_HASH=$(git rev-parse HEAD)",
+                    "git commit -m \"GitHub Pages release for ${COMMIT_HASH}\"",
+                    "git push origin `git subtree split --prefix build/prod master`:gh-pages --force",
+                    "git reset HEAD~",
+                    "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: {

File diff suppressed because it is too large
+ 0 - 2
build/prod/cyberchef.htm


File diff suppressed because it is too large
+ 0 - 0
build/prod/index.html


File diff suppressed because it is too large
+ 0 - 19
build/prod/scripts.js


File diff suppressed because it is too large
+ 0 - 2
build/prod/styles.css


+ 0 - 0
src/js/.eslintrc.json → src/.eslintrc.json


+ 0 - 0
src/js/core/Chef.js → src/core/Chef.js


+ 0 - 0
src/js/core/Dish.js → src/core/Dish.js


+ 0 - 0
src/js/core/FlowControl.js → src/core/FlowControl.js


+ 0 - 0
src/js/core/Ingredient.js → src/core/Ingredient.js


+ 0 - 0
src/js/core/Operation.js → src/core/Operation.js


+ 1 - 1
src/js/core/Recipe.js → src/core/Recipe.js

@@ -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");

+ 0 - 0
src/js/core/Utils.js → src/core/Utils.js


+ 0 - 0
src/js/config/Categories.js → src/core/config/Categories.js


+ 1 - 1
src/js/config/OperationConfig.js → src/core/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"),

+ 0 - 0
src/js/lib/bzip2.js → src/core/lib/bzip2.js


+ 0 - 0
src/js/lib/canvascomponents.js → src/core/lib/canvascomponents.js


+ 1 - 1
src/js/lib/uas_parser.js → src/core/lib/uas_parser.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 = {
 	
 	

+ 0 - 0
src/js/operations/Base.js → src/core/operations/Base.js


+ 1 - 1
src/js/operations/Base58.js → src/core/operations/Base58.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/Base64.js → src/core/operations/Base64.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/BitwiseOp.js → src/core/operations/BitwiseOp.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 - 1
src/js/operations/ByteRepr.js → src/core/operations/ByteRepr.js

@@ -1,5 +1,5 @@
 /* globals app */
 /* globals app */
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/CharEnc.js → src/core/operations/CharEnc.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 - 1
src/js/operations/Checksum.js → src/core/operations/Checksum.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/Cipher.js → src/core/operations/Cipher.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 - 1
src/js/operations/Code.js → src/core/operations/Code.js

@@ -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 - 1
src/js/operations/Compress.js → src/core/operations/Compress.js

@@ -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"),

+ 0 - 0
src/js/operations/Convert.js → src/core/operations/Convert.js


+ 0 - 0
src/js/operations/DateTime.js → src/core/operations/DateTime.js


+ 1 - 1
src/js/operations/Endian.js → src/core/operations/Endian.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/Entropy.js → src/core/operations/Entropy.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/operations/Extract.js → src/core/operations/Extract.js


+ 1 - 1
src/js/operations/FileType.js → src/core/operations/FileType.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/HTML.js → src/core/operations/HTML.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/operations/HTTP.js → src/core/operations/HTTP.js


+ 1 - 1
src/js/operations/Hash.js → src/core/operations/Hash.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 - 1
src/js/operations/Hexdump.js → src/core/operations/Hexdump.js

@@ -1,5 +1,5 @@
 /* globals app */
 /* globals app */
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/IP.js → src/core/operations/IP.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;
 
 

+ 0 - 0
src/js/operations/JS.js → src/core/operations/JS.js


+ 0 - 0
src/js/operations/MAC.js → src/core/operations/MAC.js


+ 1 - 1
src/js/operations/MorseCode.js → src/core/operations/MorseCode.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/operations/NetBIOS.js → src/core/operations/NetBIOS.js


+ 0 - 0
src/js/operations/Numberwang.js → src/core/operations/Numberwang.js


+ 0 - 0
src/js/operations/OS.js → src/core/operations/OS.js


+ 1 - 1
src/js/operations/PublicKey.js → src/core/operations/PublicKey.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js"),
+var Utils = require("../Utils.js"),
     r = require("jsrsasign");
     r = require("jsrsasign");
 
 
 
 

+ 0 - 0
src/js/operations/Punycode.js → src/core/operations/Punycode.js


+ 0 - 0
src/js/operations/QuotedPrintable.js → src/core/operations/QuotedPrintable.js


+ 0 - 0
src/js/operations/Rotate.js → src/core/operations/Rotate.js


+ 1 - 1
src/js/operations/SeqUtils.js → src/core/operations/SeqUtils.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/operations/StrUtils.js → src/core/operations/StrUtils.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js"),
+var Utils = require("../Utils.js"),
     JsDiff = require("diff");
     JsDiff = require("diff");
 
 
 
 

+ 1 - 1
src/js/operations/Tidy.js → src/core/operations/Tidy.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 2
src/js/operations/URL.js → src/core/operations/URL.js

@@ -1,6 +1,5 @@
 /* globals unescape */
 /* globals unescape */
-
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/operations/UUID.js → src/core/operations/UUID.js


+ 1 - 1
src/js/operations/Unicode.js → src/core/operations/Unicode.js

@@ -1,4 +1,4 @@
-var Utils = require("../core/Utils.js");
+var Utils = require("../Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/views/node/index.js → src/node/index.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 = {
 
 

+ 0 - 21
src/static/stats.txt

@@ -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 - 1
src/js/views/html/ControlsWaiter.js → src/web/ControlsWaiter.js

@@ -1,4 +1,4 @@
-var Utils = require("../../core/Utils.js");
+var Utils = require("../core/Utils.js");
 
 
 
 
 /**
 /**

+ 2 - 2
src/js/views/html/HTMLApp.js → src/web/HTMLApp.js

@@ -1,5 +1,5 @@
-var Utils = require("../../core/Utils.js"),
-    Chef = require("../../core/Chef.js"),
+var Utils = require("../core/Utils.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"),

+ 0 - 0
src/js/views/html/HTMLCategory.js → src/web/HTMLCategory.js


+ 0 - 0
src/js/views/html/HTMLIngredient.js → src/web/HTMLIngredient.js


+ 0 - 0
src/js/views/html/HTMLOperation.js → src/web/HTMLOperation.js


+ 1 - 1
src/js/views/html/HighlighterWaiter.js → src/web/HighlighterWaiter.js

@@ -1,4 +1,4 @@
-var Utils = require("../../core/Utils.js");
+var Utils = require("../core/Utils.js");
 
 
 
 
 /**
 /**

+ 1 - 1
src/js/views/html/InputWaiter.js → src/web/InputWaiter.js

@@ -1,4 +1,4 @@
-var Utils = require("../../core/Utils.js");
+var Utils = require("../core/Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/views/html/Manager.js → src/web/Manager.js


+ 0 - 0
src/js/views/html/OperationsWaiter.js → src/web/OperationsWaiter.js


+ 0 - 0
src/js/views/html/OptionsWaiter.js → src/web/OptionsWaiter.js


+ 1 - 1
src/js/views/html/OutputWaiter.js → src/web/OutputWaiter.js

@@ -1,4 +1,4 @@
-var Utils = require("../../core/Utils.js");
+var Utils = require("../core/Utils.js");
 
 
 
 
 /**
 /**

+ 0 - 0
src/js/views/html/RecipeWaiter.js → src/web/RecipeWaiter.js


+ 0 - 0
src/js/views/html/SeasonalWaiter.js → src/web/SeasonalWaiter.js


+ 0 - 0
src/js/views/html/WindowWaiter.js → src/web/WindowWaiter.js


+ 1 - 1
src/css/index.js → src/web/css/index.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");

+ 0 - 0
src/css/lib/bootstrap.less → src/web/css/lib/bootstrap.less


+ 0 - 0
src/css/structure/layout.css → src/web/css/structure/layout.css


+ 0 - 0
src/css/structure/overrides.css → src/web/css/structure/overrides.css


+ 0 - 0
src/css/structure/utils.css → src/web/css/structure/utils.css


+ 0 - 0
src/css/themes/classic.css → src/web/css/themes/classic.css


+ 0 - 0
src/html/index.html → src/web/html/index.html


+ 3 - 3
src/js/views/html/main.js → src/web/index.js

@@ -5,9 +5,9 @@
  */
  */
 
 
 var HTMLApp = require("./HTMLApp.js"),
 var HTMLApp = require("./HTMLApp.js"),
-    Categories = require("../../config/Categories.js"),
-    OperationConfig = require("../../config/OperationConfig.js"),
-    CanvasComponents = require("../../lib/canvascomponents.js");
+    Categories = require("../core/config/Categories.js"),
+    OperationConfig = require("../core/config/OperationConfig.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.

+ 0 - 0
src/static/.htaccess → src/web/static/.htaccess


+ 0 - 0
src/static/ga.html → src/web/static/ga.html


+ 0 - 0
src/static/images/breakpoint-16x16.png → src/web/static/images/breakpoint-16x16.png


+ 0 - 0
src/static/images/bug-16x16.png → src/web/static/images/bug-16x16.png


+ 0 - 0
src/static/images/clean-16x16.png → src/web/static/images/clean-16x16.png


+ 0 - 0
src/static/images/code-16x16.png → src/web/static/images/code-16x16.png


+ 0 - 0
src/static/images/cook_female-32x32.png → src/web/static/images/cook_female-32x32.png


+ 0 - 0
src/static/images/cook_male-32x32.png → src/web/static/images/cook_male-32x32.png


+ 0 - 0
src/static/images/cyberchef-128x128.png → src/web/static/images/cyberchef-128x128.png


+ 0 - 0
src/static/images/cyberchef-16x16.png → src/web/static/images/cyberchef-16x16.png


+ 0 - 0
src/static/images/cyberchef-256x256.png → src/web/static/images/cyberchef-256x256.png


+ 0 - 0
src/static/images/cyberchef-32x32.png → src/web/static/images/cyberchef-32x32.png


+ 0 - 0
src/static/images/cyberchef-512x512.png → src/web/static/images/cyberchef-512x512.png


+ 0 - 0
src/static/images/cyberchef-64x64.png → src/web/static/images/cyberchef-64x64.png


+ 0 - 0
src/static/images/disable_deselected-16x16.png → src/web/static/images/disable_deselected-16x16.png


+ 0 - 0
src/static/images/disable_selected-16x16.png → src/web/static/images/disable_selected-16x16.png


+ 0 - 0
src/static/images/download-24x24.png → src/web/static/images/download-24x24.png


+ 0 - 0
src/static/images/erase-16x16.png → src/web/static/images/erase-16x16.png


+ 0 - 0
src/static/images/favicon.ico → src/web/static/images/favicon.ico


+ 0 - 0
src/static/images/favourite-16x16.png → src/web/static/images/favourite-16x16.png


+ 0 - 0
src/static/images/favourite-24x24.png → src/web/static/images/favourite-24x24.png


Some files were not shown because too many files changed in this diff