mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Merge branch 'master' of github.com:gchq/CyberChef
This commit is contained in:
commit
37f164f11c
5 changed files with 43 additions and 5 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cyberchef",
|
"name": "cyberchef",
|
||||||
"version": "5.12.1",
|
"version": "5.12.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cyberchef",
|
"name": "cyberchef",
|
||||||
"version": "5.12.1",
|
"version": "5.12.2",
|
||||||
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
||||||
"author": "n1474335 <n1474335@gmail.com>",
|
"author": "n1474335 <n1474335@gmail.com>",
|
||||||
"homepage": "https://gchq.github.io/CyberChef",
|
"homepage": "https://gchq.github.io/CyberChef",
|
||||||
|
|
|
@ -666,10 +666,20 @@ App.prototype.alertCloseClick = function() {
|
||||||
App.prototype.stateChange = function(e) {
|
App.prototype.stateChange = function(e) {
|
||||||
this.autoBake();
|
this.autoBake();
|
||||||
|
|
||||||
|
// Set title
|
||||||
|
const recipeConfig = this.getRecipeConfig();
|
||||||
|
let title = "CyberChef";
|
||||||
|
if (recipeConfig.length === 1) {
|
||||||
|
title = `${recipeConfig[0].op} - ${title}`;
|
||||||
|
} else if (recipeConfig.length > 1) {
|
||||||
|
title = `${recipeConfig.length} operations - ${title}`;
|
||||||
|
}
|
||||||
|
document.title = title;
|
||||||
|
|
||||||
// Update the current history state (not creating a new one)
|
// Update the current history state (not creating a new one)
|
||||||
if (this.options.updateUrl) {
|
if (this.options.updateUrl) {
|
||||||
this.lastStateUrl = this.manager.controls.generateStateUrl(true, true);
|
this.lastStateUrl = this.manager.controls.generateStateUrl(true, true, recipeConfig);
|
||||||
window.history.replaceState({}, "CyberChef", this.lastStateUrl);
|
window.history.replaceState({}, title, this.lastStateUrl);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<title>CyberChef</title>
|
<title>CyberChef</title>
|
||||||
|
|
||||||
<meta name="copyright" content="Crown Copyright 2016" />
|
<meta name="copyright" content="Crown Copyright 2016" />
|
||||||
<meta name="description" content="The Cyber Swiss Army Knife" />
|
<meta name="description" content="The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis" />
|
||||||
<meta name="keywords" content="base64, hex, decode, encode, encrypt, decrypt, compress, decompress, regex, regular expressions, hash, crypt, hexadecimal, user agent, url, certificate, x.509, parser, JSON, gzip, md5, sha1, aes, des, blowfish, xor" />
|
<meta name="keywords" content="base64, hex, decode, encode, encrypt, decrypt, compress, decompress, regex, regular expressions, hash, crypt, hexadecimal, user agent, url, certificate, x.509, parser, JSON, gzip, md5, sha1, aes, des, blowfish, xor" />
|
||||||
|
|
||||||
<link rel="icon" type="image/ico" href="<%- require('../static/images/favicon.ico') %>" />
|
<link rel="icon" type="image/ico" href="<%- require('../static/images/favicon.ico') %>" />
|
||||||
|
@ -76,6 +76,11 @@
|
||||||
changeLoadingMsg();
|
changeLoadingMsg();
|
||||||
window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 1000) + 1000);
|
window.loadingMsgsInt = setInterval(changeLoadingMsg, (Math.random() * 1000) + 1000);
|
||||||
</script>
|
</script>
|
||||||
|
<% if (!htmlWebpackPlugin.options.inline) { %>
|
||||||
|
<script type="application/ld+json">
|
||||||
|
<% print(JSON.stringify(require("../static/structuredData.json"))); %>
|
||||||
|
</script>
|
||||||
|
<% } %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Preloader overlay -->
|
<!-- Preloader overlay -->
|
||||||
|
|
23
src/web/static/structuredData.json
Normal file
23
src/web/static/structuredData.json
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"@context": "http://schema.org",
|
||||||
|
"@type": "Organization",
|
||||||
|
"url": "https://gchq.github.io/CyberChef/",
|
||||||
|
"logo": "https://gchq.github.io/CyberChef/images/cyberchef-128x128.png",
|
||||||
|
"sameAs": [
|
||||||
|
"https://github.com/gchq/CyberChef",
|
||||||
|
"https://www.npmjs.com/package/cyberchef"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@context": "http://schema.org",
|
||||||
|
"@type": "WebSite",
|
||||||
|
"url": "https://gchq.github.io/CyberChef/",
|
||||||
|
"name": "CyberChef",
|
||||||
|
"potentialAction": {
|
||||||
|
"@type": "SearchAction",
|
||||||
|
"target": "https://gchq.github.io/CyberChef/?op={operation_search_term}",
|
||||||
|
"query-input": "required name=operation_search_term"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue