forked from ReactMVC/proxy-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (48 loc) · 2.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Telegram Proxy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/tailwind.css">
<link rel="stylesheet" href="App.css">
<script src="assets/vue.min.js"></script>
</head>
<body class="bg-gray-100">
<div id="app" class="container mx-auto py-10">
<h1 class="text-4xl font-bold text-center my-8">Telegram Proxy</h1>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 mb-10">
<div v-for="(proxy, index) in visibleProxies" :key="index"
class="proxy-card rounded-lg overflow-hidden mb-5">
<div class="p-4">
<h2 class="text-xl font-bold">{{ proxy.host }}</h2>
<p class="text-gray-500">{{ proxy.country }} - {{ proxy.port }}</p>
<p class="text-gray-500">Uptime: {{ proxy.uptime }}%</p>
<p class="text-gray-500">Ping: {{ proxy.ping }}ms</p>
<div class="text-center mt-6 flex flex-row justify-center">
<a :href="`tg://proxy?server=${proxy.host}&port=${proxy.port}&secret=${proxy.secret}`"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full inline-block mr-4">Connect</a>
<button
class="bg-gray-500 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-full inline-block"
@click="copyProxyLink(proxy)">Copy Proxy Link</button>
</div>
</div>
</div>
<div v-if="visibleProxies.length === 0"
class="text-center text-gray-500 text-xl font-bold col-span-full mt-8">
Loading proxies...</div>
<div v-if="error" class="text-center text-red-500 text-xl font-bold col-span-full mt-8">{{ error }}</div>
</div>
<div v-if="visibleProxies.length < proxies.length" class="text-center">
<button @click="loadMoreProxies"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full mb-25">
Load More
</button>
</div>
</div>
<div id="footer" class="py-4">
<p class="text-center">© 2023 Telegram Proxy. All rights reserved.</p>
</div>
<script src="App.js"></script>
</body>
</html>