From ec945e5155cb008fad0c9cb37e437e2773637015 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Mon, 19 May 2025 13:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeMirrors.sh | 40 ++++++++++-------- DockerInstallation.sh | 42 +++++++++++-------- docs/assets/images/sponsor/duotuyun-dark.svg | 22 ++++++++++ docs/assets/images/sponsor/duotuyun-light.svg | 22 ++++++++++ docs/sponsor/main.html | 42 ++++++++++--------- docs/stylesheets/extra.css | 40 +++++++++++------- docs/theme/partials/toc.html | 30 +++++++------ 7 files changed, 156 insertions(+), 82 deletions(-) create mode 100644 docs/assets/images/sponsor/duotuyun-dark.svg create mode 100644 docs/assets/images/sponsor/duotuyun-light.svg diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 25a2952..534c638 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -151,6 +151,21 @@ mirror_list_intranet=( "mirrors.ivolces.com" ) +## 赞助商广告 +SPONSOR_ADS=( + "1Panel · Linux 面板|极简运维 ➜ \033[3mhttps://1panel.cn\033[0m" + "多途云 · 智能化防护,每一次连接皆在安全之下 ➜ \033[3mhttps://www.duotuyun.com\033[0m" + "速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ \033[3mhttps://www.sutuoyun.com\033[0m" + "林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ \033[3mhttps://www.dkdun.cn\033[0m" + "乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ \033[3mhttps://www.qiaoxh.com\033[0m" + "云悠YUNYOO · 全球高性价比云服务器|低至15.99元起 ➜ \033[3mhttps://yunyoo.cc\033[0m" + "圣道云 · 稳定高效云服务器|低至9.9元/月起 ➜ \033[3mhttps://www.shengdaoyun.com\033[0m" + "润信云 · 国内挂机宝海外云服务器低至9.9元/月 ➜ \033[3mhttps://www.runxinyun.com\033[0m" + "新鸟云 · 2核2G云主机特价15元/月 ➜ \033[3mhttps://www.xinniaoyun.com\033[0m" + "语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m" + "不死鸟CDN · 香港日本高防CDN,免实名/免备案,轻松阻断DDOS/CC攻击 ➜ \033[3mhttps://www.bsncdn.org\033[0m" +) + ############################################################################## ## 定义系统判定变量 @@ -648,23 +663,14 @@ function run_end() { echo '' return fi - local sponsor_ad=( - "1Panel · Linux 面板|极简运维 ➜ https://1panel.cn" - "林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn" - "乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com" - "速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ https://www.sutuoyun.com" - "云悠YUNYOO · 全球高性价比云服务器|低至15.99元起 ➜ https://yunyoo.cc" - "圣道云 · 稳定高效云服务器|低至9.9元/月起 ➜ https://www.shengdaoyun.com" - "润信云 · 国内挂机宝海外云服务器低至9.9元/月 ➜ https://www.runxinyun.com" - "新鸟云 · 2核2G云主机特价15元/月 ➜ https://www.xinniaoyun.com" - "语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ https://www.lucdn.cn" - "不死鸟CDN · 香港日本高防CDN,免实名/免备案,轻松阻断DDOS/CC攻击 ➜ https://www.bsncdn.org" - ) - echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m\n" - for ad in "${sponsor_ad[@]}"; do - sleep 0.1 - echo -e " \033[2m${ad} \033[3m【广告】\033[0m\033[0m" - done + echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m" + if [[ "${#SPONSOR_ADS[@]}" -gt 0 ]]; then + echo -e "\n\033[2m【赞助商广告】\033[0m" + for ad in "${SPONSOR_ADS[@]}"; do + sleep 0.1 + echo -e " \033[2m${ad}\033[0m" + done + fi echo -e "\n\033[3;1mPowered by \033[34mLinuxMirrors\033[0m\n" } diff --git a/DockerInstallation.sh b/DockerInstallation.sh index f32b467..2382905 100755 --- a/DockerInstallation.sh +++ b/DockerInstallation.sh @@ -59,6 +59,23 @@ mirror_list_registry=( "官方 Docker Hub@registry.hub.docker.com" ) +## 赞助商广告 +SPONSOR_ADS=( + "1Panel · Linux 面板|极简运维 ➜ \033[3mhttps://1panel.cn\033[0m" + "多途云 · 智能化防护,每一次连接皆在安全之下 ➜ \033[3mhttps://www.duotuyun.com\033[0m" + "速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ \033[3mhttps://www.sutuoyun.com\033[0m" + "林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ \033[3mhttps://www.dkdun.cn\033[0m" + "乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ \033[3mhttps://www.qiaoxh.com\033[0m" + "云悠YUNYOO · 全球高性价比云服务器|低至15.99元起 ➜ \033[3mhttps://yunyoo.cc\033[0m" + "圣道云 · 稳定高效云服务器|低至9.9元/月起 ➜ \033[3mhttps://www.shengdaoyun.com\033[0m" + "润信云 · 国内挂机宝海外云服务器低至9.9元/月 ➜ \033[3mhttps://www.runxinyun.com\033[0m" + "新鸟云 · 2核2G云主机特价15元/月 ➜ \033[3mhttps://www.xinniaoyun.com\033[0m" + "语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ \033[3mhttps://www.lucdn.cn\033[0m" + "不死鸟CDN · 香港日本高防CDN,免实名/免备案,轻松阻断DDOS/CC攻击 ➜ \033[3mhttps://www.bsncdn.org\033[0m" +) + +############################################################################## + ## 定义系统判定变量 SYSTEM_DEBIAN="Debian" SYSTEM_UBUNTU="Ubuntu" @@ -352,23 +369,14 @@ function run_end() { echo '' return fi - local sponsor_ad=( - "1Panel · Linux 面板|极简运维 ➜ https://1panel.cn" - "林枫云 · 专注独立IP高频VPS|R9/i9系列定制 ➜ https://www.dkdun.cn" - "乔星欢 · 香港4核4G服务器28元起_香港500Mbps大带宽 ➜ https://www.qiaoxh.com" - "速拓云 · 国内高防云28元/月|香港云100M优化线路9元/月 ➜ https://www.sutuoyun.com" - "云悠YUNYOO · 全球高性价比云服务器|低至15.99元起 ➜ https://yunyoo.cc" - "圣道云 · 稳定高效云服务器|低至9.9元/月起 ➜ https://www.shengdaoyun.com" - "润信云 · 国内挂机宝海外云服务器低至9.9元/月 ➜ https://www.runxinyun.com" - "新鸟云 · 2核2G云主机特价15元/月 ➜ https://www.xinniaoyun.com" - "语鹿云盾 · 专业CDN加速、防御,亚太百兆三网优化CDN低至9元起 ➜ https://www.lucdn.cn" - "不死鸟CDN · 香港日本高防CDN,免实名/免备案,轻松阻断DDOS/CC攻击 ➜ https://www.bsncdn.org" - ) - echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m\n" - for ad in "${sponsor_ad[@]}"; do - sleep 0.1 - echo -e " \033[2m${ad} \033[3m【广告】\033[0m\033[0m" - done + echo -e "\n✨ 脚本运行完毕,更多使用教程详见官网 👉 \033[3mhttps://linuxmirrors.cn\033[0m" + if [[ "${#SPONSOR_ADS[@]}" -gt 0 ]]; then + echo -e "\n\033[2m【赞助商广告】\033[0m" + for ad in "${SPONSOR_ADS[@]}"; do + sleep 0.1 + echo -e " \033[2m${ad}\033[0m" + done + fi echo -e "\n\033[3;1mPowered by \033[34mLinuxMirrors\033[0m\n" } diff --git a/docs/assets/images/sponsor/duotuyun-dark.svg b/docs/assets/images/sponsor/duotuyun-dark.svg new file mode 100644 index 0000000..5e6b966 --- /dev/null +++ b/docs/assets/images/sponsor/duotuyun-dark.svg @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/docs/assets/images/sponsor/duotuyun-light.svg b/docs/assets/images/sponsor/duotuyun-light.svg new file mode 100644 index 0000000..ae0edf9 --- /dev/null +++ b/docs/assets/images/sponsor/duotuyun-light.svg @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/docs/sponsor/main.html b/docs/sponsor/main.html index a5e3493..0e6b1ff 100644 --- a/docs/sponsor/main.html +++ b/docs/sponsor/main.html @@ -3,47 +3,51 @@ 赞助商
@@ -54,11 +58,11 @@ 特别感谢
       
     
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index d873b9c..a191cbc 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -246,7 +246,7 @@ body {
 .sponsor-item-toc {
     margin: 0;
     padding: 14px !important;
-    height: 72px !important;
+    height: 62px !important;
     border-radius: 4px !important;
     box-sizing: border-box;
     flex: 0 0 calc(50% - 2px) !important;
@@ -302,35 +302,43 @@ body {
     width: 100%;
 }
 
-.sponsor-flex-item {
+.sponsor-item-flex {
     flex: 0 1 calc(33.33% - 1rem);
     min-width: 200px;
     max-width: 300px;
 }
 
-.sponsor-flex-item img {
+.sponsor-item-flex img {
     width: 60% !important;
 }
 
-@media screen and (max-width: 768px) {
-    .sponsor-flex-item {
-        flex: 0 1 calc(50% - 1rem);
-        min-width: 150px;
-        max-width: calc(50% - 1rem);
-    }
-}
-
 @media screen and (max-width: 480px) {
-    .sponsor .sponsor-item {
-        padding: 0;
-        height: 40px;
+    .sponsor-flex-wrapper {
+        gap: 24px;
+    }
+
+    .sponsor-title {
+        font-size: .8rem;
+    }
+
+    .sponsor .sponsor-item {
+        height: 40px;
+        padding: 2px;
     }
-}
 
-@media screen and (max-width: 768px) {
     .sponsor-toc {
         display: none;
     }
+
+    .sponsor-item-flex {
+        flex: 0 1 calc(33.33% - 1rem);
+        min-width: 100px;
+        max-width: calc(33.33% - 1rem);
+    }
+
+    .sponsor-item-flex img {
+        transform: scale(1.4);
+    }
 }
 
 /* 图标动画 */
diff --git a/docs/theme/partials/toc.html b/docs/theme/partials/toc.html
index b519f7e..a2ab07b 100644
--- a/docs/theme/partials/toc.html
+++ b/docs/theme/partials/toc.html
@@ -14,24 +14,28 @@
         赞助商