Restructured src files into a more logical hierarchy
50
src/web/static/.htaccess
Executable file
|
@ -0,0 +1,50 @@
|
|||
# Serve up .htm files as binary files rather than text/html.
|
||||
# This allows cyberchef.htm to be downloaded rather than opened in the browser.
|
||||
AddType application/octet-stream .htm
|
||||
|
||||
# Fix Apache bug #45023 where "-gzip" is appended to all ETags, preventing 304 responses
|
||||
<IfModule mod_headers.c>
|
||||
RequestHeader edit "If-None-Match" "^\"(.*)-gzip\"$" "\"$1\""
|
||||
Header edit "ETag" "^\"(.*[^g][^z][^i][^p])\"$" "\"$1-gzip\""
|
||||
</IfModule>
|
||||
|
||||
# Set gzip compression on all resources that support it
|
||||
<IfModule mod_deflate.c>
|
||||
SetOutputFilter DEFLATE
|
||||
</IfModule>
|
||||
|
||||
# Set Expires headers on various resources
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
|
||||
# 10 minutes
|
||||
ExpiresDefault "access plus 600 seconds"
|
||||
|
||||
# 30 days
|
||||
ExpiresByType image/x-icon "access plus 2592000 seconds"
|
||||
ExpiresByType image/jpeg "access plus 2592000 seconds"
|
||||
ExpiresByType image/png "access plus 2592000 seconds"
|
||||
ExpiresByType image/gif "access plus 2592000 seconds"
|
||||
|
||||
# 7 days
|
||||
ExpiresByType text/css "access plus 604800 seconds"
|
||||
ExpiresByType text/javascript "access plus 604800 seconds"
|
||||
ExpiresByType application/javascript "access plus 604800 seconds"
|
||||
ExpiresByType text/html "access plus 604800 seconds"
|
||||
</IfModule>
|
||||
|
||||
# Set Cache-Control headers on various resources
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\\.(ico|jpe?g|png|gif)$">
|
||||
Header set Cache-Control "max-age=2592000, public"
|
||||
</FilesMatch>
|
||||
<FilesMatch "\\.(css)$">
|
||||
Header set Cache-Control "max-age=600, public"
|
||||
</FilesMatch>
|
||||
<FilesMatch "\\.(js)$">
|
||||
Header set Cache-Control "max-age=600, private, must-revalidate"
|
||||
</FilesMatch>
|
||||
<FilesMatch "\\.(x?html?)$">
|
||||
Header set Cache-Control "max-age=600, private, must-revalidate"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
18
src/web/static/ga.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
|
||||
<!-- Begin Google Analytics -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-85682716-2', 'auto');
|
||||
|
||||
// Specifying location.pathname here overrides the default URL which would include arguments.
|
||||
// This method prevents Google Analytics from logging any recipe or input data in the URL.
|
||||
ga('send', 'pageview', location.pathname);
|
||||
|
||||
</script>
|
||||
<!-- End Google Analytics -->
|
||||
|
BIN
src/web/static/images/breakpoint-16x16.png
Executable file
After Width: | Height: | Size: 295 B |
BIN
src/web/static/images/bug-16x16.png
Executable file
After Width: | Height: | Size: 773 B |
BIN
src/web/static/images/clean-16x16.png
Executable file
After Width: | Height: | Size: 702 B |
BIN
src/web/static/images/code-16x16.png
Executable file
After Width: | Height: | Size: 796 B |
BIN
src/web/static/images/cook_female-32x32.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
src/web/static/images/cook_male-32x32.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
src/web/static/images/cyberchef-128x128.png
Executable file
After Width: | Height: | Size: 7.4 KiB |
BIN
src/web/static/images/cyberchef-16x16.png
Executable file
After Width: | Height: | Size: 419 B |
BIN
src/web/static/images/cyberchef-256x256.png
Executable file
After Width: | Height: | Size: 17 KiB |
BIN
src/web/static/images/cyberchef-32x32.png
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
src/web/static/images/cyberchef-512x512.png
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
src/web/static/images/cyberchef-64x64.png
Executable file
After Width: | Height: | Size: 3.3 KiB |
BIN
src/web/static/images/disable_deselected-16x16.png
Executable file
After Width: | Height: | Size: 746 B |
BIN
src/web/static/images/disable_selected-16x16.png
Executable file
After Width: | Height: | Size: 590 B |
BIN
src/web/static/images/download-24x24.png
Executable file
After Width: | Height: | Size: 905 B |
BIN
src/web/static/images/erase-16x16.png
Executable file
After Width: | Height: | Size: 680 B |
BIN
src/web/static/images/favicon.ico
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/web/static/images/favourite-16x16.png
Executable file
After Width: | Height: | Size: 491 B |
BIN
src/web/static/images/favourite-24x24.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/web/static/images/fork_me.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
src/web/static/images/help-16x16.png
Executable file
After Width: | Height: | Size: 843 B |
BIN
src/web/static/images/help-22x22.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
src/web/static/images/info-16x16.png
Executable file
After Width: | Height: | Size: 513 B |
BIN
src/web/static/images/layout-16x16.png
Executable file
After Width: | Height: | Size: 334 B |
BIN
src/web/static/images/mail-16x16.png
Executable file
After Width: | Height: | Size: 463 B |
BIN
src/web/static/images/maximise-16x16.png
Executable file
After Width: | Height: | Size: 235 B |
BIN
src/web/static/images/open_yellow-16x16.png
Executable file
After Width: | Height: | Size: 474 B |
BIN
src/web/static/images/open_yellow-24x24.png
Executable file
After Width: | Height: | Size: 719 B |
BIN
src/web/static/images/recycle-16x16.png
Executable file
After Width: | Height: | Size: 585 B |
BIN
src/web/static/images/remove-16x16.png
Executable file
After Width: | Height: | Size: 507 B |
BIN
src/web/static/images/restore-16x16.png
Executable file
After Width: | Height: | Size: 245 B |
BIN
src/web/static/images/save-16x16.png
Executable file
After Width: | Height: | Size: 472 B |
BIN
src/web/static/images/save-22x22.png
Executable file
After Width: | Height: | Size: 695 B |
BIN
src/web/static/images/save_as-16x16.png
Executable file
After Width: | Height: | Size: 642 B |
BIN
src/web/static/images/settings-22x22.png
Executable file
After Width: | Height: | Size: 1 KiB |
BIN
src/web/static/images/speech-16x16.png
Executable file
After Width: | Height: | Size: 360 B |
BIN
src/web/static/images/stats-16x16.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/web/static/images/step-16x16.png
Executable file
After Width: | Height: | Size: 575 B |
BIN
src/web/static/images/switch-16x16.png
Executable file
After Width: | Height: | Size: 472 B |
BIN
src/web/static/images/thumb_down-16x16.png
Executable file
After Width: | Height: | Size: 769 B |
BIN
src/web/static/images/thumb_up-16x16.png
Executable file
After Width: | Height: | Size: 717 B |
BIN
src/web/static/images/undo-16x16.png
Executable file
After Width: | Height: | Size: 553 B |
13
src/web/static/stats.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
128 source files
|
||||
49068 lines
|
||||
1.9M size
|
||||
|
||||
63 JavaScript source files
|
||||
20841 lines
|
||||
788K size
|
||||
|
||||
4.7M uncompressed JavaScript size
|
||||
2.6M compressed JavaScript size
|
||||
|
||||
15 categories
|
||||
177 operations
|