Commit graph

471 commits

Author SHA1 Message Date
j433866
586e5a3db8 Further improvements to tab search UI 2019-05-30 14:08:02 +01:00
j433866
d94a431537 Improve searching for tabs UI.
Content / filename search is now a regex.
Use .toLocaleString() for loading / baking stats
2019-05-30 13:28:45 +01:00
j433866
9b2f44efb1 Turn extract click listener back on.
Add shadow to tabs when there are more tabs that aren't displayed
2019-05-29 16:29:34 +01:00
j433866
12e4fe4120 Fix clear all button breaking everything.
Rearrange baking a bit to hopefully fix firefox
2019-05-29 14:08:37 +01:00
j433866
476d9c8034 Remove unused parameter 2019-05-29 14:07:46 +01:00
j433866
85809efcc0 Adjust number of tabs shown when resizing window.
Improve refresh tabs logic.
Fix input not being shown when loaded from a URL
2019-05-29 13:25:12 +01:00
j433866
722edcc274 Display file size in header 2019-05-29 11:46:21 +01:00
j433866
919c3fd999 Fix display file slice displaying raw instead of presented data.
Fix errored filter when searching for tabs.
2019-05-28 15:01:49 +01:00
j433866
6c711ec211 Add and remove chefworkers when adding or removing inputs.
This increases the responsiveness of baking as it means we don't have to...
spin up workers when bake is clicked
2019-05-28 14:11:05 +01:00
j433866
7528065d4d Fix stepping again.
Add new getInput function to inputWorker
2019-05-28 11:59:57 +01:00
j433866
0bced35931 Fix stepping again 2019-05-23 15:31:18 +01:00
j433866
4dcd60adc0 Improve handling of displaying large outputs.
Bring getDishStr and getDishBuffer back.
2019-05-23 15:29:58 +01:00
j433866
e95f92cdeb Bake inputs after clearing IO 2019-05-21 11:24:44 +01:00
j433866
cb86cb1882 Change baking to not send all inputs at once.
Add input debouncer.
Remove old HTML comments and unnecessary CSS
(Step is currently a bit broken!)
2019-05-20 16:53:56 +01:00
j433866
c50f5769db Add key bindings for tabs 2019-05-16 15:02:32 +01:00
j433866
6df9b649a1 Terminate zipworker when clearing all io 2019-05-16 13:04:04 +01:00
j433866
6f5018d45e Don't change option value if new value is blank 2019-05-16 11:59:25 +01:00
j433866
0e850b2a85 Fix stepping not working.
Use transferable object for sending arraybuffers to workers
2019-05-16 10:42:07 +01:00
j433866
d326cad611 Remove unused parameter 2019-05-16 09:38:34 +01:00
j433866
6237db9ba6 Use detectFileType to autodetect file extensions in zip 2019-05-16 09:27:46 +01:00
j433866
0cff7bdd04 Improve handling of OperationErrors.
Make output filter refresh when changing stale or errored checkboxes
2019-05-15 16:24:49 +01:00
j433866
413e80ed3e Add clicking on output search result 2019-05-15 16:03:18 +01:00
j433866
5d52f4a760 Add searching for output tabs.
Remove all existing chefworkers before starting a bake.
Clear breakpoint when starting a bake
2019-05-15 09:37:07 +01:00
j433866
0855dc617f Add comments to inputWorker.
Slightly improve logic for getNearbyNums
2019-05-14 16:13:36 +01:00
j433866
04587a8a47 Merge branch 'multiple-input-files' of github.com:j433866/CyberChef into multiple-input-files 2019-05-14 11:45:22 +01:00
j433866
392b96dc34 Commenting 2019-05-14 11:45:13 +01:00
j433866
84cc3d16ed Fix close tab buttons not working in old firefox. 2019-05-10 16:54:28 +01:00
j433866
e34d521dcc Improve UI for searching for input tabs 2019-05-10 13:48:03 +01:00
j433866
2c02900edf Improve handling of errors.
Add parameter to some update functions for whether or not to set the output
2019-05-10 13:47:48 +01:00
j433866
f5442c307a Only set the input of the active input if the progress has changed.
Autobake when the input loads instead of when all load.
2019-05-10 13:45:27 +01:00
j433866
aff0416405 Remove some comments 2019-05-09 09:07:28 +01:00
j433866
6d9a14feed Display when an input errors on load.
Autobake when all inputs have loaded.
Improve load experience.
2019-05-08 16:44:11 +01:00
j433866
3c2e5c143a Set bake button to "Loading..." when an autobake is started 2019-05-08 16:42:19 +01:00
j433866
65bb7f32e9 Fix refreshTabs not always hiding the tab bar 2019-05-08 14:58:09 +01:00
j433866
3b8c365f7e Remove unused zip dependency 2019-05-08 14:48:37 +01:00
j433866
43747accd5 Change to add input tabs as inputs are added, instead of at the end.
Change outputWaiter to use outputExists instead of getOutput
2019-05-08 14:47:05 +01:00
j433866
50f9bbeac3 Make set() asynchronous 2019-05-08 13:46:29 +01:00
j433866
3cffd9334f Fix file slice not always being displayed 2019-05-08 12:54:55 +01:00
j433866
f72749304d Improve handling of errors in operations.
Remove unused dependencies.
2019-05-08 11:57:22 +01:00
j433866
689d08416b Don't create more ChefWorkers than we need. 2019-05-08 10:53:04 +01:00
j433866
28182713bf Fix showing slice of output not working.
Fix output status message not being reset.
Hide magic button when baking.
2019-05-08 10:10:14 +01:00
j433866
8190c7aac7 Add maximise output button 2019-05-07 15:36:42 +01:00
j433866
6268f091b8 Bring back moving the output into the input.
Change wording for download as zip button
2019-05-07 15:34:36 +01:00
j433866
cbfde7ddb1 Don't highlight if the input and output tab numbers are different 2019-05-07 14:33:38 +01:00
j433866
35d6c7d79e Bring highlighting back.
Fix backgroundMagic using output result instead of dish value
2019-05-07 14:20:18 +01:00
j433866
f1a2cf7efc Add cancellation of zipping 2019-05-07 12:00:53 +01:00
j433866
ec4eb22a72 Don't include loading inputs in complete percentage 2019-05-07 12:00:37 +01:00
j433866
97c218cb4c Fix where zipworker was using output presented result.
Now uses the raw dish value
2019-05-07 12:00:14 +01:00
j433866
07021b8dd5 Add new worker for zipping outputs.
Use bakeId to track which outputs are stale.
2019-05-07 09:26:55 +01:00
j433866
df20196201 Fix magic not always working 2019-05-03 11:49:14 +01:00
j433866
e9d60f73f4 Fix some more autobake weirdness.
Input passed in the URL is now set on load.
Added a new progress bar.
2019-05-02 15:44:31 +01:00
j433866
8e9717906f Improve autobake further to behave more like it did before.
Improve generation of state URI.
2019-05-02 13:54:15 +01:00
j433866
82183bf204 Improve queueing of inputs to avoid baking the same input twice.
Fix generation of input URL.
Fix worker log levels not being set correctly.
2019-05-02 11:29:54 +01:00
j433866
b2406b0465 Run set() when a bake is cancelled.
This will make sure the output shows the most recently baked data,
and also shows the stale indicator if needed
2019-05-02 09:20:28 +01:00
j433866
ff9c68db56 Update handling of bake errors.
Add preview thumbnail for image input.
2019-05-01 17:08:36 +01:00
j433866
1cedc94652 Fix status messages for baking 2019-05-01 15:19:01 +01:00
j433866
02bda3250b Fix magic button.
Fix download all files not working
2019-05-01 14:46:05 +01:00
j433866
f6f60e8203 Update LoaderWorker to not use messagechannels 2019-05-01 14:13:40 +01:00
j433866
55beb433f3 Go back to sending messages via the main thread.
A MessageChannel is faster on Chrome, but causes issues in Firefox.
Bake button now says "Loading..." when the inputWorker is gathering inputs for baking
2019-05-01 14:12:36 +01:00
j433866
2fff18cb61 Don't create a new loaderWorker until we need one.
This was causing issues on single core systems after I got rid of the active status as we had already reached the max number of workers.
Instead, we just create a loaderWorker when needed as loaderWorkers are small enough!
2019-04-30 15:23:41 +01:00
j433866
6d8bf3a08a Enable filter buttons in manager 2019-04-30 14:45:34 +01:00
j433866
13ee79a06b Add searching for inputs 2019-04-30 14:15:05 +01:00
j433866
b4208ede3b Add clear io button.
Fix some weirdness with removing tabs
2019-04-30 13:34:00 +01:00
j433866
a96cb3f99f Add clear all io button. 2019-04-30 13:18:22 +01:00
j433866
1f39a922d1 Reset bake button background when state changed 2019-04-30 12:58:29 +01:00
j433866
145fba5949 Input pasting now works 2019-04-30 11:48:01 +01:00
j433866
8cb86c364d Increase file limit 2019-04-26 15:19:17 +01:00
j433866
6d98014ad2 New max limit for files 2019-04-26 15:16:15 +01:00
j433866
1cf83c2485 Change baking to send all inputs individually.
Re-enable go to tab button.
Active tab is now autobaked on load completion.
Handle (ish) loaderWorker errors.
Improve load performance.
2019-04-26 15:15:44 +01:00
j433866
7b169fb798 Add css for search box 2019-04-25 16:33:02 +01:00
j433866
406cbb0f41 Move input logic into a new worker (InputWorker)
Change OutputWaiter to use dict of outputs instead of list
LoaderWorker communicates with InputWorker using a messagechannel
2019-04-25 16:32:48 +01:00
j433866
6d8daac5ca Merge remote-tracking branch 'upstream/master' into multiple-input-files 2019-04-23 09:02:04 +01:00
j433866
82186c8592 Add search box for input tabs 2019-04-23 09:02:00 +01:00
j433866
f099a352b3 Change get input function calls 2019-04-23 09:01:25 +01:00
n1474335
8f450501cc Downloadble version is now a .zip file instead of a single .htm file 2019-04-12 18:54:31 +01:00
j433866
bd3777f9de Change maximum file size in readme 2019-04-05 10:51:39 +01:00
j433866
9690ccd8a0 Fix being unable to go to tab 1 2019-04-04 14:42:21 +01:00
j433866
0804647441 Load in the right order 2019-04-04 13:14:45 +01:00
j433866
76da287cca Bake in the right order 2019-04-04 13:13:38 +01:00
j433866
8739dd97d6 Change srcElement to target
(srcElement is non-standard)
2019-04-04 13:13:21 +01:00
j433866
de21f14fd8 Move the tab buttons onto the tab bar 2019-04-04 10:57:01 +01:00
j433866
b90cca77a9 Fix more tab weirdness.
Move tab buttons onto tab bar.
Calculate size of maxTabs automatically on page load.
Display total execution time when a bake finishes.
2019-04-04 10:15:13 +01:00
j433866
1eadc08098 Fix some weirdness with tabs.
Adjust worker logic to avoid closing and reopening a worker as often
2019-04-03 16:05:10 +01:00
j433866
9df26b8c84 Output tabs now (mostly) work.
Add downloading files as an archive (needs work)
Add option for keeping the tabs in sync
2019-04-03 12:00:47 +01:00
j433866
e0c9aba25e Improve WorkerWaiter and OutputWaiter.
- Will run and display outputs in the output area as they're baked
- Creates output tabs
- Can change output tabs (only the first 4 at the moment)
2019-04-02 16:58:36 +01:00
j433866
2cb33bfec4 Bring up to date with master 2019-04-02 16:54:34 +01:00
j433866
2aad7647ef Add tab buttons (don't work yet).
Change some of the HTML around the tab bar
2019-04-02 16:53:15 +01:00
j433866
cd094d1475 Change "input-tabs" id to be for the actual ul element.
Automatically disable auto-bake if more than 20 files are input.
2019-04-01 16:15:09 +01:00
j433866
7bf8467637 Add maximum limit to the thumbnail image size 2019-04-01 08:53:52 +01:00
n1474335
27677adbe8 Fixed option default 2019-04-01 00:29:10 +01:00
n1474335
2385f1cbf8 Updated dependencies 2019-03-30 14:56:43 +00:00
j433866
eb5809fd17 Fix tab info not being updated in refreshTabs() 2019-03-29 14:51:11 +00:00
j433866
f6ab82faaf Fix file preview not working 2019-03-29 13:42:07 +00:00
j433866
0d8584f499 Merge with ui-improvements 2019-03-29 13:35:30 +00:00
j433866
c289e1beef Rewrite InputWaiter to be less messy.
Don't create a DOM element for every tab, just reuse the same ones.
Display file information while the files are loading.
(Output tabs no longer work)
2019-03-29 13:29:24 +00:00
n1474335
bce0895392 Updated helper capabilities 2019-03-27 23:02:10 +00:00
j433866
a2cc7a84db Sync output tabs to input tabs.
Output tabs are created when input tabs are.
Fix initial bake not working
2019-03-27 13:48:54 +00:00
j433866
90dd2b5ac2 Add css for output tabs 2019-03-27 09:39:38 +00:00
j433866
3597aacce9 Add wrapper to output 2019-03-27 09:38:13 +00:00
j433866
61bc5436a2 Fix number of running workers not being correct.
(This needs some work!)
2019-03-27 09:26:01 +00:00
j433866
37428fbe3b Bake all inputs, not just the active tab.
Limits number of workers to number of cpu threads (4 if not supported)
Creates output tabs (switching doesn't work yet)
Disabled some highlighting for now.
2019-03-27 09:05:10 +00:00
n1474335
ef4b977bef Added a cyber helper 2019-03-22 17:10:00 +00:00
j433866
fbe1e2c2cc Show tab number on tab title.
Don't show lines value if tab contents is a file.
2019-03-22 15:55:35 +00:00
j433866
9b86ed7c45 Fix input highlighter size 2019-03-22 15:19:03 +00:00
j433866
c0c83c5cdc Stores inputs in memory instead of in textareas.
Allow selecting multiple files.
Allow drag and dropping multiple files.
Clear all IO button will close all tabs.
Will now spawn multiple loaderworkers simultaneously.
Improve tab logic to break less and work in Firefox.
2019-03-22 15:10:19 +00:00
j433866
37218c1e81 Add UI for input tabs.
Can add, remove and switch tabs
2019-03-21 12:31:01 +00:00
j433866
757176727d Fix the aspect ratio fix 2019-03-20 10:52:00 +00:00
j433866
d9fdae9175 Adjust css to keep aspect ratio of previewed image 2019-03-20 10:40:59 +00:00
j433866
4a84cf3ac7 Add css styling option for banner URL 2019-03-20 10:23:09 +00:00
j433866
e03e51c450 Add styling of checkboxes.
Change fonts in solarized themes to match classic.
Add styling of input fields to modals
2019-03-20 10:01:19 +00:00
j433866
674f879fb8 Change file thumb to normal icon when file closed 2019-03-19 16:54:50 +00:00
j433866
b195fc69dd Remove old css file 2019-03-19 14:39:46 +00:00
j433866
2049e4e1d5 Add image preview to input file overlay.
This can be turned off
2019-03-19 14:38:46 +00:00
j433866
d09ab4a153 Add new solarized light and dark themes.
Add more elements to be controlled by theme css:
- Preloader spinner colours
- Operation disable / breakpoint icons
- Auto bake checkbox
- Search highlight colour
- Categories header colour
2019-03-19 14:37:46 +00:00
j433866
ce72acdd61 Add 'add text to image' operation.
Included variants of the Roboto fonts as bitmap fonts for jimp.
Changed webpack config to import the font files.
2019-03-19 13:53:09 +00:00
n1474335
33db0e666a Final tweaks to Bombe svg and preloader css 2019-03-14 12:11:41 +00:00
s2224834
fa6d5e60ce Merge branch 'master' into feature/bombe 2019-03-12 18:07:39 +00:00
n1474335
369b640408 Merge branch 'master' into j433866-image-operations 2019-03-09 06:29:19 +00:00
n1474335
84d31c1d59 Added 'Move to input' button to output file list. Improved zlib extraction efficiency. 2019-03-09 06:25:27 +00:00
j433866
7975fadfe9 Add options for min, max and step values for number inputs. 2019-03-04 11:46:27 +00:00
s2224834
a037bf6f9d Merge branch 'master' into feature/bombe 2019-02-28 16:29:21 +00:00
n1474335
c005c86c27 Added argSelector ingredient type and reversed rotors in Enigma and Bombe operations. 2019-02-28 16:05:23 +00:00
d98762625
481f2a4717 Merge branch 'master' of github.com:gchq/CyberChef into dynamic-import 2019-02-11 16:54:31 +00:00
d98762625
c01c076561 try/catch to allow chef to run from prod file 2019-02-11 16:51:23 +00:00
d98762625
2391e08ac1 tidy up 2019-02-11 15:47:28 +00:00
d98762625
a7a2fe243a prod working with mini css webpack plugin 2019-02-11 15:40:18 +00:00
n1474335
13abbd2c5d Abstracted out loadFile logic to separate function 2019-02-11 14:48:25 +00:00
d98762625
d22eac9f35 WIP getting prod working with minicss webpack plugin 2019-02-11 14:29:29 +00:00
n1474335
d71aa8d7e2 Merge branch 'open-file-button' of https://github.com/j433866/CyberChef into j433866-open-file-button 2019-02-11 14:28:32 +00:00
n1474335
4db6199fd9 Fixed timings for Bombe animation fast rotor 2019-02-10 21:45:55 +00:00
n1474335
53226c1050 Added populateMultiOption ingredient type 2019-02-08 18:36:59 +00:00
n1474335
3d20833d42 Fixed populateOption HTML escape bug. Closes #490 2019-02-08 17:28:10 +00:00
j433866
74a22bcf9c Swap ordering of truncating and escaping 2019-01-31 15:22:25 +00:00
j433866
8b44927cb6 Fix XSS for To Table operation and Magic button 2019-01-31 15:18:37 +00:00
n1474335
715f7bbbc2 Lint 2019-01-18 15:37:25 +00:00
n1474335
ba04cac7ac Tidied up YARA operation 2019-01-18 15:34:56 +00:00
j433866
acb8c0b5af Change icon from folder to input 2019-01-18 15:12:03 +00:00
j433866
0c14bacea7 Add button to input to allow opening of files using the file prompt. 2019-01-18 15:07:19 +00:00
n1474335
87e956fe7d Added old loading icon back for initial page load. 2019-01-16 17:54:55 +00:00
n1474335
02b9dbdee9 Replaced loading animation with animated Bombe SVG 2019-01-16 17:54:55 +00:00
Matt
2e9b1e079c Merge remote-tracking branch 'upstream/master' into features/yara 2019-01-15 23:46:49 +00:00
Matt
fcc39a0397 Added File upload support to textarea 2019-01-15 23:42:05 +00:00
Matt
dd9ba4d250
Fixed problems flagged by n's review 2019-01-09 15:28:50 +00:00
Matt
ebb632e888
Added metadata, string identifiers and operation args 2019-01-09 14:29:14 +00:00
Matt
26a2fb6662
Increased size of rule inp & expanded memory for wasm 2019-01-09 09:56:55 +00:00
Matt
df8abb099c
Added code argtype 2019-01-08 22:23:14 +00:00
n1474335
cb9ab7a2c9 Fixed 'Maximise output' button functionality 2019-01-08 18:29:07 +00:00
n1474335
d469fb9c58 Updated dependencies 2019-01-01 19:19:07 +00:00
n1474335
5acee80463 'editableOption's are now full width. 'editableOptionShort' type added to replace the old style. 2018-12-26 16:50:32 +00:00
n1474335
43dcd544f2 Added webpack-bundle-analyzer to production build. Refactored some modules to improve performance. Removed moment-timezone from Utils to drastically reduce module size. 2018-12-25 23:58:00 +00:00