podflow 20250331.1__py3-none-any.whl → 20250331.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- podflow/httpfs/ansi_to_html.py +18 -19
- podflow/templates/index.html +37 -33
- {podflow-20250331.1.dist-info → podflow-20250331.2.dist-info}/METADATA +1 -1
- {podflow-20250331.1.dist-info → podflow-20250331.2.dist-info}/RECORD +7 -7
- {podflow-20250331.1.dist-info → podflow-20250331.2.dist-info}/WHEEL +0 -0
- {podflow-20250331.1.dist-info → podflow-20250331.2.dist-info}/entry_points.txt +0 -0
- {podflow-20250331.1.dist-info → podflow-20250331.2.dist-info}/top_level.txt +0 -0
podflow/httpfs/ansi_to_html.py
CHANGED
@@ -8,22 +8,22 @@ import html
|
|
8
8
|
def ansi_to_html(ansi_text):
|
9
9
|
html_output = ""
|
10
10
|
ansi_codes = {
|
11
|
-
"\033[30m": "
|
12
|
-
"\033[31m": "
|
13
|
-
"\033[32m": "
|
14
|
-
"\033[33m": "
|
15
|
-
"\033[34m": "
|
16
|
-
"\033[35m": "
|
17
|
-
"\033[36m": "
|
18
|
-
"\033[37m": "
|
19
|
-
"\033[90m": "
|
20
|
-
"\033[91m": "
|
21
|
-
"\033[92m": "
|
22
|
-
"\033[93m": "
|
23
|
-
"\033[94m": "
|
24
|
-
"\033[95m": "
|
25
|
-
"\033[96m": "
|
26
|
-
"\033[97m": "
|
11
|
+
"\033[30m": "ansi-30m", # 黑色
|
12
|
+
"\033[31m": "ansi-31m", # 红色
|
13
|
+
"\033[32m": "ansi-32m", # 绿色
|
14
|
+
"\033[33m": "ansi-33m", # 黄色
|
15
|
+
"\033[34m": "ansi-34m", # 蓝色
|
16
|
+
"\033[35m": "ansi-35m", # 品红
|
17
|
+
"\033[36m": "ansi-36m", # 青色
|
18
|
+
"\033[37m": "ansi-37m", # 白色
|
19
|
+
"\033[90m": "ansi-90m", # 亮黑色 (通常显示为灰色)
|
20
|
+
"\033[91m": "ansi-91m", # 亮红色 (例如:热粉色)
|
21
|
+
"\033[92m": "ansi-92m", # 亮绿色 (例如:浅绿色)
|
22
|
+
"\033[93m": "ansi-93m", # 亮黄色 (通常与黄色相同)
|
23
|
+
"\033[94m": "ansi-94m", # 亮蓝色 (例如:浅蓝色)
|
24
|
+
"\033[95m": "ansi-95m", # 亮品红 (通常与品红相同)
|
25
|
+
"\033[96m": "ansi-96m", # 亮青色 (通常与青色相同)
|
26
|
+
"\033[97m": "ansi-97m", # 亮白色 (例如:爱丽丝蓝)
|
27
27
|
"\033[0m": "", # 重置
|
28
28
|
}
|
29
29
|
inside_span = False
|
@@ -32,11 +32,10 @@ def ansi_to_html(ansi_text):
|
|
32
32
|
|
33
33
|
for part in parts:
|
34
34
|
if part in ansi_codes:
|
35
|
-
style
|
36
|
-
if style:
|
35
|
+
if style := ansi_codes[part]:
|
37
36
|
if inside_span:
|
38
37
|
html_output += "</span>"
|
39
|
-
html_output += f'<span
|
38
|
+
html_output += f'<span class="{style}">'
|
40
39
|
inside_span = True
|
41
40
|
elif inside_span: # Reset code
|
42
41
|
html_output += "</span>"
|
podflow/templates/index.html
CHANGED
@@ -20,22 +20,6 @@
|
|
20
20
|
--menu-text: #333333;
|
21
21
|
--menu-width: 170px;
|
22
22
|
--menu-selected-bg: #cccccc;
|
23
|
-
.ansi-30m { color: #000000; }
|
24
|
-
.ansi-31m { color: #ff0000; }
|
25
|
-
.ansi-32m { color: #00ff00; }
|
26
|
-
.ansi-33m { color: #ffff00; }
|
27
|
-
.ansi-34m { color: #0000ff; }
|
28
|
-
.ansi-35m { color: #ff00ff; }
|
29
|
-
.ansi-36m { color: #00ffff; }
|
30
|
-
.ansi-37m { color: #ffffff; }
|
31
|
-
.ansi-90m { color: #808080; }
|
32
|
-
.ansi-91m { color: #ff8080; }
|
33
|
-
.ansi-92m { color: #80ff80; }
|
34
|
-
.ansi-93m { color: #ffff80; }
|
35
|
-
.ansi-94m { color: #8080ff; }
|
36
|
-
.ansi-95m { color: #ff80ff; }
|
37
|
-
.ansi-96m { color: #80ffff; }
|
38
|
-
.ansi-97m { color: #ffffff; }
|
39
23
|
}
|
40
24
|
|
41
25
|
/* 深色模式变量 */
|
@@ -53,25 +37,45 @@
|
|
53
37
|
--menu-bg: #333333;
|
54
38
|
--menu-text: #e0e0e0;
|
55
39
|
--menu-selected-bg: #555555;
|
56
|
-
.ansi-30m { color: #ffffff; }
|
57
|
-
.ansi-31m { color: #ff0000; }
|
58
|
-
.ansi-32m { color: #00ff00; }
|
59
|
-
.ansi-33m { color: #ffff00; }
|
60
|
-
.ansi-34m { color: #0000ff; }
|
61
|
-
.ansi-35m { color: #ff00ff; }
|
62
|
-
.ansi-36m { color: #00ffff; }
|
63
|
-
.ansi-37m { color: #000000; }
|
64
|
-
.ansi-90m { color: #e0e0e0; }
|
65
|
-
.ansi-91m { color: #ff8080; }
|
66
|
-
.ansi-92m { color: #80ff80; }
|
67
|
-
.ansi-93m { color: #ffff80; }
|
68
|
-
.ansi-94m { color: #8080ff; }
|
69
|
-
.ansi-95m { color: #ff80ff; }
|
70
|
-
.ansi-96m { color: #80ffff; }
|
71
|
-
.ansi-97m { color: #000000; }
|
72
40
|
}
|
73
41
|
}
|
74
|
-
|
42
|
+
|
43
|
+
.ansi-30m { color: #000000; }
|
44
|
+
.ansi-31m { color: #ff0000; }
|
45
|
+
.ansi-32m { color: #00ff00; }
|
46
|
+
.ansi-33m { color: #ffff00; }
|
47
|
+
.ansi-34m { color: #0000ff; }
|
48
|
+
.ansi-35m { color: #ff00ff; }
|
49
|
+
.ansi-36m { color: #00ffff; }
|
50
|
+
.ansi-37m { color: #ffffff; }
|
51
|
+
.ansi-90m { color: #808080; }
|
52
|
+
.ansi-91m { color: #ff8080; }
|
53
|
+
.ansi-92m { color: #80ff80; }
|
54
|
+
.ansi-93m { color: #ffff80; }
|
55
|
+
.ansi-94m { color: #8080ff; }
|
56
|
+
.ansi-95m { color: #ff80ff; }
|
57
|
+
.ansi-96m { color: #80ffff; }
|
58
|
+
.ansi-97m { color: #ffffff; }.
|
59
|
+
|
60
|
+
@media (prefers-color-scheme: dark) {
|
61
|
+
.ansi-30m { color: #ffffff; }
|
62
|
+
.ansi-31m { color: #ff0000; }
|
63
|
+
.ansi-32m { color: #00ff00; }
|
64
|
+
.ansi-33m { color: #ffff00; }
|
65
|
+
.ansi-34m { color: #0000ff; }
|
66
|
+
.ansi-35m { color: #ff00ff; }
|
67
|
+
.ansi-36m { color: #00ffff; }
|
68
|
+
.ansi-37m { color: #000000; }
|
69
|
+
.ansi-90m { color: #e0e0e0; }
|
70
|
+
.ansi-91m { color: #ff8080; }
|
71
|
+
.ansi-92m { color: #80ff80; }
|
72
|
+
.ansi-93m { color: #ffff80; }
|
73
|
+
.ansi-94m { color: #8080ff; }
|
74
|
+
.ansi-95m { color: #ff80ff; }
|
75
|
+
.ansi-96m { color: #80ffff; }
|
76
|
+
.ansi-97m { color: #000000; }
|
77
|
+
}
|
78
|
+
|
75
79
|
/* 基本样式 */
|
76
80
|
body {
|
77
81
|
font-family: Arial, sans-serif;
|
@@ -40,7 +40,7 @@ podflow/download/show_progress.py,sha256=cWlyIh6WqoH3s4WpFSyL6xtiXhQFbrVJVcckxO-
|
|
40
40
|
podflow/download/wait_animation.py,sha256=RnByMq0Ql_yr9OqQ3dl3W-41GgP0T8PvlbwwVeMb7_k,1056
|
41
41
|
podflow/download/youtube_and_bilibili_download.py,sha256=dlUh9cPHrYgZAhtXlBUOdFIpZOhv9xOtgdcTaqUvLuY,1294
|
42
42
|
podflow/httpfs/__init__.py,sha256=BxEXkufjcx-a0F7sDVXo65hmyANqCCbZUd6EH9i8T2c,45
|
43
|
-
podflow/httpfs/ansi_to_html.py,sha256=
|
43
|
+
podflow/httpfs/ansi_to_html.py,sha256=oQal9iCri7MDwZcLr44QdUYVTS1Damv6N7Zu0jFR6iI,1698
|
44
44
|
podflow/httpfs/app_bottle.py,sha256=XozAAbcV1kikS2NISKcN0UI7d6at1hpi8pBpjUoUvls,16792
|
45
45
|
podflow/httpfs/browser.py,sha256=BJ4Xkfiki_tDr0Sc9RqAcEfIVpkAZ3RFOwo0aMHlY3U,197
|
46
46
|
podflow/httpfs/get_channelid.py,sha256=gcwy4IVHBWNQz7qPCpjwiAklGFLRGzvM33-UZz7oFvo,2296
|
@@ -80,7 +80,7 @@ podflow/remove/remove_dir.py,sha256=xQIhrnqnYjMzXjoSWaTvm7JwPYOFTN1muuTPdaLDXpQ,
|
|
80
80
|
podflow/remove/remove_file.py,sha256=8wAJQehs-XBqvu0vPlEme2_tt0FZxc5ELwGMxXA_558,982
|
81
81
|
podflow/repair/__init__.py,sha256=Gpc1i6xiSLodKjjmzH66c_Y1z0HQ9E9CS3p95FRnVFM,45
|
82
82
|
podflow/repair/reverse_log.py,sha256=Wc_vAH0WB-z1fNdWx7FYaVH4caRPtot7tDwDwFhmpz4,1106
|
83
|
-
podflow/templates/index.html,sha256=
|
83
|
+
podflow/templates/index.html,sha256=ujoYTcRcybbJQEVQYOEdYZUxHUdT8bPnKadWXdY8AIQ,14867
|
84
84
|
podflow/upload/__init__.py,sha256=AtOSXDrE5EjUe3z-iBd1NTDaH8n_X9qA5WXdBLkONjA,45
|
85
85
|
podflow/upload/add_upload.py,sha256=_2-V0z75Lwu-PUCfMD9HOSxZTB102yZlZW5hSdlHcsc,1432
|
86
86
|
podflow/upload/build_hash.py,sha256=9opa3xLd7nJbGGX5xa3uuKPS6dxlbkAb87ZdEiUxmxI,473
|
@@ -95,8 +95,8 @@ podflow/youtube/__init__.py,sha256=pgXod8gq0IijZxIkPSwgAOcb9JI5rd1mqMomoR7bcJ4,4
|
|
95
95
|
podflow/youtube/build.py,sha256=3LYk_ICVXj9XkE9jZ8jEVI8596xxS_QZkcoIwcBE3Ys,12006
|
96
96
|
podflow/youtube/get.py,sha256=Of7PRgUknhpyW70nvyVAUYVb5KyFViKiBTfH3Y6Mke8,16970
|
97
97
|
podflow/youtube/login.py,sha256=KYl--ya6Z1u0uIcOp9l8i3DIIj9hsYUDH4dtJjI0MLM,1295
|
98
|
-
podflow-20250331.
|
99
|
-
podflow-20250331.
|
100
|
-
podflow-20250331.
|
101
|
-
podflow-20250331.
|
102
|
-
podflow-20250331.
|
98
|
+
podflow-20250331.2.dist-info/METADATA,sha256=QhkIsJCACzqWzqoqvaRHNzdEvbyFu9k-vxXiknDQ8W0,14165
|
99
|
+
podflow-20250331.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
100
|
+
podflow-20250331.2.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
|
101
|
+
podflow-20250331.2.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
|
102
|
+
podflow-20250331.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|