Skip to content

Commit

Permalink
v10.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Raka-loah committed Apr 8, 2024
1 parent 3fff507 commit 0cd3d77
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG_SRKTOOLBOX.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ SRK Toolbox沿用CyberChef版本命名方式,此处记录和官方版本不同

## 详细信息

### [10.15.2] - 2024-04-08
- 大意了,合并冲突的时候不小心删了一些东西得补回来。
- 因为官方加入了自动检测输出字符编码的功能,所以删除“输出默认使用UTF8编码”的选项。

### [10.4.1] - 2023-05-09
- 汉化之前漏掉的一小部分说明文字(主要是F1帮助)。
- 增加“输出默认使用UTF8编码”的选项,因为“显示原始字节”不能显示中文,导致汉化后的模块输出看起来是乱码,默认关闭,需要在设置里手动打开。
Expand All @@ -20,6 +24,7 @@ SRK Toolbox沿用CyberChef版本命名方式,此处记录和官方版本不同
- 启用Github Actions作为CI,添加docker镜像。
- 替换SnackbarJS为Toastr。

[10.15.2]: https://github.com/Raka-loah/SRK-Toolbox/releases/tag/v10.15.2
[10.4.1]: https://github.com/Raka-loah/SRK-Toolbox/releases/tag/v10.4.1
[9.54.1]: https://github.com/Raka-loah/SRK-Toolbox/releases/tag/v9.54.1
[9.49.1]: https://github.com/Raka-loah/SRK-Toolbox/releases/tag/v9.49.1
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "srktoolbox",
"version": "10.15.1",
"version": "10.15.2",
"description": "SRK Toolbox - a web app (based on CyberChef) for encryption, encoding, compression and data analysis, translated to Chinese locale",
"author": "Raka-loah <[email protected]>",
"homepage": "https://github.com/Raka-loah/SRK-Toolbox",
Expand Down
4 changes: 3 additions & 1 deletion src/web/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ <h5 class="modal-title">SRK Toolbox<small> - Smiling RaKa Toolbox</small></h5>
基于CyberChef版本: <%= htmlWebpackPlugin.options.version %><br>
编译时间: <%= htmlWebpackPlugin.options.compileTime %>
</p>

<p><strong>S</strong>miling <strong>R</strong>a<strong>K</strong>a Toolbox是一个非常好用(自称)的网页版编解码加解密工具箱。</p>
<p>套壳自<a href="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/gchq/CyberChef" target="_blank">CyberChef - The Cyber Swiss Army Knife</a></p>
<p>Based on CyberChef &copy; Crown Copyright 2016-<%= htmlWebpackPlugin.options.compileYear %>. Released under the Apache Licence, Version 2.0.</p>

<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
Expand Down
4 changes: 2 additions & 2 deletions src/web/utils/editorUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function renderSpecialChar(code, desc, placeholder) {
if (code >= 0xe000 && code <= 0xf8ff) {
code = code - 0xe000;
placeholder = String.fromCharCode(0x2400 + code);
desc = "控制字符 " + (Names[code] || "0x" + code.toString(16));
desc = "Control character " + (Names[code] || "0x" + code.toString(16));
}

s.textContent = placeholder;
Expand All @@ -91,7 +91,7 @@ export function escapeControlChars(str, preserveWs=false, lineBreak="\n") {
return str.replace(Specials, function(c) {
if (lineBreak.includes(c)) return c;
const code = c.charCodeAt(0);
const desc = "控制字符 " + (Names[code] || "0x" + code.toString(16));
const desc = "Control character " + (Names[code] || "0x" + code.toString(16));
const placeholder = code > 32 ? "\u2022" : String.fromCharCode(9216 + code);
const n = renderSpecialChar(code, desc, placeholder);
return n.outerHTML;
Expand Down

0 comments on commit 0cd3d77

Please sign in to comment.