From 759ccf30dd7c7b04ebf7ee762a74523d637147f6 Mon Sep 17 00:00:00 2001 From: vasilito Date: Tue, 30 Jun 2026 15:59:38 +0300 Subject: [PATCH] fix: GUI build and web asset renaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt5 .pro file: - Replace hardcoded /home/panda/ paths with $$PWD-relative paths - All SOURCES/HEADERS/FORMS/INCLUDEPATH use $$PWD for shadow build safety - Fixes qmake path resolution from any working directory QT source content: - Rename Ventoy2DiskWindow → Hiperiso2DiskWindow (class, UI, translation context) - Rename VTOY_* macros → HISO_* (JSON_FMT, DEVICE_USB, EFI_PART_BYTES) - Rename vtoydata → hisodata (struct field) - Zero Ventoy/ventoy/VTOY/vtoy references remain in QT source Plugson www and assets/webui: - Rename all ventoy/vtoy → hiperiso/hiso in HTML, JS, CSS - Fix critical AJAX endpoint mismatch: /vtoy/json → /hiso/json (C backend already used /hiso/json, JS was stale) Build artifacts cleanup: - Remove stale QT/build/ and .pro.user from git - Add to .gitignore Verified: Full build_gui_all.sh succeeds — Qt5 (199K), GTK3 (383K), WebUI (247K), Plugson (245K), hisocli (52K), hisolnk (18K) --- .gitignore | 3 + assets/webui/index.html | 620 +++--- assets/webui/static/css/vtoy.css | 22 +- assets/webui/static/js/jquery.vtoy.alert.js | 10 +- assets/webui/static/js/vtoy.js | 56 +- scripts/build_gui_all.sh | 4 +- src/gui/QT/Hiperiso2Disk.pro | 210 +- src/gui/QT/Hiperiso2Disk.pro.user | 338 ---- src/gui/QT/build/Makefile | 1760 ----------------- src/gui/QT/build_output/.qmake.stash | 20 + src/gui/QT/build_output/Hiperiso2Disk | Bin 0 -> 203488 bytes src/gui/QT/build_output/Makefile | 1072 ++++++++++ .../moc_hiperiso2diskwindow.cpp | 122 +- .../moc_partcfgdialog.cpp | 25 +- .../QT/{build => build_output}/moc_predefs.h | 277 ++- .../ui_hiperiso2diskwindow.h | 101 +- .../ui_partcfgdialog.h | 61 +- src/gui/QT/hiperiso2diskwindow.cpp | 238 +-- src/gui/QT/hiperiso2diskwindow.ui | 32 +- src/gui/QT/main.cpp | 28 +- src/plugson/www/index.html | 78 +- src/plugson/www/plugson_auto_install.html | 116 +- src/plugson/www/plugson_auto_memdisk.html | 54 +- src/plugson/www/plugson_conf_replace.html | 68 +- src/plugson/www/plugson_control.html | 236 +-- src/plugson/www/plugson_donation.html | 16 +- src/plugson/www/plugson_dud.html | 92 +- src/plugson/www/plugson_image_list.html | 76 +- src/plugson/www/plugson_injection.html | 74 +- src/plugson/www/plugson_main.html | 28 +- src/plugson/www/plugson_menu_alias.html | 72 +- src/plugson/www/plugson_menu_class.html | 80 +- src/plugson/www/plugson_menu_tip.html | 102 +- src/plugson/www/plugson_password.html | 148 +- src/plugson/www/plugson_persistence.html | 106 +- src/plugson/www/plugson_theme.html | 126 +- src/plugson/www/static/css/vtoy.css | 22 +- .../static/js/jquery.validate.vtoymethods.js | 6 +- .../www/static/js/jquery.vtoy.alert.js | 12 +- src/plugson/www/static/js/vtoy.js | 274 +-- 40 files changed, 2918 insertions(+), 3867 deletions(-) delete mode 100644 src/gui/QT/Hiperiso2Disk.pro.user delete mode 100644 src/gui/QT/build/Makefile create mode 100644 src/gui/QT/build_output/.qmake.stash create mode 100755 src/gui/QT/build_output/Hiperiso2Disk create mode 100644 src/gui/QT/build_output/Makefile rename src/gui/QT/{build => build_output}/moc_hiperiso2diskwindow.cpp (69%) rename src/gui/QT/{build => build_output}/moc_partcfgdialog.cpp (86%) rename src/gui/QT/{build => build_output}/moc_predefs.h (74%) rename src/gui/QT/{build => build_output}/ui_hiperiso2diskwindow.h (56%) rename src/gui/QT/{build => build_output}/ui_partcfgdialog.h (54%) diff --git a/.gitignore b/.gitignore index 522ea5a..565b95c 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ Thumbs.db *~ *.swp *.swo +*.pro.user +src/gui/QT/build/ +src/gui/QT/build_output/ diff --git a/assets/webui/index.html b/assets/webui/index.html index 1e37dc9..9059835 100644 --- a/assets/webui/index.html +++ b/assets/webui/index.html @@ -36,8 +36,8 @@ - - + + @@ -51,7 +51,7 @@ .treeview-menu a { margin-left: 20px; } - span.vtoy_ver { + span.hiso_ver { display:inline-block; font-size:28px; font-weight:bold; @@ -59,14 +59,14 @@ width:60%; text-align:center; } - span.vtoy_part { + span.hiso_part { display:inline-block; font-size:14px; font-weight:bold; width:15%; text-align:right; } - span.vtoy_secure { + span.hiso_secure { display:inline-block; font-size:20px; font-weight:bold; @@ -137,7 +137,7 @@ border-radius: 6px 0 6px 6px; } - select.vtoyselect { + select.hisoselect { -moz-appearance: none; -webkit-appearance: none; appearance: none; @@ -150,7 +150,7 @@ padding-left:15px; } - select.vtoyselect2 { + select.hisoselect2 { -moz-appearance: none; -webkit-appearance: none; appearance: none; @@ -174,12 +174,12 @@
-
+
- @@ -35,7 +35,7 @@
-

VTOY_MENU_LANGUAGE +

HISO_MENU_LANGUAGE —— 菜单语言

@@ -54,13 +54,13 @@ 选项说明 - Ventoy 菜单的语言版本。默认是 "en_US"。 + Hiperiso 菜单的语言版本。默认是 "en_US"。 Option Description - Ventoy menu language. Default is "en_US", + Hiperiso menu language. Default is "en_US", @@ -71,7 +71,7 @@
-

VTOY_DEFAULT_SEARCH_ROOT +

HISO_DEFAULT_SEARCH_ROOT —— 指定搜索目录

@@ -100,17 +100,17 @@ 选项说明 - 指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。
- 这种情况下你可以把ISO文件单独放在某个子目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。
+ 指定搜索ISO文件的根目录。默认Hiperiso会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。
+ 这种情况下你可以把ISO文件单独放在某个子目录下,然后通过这个变量来指定搜索路径,此时Hiperiso就只会搜索该目录及其子目录。
注意这里不能设置为U盘根目录,必须为一个子目录。 Option Description - The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB. + The root path where to search the image files. By default, Hiperiso will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB. In this case, you can put all the image files in one subdirectory and use this to specify the search path. - After that Ventoy will only search this directory and its subdirectories for image files.
+ After that Hiperiso will only search this directory and its subdirectories for image files.
Note: the path must not be the mountpoint of the first partition, but a subdirectory. @@ -122,7 +122,7 @@
-

VTOY_SECURE_BOOT_POLICY +

HISO_SECURE_BOOT_POLICY —— UEFI 安全启动策略

@@ -154,7 +154,7 @@
-

VTOY_WIN_UEFI_RES_LOCK +

HISO_WIN_UEFI_RES_LOCK —— UEFI 分辨率锁定

@@ -194,7 +194,7 @@
-

VTOY_WIN11_BYPASS_CHECK +

HISO_WIN11_BYPASS_CHECK —— 绕过Windows 11硬件检查

@@ -221,7 +221,7 @@ 选项说明 该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。 - 当设置为1时,Ventoy 会在安装时创建以下几个注册表项用来绕过 Windows 11 安装程序的硬件检查。
+ 当设置为1时,Hiperiso 会在安装时创建以下几个注册表项用来绕过 Windows 11 安装程序的硬件检查。
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck
@@ -232,7 +232,7 @@ Option Description This option only avaliable for standard Windows 11 ISO files. - When set to 1, Ventoy will create the following registries to bypass Windows 11 hardware check when install.
+ When set to 1, Hiperiso will create the following registries to bypass Windows 11 hardware check when install.
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck
HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck
@@ -248,7 +248,7 @@
-

VTOY_WIN11_BYPASS_NRO +

HISO_WIN11_BYPASS_NRO —— 绕过Windows 11 在线账户需求

@@ -275,7 +275,7 @@ 选项说明 该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。 - 当设置为1时,Ventoy 会在安装时创建以下注册表项用来绕过 Windows 11 安装时对在线账户的需求。
+ 当设置为1时,Hiperiso 会在安装时创建以下注册表项用来绕过 Windows 11 安装时对在线账户的需求。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO
@@ -283,7 +283,7 @@ Option Description This option only avaliable for standard Windows 11 ISO files. - When set to 1, Ventoy will create the following registry to bypass Windows 11 online account requirement when install.
+ When set to 1, Hiperiso will create the following registry to bypass Windows 11 online account requirement when install.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO @@ -298,7 +298,7 @@
-

VTOY_DEFAULT_MENU_MODE +

HISO_DEFAULT_MENU_MODE —— 菜单显示模式

@@ -333,7 +333,7 @@
-

VTOY_MENU_TIMEOUT +

HISO_MENU_TIMEOUT —— 启动倒计时

@@ -371,7 +371,7 @@
-

VTOY_DEFAULT_IMAGE +

HISO_DEFAULT_IMAGE —— 默认选中的镜像文件

@@ -400,16 +400,16 @@ 选项说明 - 正常情况下默认选中的是第1个镜像文件。通过这个选项可以设置默认选中的镜像文件,一般和 VTOY_MENU_TIMEOUT 一起使用。
+ 正常情况下默认选中的是第1个镜像文件。通过这个选项可以设置默认选中的镜像文件,一般和 HISO_MENU_TIMEOUT 一起使用。
可以设置为 WIM/VHD/IMG 等支持的文件,必须是以 / 开始的全路径,ListView模式和TreeView模式都支持。
- 注意,当同时设置了 VTOY_DEFAULT_SEARCH_ROOT 以后,VTOY_DEFAULT_IMAGE 对应的文件必须位于 VTOY_DEFAULT_SEARCH_ROOT 对应的目录下,否则不会生效。 + 注意,当同时设置了 HISO_DEFAULT_SEARCH_ROOT 以后,HISO_DEFAULT_IMAGE 对应的文件必须位于 HISO_DEFAULT_SEARCH_ROOT 对应的目录下,否则不会生效。 Option Description - Default selected image path. Normally used with VTOY_MENU_TIMEOUT.
It can be ISO/WIM/VHD/IMG ... and supported in both ListView mode and TreeView mode.
- Attention that, when VTOY_DEFAULT_SEARCH_ROOT is set, VTOY_DEFAULT_IMAGE must be in the directory (or sub-directory) of VTOY_DEFAULT_SEARCH_ROOT, otherwise it will not take effect. + Default selected image path. Normally used with HISO_MENU_TIMEOUT.
It can be ISO/WIM/VHD/IMG ... and supported in both ListView mode and TreeView mode.
+ Attention that, when HISO_DEFAULT_SEARCH_ROOT is set, HISO_DEFAULT_IMAGE must be in the directory (or sub-directory) of HISO_DEFAULT_SEARCH_ROOT, otherwise it will not take effect. @@ -425,7 +425,7 @@
-

VTOY_MAX_SEARCH_LEVEL +

HISO_MAX_SEARCH_LEVEL —— 最大搜索目录深度

@@ -457,14 +457,14 @@ 最大搜索子目录的层数,取值为:max 0 1 2 3 ...    默认值为:max
- 默认Ventoy会递归搜索磁盘上的所有目录和子目录,不管目录结构有多深都会搜索到底。你可以通过这个参数来控制搜索时的路径深度。

- max : 最大层数,也就是搜索所有子目录的意思。这也是 Ventoy 的默认值。
+ 默认Hiperiso会递归搜索磁盘上的所有目录和子目录,不管目录结构有多深都会搜索到底。你可以通过这个参数来控制搜索时的路径深度。

+ max : 最大层数,也就是搜索所有子目录的意思。这也是 Hiperiso 的默认值。
0 : 搜索0层子目录,只列出根目录下的文件,不去搜索任何一个子目录。
1 : 搜索1层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录。但是不再搜索1级子目录下的子目录(2级子目录)。
2 : 搜索2层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录以及1级子目录下的子目录(2级子目录)。
3 : 搜索3层子目录,......
...

- 注意,如果 VTOY_DEFAULT_SEARCH_ROOT 参数也同时设置了的话,则就以 VTOY_DEFAULT_SEARCH_ROOT 指定的目录作为根目录开始计算。 + 注意,如果 HISO_DEFAULT_SEARCH_ROOT 参数也同时设置了的话,则就以 HISO_DEFAULT_SEARCH_ROOT 指定的目录作为根目录开始计算。 @@ -472,15 +472,15 @@ Max subdirectory level when search for image files. It's value can be: max 0 1 2 3 ...    default is : max
- By default, Ventoy will search all the directories and sub directories recursively no matter how deep the directory level is.
+ By default, Hiperiso will search all the directories and sub directories recursively no matter how deep the directory level is.
You can use this parameter to set a max-depth for the search path.

- max : Maximum, search all the directories and subdirectories. This is Ventoy's default value.
+ max : Maximum, search all the directories and subdirectories. This is Hiperiso's default value.
0 : Only search files in the root and don't search any subdirectories.
1 : Search up to level 1 of subdirectories.
2 : Search up to level 2 of subdirectories.
3 : Search up to level 3 of subdirectories.
...

- If VTOY_DEFAULT_SEARCH_ROOT is set at the same time. Then the level is counted from VTOY_DEFAULT_SEARCH_ROOT . + If HISO_DEFAULT_SEARCH_ROOT is set at the same time. Then the level is counted from HISO_DEFAULT_SEARCH_ROOT . @@ -491,7 +491,7 @@
-

VTOY_SECONDARY_BOOT_MENU +

HISO_SECONDARY_BOOT_MENU —— 二级启动菜单显示开关

@@ -521,7 +521,7 @@
-

VTOY_SHOW_PASSWORD_ASTERISK +

HISO_SHOW_PASSWORD_ASTERISK —— 输入密码时显示星号

@@ -552,7 +552,7 @@
-

VTOY_SECONDARY_TIMEOUT +

HISO_SECONDARY_TIMEOUT —— 二级启动菜单倒计时

@@ -571,7 +571,7 @@ 选项说明 - 二级菜单倒计时(秒)。只有当 VTOY_SECONDARY_BOOT_MENU 设置为1时才有效。
+ 二级菜单倒计时(秒)。只有当 HISO_SECONDARY_BOOT_MENU 设置为1时才有效。
默认不设置,设置之后,比如设置为10,则在倒计时10秒之后,会自动选择第一项,即:Boot in normal mode
在倒计时的过程中按任意键会停止倒计时,等待用户操作。 @@ -579,7 +579,7 @@ Option Description - Timeout seconds for the secondary boot menu. Only take effect when VTOY_SECONDARY_BOOT_MENU is 1.
+ Timeout seconds for the secondary boot menu. Only take effect when HISO_SECONDARY_BOOT_MENU is 1.
By default no timeout is set. When you set it to 10 for example, the first entry (Boot in normal mode) will be selected an run after 10 seconds. @@ -592,7 +592,7 @@
-

VTOY_DEFAULT_KBD_LAYOUT +

HISO_DEFAULT_KBD_LAYOUT —— 默认键盘布局

@@ -648,7 +648,7 @@
-

VTOY_TREE_VIEW_MENU_STYLE +

HISO_TREE_VIEW_MENU_STYLE —— TreeView模式显示风格

@@ -671,7 +671,7 @@ 选项说明 TreeView模式下的菜单风格。 0 显示DIR和文件大小     - 1 不显示DIR和文件大小。只在 VTOY_DEFAULT_MENU_MODE 为1时才有效。 + 1 不显示DIR和文件大小。只在 HISO_DEFAULT_MENU_MODE 为1时才有效。 @@ -689,7 +689,7 @@
-

VTOY_FILT_DOT_UNDERSCORE_FILE +

HISO_FILT_DOT_UNDERSCORE_FILE —— 过滤以 ._ 开头的文件

@@ -731,7 +731,7 @@
-

VTOY_SORT_CASE_SENSITIVE +

HISO_SORT_CASE_SENSITIVE —— 菜单排序时是否区分大小写

@@ -771,7 +771,7 @@
-

VTOY_VHD_NO_WARNING

+

HISO_VHD_NO_WARNING

@@ -814,7 +814,7 @@
-

VTOY_FILE_FLT_ISO +

HISO_FILE_FLT_ISO —— 过滤 .iso 文件

@@ -856,7 +856,7 @@
-

VTOY_FILE_FLT_WIM +

HISO_FILE_FLT_WIM —— 过滤 .wim 文件

@@ -899,7 +899,7 @@
-

VTOY_FILE_FLT_EFI +

HISO_FILE_FLT_EFI —— 过滤 .efi 文件

@@ -942,7 +942,7 @@
-

VTOY_FILE_FLT_IMG +

HISO_FILE_FLT_IMG —— 过滤 .img 文件

@@ -985,7 +985,7 @@
-

VTOY_FILE_FLT_VHD +

HISO_FILE_FLT_VHD —— 过滤 .vhd(x) 文件

@@ -1028,8 +1028,8 @@
-

VTOY_FILE_FLT_VTOY - —— 过滤 .vtoy 文件

+

HISO_FILE_FLT_HISO + —— 过滤 .hiso 文件

@@ -1040,27 +1040,27 @@ 选项设置      选项说明 - 0 不过滤 .vtoy 文件       - 1 过滤掉 .vtoy 文件。      - 过滤之后 .vtoy 文件就不会显示在启动菜单中。 + 0 不过滤 .hiso 文件       + 1 过滤掉 .hiso 文件。      + 过滤之后 .hiso 文件就不会显示在启动菜单中。 Option Description - 0 List .vtoy files.      - 1 Filter .vtoy files.      - The vtoy files will not be shown in the boot menu if set to 1. + 0 List .hiso files.      + 1 Filter .hiso files.      + The hiso files will not be shown in the boot menu if set to 1. @@ -1074,25 +1074,25 @@
diff --git a/src/plugson/www/plugson_dud.html b/src/plugson/www/plugson_dud.html index 4c172af..1b1e0a4 100644 --- a/src/plugson/www/plugson_dud.html +++ b/src/plugson/www/plugson_dud.html @@ -8,7 +8,7 @@
@@ -40,30 +40,30 @@
diff --git a/src/plugson/www/plugson_image_list.html b/src/plugson/www/plugson_image_list.html index 8d702f4..9075d19 100644 --- a/src/plugson/www/plugson_image_list.html +++ b/src/plugson/www/plugson_image_list.html @@ -8,7 +8,7 @@
@@ -52,18 +52,18 @@ 选项说明 白名单模式
- 由用户自己列出文件列表,Ventoy 不再搜索而是直接使用你给出的文件列表。 同时 Ventoy 也不再对文件进行排序,而是直接按照列表给出的文件顺序来显示启动菜单。
+ 由用户自己列出文件列表,Hiperiso 不再搜索而是直接使用你给出的文件列表。 同时 Hiperiso 也不再对文件进行排序,而是直接按照列表给出的文件顺序来显示启动菜单。
黑名单模式
- Ventoy 首先还是像原来一样搜索,最后再从搜索结果中剔除这个列表中的文件。
+ Hiperiso 首先还是像原来一样搜索,最后再从搜索结果中剔除这个列表中的文件。
Option Description Permit Mode
- Ventoy will no longer search for the files but just use your file list. Also, Ventoy will NOT sort these files anymore, but directly display the boot menu according to the order given in the list.
+ Hiperiso will no longer search for the files but just use your file list. Also, Hiperiso will NOT sort these files anymore, but directly display the boot menu according to the order given in the list.
Deny Mode
- Firstly, Ventoy will search as normal. And then remove the files in the blacklist from the search result.
+ Firstly, Hiperiso will search as normal. And then remove the files in the blacklist from the search result.
@@ -99,18 +99,18 @@
diff --git a/src/plugson/www/plugson_injection.html b/src/plugson/www/plugson_injection.html index 17055ad..a0f1dc0 100644 --- a/src/plugson/www/plugson_injection.html +++ b/src/plugson/www/plugson_injection.html @@ -8,7 +8,7 @@
@@ -44,26 +44,26 @@
diff --git a/src/plugson/www/plugson_main.html b/src/plugson/www/plugson_main.html index 408c4f5..7beaab7 100644 --- a/src/plugson/www/plugson_main.html +++ b/src/plugson/www/plugson_main.html @@ -39,7 +39,7 @@
-

设备内 Ventoy 信息

+

设备内 Hiperiso 信息

@@ -48,8 +48,8 @@ - - + + @@ -77,8 +77,8 @@ "设备名称", "设备容量", "文件系统", - "设备内 Ventoy 信息", - "Ventoy 版本号", + "设备内 Hiperiso 信息", + "Hiperiso 版本号", "分区类型", "安全启动支持" ]; @@ -89,16 +89,16 @@ "Device Name", "Device Capacity", "File System", - "Device Ventoy Information", - "Ventoy Version", + "Device Hiperiso Information", + "Hiperiso Version", "Partition Style", "Secure Boot Support" ]; - function VtoyPageLanguageChange(newlang) { - VtoyCommonChangeLanguage(newlang); + function HisoPageLanguageChange(newlang) { + HisoCommonChangeLanguage(newlang); - $("h1[id=id_h1_page_title]").text(g_vtoy_cur_language.STR_PLUG_DEVICE); + $("h1[id=id_h1_page_title]").text(g_hiso_cur_language.STR_PLUG_DEVICE); for (i = 0; i <= 7; i++) { var id = '#id_dev_lang' + i; @@ -111,17 +111,17 @@ } //Main process - VtoyPageLanguageChange(g_current_language); + HisoPageLanguageChange(g_current_language); - callVtoySync({ + callHisoSync({ method : 'device_info' }, function(data) { $('#id_dev_name').text(data.dev_name); $('#id_dev_capacity').text(data.dev_capacity); $('#id_dev_fs').text(data.dev_fs); - $('#id_ventoy_ver').text(data.ventoy_ver); + $('#id_hiperiso_ver').text(data.hiperiso_ver); $('#id_part_style').text(data.part_style === 0 ? "MBR" : "GPT"); - $('#id_secure_boot').text(data.secure_boot ? g_vtoy_cur_language.STR_SECURE_BOOT_ENABLE : g_vtoy_cur_language.STR_SECURE_BOOT_DISABLE); + $('#id_secure_boot').text(data.secure_boot ? g_hiso_cur_language.STR_SECURE_BOOT_ENABLE : g_hiso_cur_language.STR_SECURE_BOOT_DISABLE); }); diff --git a/src/plugson/www/plugson_menu_alias.html b/src/plugson/www/plugson_menu_alias.html index 2e275d3..7be161c 100644 --- a/src/plugson/www/plugson_menu_alias.html +++ b/src/plugson/www/plugson_menu_alias.html @@ -8,7 +8,7 @@ @@ -43,26 +43,26 @@ diff --git a/src/plugson/www/plugson_menu_class.html b/src/plugson/www/plugson_menu_class.html index 0a14dc4..69d45b7 100644 --- a/src/plugson/www/plugson_menu_class.html +++ b/src/plugson/www/plugson_menu_class.html @@ -8,7 +8,7 @@ @@ -43,26 +43,26 @@ diff --git a/src/plugson/www/plugson_menu_tip.html b/src/plugson/www/plugson_menu_tip.html index 75ef808..b30cebe 100644 --- a/src/plugson/www/plugson_menu_tip.html +++ b/src/plugson/www/plugson_menu_tip.html @@ -8,7 +8,7 @@ @@ -110,26 +110,26 @@ diff --git a/src/plugson/www/plugson_password.html b/src/plugson/www/plugson_password.html index 3dd3fac..430bedc 100644 --- a/src/plugson/www/plugson_password.html +++ b/src/plugson/www/plugson_password.html @@ -8,7 +8,7 @@ @@ -83,34 +83,34 @@ diff --git a/src/plugson/www/plugson_persistence.html b/src/plugson/www/plugson_persistence.html index 1bcc076..9f72621 100644 --- a/src/plugson/www/plugson_persistence.html +++ b/src/plugson/www/plugson_persistence.html @@ -8,7 +8,7 @@ @@ -40,30 +40,30 @@ diff --git a/src/plugson/www/plugson_theme.html b/src/plugson/www/plugson_theme.html index 1e6e8b0..a528bd1 100644 --- a/src/plugson/www/plugson_theme.html +++ b/src/plugson/www/plugson_theme.html @@ -8,7 +8,7 @@ @@ -99,7 +99,7 @@ 0 不过滤    1 过滤
注意,这个选项必须在上面设置了多个主题配置文件,同时 "默认" 设置为 “随机选择” 时才有效,其他情况下均无效。
- 关于这个选项的详细解释,请参考 resolution_fit 选项说明 + 关于这个选项的详细解释,请参考 resolution_fit 选项说明 @@ -108,7 +108,7 @@ Filter by current resolution when you set more than one themes.    0 No filter    1 Filter
- You can refer About resolution_fit for details about this option. + You can refer About resolution_fit for details about this option.
VentoyHiperiso
@@ -140,7 +140,7 @@ 选项说明 菜单显示模式,可以设置为 默认为 GUI 模式。GUI和CLI 分别对应图形模式和文本模式。
- 在有极个别的机器上Ventoy的背景菜单无法显示,或者显示后菜单移动极其缓慢,这种情况可以默认设置为文本模式。
+ 在有极个别的机器上Hiperiso的背景菜单无法显示,或者显示后菜单移动极其缓慢,这种情况可以默认设置为文本模式。
不过,不管GUI还是CLI都是基于VGA显示设备的,如果你的机器上只有串口,你可以设置为 serial
当然,如果既有串口也有VGA设备,则也可以设置为 serial_console
注意:如果菜单名称(文件名)里有中文的话,在文本或serial模式下是无法显示的。 @@ -150,7 +150,7 @@ Option Description Boot menu display mode, default is GUI. GUI or CLI corresponding to the GUI mode and TEXT mode respectively.
- On very few machines Ventoy's menu can't be shown or the cursor moves extremely slow. In this case you can set the default mode to "CLI".
+ On very few machines Hiperiso's menu can't be shown or the cursor moves extremely slow. In this case you can set the default mode to "CLI".
However, both "GUI" and "CLI" need a VGA device, if your machine only has serial, you can use serial
Also you can use serial_console if you have both serial and VGA device.
Attention: Unicode characters will NOT be displayed normally in CLI or serial mode. @@ -233,13 +233,13 @@ 选项说明 - 字体文件的全路径。Ventoy在启动时会依次加载这些字体文件。 + 字体文件的全路径。Hiperiso在启动时会依次加载这些字体文件。 Option Description - Full path of fonts file. Ventoy will load each of them when boot. + Full path of fonts file. Hiperiso will load each of them when boot. @@ -251,25 +251,25 @@
diff --git a/src/plugson/www/static/css/vtoy.css b/src/plugson/www/static/css/vtoy.css index 5873ed1..6d28426 100644 --- a/src/plugson/www/static/css/vtoy.css +++ b/src/plugson/www/static/css/vtoy.css @@ -141,15 +141,15 @@ } } -/*vtoy server is running*/ -#vtoy-main .loading { +/*hiso server is running*/ +#hiso-main .loading { width: 100%; position: relative; top:0; left:0; background-color: rgba(0, 0, 0, 0); } -#vtoy-main .loading .title { +#hiso-main .loading .title { width: 300px; text-align: center; margin: 250px auto 0px; @@ -157,19 +157,19 @@ font-weight: 900; font-size: 24px; } -#vtoy-main .loading .rectbox { +#hiso-main .loading .rectbox { width: 120px; height: 40px; margin: 10px auto; } -#vtoy-main .loading .rectbox .title { +#hiso-main .loading .rectbox .title { font-size: 14px; font-family: 'Microsoft YaHei'; font-weight: 900; text-align: center; color: rgba(68, 149, 57, 1); } -#vtoy-main .loading .rectbox .rect { +#hiso-main .loading .rectbox .rect { width: 25px; height: 25px; background-color: rgba(68, 149, 57, 1); @@ -179,34 +179,34 @@ -o-animation: loading 0.48s infinite ease-in-out; animation: loading 0.48s infinite ease-in-out; } -#vtoy-main .loading .rectbox .rect1 { +#hiso-main .loading .rectbox .rect1 { -webkit-animation-delay: 0s; -moz-animation-delay: 0s; -o-animation-delay: 0s; animation-delay: 0s; } -#vtoy-main .loading .rectbox .rect2 { +#hiso-main .loading .rectbox .rect2 { -webkit-animation-delay: 0.36s; -moz-animation-delay: 0.12s; -o-animation-delay: 0.12s; animation-delay: 0.12s; background-color: rgba(68, 149, 57, 0.2); } -#vtoy-main .loading .rectbox .rect3 { +#hiso-main .loading .rectbox .rect3 { -webkit-animation-delay: 0.72s; -moz-animation-delay: 0.24s; -o-animation-delay: 0.24s; animation-delay: 0.24s; background-color: rgba(68, 149, 57, 0.4); } -#vtoy-main .loading .rectbox .rect4 { +#hiso-main .loading .rectbox .rect4 { -webkit-animation-delay: 1.08s; -moz-animation-delay: 0.36s; -o-animation-delay: 0.36s; animation-delay: 0.36s; background-color: rgba(68, 149, 57, 0.6); } -#vtoy-main .loading .rectbox .rect5 { +#hiso-main .loading .rectbox .rect5 { -webkit-animation-delay: 1.44s; -moz-animation-delay: 0.48s; -o-animation-delay: 0.48s; diff --git a/src/plugson/www/static/js/jquery.validate.vtoymethods.js b/src/plugson/www/static/js/jquery.validate.vtoymethods.js index 9e640b9..4eeabb9 100644 --- a/src/plugson/www/static/js/jquery.validate.vtoymethods.js +++ b/src/plugson/www/static/js/jquery.validate.vtoymethods.js @@ -1,4 +1,4 @@ -function ventoy_check_file_name_char(path) { +function hiperiso_check_file_name_char(path) { for (var i = 0; i < path.length; i++) { var cc = path[i]; if (cc === '/' || cc === '\\' || cc === '*' || cc === '?' || cc === '"' || cc === '<' || cc === '>' || cc === '|') @@ -45,7 +45,7 @@ function ventoy_check_file_name_char(path) { return true; } - if (ventoy_get_ulen(value) > 250) { + if (hiperiso_get_ulen(value) > 250) { return false; } @@ -81,7 +81,7 @@ function ventoy_check_file_name_char(path) { return true; } - return ventoy_check_file_name_char(value); + return hiperiso_check_file_name_char(value); }, 'Invalid characters'); diff --git a/src/plugson/www/static/js/jquery.vtoy.alert.js b/src/plugson/www/static/js/jquery.vtoy.alert.js index 124457c..e286c87 100644 --- a/src/plugson/www/static/js/jquery.vtoy.alert.js +++ b/src/plugson/www/static/js/jquery.vtoy.alert.js @@ -93,9 +93,9 @@ var _dialog = function(options) { var ops = { msg : '', - title : g_vtoy_cur_language.STR_INFO, - btnok : g_vtoy_cur_language.STR_BTN_OK, - btncl : g_vtoy_cur_language.STR_BTN_CANCEL, + title : g_hiso_cur_language.STR_INFO, + btnok : g_hiso_cur_language.STR_BTN_OK, + btncl : g_hiso_cur_language.STR_BTN_CANCEL, userDefined : "" }; @@ -124,7 +124,7 @@ defaultTime = time; } var $proc; - $proc = $("#vtoy_proc"); + $proc = $("#hiso_proc"); if('hide' === showOrHide) { $proc.remove(); } else if ('show' === showOrHide) { @@ -132,10 +132,10 @@ return; } $(document).find(":focus").blur(); - $proc = $('
'); + $proc = $('
'); $("body").append($proc); setTimeout(function() { - $proc.replaceWith('
DATA
'); + $proc.replaceWith('
DATA
'); }, $.isNumeric(time) ? time : 100); } else { alert("Modal.process参数必须为show/hide"); diff --git a/src/plugson/www/static/js/vtoy.js b/src/plugson/www/static/js/vtoy.js index 5ff968b..fad6313 100644 --- a/src/plugson/www/static/js/vtoy.js +++ b/src/plugson/www/static/js/vtoy.js @@ -1,5 +1,5 @@ -function VtoyUTF16HexToAscii(hex) { +function HisoUTF16HexToAscii(hex) { var str = ""; for (var i = 0; i < hex.length; i += 4) { str += String.fromCharCode(parseInt(hex.substring(i, i + 4), 16)); @@ -8,7 +8,7 @@ function VtoyUTF16HexToAscii(hex) { return str; } -function ventoy_replace_slash(str) { +function hiperiso_replace_slash(str) { var str1 = str.replace(/\\/g, '/'); var str2 = str1.replace(/\/\//g, '/'); @@ -22,7 +22,7 @@ function ventoy_replace_slash(str) { } -function ventoy_get_ulen(str) { +function hiperiso_get_ulen(str) { var c, b = 0, l = str.length; while(l) { c = str.charCodeAt(--l); @@ -32,7 +32,7 @@ function ventoy_get_ulen(str) { } -function ventoy_common_check_path(path) { +function hiperiso_common_check_path(path) { var curdir if (path.indexOf('//') >= 0) { @@ -64,8 +64,8 @@ function loadContent(page) { } // 包装ajax请求 -function callVtoyCatchErr(p1, p2, p3) { - var url = '/vtoy/json'; +function callHisoCatchErr(p1, p2, p3) { + var url = '/hiso/json'; var data = {}; var func = function(data) {}; var errfunc = function(xmlHttpRequest, textStatus, errorThrown) {}; @@ -84,7 +84,7 @@ function callVtoyCatchErr(p1, p2, p3) { errfunc = p3; } - //vtoy.debug('callVtoy:\t\t\t\t' + JSON.stringify(data)); + //hiso.debug('callHiso:\t\t\t\t' + JSON.stringify(data)); $.ajax({ url: url, type: 'post', @@ -94,14 +94,14 @@ function callVtoyCatchErr(p1, p2, p3) { success: func, error: errfunc, complete: function(data) { - //vtoy.debug('callVtoy\'s resp:\t\t' + data.responseText); + //hiso.debug('callHiso\'s resp:\t\t' + data.responseText); } }); } // 包装ajax请求 -function callVtoy(p1, p2, p3) { - var url = '/vtoy/json'; +function callHiso(p1, p2, p3) { + var url = '/hiso/json'; var data = {}; var func = function(data) {}; @@ -119,7 +119,7 @@ function callVtoy(p1, p2, p3) { func = p3; } - //vtoy.debug('callVtoy:\t\t\t\t' + JSON.stringify(data)); + //hiso.debug('callHiso:\t\t\t\t' + JSON.stringify(data)); $.ajax({ url: url, type: 'post', @@ -131,7 +131,7 @@ function callVtoy(p1, p2, p3) { if(undefined === errorThrown) { - Message.error(g_vtoy_cur_language.STR_WEB_REMOTE_ABNORMAL); + Message.error(g_hiso_cur_language.STR_WEB_REMOTE_ABNORMAL); } else if(undefined === errorThrown.length) { @@ -146,12 +146,12 @@ function callVtoy(p1, p2, p3) { { case 'timeout': { - Message.error(g_vtoy_cur_language.STR_WEB_REQUEST_TIMEOUT); + Message.error(g_hiso_cur_language.STR_WEB_REQUEST_TIMEOUT); break; } case 'Service Unavailable': { - Message.error(g_vtoy_cur_language.STR_WEB_SERVICE_UNAVAILABLE); + Message.error(g_hiso_cur_language.STR_WEB_SERVICE_UNAVAILABLE); break; } case 'abort': @@ -160,21 +160,21 @@ function callVtoy(p1, p2, p3) { } default: { - Message.error(g_vtoy_cur_language.STR_WEB_COMMUNICATION_ERR + errorThrown); + Message.error(g_hiso_cur_language.STR_WEB_COMMUNICATION_ERR + errorThrown); break; } } } }, complete: function(data) { - //vtoy.debug('callVtoy\'s resp:\t\t' + data.responseText); + //hiso.debug('callHiso\'s resp:\t\t' + data.responseText); } }); } -function callVtoyASyncTimeout(time, data, func) { +function callHisoASyncTimeout(time, data, func) { $.ajax({ - url: '/vtoy/json', + url: '/hiso/json', type: 'post', cache: false, dataType: 'json', @@ -199,7 +199,7 @@ function callVtoyASyncTimeout(time, data, func) { { case 'timeout': { - callVtoyASyncTimeout(time, data, func); + callHisoASyncTimeout(time, data, func); break; } case 'Service Unavailable': @@ -218,25 +218,25 @@ function callVtoyASyncTimeout(time, data, func) { } }, complete: function(data) { - //vtoy.debug('callVtoyASyncTimeout\'s resp:\t' + JSON.stringify(data)); + //hiso.debug('callHisoASyncTimeout\'s resp:\t' + JSON.stringify(data)); } }); } -function callVtoySync(data, func) { - //vtoy.debug('callVtoySync:\t\t\t' + JSON.stringify(data)); +function callHisoSync(data, func) { + //hiso.debug('callHisoSync:\t\t\t' + JSON.stringify(data)); $.ajax({ - url: '/vtoy/json', + url: '/hiso/json', type: 'post', cache: false, dataType: 'json', async: false, data: JSON.stringify(data), - success: function VtoyCallFuncWrapper(data) { + success: function HisoCallFuncWrapper(data) { if (data.result === 'busy') { - var titlestr = ' ' + g_vtoy_cur_language.STR_INFO + ''; - var msgstr = ' ' + g_vtoy_cur_language.STR_WEB_SERVICE_BUSY + ''; - Modal.alert({title:titlestr, msg:msgstr, btnok:g_vtoy_cur_language.STR_BTN_OK }); + var titlestr = ' ' + g_hiso_cur_language.STR_INFO + ''; + var msgstr = ' ' + g_hiso_cur_language.STR_WEB_SERVICE_BUSY + ''; + Modal.alert({title:titlestr, msg:msgstr, btnok:g_hiso_cur_language.STR_BTN_OK }); }else { func(data); } @@ -244,7 +244,7 @@ function callVtoySync(data, func) { error: function(xmlHttpRequest, textStatus, errorThrown) { if(undefined === errorThrown) { - Message.error(g_vtoy_cur_language.STR_WEB_REMOTE_ABNORMAL); + Message.error(g_hiso_cur_language.STR_WEB_REMOTE_ABNORMAL); } else if(undefined === errorThrown.length) { @@ -259,12 +259,12 @@ function callVtoySync(data, func) { { case 'timeout': { - Message.error(g_vtoy_cur_language.STR_WEB_REQUEST_TIMEOUT); + Message.error(g_hiso_cur_language.STR_WEB_REQUEST_TIMEOUT); break; } case 'Service Unavailable': { - Message.error(g_vtoy_cur_language.STR_WEB_SERVICE_UNAVAILABLE); + Message.error(g_hiso_cur_language.STR_WEB_SERVICE_UNAVAILABLE); break; } case 'abort': @@ -273,19 +273,19 @@ function callVtoySync(data, func) { } default: { - Message.error(g_vtoy_cur_language.STR_WEB_COMMUNICATION_ERR + errorThrown); + Message.error(g_hiso_cur_language.STR_WEB_COMMUNICATION_ERR + errorThrown); break; } } } }, complete: function(data) { - //vtoy.debug('callVtoySync\'s resp:\t' + JSON.stringify(data)); + //hiso.debug('callHisoSync\'s resp:\t' + JSON.stringify(data)); } }); } -var vtoy = { +var hiso = { baseurl : '', status: '', scan: { @@ -305,7 +305,7 @@ String.prototype.endsWith = function(str) { } -var g_vtoy_cur_language_en = +var g_hiso_cur_language_en = { "STR_INFO": "Info", "STR_BTN_OK": "OK", @@ -438,9 +438,9 @@ var g_vtoy_cur_language_en = "STR_CLOSE_TIP": "Service unavailable, the page will close!", "STR_SECURE_BOOT_ENABLE": "Enable", "STR_SECURE_BOOT_DISABLE": "Disable", - "STR_SYNTAX_ERROR_TIP": "Syntax error detected in ventoy.json, so the configuration is not loaded!", - "STR_INVALID_CONFIG_TIP": "Invalid configuration detected in ventoy.json, so the configuration is not loaded!", - "STR_CONFIG_SAVE_ERROR_TIP": "Failed to write ventoy.json file. Check VentoyPlugson.log for more details!", + "STR_SYNTAX_ERROR_TIP": "Syntax error detected in hiperiso.json, so the configuration is not loaded!", + "STR_INVALID_CONFIG_TIP": "Invalid configuration detected in hiperiso.json, so the configuration is not loaded!", + "STR_CONFIG_SAVE_ERROR_TIP": "Failed to write hiperiso.json file. Check HiperisoPlugson.log for more details!", "STR_JSON_PREVIEW": "JSON Preview", "STR_JSON_COPY_SUCCESS": "JSON Copy Success", @@ -449,7 +449,7 @@ var g_vtoy_cur_language_en = "STR_XXX": "xxx" }; -var g_vtoy_cur_language_cn = +var g_hiso_cur_language_cn = { "STR_INFO": "提醒", "STR_BTN_OK": "确定", @@ -580,9 +580,9 @@ var g_vtoy_cur_language_cn = "STR_CLOSE_TIP": "后台服务不可用,页面即将关闭!", "STR_SECURE_BOOT_ENABLE": "开启", "STR_SECURE_BOOT_DISABLE": "未开启", - "STR_SYNTAX_ERROR_TIP": "ventoy.json 文件中存在语法错误,配置未加载!", - "STR_INVALID_CONFIG_TIP": "ventoy.json 文件中存在错误配置,配置未加载!", - "STR_CONFIG_SAVE_ERROR_TIP": "ventoy.json 文件写入失败,详细信息请参考 VentoyPlugson.log 文件!", + "STR_SYNTAX_ERROR_TIP": "hiperiso.json 文件中存在语法错误,配置未加载!", + "STR_INVALID_CONFIG_TIP": "hiperiso.json 文件中存在错误配置,配置未加载!", + "STR_CONFIG_SAVE_ERROR_TIP": "hiperiso.json 文件写入失败,详细信息请参考 HiperisoPlugson.log 文件!", "STR_JSON_PREVIEW": "JSON 预览", "STR_JSON_COPY_SUCCESS": "JSON 内容复制成功", @@ -594,8 +594,8 @@ var g_vtoy_cur_language_cn = var g_current_dir; var g_current_os; var g_current_language = 'cn'; -var g_vtoy_cur_language = g_vtoy_cur_language_cn; -var g_vtoy_data_default_index = 6; +var g_hiso_cur_language = g_hiso_cur_language_cn; +var g_hiso_data_default_index = 6; var g_bios_postfix = [ "", "_legacy", "_uefi", "_ia32", "_aa64", "_mips" ]; var g_del_all_path = '4119ae33-98ea-448e-b9c0-569aafcf1fb4'; @@ -619,7 +619,7 @@ function GetResetTabConfigTipMsg(index, name) { function CommonUpdateTabTitleIcon(exists, id, name) { var exspan = " "; - for (var i = 0; i < g_vtoy_data_default_index; i++) { + for (var i = 0; i < g_hiso_data_default_index; i++) { var fid = id + i + '"]'; var oldhtml = $(fid).html(); var newhtml; @@ -636,7 +636,7 @@ function CommonUpdateTabTitleIcon(exists, id, name) { } } -function ventoy_file_submit(form, extra) { +function hiperiso_file_submit(form, extra) { var filepath = $("#FilePath").val(); var fileextra = $("#FileExtra").val(); @@ -650,15 +650,15 @@ function ventoy_file_submit(form, extra) { } } - filepath = ventoy_replace_slash(filepath); + filepath = hiperiso_replace_slash(filepath); - if (!ventoy_common_check_path(filepath)) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH); + if (!hiperiso_common_check_path(filepath)) { + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH); return; } if (g_file_fuzzy_match && filepath.indexOf("*") >= 0) { - callVtoySync({ + callHisoSync({ method : 'check_fuzzy', path: filepath }, function(data) { @@ -668,11 +668,11 @@ function ventoy_file_submit(form, extra) { } $("#SetFileModal").modal('hide'); } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH); } }); } else { - callVtoySync({ + callHisoSync({ method : 'check_path', dir: 0, path: filepath @@ -683,7 +683,7 @@ function ventoy_file_submit(form, extra) { } $("#SetFileModal").modal('hide'); } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH); } }); } @@ -703,7 +703,7 @@ var g_filepath_validator = $("#SetFileForm").validate({ } }, submitHandler: function(form) { - ventoy_file_submit(form, g_file_with_extra); + hiperiso_file_submit(form, g_file_with_extra); } }); @@ -733,18 +733,18 @@ var g_dirpath_validator = $("#SetDirForm").validate({ } } - dirpath = ventoy_replace_slash(dirpath); + dirpath = hiperiso_replace_slash(dirpath); if (dirpath.length > 0 && dirpath.charCodeAt(dirpath.length - 1) === 47) { dirpath = dirpath.substring(0, dirpath.length - 1); } - if (!ventoy_common_check_path(dirpath)) { - Message.error(g_vtoy_cur_language.STR_INVALID_DIR_PATH); + if (!hiperiso_common_check_path(dirpath)) { + Message.error(g_hiso_cur_language.STR_INVALID_DIR_PATH); return; } - callVtoySync({ + callHisoSync({ method : 'check_path', dir: 1, path: dirpath @@ -755,13 +755,13 @@ var g_dirpath_validator = $("#SetDirForm").validate({ } $("#SetDirModal").modal('hide'); } else { - Message.error(g_vtoy_cur_language.STR_INVALID_DIR_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_DIR_PATH); } }); } }); -function VtoySelectFilePath(cb, para) { +function HisoSelectFilePath(cb, para) { g_file_fuzzy_match = para.fuzzy; if (para.extra) { @@ -827,7 +827,7 @@ function VtoySelectFilePath(cb, para) { } -function VtoySelectDirPath(cb, para) { +function HisoSelectDirPath(cb, para) { $('span[id=id_span_dirpath_tip]').each(function(){ $(this).text(para.tip); }); @@ -886,9 +886,9 @@ function VtoySelectDirPath(cb, para) { $("#SetDirModal").modal(); } -function VtoyCommonChangeLanguage(newlang) { +function HisoCommonChangeLanguage(newlang) { if (newlang === 'en') { - g_vtoy_cur_language = g_vtoy_cur_language_en; + g_hiso_cur_language = g_hiso_cur_language_en; ;$.extend($.validator.messages, { required: "This field is required", remote: "Please modify this field", @@ -939,7 +939,7 @@ function VtoyCommonChangeLanguage(newlang) { }); } else { - g_vtoy_cur_language = g_vtoy_cur_language_cn; + g_hiso_cur_language = g_hiso_cur_language_cn; ;$.extend($.validator.messages, { required: "这是必填字段", remote: "请修正此字段", @@ -991,76 +991,76 @@ function VtoyCommonChangeLanguage(newlang) { }); } - $("span[id=id_span_menu_device]").text(g_vtoy_cur_language.STR_PLUG_DEVICE); - $("span[id=id_span_menu_control]").text(g_vtoy_cur_language.STR_PLUG_CONTROL); - $("span[id=id_span_menu_theme]").text(g_vtoy_cur_language.STR_PLUG_THEME); - $("span[id=id_span_menu_alias]").text(g_vtoy_cur_language.STR_PLUG_ALIAS); - $("span[id=id_span_menu_tip]").text(g_vtoy_cur_language.STR_PLUG_TIP); - $("span[id=id_span_menu_class]").text(g_vtoy_cur_language.STR_PLUG_CLASS); - $("span[id=id_span_menu_auto_install]").text(g_vtoy_cur_language.STR_PLUG_AUTO_INSTALL); - $("span[id=id_span_menu_persistence]").text(g_vtoy_cur_language.STR_PLUG_PERSISTENCE); - $("span[id=id_span_menu_injection]").text(g_vtoy_cur_language.STR_PLUG_INJECTION); - $("span[id=id_span_menu_conf_replace]").text(g_vtoy_cur_language.STR_PLUG_CONF_REPLACE); - $("span[id=id_span_menu_password]").text(g_vtoy_cur_language.STR_PLUG_PASSWORD); - $("span[id=id_span_menu_imagelist]").text(g_vtoy_cur_language.STR_PLUG_IMAGELIST); - $("span[id=id_span_menu_auto_memdisk]").text(g_vtoy_cur_language.STR_PLUG_AUTO_MEMDISK); - $("span[id=id_span_menu_dud]").text(g_vtoy_cur_language.STR_PLUG_DUD); - $('#id_span_save').text(g_vtoy_cur_language.STR_SAVE); - $('#id_span_reset').text(g_vtoy_cur_language.STR_RESET); - $('#id_span_donation').text(g_vtoy_cur_language.STR_PLUG_DONATION); + $("span[id=id_span_menu_device]").text(g_hiso_cur_language.STR_PLUG_DEVICE); + $("span[id=id_span_menu_control]").text(g_hiso_cur_language.STR_PLUG_CONTROL); + $("span[id=id_span_menu_theme]").text(g_hiso_cur_language.STR_PLUG_THEME); + $("span[id=id_span_menu_alias]").text(g_hiso_cur_language.STR_PLUG_ALIAS); + $("span[id=id_span_menu_tip]").text(g_hiso_cur_language.STR_PLUG_TIP); + $("span[id=id_span_menu_class]").text(g_hiso_cur_language.STR_PLUG_CLASS); + $("span[id=id_span_menu_auto_install]").text(g_hiso_cur_language.STR_PLUG_AUTO_INSTALL); + $("span[id=id_span_menu_persistence]").text(g_hiso_cur_language.STR_PLUG_PERSISTENCE); + $("span[id=id_span_menu_injection]").text(g_hiso_cur_language.STR_PLUG_INJECTION); + $("span[id=id_span_menu_conf_replace]").text(g_hiso_cur_language.STR_PLUG_CONF_REPLACE); + $("span[id=id_span_menu_password]").text(g_hiso_cur_language.STR_PLUG_PASSWORD); + $("span[id=id_span_menu_imagelist]").text(g_hiso_cur_language.STR_PLUG_IMAGELIST); + $("span[id=id_span_menu_auto_memdisk]").text(g_hiso_cur_language.STR_PLUG_AUTO_MEMDISK); + $("span[id=id_span_menu_dud]").text(g_hiso_cur_language.STR_PLUG_DUD); + $('#id_span_save').text(g_hiso_cur_language.STR_SAVE); + $('#id_span_reset').text(g_hiso_cur_language.STR_RESET); + $('#id_span_donation').text(g_hiso_cur_language.STR_PLUG_DONATION); $('span[id=id_btn_span_reset]').each(function(){ - $(this).text(' ' + g_vtoy_cur_language.STR_RESET); + $(this).text(' ' + g_hiso_cur_language.STR_RESET); }); $("span[id=id_span_btn_add]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_ADD); + $(this).text(g_hiso_cur_language.STR_ADD); }); $("span[id=id_span_btn_del]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_DEL_SHORT); + $(this).text(g_hiso_cur_language.STR_DEL_SHORT); }); $("span[id=id_span_enable]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_ENABLE); + $(this).text(g_hiso_cur_language.STR_ENABLE); }); $("th[id=id_th_operation]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_OPERATION); + $(this).text(g_hiso_cur_language.STR_OPERATION); }); $("th[id=id_th_status]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_STATUS); + $(this).text(g_hiso_cur_language.STR_STATUS); }); $('span [id=id_span_valid').each(function(){ - $(this).text(g_vtoy_cur_language.STR_VALID); + $(this).text(g_hiso_cur_language.STR_VALID); }); $('span [id=id_span_invalid').each(function(){ - $(this).text(g_vtoy_cur_language.STR_INVALID); + $(this).text(g_hiso_cur_language.STR_INVALID); }); $("td[id=td_title_desc]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_OPT_DESC); + $(this).text(g_hiso_cur_language.STR_OPT_DESC); }); $("td[id=td_title_setting]").each(function(){ - $(this).text(g_vtoy_cur_language.STR_OPT_SETTING); + $(this).text(g_hiso_cur_language.STR_OPT_SETTING); }); } -function ventoy_get_status_line(dir, exist) { +function hiperiso_get_status_line(dir, exist) { if (dir) { if (exist === 0) { - return '' + g_vtoy_cur_language.STR_DIR_NONEXIST + ''; + return '' + g_hiso_cur_language.STR_DIR_NONEXIST + ''; } else { - return '' + g_vtoy_cur_language.STR_DIR_EXIST + ''; + return '' + g_hiso_cur_language.STR_DIR_EXIST + ''; } } else { if (exist === -1) { - return '' + g_vtoy_cur_language.STR_FILE_FUZZY + ''; + return '' + g_hiso_cur_language.STR_FILE_FUZZY + ''; } else if (exist === 1) { - return '' + g_vtoy_cur_language.STR_FILE_EXIST + ''; + return '' + g_hiso_cur_language.STR_FILE_EXIST + ''; } else { - return '' + g_vtoy_cur_language.STR_FILE_NONEXIST + ''; + return '' + g_hiso_cur_language.STR_FILE_NONEXIST + ''; } } } @@ -1080,9 +1080,9 @@ var g_type_select_validator = $("#TypeSelectForm").validate({ } }); -function VtoySelectType(cb, para) { +function HisoSelectType(cb, para) { - $('#TypeSelectForm #TypeSelForm_lang_1').text(g_vtoy_cur_language.STR_SELECT); + $('#TypeSelectForm #TypeSelForm_lang_1').text(g_hiso_cur_language.STR_SELECT); if (g_current_language === 'en') { $('#TypeSelectForm #TypeSelForm_lang_2').text(" OK"); @@ -1145,7 +1145,7 @@ var g_set_key_validator = $("#SetKeyForm").validate({ } }); -function VtoySetKey(cb, para) { +function HisoSetKey(cb, para) { $('#SetKeyForm #SetKeyForm_lang_1').text(para.title); $('#SetKeyForm #SetKeyForm_lang_2').text(para.title1); @@ -1183,7 +1183,7 @@ var g_valid_color_name = [ "white" ]; -function ventoy_check_color(color) { +function hiperiso_check_color(color) { if (/^#[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]$/.test(color)) { return true; } else { @@ -1197,7 +1197,7 @@ function ventoy_check_color(color) { return false; } -function ventoy_check_percent(percent) { +function hiperiso_check_percent(percent) { if (percent.length > 0) { return true; } else { @@ -1206,9 +1206,9 @@ function ventoy_check_percent(percent) { } -function ventoy_check_file_path(isopath, fuzzy, cb) { +function hiperiso_check_file_path(isopath, fuzzy, cb) { if (fuzzy && isopath.indexOf("*") >= 0) { - callVtoySync({ + callHisoSync({ method : 'check_fuzzy', path: isopath }, function(data) { @@ -1217,11 +1217,11 @@ function ventoy_check_file_path(isopath, fuzzy, cb) { cb(data.exist); } } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH); } }); } else { - callVtoySync({ + callHisoSync({ method : 'check_path', dir: 0, path: isopath @@ -1231,13 +1231,13 @@ function ventoy_check_file_path(isopath, fuzzy, cb) { cb(data.exist); } } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH); } }); } } -function ventoy_random_string(e) {  +function hiperiso_random_string(e) {  var t = "abcdefhijkmnprstwxyz2345678"; var a = t.length; var n = ""; @@ -1271,21 +1271,21 @@ var g_set_filefile_validator = $("#SetFileFileForm").validate({ return; } - path1 = ventoy_replace_slash(path1); + path1 = hiperiso_replace_slash(path1); - if (!ventoy_common_check_path(path1)) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH1); + if (!hiperiso_common_check_path(path1)) { + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH1); return; } - path2 = ventoy_replace_slash(path2); + path2 = hiperiso_replace_slash(path2); - if (!ventoy_common_check_path(path2)) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH2); + if (!hiperiso_common_check_path(path2)) { + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH2); return; } - callVtoy({ + callHiso({ method : 'check_path2', dir1: 0, fuzzy1: 1, @@ -1301,15 +1301,15 @@ var g_set_filefile_validator = $("#SetFileFileForm").validate({ $("#SetFileFileModal").modal('hide'); } else if (retdata.exist1 === 0) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH1); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH1); } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH2); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH2); } }); } }); -function VtoySetFileFile(cb, para) { +function HisoSetFileFile(cb, para) { $('#SetFileFileForm #SetFileFileForm_title').text(para.title); $('#SetFileFileForm #SetFileFileForm_label1').text(para.label1); @@ -1369,21 +1369,21 @@ var g_set_dirfile_validator = $("#SetDirFileForm").validate({ return; } - path1 = ventoy_replace_slash(path1); + path1 = hiperiso_replace_slash(path1); - if (!ventoy_common_check_path(path1)) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH1); + if (!hiperiso_common_check_path(path1)) { + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH1); return; } - path2 = ventoy_replace_slash(path2); + path2 = hiperiso_replace_slash(path2); - if (!ventoy_common_check_path(path2)) { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH2); + if (!hiperiso_common_check_path(path2)) { + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH2); return; } - callVtoy({ + callHiso({ method : 'check_path2', dir1: 1, fuzzy1: 0, @@ -1399,15 +1399,15 @@ var g_set_dirfile_validator = $("#SetDirFileForm").validate({ $("#SetDirFileModal").modal('hide'); } else if (retdata.exist1 === 0) { - Message.error(g_vtoy_cur_language.STR_INVALID_DIR_PATH); + Message.error(g_hiso_cur_language.STR_INVALID_DIR_PATH); } else { - Message.error(g_vtoy_cur_language.STR_INVALID_FILE_PATH2); + Message.error(g_hiso_cur_language.STR_INVALID_FILE_PATH2); } }); } }); -function VtoySetDirFile(cb, para) { +function HisoSetDirFile(cb, para) { $('#SetDirFileModal #SetDirFileForm_title').text(para.title); $('#SetDirFileModal #SetDirFileForm_label1').text(para.label1); @@ -1440,24 +1440,24 @@ function VtoySetDirFile(cb, para) { $("#SetDirFileModal").modal(); } -function ventoy_get_xslg_addbtn(mclass) { - return ''; +function hiperiso_get_xslg_addbtn(mclass) { + return ''; } -function ventoy_get_xslg_delbtn(mclass) { - return ''; +function hiperiso_get_xslg_delbtn(mclass) { + return ''; } -function ventoy_get_addbtn(mclass) { - return ''; +function hiperiso_get_addbtn(mclass) { + return ''; } -function ventoy_get_delbtn(mclass) { - return ''; +function hiperiso_get_delbtn(mclass) { + return ''; } -function ventoy_confirm(title, cb, data1, data2) { - Modal.confirm({msg:g_vtoy_cur_language.STR_DEL_LAST}).on(function(e) { +function hiperiso_confirm(title, cb, data1, data2) { + Modal.confirm({msg:g_hiso_cur_language.STR_DEL_LAST}).on(function(e) { if (e) { if (typeof(cb) === 'function') { cb(data1, data2);