+
@@ -126,8 +106,6 @@ import QA from "./Q&A.vue";
import Header from "./header.vue";
import RealTimeMsg from "./realTimeMsg.vue";
import Msg from "./msg.vue";
-import Code from "./code.vue";
-import Xor from "./xor.vue";
import Manager from "./manager.vue";
import MountpointSetting from "./mountpointSetting.vue";
diff --git a/src/components/guide/xor.vue b/src/components/guide/xor.vue
deleted file mode 100644
index 95f9d37..0000000
--- a/src/components/guide/xor.vue
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- 异或校验指南:
-
-
-
-
功能组成:
-
-
蓝色框内为校验数据的输入框
-
-
绿色区域为校验结果的显示区域
-
- 下方的“
校验”按钮用于执行校验
-
- 下方的“
清除”按钮用于清除输入框的校验数据和显示区域的校验结果。
-

-
-
-
-
-
未输入校验数据时的报错示例:
-

-

-
-
-
-
-
校验结果示例:
-

-
-
-
-
-
-
-
diff --git a/src/components/operate/realTimeMsg.vue b/src/components/operate/realTimeMsg.vue
index e1ebcdc..1618a68 100644
--- a/src/components/operate/realTimeMsg.vue
+++ b/src/components/operate/realTimeMsg.vue
@@ -255,10 +255,15 @@ const clearSources = () => {
const sizeConnect = async () => {
try {
const size = await caster.getSize(mountpoint.value);
+ let sizeCode = '';
while (true) {
const { done, value } = await size.stream.read();
if (done) return;
- mountpointSize.value = String.fromCharCode(value);
+ sizeCode = '';
+ value.forEach((item) => {
+ sizeCode = sizeCode +String.fromCharCode(item);
+ });
+ mountpointSize.value = sizeCode;
}
} catch (error) {
setTimeout(() => {
diff --git a/src/components/pageStructure/main.vue b/src/components/pageStructure/main.vue
index 702418a..c3a7120 100644
--- a/src/components/pageStructure/main.vue
+++ b/src/components/pageStructure/main.vue
@@ -25,31 +25,17 @@
查看消息
- 汉字编码
-
-
- 异或校验
-
-
单位管理
挂载点设置
@@ -63,25 +49,9 @@
+
@@ -93,10 +63,6 @@ import { ref, watch, onMounted } from "vue";
import RealTimeMsg from "../operate/realTimeMsg.vue";
import HistoryMsg from "../features/historyMsg.vue";
-import CodeHelp from "../transcoding/codeHelp.vue";
-import Encode from "../transcoding/encode.vue";
-import Decode from "../transcoding/decode.vue";
-import CalculationXOR from "../calculationXOR/calculationXOR.vue";
import BsideManager from "../features/bsideManager.vue";
import SetMountpoint from "../manager/setMountpoint.vue";
@@ -108,20 +74,13 @@ const activeIndex = ref("1");
const indexStyle = "background-color: rgb(241 245 249);";
const activeStyle = "background-color: rgb(207 250 254);";
const manager = ref(false);
-const showCode = ref(true);
const realTimeMsgRef = ref(null);
const historyMsgRef = ref(null);
-const bsideManagerRef = ref(null);
-const setMountpointRef = ref(null);
const handleSelect = (key, keyPath) => {
activeIndex.value = key;
};
-const showModel = () => {
- showCode.value = !showCode.value;
-};
-
const historyMsg = () => {
historyMsgRef.value.historyMsg();
};
diff --git a/src/components/transcoding/codeHelp.vue b/src/components/transcoding/codeHelp.vue
deleted file mode 100644
index e192936..0000000
--- a/src/components/transcoding/codeHelp.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
- 注: 键盘输入的空格、回车、制表符以及普通英文、数字和标点,将自动转为对应的全角字符进行编码,使用时请注意
-
-
- 编码科普
-
-
-
-
- 编码帮助
-
-
-
-
-
-
-
-
- GB2312 编码表
-
- GB 2312 标准由中国国家标准总局 1980 年发布,GB 即国标,共收录
- 6763个汉字,其中一级汉字 3755 个,二级汉字 3008 个。
-
-
-
- -
- GB 2312的出现,基本满足了汉字的计算机处理需要,它所收录的汉字已经覆盖中国大陆
- 99.75% 的使用频率。
-
- -
- 对于人名、古汉语等方面出现的罕用字,GB 2312 不能处理,这导致了后来 GBK 及 GB
- 18030 汉字字符集的出现。
-
-
-
- GB 2312收录了包括拉丁字母、希腊字母、日文平假名及片假名字母、俄语西里尔字母在内的
- 682 个全角字符。
-
- GB 2312 兼容 ASCII 码(0 -
- 127),之后对任意一个图形字符都采用两个字节表示,高位字节和低位字节都大于127。
-
-
- GB 2312 字符集分成 94
- 个区,每区有94个位,分别对应第一字节和第二字节,这种表示方式也称为区位码。
-
-
-
- - 01-09 区为特殊符号
- - 10-15 区为用户自定义符号区(未编码)
- - 16-55 区为一级汉字,按拼音排序,共 3755 个
- - 56-87 区为二级汉字,按部首/笔画排序,共 3008 个
- - 88-94 区为用户自定义汉字区(未编码)
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/transcoding/decode.vue b/src/components/transcoding/decode.vue
deleted file mode 100644
index 83f0c68..0000000
--- a/src/components/transcoding/decode.vue
+++ /dev/null
@@ -1,328 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 转换编码
-
-
- 清除
-
-
-
-
- 编码(十进制): {{ fontcodedec ? fontcodedec.join(" , ") : "" }}
-
-
-
- 编码(十六进制): {{ fontcodehex ? fontcodehex.join(" , ") : "" }}
-
-
-
- 编码(二进制): {{ fontcodebin ? fontcodebin.join(" , ") : "" }}
-
-
-
- 汉字: {{ transcode }}
-
-
- 汉字: {{ transcodehex }}
-
-
- 汉字: {{ transcodebin }}
-
-
-
-
-
- 编码(十进制): {{ fontcodedec ? fontcodedec[index] : "" }}
-
-
-
- 编码(十六进制): {{ fontcodehex ? fontcodehex[index] : "" }}
-
-
-
- 编码(二进制): {{ fontcodebin ? fontcodebin[index] : "" }}
-
-
-
- 汉字: {{ transcode[index] }}
-
-
- 汉字: {{ transcodehex[index] }}
-
-
- 汉字: {{ transcodebin[index] }}
-
-
-
-
-
-
-
-
diff --git a/src/components/transcoding/encode.vue b/src/components/transcoding/encode.vue
deleted file mode 100644
index 523aa66..0000000
--- a/src/components/transcoding/encode.vue
+++ /dev/null
@@ -1,159 +0,0 @@
-
-
-
-
-
-
-
- 转换汉字
-
-
- 清除
-
-
-
-
- 汉字: {{ chinafont }}
-
-
-
- 编码(十进制): {{ transfont ? transfont.join(" , ") : "" }}
-
-
-
- 编码(十六进制): {{ transfonthex ? transfonthex.join(" , ") : "" }}
-
-
-
- 编码(二进制): {{ transfontbin ? transfontbin.join(" , ") : "" }}
-
-
-
-
-
- 汉字: {{ item }}
-
-
-
- 编码(十进制): {{ transfont[index] }}
-
-
-
- 编码(十六进制): {{ transfonthex[index] }}
-
-
-
- 编码(二进制): {{ transfontbin[index] }}
-
-
-
-
-
-
-
-
diff --git a/src/views/Main.vue b/src/views/Main.vue
index c171990..ca84b80 100644
--- a/src/views/Main.vue
+++ b/src/views/Main.vue
@@ -4,8 +4,6 @@
@@ -18,16 +16,7 @@