Skip to content

Commit

Permalink
2024083001
Browse files Browse the repository at this point in the history
  • Loading branch information
Spectrollay committed Aug 30, 2024
1 parent d4688f1 commit 9d3809d
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 14 deletions.
8 changes: 8 additions & 0 deletions Feed/update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<link>https://spectrollay.github.io/minecraft_repository_test/updatelog/</link>
<description>星月Minecraft版本库是一个开放共享的资源站,专注于收录Minecraft发布过的所有版本.</description>
<language>zh-cn</language>
<item>
<title>版本库已更新 4.6.5.50.Canary</title>
<link>https://spectrollay.github.io/minecraft_repository_test/</link>
<description>更新内容详见:
<a href="https://spectrollay.github.io/minecraft_repository_test/updatelog/">开发日志</a>
</description>
<pubDate>Thu, 29 Aug 2024 18:00:00 GMT</pubDate>
</item>
<item>
<title>版本库已更新 4.6.5.21.Canary</title>
<link>https://spectrollay.github.io/minecraft_repository_test/</link>
Expand Down
12 changes: 6 additions & 6 deletions file-hashes.json → Verification/file-hashes.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"404.html": "b724c56bbefba662700eadea51a4b5b9",
"advanced\\debug.html": "f3f599c403fbe59bb6cf99fc2ac1dd21",
"advanced\\settings.html": "5c11dc4fbea4ce847ff5921915749700",
"advanced\\settings.html": "74024a6deb37c32f09e15ee77621b996",
"advanced\\status.html": "ac6adf46440b16e99c3151b8c8c9ba94",
"default\\coming_soon.html": "541c00b3ff6cdea5f7bf7129b131c5dd",
"default\\error_default.html": "13ebe0116389f9e10d0ec6dc2a8af39a",
Expand All @@ -10,12 +10,12 @@
"donate.html": "26df29641e07c5a582eca1068971fb48",
"experiments\\exp.css": "f227348871eca5403b0aca19d0edd65e",
"experiments\\exp.js": "91ebfaa6d90350f16bfabb60ab0df26c",
"experiments\\flags.html": "8c6776dce69188380bd7c7eabcc686c6",
"experiments\\flags.html": "fe30ad879a59198ce60634f7385abcd6",
"Feed\\database.xml": "33971db1a7e40a8a3e4b9d9aef9d24aa",
"Feed\\main.xml": "f5be196f7e0f95f94eee17f5c73efcd5",
"Feed\\messages.xml": "1c24a98ff83bdc56d026043d412bd778",
"Feed\\update.xml": "ae443b24acde6069b34fa3d852706739",
"flags\\index.html": "667382de6345ef88c5f41aa2c05fe697",
"Feed\\update.xml": "19ddc1049f06c89cc2c6b1eb65838c3d",
"flags\\index.html": "d645714594ec9c14b02ddfe5cacf271d",
"fonts\\Minecraft-Five-Bold.otf": "17ba4c2007cf79329c4b84e8dbc6fd34",
"fonts\\Minecraft-Five.otf": "070d5f6822481c45102b7c8e71619fe1",
"fonts\\Minecraft-Seven.otf": "29cc62e5424a2e7fd7a546e491837e17",
Expand Down Expand Up @@ -134,7 +134,7 @@
"javascript\\advanced.js": "0d38129123a736a59d09970b876f11ec",
"javascript\\custom_elements.js": "f9c1f72cad6afebd7983f4ffc93ae185",
"javascript\\editions.js": "795a056b1011d662f3cbd38c41962bee",
"javascript\\public_define.js": "d61ac8b6bb0b2029a2b88b5148c10353",
"javascript\\public_define.js": "2c411443fb954f9aa5418a41f1ec69fb",
"javascript\\public_script.js": "954a52994db77927dac0db9116e5f90f",
"notifications\\index.html": "4b3c07077998d0edcd3932df8a3d1e20",
"README-en_US.md": "8c9ce26d032adfdc4e620dc53d683e74",
Expand All @@ -151,5 +151,5 @@
"stylesheet\\loading_mask.css": "2701a0ba77a2b46b52280505bb0194af",
"stylesheet\\public_style.css": "a221d9cf3686e0757b093661e857312f",
"Template\\index.html": "d90907446df4ac3d061035c95d0d22b7",
"updatelog\\index.html": "6fbc049b7a9be5b49da3ed9d16bda578"
"updatelog\\index.html": "814895e28fa1b5767fd244ffad80567e"
}
3 changes: 3 additions & 0 deletions Verification/project-hash.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"projectHash": "ac2a52d58350483ccddb0c2f95378f4e"
}
7 changes: 5 additions & 2 deletions advanced/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<modal_area id="version_info_modal">
<modal>
<modal_title_area>
<modal_title>版本信息</modal_title>
<modal_title>详情</modal_title>
<modal_close_btn class="close_btn" onclick="hideModal(this);">
<img alt="" class="modal_close_btn_img" src=""/>
</modal_close_btn>
Expand All @@ -244,7 +244,10 @@
</modal_content>
<modal_button_area>
<modal_button_group>
<custom-button data="modal|green|||false||" js="hideModal(this);" text="好的"></custom-button>
<modal_button_list>
<custom-button data="modal|green|||false||" js="hideModal(this);" text="好的"></custom-button>
<custom-button data="modal|normal|||false||" js="copyText(projectHash);hideModal(this);" text="复制校验码"></custom-button>
</modal_button_list>
</modal_button_group>
</modal_button_area>
</modal>
Expand Down
10 changes: 10 additions & 0 deletions experiments/flags.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@
<div class="setting_content">响应式设计</div>
<custom-switch active="on" status="disabled"></custom-switch>
</div>
<divider></divider>
<div class="flex">
<div class="setting_content">无障碍体验优化</div>
<custom-switch active="on" status="disabled"></custom-switch>
</div>
<divider></divider>
<div class="flex">
<div class="setting_content">服务响应优化</div>
<custom-switch active="off" status="disabled"></custom-switch>
</div>
<br>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions flags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,24 @@
<div>使用更加灵活的页面布局以适应不同的设备</div>
</div>
</div>
<div class="main_block setting_block">
<div class="setting_block_content">
<div class="flex">
<div class="setting_content">无障碍体验优化</div>
<custom-switch active="on" status="disabled"></custom-switch>
</div>
<div>适配无障碍设计,优化在各种环境下的使用体验</div>
</div>
</div>
<div class="main_block setting_block">
<div class="setting_block_content">
<div class="flex">
<div class="setting_content">服务响应优化</div>
<custom-switch active="off" status="disabled"></custom-switch>
</div>
<div>通过优化网站缓存与加载机制提升响应速度</div>
</div>
</div>
<div id="page_info"></div>
</main>
</scroll-container>
Expand Down
30 changes: 24 additions & 6 deletions javascript/public_define.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,38 @@
const main_version_name = "4";
const primary_version_name = main_version_name + ".6"; // 例 4.0
const secondary_version_name = primary_version_name + ".5"; // 例 4.0.0
const version_name_short = secondary_version_name + ".50"; // 例 4.0.0.1 // NOTE 小版本
const version_name_short = secondary_version_name + ".50"; // 例 4.0.0.1 NOTE 小版本
const version_type = "Canary"; // Preview/Insider_(Preview/Alpha/Beta)/Canary/Alpha/Beta/Pre/RC/Stable/Release/SP
const version_type_count = version_type + ""; // 例 Build1 // NOTE 小版本,可为空
const version_type_count = version_type + ""; // 例 Build1 NOTE 小版本,可为空
const version_name = version_name_short + "." + version_type; // 例 4.0.0.1.Build
const version_nickname = secondary_version_name + "-" + version_type_count; // 例 4.0.0-Build1
const update_count = "20240829" + ".01"; // NOTE 小版本,有提交就变
const update_count = "20240830" + ".01"; // NOTE 小版本,有提交就变
const publish_version_name = primary_version_name + "." + update_count; // 例 4.20240101.01
console.log("发布版本: " + publish_version_name);
const server_version = "4.0";
let commit = "#"; // 例 #2024010101 , 仅留 # 则从 update_count 提取 // NOTE 有不更改版本的提交就变
let commit = "#"; // 例 #2024010101 , 仅留 # 则从 update_count 提取 NOTE 有不更改版本的提交就变
if (commit === "#") {
commit = "#" + update_count.replace(/\./g, "");
}
const version_info = "<table><tr><td>主要更新: </td><td>" + primary_version_name + "</td></tr><tr><td>次要更新: </td><td>" + secondary_version_name + "</td></tr><tr><td>版本编号: </td><td>" + version_name_short + "</td></tr><tr><td>版本类型: </td><td>" + version_type + "</td></tr><tr><td>版本名称: </td><td>" + version_name + "</td></tr><tr><td>版本别称: </td><td>" + version_nickname + "</td></tr><tr><td>发布编号: </td><td>" + update_count + "</td></tr><tr><td>最后提交: </td><td>" + commit + "</td></tr></table>";

function getProjectHash() {
const xhr = new XMLHttpRequest();
xhr.open('GET', '../Verification/project-hash.json', false); // 第三个参数为 false 表示同步请求
xhr.send(null);

if (xhr.status === 200) {
const response = JSON.parse(xhr.responseText);
return response.projectHash;
} else {
console.error('获取项目哈希值时出错: ', xhr.status);
return null;
}
}

const projectHash = getProjectHash();
const version_info = "<table><tr><td colspan='2' style='text-align: center'>版本信息</td></tr><tr><td>主要更新: </td><td>" + primary_version_name + "</td></tr><tr><td>次要更新: </td><td>" + secondary_version_name + "</td></tr><tr><td>版本编号: </td><td>" + version_name_short + "</td></tr><tr><td>版本类型: </td><td>" + version_type + "</td></tr><tr><td>版本名称: </td><td>" + version_name + "</td></tr><tr><td>版本别称: </td><td>" + version_nickname + "</td></tr><tr><td>发布编号: </td><td>" + update_count + "</td></tr><tr><td>最后提交: </td><td>" + commit + "</td></tr><tr></tr>" +
"<tr><td colspan='2' style='text-align: center'>校验码</td></tr><tr><td colspan='2' style='text-align: center'>" + projectHash + "</td></tr></table>";

console.log("发布版本: " + publish_version_name);

//字符常量
const texts = {
Expand Down
35 changes: 35 additions & 0 deletions updatelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,39 @@
</div>
<div class="expandable_card_down_area">
<div class="expandable_card_down">
<div class="expandable_card_down_content">
<article_block>
<article_title>4.6.20240830.01</article_title>
<article_subtitle>(V) 4.6.5.50</article_subtitle>
<article_detail>
<article_note>
我们推送了一个新的版本, 以下为更新详情, 请查阅.
</article_note>
<article_list_content>
<article_list_title>实验性</article_list_title>
<article_list>加入了无障碍体验优化开关</article_list>
<article_list_level2>包含了自4.5.1.16以来对无障碍的所有更改</article_list_level2>
<article_list>加入了服务响应优化开关</article_list>
<article_list_level2>目前没有任何内容,也无法通过常规手段访问</article_list_level2>
</article_list_content>
<article_list_content>
<article_list_title>新内容</article_list_title>
<article_list>加入了项目校验码</article_list>
<article_list_level2>位于设置->关于->版本</article_list_level2>
</article_list_content>
<article_list_content>
<article_list_title>更改</article_list_title>
<article_list>更新了文件哈希值系统</article_list>
<article_list_level2>优化了判定和输出</article_list_level2>
</article_list_content>
<article_list_content>
<article_list_title>修复</article_list_title>
<article_list>修复了一些问题</article_list>
</article_list_content>
</article_detail>
</article_block>
</div>
<line></line>
<div class="expandable_card_down_content">
<article_block>
<article_title>4.6.20240829.01</article_title>
Expand Down Expand Up @@ -1836,6 +1869,8 @@
<article_list>对代码进行了重新排列与格式化</article_list>
</article_detail>
</article_block>
</div>
<div class="expandable_card_down_content">
<line></line>
<article_block>
<article_title>4.5.2-Beta1 (4.5.2.1)</article_title>
Expand Down

0 comments on commit 9d3809d

Please sign in to comment.