Create templates/index.html
Browse files- templates/index.html +95 -0
templates/index.html
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="zh-CN">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>订阅转换星空工坊</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
8 |
+
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap" rel="stylesheet">
|
9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<div class="stars"></div>
|
13 |
+
<div class="twinkling"></div>
|
14 |
+
|
15 |
+
<div class="container">
|
16 |
+
<header>
|
17 |
+
<div class="title-container">
|
18 |
+
<h1>✨ 订阅转换 ✨</h1>
|
19 |
+
<p>🚀 支持Clash全协议转换 🚀</p>
|
20 |
+
</div>
|
21 |
+
<div class="user-actions">
|
22 |
+
<span>欢迎, {{ current_user.username }}</span>
|
23 |
+
<a href="{{ url_for('logout') }}" class="btn-logout">登出 <i class="fas fa-sign-out-alt"></i></a>
|
24 |
+
</div>
|
25 |
+
</header>
|
26 |
+
|
27 |
+
<main>
|
28 |
+
<div class="card">
|
29 |
+
<form id="convertForm">
|
30 |
+
<div class="form-group">
|
31 |
+
<label for="backend_url">
|
32 |
+
<i class="fas fa-server"></i> 后端配置地址
|
33 |
+
</label>
|
34 |
+
<input type="text" id="backend_url" name="backend_url"
|
35 |
+
placeholder="默认: https://raw.githubusercontent.com/yuanwangokk-1/subscribe/refs/heads/main/ACL4SSR/ACL4SSR.ini"
|
36 |
+
value="https://raw.githubusercontent.com/yuanwangokk-1/subscribe/refs/heads/main/ACL4SSR/ACL4SSR.ini">
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div class="form-group">
|
40 |
+
<label for="target">
|
41 |
+
<i class="fas fa-desktop"></i> 远程终端类型
|
42 |
+
</label>
|
43 |
+
<select id="target" name="target">
|
44 |
+
<option value="clash" selected>Clash</option>
|
45 |
+
<option value="clashr">ClashR</option>
|
46 |
+
<option value="surge">Surge</option>
|
47 |
+
<option value="quan">Quantumult</option>
|
48 |
+
<option value="quanx">Quantumult X</option>
|
49 |
+
<option value="loon">Loon</option>
|
50 |
+
<option value="ss">Shadowsocks</option>
|
51 |
+
<option value="ssd">SSD</option>
|
52 |
+
<option value="ssr">SSR</option>
|
53 |
+
<option value="surfboard">Surfboard</option>
|
54 |
+
<option value="v2ray">V2Ray</option>
|
55 |
+
</select>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<div class="form-group">
|
59 |
+
<label for="original_url">
|
60 |
+
<i class="fas fa-link"></i> 订阅链接
|
61 |
+
</label>
|
62 |
+
<textarea id="original_url" name="original_url"
|
63 |
+
placeholder="请输入需要转换的订阅链接" required></textarea>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<button type="submit" class="btn-convert">
|
67 |
+
<i class="fas fa-magic"></i> 开始转换
|
68 |
+
</button>
|
69 |
+
</form>
|
70 |
+
</div>
|
71 |
+
|
72 |
+
<div class="card result-card" id="resultCard" style="display: none;">
|
73 |
+
<h2><i class="fas fa-check-circle"></i> 转换成功!</h2>
|
74 |
+
<div class="result-container">
|
75 |
+
<textarea id="convertResult" readonly></textarea>
|
76 |
+
<button id="copyBtn" class="btn-copy">
|
77 |
+
<i class="fas fa-copy"></i> 复制
|
78 |
+
</button>
|
79 |
+
</div>
|
80 |
+
<div class="tip">
|
81 |
+
<p>⭐️ 星空不灭,网络自由永存 ⭐️</p>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
</main>
|
85 |
+
|
86 |
+
<footer>
|
87 |
+
<p>订阅转换星空工坊 © 2023 | 感谢使用</p>
|
88 |
+
</footer>
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<div id="toast" class="toast"></div>
|
92 |
+
|
93 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
94 |
+
</body>
|
95 |
+
</html>
|