Add Fail2Ban、MediaSaber

This commit is contained in:
xushier 2023-11-25 23:08:39 +08:00
parent 983a364a21
commit b6b04e202e
6 changed files with 12 additions and 12 deletions

View File

@ -75,12 +75,12 @@
## 圆角矩形图标
<!-- START BORDER-RADIUS ICONS -->
<img src="https://github.com/xushier/HD-Icons/blob/main/_icons-radius.png?raw=true" alt="radius">
<!-- END BORDER-RADIUS ICONS -->
## 圆形图标
<!-- START CIRCLE ICONS -->
<img src="https://github.com/xushier/HD-Icons/blob/main/_icons-circle.png?raw=true" alt="circle">
<!-- END CIRCLE ICONS -->
## SVG 图标

View File

@ -25,22 +25,22 @@ with open(template_path, "r", encoding="UTF-8") as f:
lines = f.readlines()
# Find the line that starts with "<!-- ICONS -->"
for line in lines:
if line.startswith("<!-- START BORDER-RADIUS ICONS -->"):
line_number = lines.index(line)
break
for line in lines:
if line.startswith("<!-- START CIRCLE ICONS -->"):
circle_line_number = lines.index(line)
break
# for line in lines:
# if line.startswith("<!-- START BORDER-RADIUS ICONS -->"):
# line_number = lines.index(line)
# break
# for line in lines:
# if line.startswith("<!-- START CIRCLE ICONS -->"):
# circle_line_number = lines.index(line)
# break
for line in lines:
if line.startswith("<!-- START SVG ICONS -->"):
svg_line_number = lines.index(line)
break
# Insert the icons after the line
lines.insert(line_number + 1, " ".join(img_tags))
lines.insert(circle_line_number + 2, " ".join(circle_img_tags))
# lines.insert(line_number + 1, " ".join(img_tags))
# lines.insert(circle_line_number + 2, " ".join(circle_img_tags))
lines.insert(svg_line_number + 3, " ".join(svg_img_tags))
lines = ["# 图标预览(当前共计 " + str(all_nums) + " 个)" if '# 图标预览(当前共计 0 个)' in i else i for i in lines]

BIN
_icons-circle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

BIN
_icons-radius.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB