Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +730 -19
- prompts.txt +0 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: mstagent-vbeta1-04
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: green
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,730 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Master AI Agent - Telegram Marketing Manager</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gradient-bg {
|
11 |
+
background: linear-gradient(135deg, #6e8efb, #a777e3);
|
12 |
+
}
|
13 |
+
.agent-card:hover {
|
14 |
+
transform: translateY(-5px);
|
15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
16 |
+
}
|
17 |
+
.sidebar {
|
18 |
+
transition: all 0.3s ease;
|
19 |
+
}
|
20 |
+
.collapsed {
|
21 |
+
width: 64px;
|
22 |
+
overflow: hidden;
|
23 |
+
}
|
24 |
+
.chart-container {
|
25 |
+
height: 300px;
|
26 |
+
}
|
27 |
+
#agentCanvas {
|
28 |
+
width: 100%;
|
29 |
+
height: 100%;
|
30 |
+
}
|
31 |
+
.telegram-bg {
|
32 |
+
background-color: #0088cc;
|
33 |
+
}
|
34 |
+
.telegram-text {
|
35 |
+
color: #0088cc;
|
36 |
+
}
|
37 |
+
.telegram-border {
|
38 |
+
border-color: #0088cc;
|
39 |
+
}
|
40 |
+
.telegram-hover:hover {
|
41 |
+
background-color: #0077b3;
|
42 |
+
}
|
43 |
+
.telegram-light {
|
44 |
+
background-color: #e6f4fa;
|
45 |
+
}
|
46 |
+
.telegram-icon {
|
47 |
+
color: #0088cc;
|
48 |
+
}
|
49 |
+
.telegram-dark {
|
50 |
+
background-color: #006699;
|
51 |
+
}
|
52 |
+
.telegram-dark-hover:hover {
|
53 |
+
background-color: #005580;
|
54 |
+
}
|
55 |
+
</style>
|
56 |
+
</head>
|
57 |
+
<body class="bg-gray-100 font-sans">
|
58 |
+
<div class="flex h-screen overflow-hidden">
|
59 |
+
<!-- Sidebar -->
|
60 |
+
<div id="sidebar" class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col">
|
61 |
+
<div class="p-4 border-b border-gray-200 flex items-center justify-between">
|
62 |
+
<div class="flex items-center">
|
63 |
+
<i class="fas fa-robot text-2xl text-purple-600 mr-2"></i>
|
64 |
+
<h1 class="text-xl font-bold text-gray-800">Master AI</h1>
|
65 |
+
</div>
|
66 |
+
<button id="toggleSidebar" class="p-1 rounded-md hover:bg-gray-100">
|
67 |
+
<i class="fas fa-chevron-left text-gray-500"></i>
|
68 |
+
</button>
|
69 |
+
</div>
|
70 |
+
<nav class="flex-1 overflow-y-auto p-4">
|
71 |
+
<div class="mb-6">
|
72 |
+
<h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Dashboard</h3>
|
73 |
+
<ul class="mt-2 space-y-1">
|
74 |
+
<li>
|
75 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md bg-purple-50 text-purple-700">
|
76 |
+
<i class="fas fa-chart-line mr-3 text-purple-600"></i>
|
77 |
+
<span class="sidebar-text">Overview</span>
|
78 |
+
</a>
|
79 |
+
</li>
|
80 |
+
<li>
|
81 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
|
82 |
+
<i class="fas fa-robot mr-3 text-gray-500"></i>
|
83 |
+
<span class="sidebar-text">My Agents</span>
|
84 |
+
</a>
|
85 |
+
</li>
|
86 |
+
<li>
|
87 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
|
88 |
+
<i class="fas fa-chart-pie mr-3 text-gray-500"></i>
|
89 |
+
<span class="sidebar-text">Analytics</span>
|
90 |
+
</a>
|
91 |
+
</li>
|
92 |
+
<li>
|
93 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
|
94 |
+
<i class="fas fa-paper-plane mr-3 text-gray-500"></i>
|
95 |
+
<span class="sidebar-text">Telegram</span>
|
96 |
+
</a>
|
97 |
+
</li>
|
98 |
+
<li>
|
99 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
|
100 |
+
<i class="fas fa-cog mr-3 text-gray-500"></i>
|
101 |
+
<span class="sidebar-text">Settings</span>
|
102 |
+
</a>
|
103 |
+
</li>
|
104 |
+
</ul>
|
105 |
+
</div>
|
106 |
+
<div>
|
107 |
+
<h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider sidebar-text">Quick Actions</h3>
|
108 |
+
<ul class="mt-2 space-y-1">
|
109 |
+
<li>
|
110 |
+
<button id="createAgentBtn" class="w-full flex items-center px-2 py-2 text-sm font-medium rounded-md text-white bg-purple-600 hover:bg-purple-700">
|
111 |
+
<i class="fas fa-plus mr-3"></i>
|
112 |
+
<span class="sidebar-text">Create New Agent</span>
|
113 |
+
</button>
|
114 |
+
</li>
|
115 |
+
<li>
|
116 |
+
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
|
117 |
+
<i class="fas fa-sync-alt mr-3 text-gray-500"></i>
|
118 |
+
<span class="sidebar-text">Update All Agents</span>
|
119 |
+
</a>
|
120 |
+
</li>
|
121 |
+
</ul>
|
122 |
+
</div>
|
123 |
+
</nav>
|
124 |
+
<div class="p-4 border-t border-gray-200">
|
125 |
+
<div class="flex items-center">
|
126 |
+
<img class="h-10 w-10 rounded-full" src="https://ui-avatars.com/api/?name=AI+Master&background=7c3aed&color=fff" alt="">
|
127 |
+
<div class="ml-3 sidebar-text">
|
128 |
+
<p class="text-sm font-medium text-gray-700">AI Master</p>
|
129 |
+
<p class="text-xs font-medium text-gray-500">Administrator</p>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
|
135 |
+
<!-- Main content -->
|
136 |
+
<div class="flex-1 overflow-auto">
|
137 |
+
<!-- Header -->
|
138 |
+
<header class="bg-white shadow-sm">
|
139 |
+
<div class="px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
140 |
+
<div class="flex items-center">
|
141 |
+
<button id="mobileToggleSidebar" class="mr-4 p-1 rounded-md hover:bg-gray-100 md:hidden">
|
142 |
+
<i class="fas fa-bars text-gray-500"></i>
|
143 |
+
</button>
|
144 |
+
<h1 class="text-xl font-semibold text-gray-900">Telegram Marketing Dashboard</h1>
|
145 |
+
</div>
|
146 |
+
<div class="flex items-center space-x-4">
|
147 |
+
<div class="relative">
|
148 |
+
<input type="text" placeholder="Search agents..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent">
|
149 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
150 |
+
</div>
|
151 |
+
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
|
152 |
+
<i class="fas fa-bell"></i>
|
153 |
+
</button>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
</header>
|
157 |
+
|
158 |
+
<!-- Dashboard content -->
|
159 |
+
<main class="p-6">
|
160 |
+
<!-- Stats -->
|
161 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
|
162 |
+
<div class="bg-white rounded-lg shadow p-6">
|
163 |
+
<div class="flex items-center justify-between">
|
164 |
+
<div>
|
165 |
+
<p class="text-sm font-medium text-gray-500">Total Agents</p>
|
166 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">18</p>
|
167 |
+
</div>
|
168 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
169 |
+
<i class="fas fa-robot text-xl"></i>
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
<div class="mt-4">
|
173 |
+
<span class="text-green-600 text-sm font-medium">+3.2%</span>
|
174 |
+
<span class="text-gray-500 text-sm ml-2">vs last month</span>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
<div class="bg-white rounded-lg shadow p-6">
|
178 |
+
<div class="flex items-center justify-between">
|
179 |
+
<div>
|
180 |
+
<p class="text-sm font-medium text-gray-500">Active Channels</p>
|
181 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">24</p>
|
182 |
+
</div>
|
183 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
184 |
+
<i class="fab fa-telegram text-xl"></i>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
<div class="mt-4">
|
188 |
+
<span class="text-green-600 text-sm font-medium">+5.5%</span>
|
189 |
+
<span class="text-gray-500 text-sm ml-2">vs last month</span>
|
190 |
+
</div>
|
191 |
+
</div>
|
192 |
+
<div class="bg-white rounded-lg shadow p-6">
|
193 |
+
<div class="flex items-center justify-between">
|
194 |
+
<div>
|
195 |
+
<p class="text-sm font-medium text-gray-500">Engagement Rate</p>
|
196 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">72%</p>
|
197 |
+
</div>
|
198 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
199 |
+
<i class="fas fa-chart-line text-xl"></i>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
<div class="mt-4">
|
203 |
+
<span class="text-green-600 text-sm font-medium">+2.1%</span>
|
204 |
+
<span class="text-gray-500 text-sm ml-2">vs last month</span>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<div class="bg-white rounded-lg shadow p-6">
|
208 |
+
<div class="flex items-center justify-between">
|
209 |
+
<div>
|
210 |
+
<p class="text-sm font-medium text-gray-500">New Subscribers</p>
|
211 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">1,248</p>
|
212 |
+
</div>
|
213 |
+
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
|
214 |
+
<i class="fas fa-user-plus text-xl"></i>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
<div class="mt-4">
|
218 |
+
<span class="text-green-600 text-sm font-medium">+8.7%</span>
|
219 |
+
<span class="text-gray-500 text-sm ml-2">vs last month</span>
|
220 |
+
</div>
|
221 |
+
</div>
|
222 |
+
</div>
|
223 |
+
|
224 |
+
<!-- Telegram Connection Status -->
|
225 |
+
<div class="bg-white rounded-lg shadow mb-8 p-6">
|
226 |
+
<div class="flex justify-between items-center mb-4">
|
227 |
+
<h2 class="text-lg font-semibold text-gray-900">Telegram Connection</h2>
|
228 |
+
<div class="flex items-center space-x-2">
|
229 |
+
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
|
230 |
+
<i class="fas fa-circle text-green-500 mr-1" style="font-size: 8px;"></i>
|
231 |
+
Connected
|
232 |
+
</span>
|
233 |
+
<button class="px-3 py-1 text-sm bg-gray-100 rounded-md hover:bg-gray-200">
|
234 |
+
<i class="fas fa-sync-alt mr-1"></i> Refresh
|
235 |
+
</button>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
239 |
+
<div class="bg-telegram-light rounded-lg p-4 flex items-center">
|
240 |
+
<div class="p-3 rounded-full bg-white text-telegram-icon mr-4">
|
241 |
+
<i class="fab fa-telegram text-2xl"></i>
|
242 |
+
</div>
|
243 |
+
<div>
|
244 |
+
<p class="text-sm font-medium text-gray-500">API Status</p>
|
245 |
+
<p class="text-lg font-semibold text-gray-900">Active</p>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
<div class="bg-telegram-light rounded-lg p-4 flex items-center">
|
249 |
+
<div class="p-3 rounded-full bg-white text-telegram-icon mr-4">
|
250 |
+
<i class="fas fa-plug text-2xl"></i>
|
251 |
+
</div>
|
252 |
+
<div>
|
253 |
+
<p class="text-sm font-medium text-gray-500">Last Sync</p>
|
254 |
+
<p class="text-lg font-semibold text-gray-900">2 min ago</p>
|
255 |
+
</div>
|
256 |
+
</div>
|
257 |
+
<div class="bg-telegram-light rounded-lg p-4 flex items-center">
|
258 |
+
<div class="p-3 rounded-full bg-white text-telegram-icon mr-4">
|
259 |
+
<i class="fas fa-shield-alt text-2xl"></i>
|
260 |
+
</div>
|
261 |
+
<div>
|
262 |
+
<p class="text-sm font-medium text-gray-500">Security</p>
|
263 |
+
<p class="text-lg font-semibold text-gray-900">Verified</p>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
</div>
|
268 |
+
|
269 |
+
<!-- Recent Telegram Agents -->
|
270 |
+
<div class="bg-white rounded-lg shadow mb-8">
|
271 |
+
<div class="px-6 py-4 border-b border-gray-200">
|
272 |
+
<div class="flex justify-between items-center">
|
273 |
+
<h2 class="text-lg font-semibold text-gray-900">Recent Telegram Agents</h2>
|
274 |
+
<a href="#" class="text-sm font-medium text-purple-600 hover:text-purple-500">View all</a>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
<div class="divide-y divide-gray-200">
|
278 |
+
<!-- Agent 1 -->
|
279 |
+
<div class="p-6 hover:bg-gray-50 transition duration-150 ease-in-out">
|
280 |
+
<div class="flex items-center">
|
281 |
+
<div class="flex-shrink-0">
|
282 |
+
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
|
283 |
+
<i class="fab fa-telegram"></i>
|
284 |
+
</div>
|
285 |
+
</div>
|
286 |
+
<div class="ml-4">
|
287 |
+
<div class="flex items-center">
|
288 |
+
<h3 class="text-sm font-medium text-gray-900">Newsletter Bot</h3>
|
289 |
+
<span class="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
|
290 |
+
Active
|
291 |
+
</span>
|
292 |
+
</div>
|
293 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
294 |
+
<span>@newsletter_bot</span>
|
295 |
+
<span class="mx-1">•</span>
|
296 |
+
<span>5,248 subscribers</span>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
<div class="ml-auto flex space-x-3">
|
300 |
+
<button class="inline-flex items-center px-3 py-1 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
301 |
+
<i class="fas fa-pause mr-1 text-gray-500"></i> Pause
|
302 |
+
</button>
|
303 |
+
<button class="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
304 |
+
<i class="fas fa-cog mr-1"></i> Configure
|
305 |
+
</button>
|
306 |
+
</div>
|
307 |
+
</div>
|
308 |
+
</div>
|
309 |
+
|
310 |
+
<!-- Agent 2 -->
|
311 |
+
<div class="p-6 hover:bg-gray-50 transition duration-150 ease-in-out">
|
312 |
+
<div class="flex items-center">
|
313 |
+
<div class="flex-shrink-0">
|
314 |
+
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
|
315 |
+
<i class="fab fa-telegram"></i>
|
316 |
+
</div>
|
317 |
+
</div>
|
318 |
+
<div class="ml-4">
|
319 |
+
<div class="flex items-center">
|
320 |
+
<h3 class="text-sm font-medium text-gray-900">Customer Support</h3>
|
321 |
+
<span class="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
|
322 |
+
Learning
|
323 |
+
</span>
|
324 |
+
</div>
|
325 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
326 |
+
<span>@support_bot</span>
|
327 |
+
<span class="mx-1">•</span>
|
328 |
+
<span>1,200 active chats</span>
|
329 |
+
</div>
|
330 |
+
</div>
|
331 |
+
<div class="ml-auto flex space-x-3">
|
332 |
+
<button class="inline-flex items-center px-3 py-1 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
333 |
+
<i class="fas fa-pause mr-1 text-gray-500"></i> Pause
|
334 |
+
</button>
|
335 |
+
<button class="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
336 |
+
<i class="fas fa-cog mr-1"></i> Configure
|
337 |
+
</button>
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
|
342 |
+
<!-- Agent 3 -->
|
343 |
+
<div class="p-6 hover:bg-gray-50 transition duration-150 ease-in-out">
|
344 |
+
<div class="flex items-center">
|
345 |
+
<div class="flex-shrink-0">
|
346 |
+
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
|
347 |
+
<i class="fab fa-telegram"></i>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
<div class="ml-4">
|
351 |
+
<div class="flex items-center">
|
352 |
+
<h3 class="text-sm font-medium text-gray-900">Promo Campaigner</h3>
|
353 |
+
<span class="ml-2 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
|
354 |
+
Active
|
355 |
+
</span>
|
356 |
+
</div>
|
357 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
358 |
+
<span>@promo_bot</span>
|
359 |
+
<span class="mx-1">•</span>
|
360 |
+
<span>3 campaigns running</span>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
<div class="ml-auto flex space-x-3">
|
364 |
+
<button class="inline-flex items-center px-3 py-1 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
365 |
+
<i class="fas fa-pause mr-1 text-gray-500"></i> Pause
|
366 |
+
</button>
|
367 |
+
<button class="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500">
|
368 |
+
<i class="fas fa-cog mr-1"></i> Configure
|
369 |
+
</button>
|
370 |
+
</div>
|
371 |
+
</div>
|
372 |
+
</div>
|
373 |
+
</div>
|
374 |
+
</div>
|
375 |
+
|
376 |
+
<!-- Performance Metrics -->
|
377 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
378 |
+
<div class="bg-white rounded-lg shadow p-6">
|
379 |
+
<div class="flex justify-between items-center mb-4">
|
380 |
+
<h2 class="text-lg font-semibold text-gray-900">Agent Performance</h2>
|
381 |
+
<select class="mt-1 block pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm rounded-md">
|
382 |
+
<option>Last 7 days</option>
|
383 |
+
<option>Last 30 days</option>
|
384 |
+
<option selected>Last 90 days</option>
|
385 |
+
</select>
|
386 |
+
</div>
|
387 |
+
<div class="chart-container">
|
388 |
+
<canvas id="performanceChart"></canvas>
|
389 |
+
</div>
|
390 |
+
</div>
|
391 |
+
<div class="bg-white rounded-lg shadow p-6">
|
392 |
+
<div class="flex justify-between items-center mb-4">
|
393 |
+
<h2 class="text-lg font-semibold text-gray-900">Message Types</h2>
|
394 |
+
<select class="mt-1 block pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm rounded-md">
|
395 |
+
<option>By Count</option>
|
396 |
+
<option selected>By Engagement</option>
|
397 |
+
</select>
|
398 |
+
</div>
|
399 |
+
<div class="chart-container">
|
400 |
+
<canvas id="messageTypesChart"></canvas>
|
401 |
+
</div>
|
402 |
+
</div>
|
403 |
+
</div>
|
404 |
+
</main>
|
405 |
+
</div>
|
406 |
+
</div>
|
407 |
+
|
408 |
+
<!-- Create Agent Modal -->
|
409 |
+
<div id="createAgentModal" class="fixed inset-0 overflow-y-auto hidden" aria-labelledby="modal-title" role="dialog" aria-modal="true">
|
410 |
+
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
411 |
+
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
|
412 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
413 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
|
414 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
415 |
+
<div class="sm:flex sm:items-start">
|
416 |
+
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-purple-100 sm:mx-0 sm:h-10 sm:w-10">
|
417 |
+
<i class="fab fa-telegram text-purple-600"></i>
|
418 |
+
</div>
|
419 |
+
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
420 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">Create New Telegram Agent</h3>
|
421 |
+
<div class="mt-2">
|
422 |
+
<p class="text-sm text-gray-500">Configure your new Telegram marketing agent below.</p>
|
423 |
+
</div>
|
424 |
+
</div>
|
425 |
+
</div>
|
426 |
+
<div class="mt-5">
|
427 |
+
<div class="space-y-4">
|
428 |
+
<div>
|
429 |
+
<label for="agent-name" class="block text-sm font-medium text-gray-700">Agent Name</label>
|
430 |
+
<input type="text" name="agent-name" id="agent-name" class="mt-1 focus:ring-purple-500 focus:border-purple-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md" placeholder="e.g. Newsletter Bot">
|
431 |
+
</div>
|
432 |
+
<div>
|
433 |
+
<label for="bot-username" class="block text-sm font-medium text-gray-700">Bot Username</label>
|
434 |
+
<div class="mt-1 flex rounded-md shadow-sm">
|
435 |
+
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
|
436 |
+
@
|
437 |
+
</span>
|
438 |
+
<input type="text" name="bot-username" id="bot-username" class="focus:ring-purple-500 focus:border-purple-500 flex-1 block w-full rounded-none rounded-r-md sm:text-sm border-gray-300" placeholder="username">
|
439 |
+
</div>
|
440 |
+
</div>
|
441 |
+
<div>
|
442 |
+
<label for="bot-token" class="block text-sm font-medium text-gray-700">Bot Token</label>
|
443 |
+
<input type="password" name="bot-token" id="bot-token" class="mt-1 focus:ring-purple-500 focus:border-purple-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md" placeholder="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11">
|
444 |
+
</div>
|
445 |
+
<div>
|
446 |
+
<label for="agent-type" class="block text-sm font-medium text-gray-700">Agent Type</label>
|
447 |
+
<select id="agent-type" name="agent-type" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm rounded-md">
|
448 |
+
<option>Newsletter</option>
|
449 |
+
<option>Customer Support</option>
|
450 |
+
<option>Promo Campaign</option>
|
451 |
+
<option>Content Delivery</option>
|
452 |
+
<option>Survey Collector</option>
|
453 |
+
<option>Lead Generator</option>
|
454 |
+
</select>
|
455 |
+
</div>
|
456 |
+
<div>
|
457 |
+
<label for="agent-skills" class="block text-sm font-medium text-gray-700">Special Skills</label>
|
458 |
+
<select id="agent-skills" name="agent-skills" multiple class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm rounded-md">
|
459 |
+
<option>Auto-responder</option>
|
460 |
+
<option>Multilingual</option>
|
461 |
+
<option>Media Posts</option>
|
462 |
+
<option>User Segmentation</option>
|
463 |
+
<option>A/B Testing</option>
|
464 |
+
<option>Analytics</option>
|
465 |
+
</select>
|
466 |
+
</div>
|
467 |
+
</div>
|
468 |
+
</div>
|
469 |
+
</div>
|
470 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
471 |
+
<button type="button" id="createAgentSubmit" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-purple-600 text-base font-medium text-white hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:ml-3 sm:w-auto sm:text-sm">
|
472 |
+
Create Agent
|
473 |
+
</button>
|
474 |
+
<button type="button" id="cancelCreateAgent" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
475 |
+
Cancel
|
476 |
+
</button>
|
477 |
+
</div>
|
478 |
+
</div>
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
|
482 |
+
<!-- Telegram Connection Modal -->
|
483 |
+
<div id="telegramConnectionModal" class="fixed inset-0 overflow-y-auto hidden" aria-labelledby="modal-title" role="dialog" aria-modal="true">
|
484 |
+
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
485 |
+
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
|
486 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
487 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
|
488 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
489 |
+
<div class="sm:flex sm:items-start">
|
490 |
+
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-telegram-light sm:mx-0 sm:h-10 sm:w-10">
|
491 |
+
<i class="fab fa-telegram text-telegram-icon text-xl"></i>
|
492 |
+
</div>
|
493 |
+
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
494 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">Connect Telegram Account</h3>
|
495 |
+
<div class="mt-2">
|
496 |
+
<p class="text-sm text-gray-500">Enter your Telegram bot token to connect it to Master AI.</p>
|
497 |
+
</div>
|
498 |
+
</div>
|
499 |
+
</div>
|
500 |
+
<div class="mt-5">
|
501 |
+
<div class="space-y-4">
|
502 |
+
<div>
|
503 |
+
<label for="connection-bot-username" class="block text-sm font-medium text-gray-700">Bot Username</label>
|
504 |
+
<div class="mt-1 flex rounded-md shadow-sm">
|
505 |
+
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
|
506 |
+
@
|
507 |
+
</span>
|
508 |
+
<input type="text" name="connection-bot-username" id="connection-bot-username" class="focus:ring-purple-500 focus:border-purple-500 flex-1 block w-full rounded-none rounded-r-md sm:text-sm border-gray-300" placeholder="username">
|
509 |
+
</div>
|
510 |
+
</div>
|
511 |
+
<div>
|
512 |
+
<label for="connection-bot-token" class="block text-sm font-medium text-gray-700">Bot Token</label>
|
513 |
+
<input type="password" name="connection-bot-token" id="connection-bot-token" class="mt-1 focus:ring-purple-500 focus:border-purple-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md" placeholder="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11">
|
514 |
+
<p class="mt-2 text-sm text-gray-500">Get your token from @BotFather in Telegram</p>
|
515 |
+
</div>
|
516 |
+
<div class="flex items-center">
|
517 |
+
<input id="webhook-checkbox" name="webhook-checkbox" type="checkbox" class="h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300 rounded">
|
518 |
+
<label for="webhook-checkbox" class="ml-2 block text-sm text-gray-700">
|
519 |
+
Set up webhook automatically
|
520 |
+
</label>
|
521 |
+
</div>
|
522 |
+
</div>
|
523 |
+
</div>
|
524 |
+
</div>
|
525 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
526 |
+
<button type="button" id="connectTelegramSubmit" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-telegram-dark text-base font-medium text-white hover:bg-telegram-dark-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:ml-3 sm:w-auto sm:text-sm">
|
527 |
+
<i class="fab fa-telegram mr-2"></i> Connect
|
528 |
+
</button>
|
529 |
+
<button type="button" id="cancelTelegramConnection" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
530 |
+
Cancel
|
531 |
+
</button>
|
532 |
+
</div>
|
533 |
+
</div>
|
534 |
+
</div>
|
535 |
+
</div>
|
536 |
+
|
537 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
538 |
+
<script>
|
539 |
+
// Toggle sidebar
|
540 |
+
const sidebar = document.getElementById('sidebar');
|
541 |
+
const toggleSidebar = document.getElementById('toggleSidebar');
|
542 |
+
const mobileToggleSidebar = document.getElementById('mobileToggleSidebar');
|
543 |
+
const sidebarTexts = document.querySelectorAll('.sidebar-text');
|
544 |
+
|
545 |
+
toggleSidebar.addEventListener('click', function() {
|
546 |
+
sidebar.classList.toggle('collapsed');
|
547 |
+
sidebarTexts.forEach(text => text.classList.toggle('hidden'));
|
548 |
+
const icon = this.querySelector('i');
|
549 |
+
if (sidebar.classList.contains('collapsed')) {
|
550 |
+
icon.classList.remove('fa-chevron-left');
|
551 |
+
icon.classList.add('fa-chevron-right');
|
552 |
+
} else {
|
553 |
+
icon.classList.remove('fa-chevron-right');
|
554 |
+
icon.classList.add('fa-chevron-left');
|
555 |
+
}
|
556 |
+
});
|
557 |
+
|
558 |
+
mobileToggleSidebar.addEventListener('click', function() {
|
559 |
+
sidebar.classList.toggle('hidden');
|
560 |
+
});
|
561 |
+
|
562 |
+
// Toggle create agent modal
|
563 |
+
document.getElementById('createAgentBtn').addEventListener('click', function() {
|
564 |
+
document.getElementById('createAgentModal').classList.remove('hidden');
|
565 |
+
});
|
566 |
+
|
567 |
+
document.getElementById('cancelCreateAgent').addEventListener('click', function() {
|
568 |
+
document.getElementById('createAgentModal').classList.add('hidden');
|
569 |
+
});
|
570 |
+
|
571 |
+
// Submit new agent
|
572 |
+
document.getElementById('createAgentSubmit').addEventListener('click', function() {
|
573 |
+
const agentName = document.getElementById('agent-name').value;
|
574 |
+
const botUsername = document.getElementById('bot-username').value;
|
575 |
+
const botToken = document.getElementById('bot-token').value;
|
576 |
+
const agentType = document.getElementById('agent-type').value;
|
577 |
+
|
578 |
+
if (!agentName || !botUsername || !botToken) {
|
579 |
+
alert('Please fill in all required fields');
|
580 |
+
return;
|
581 |
+
}
|
582 |
+
|
583 |
+
// In a real app, you would send this data to your backend
|
584 |
+
console.log('Creating new Telegram agent:', {
|
585 |
+
name: agentName,
|
586 |
+
username: botUsername,
|
587 |
+
token: botToken,
|
588 |
+
type: agentType,
|
589 |
+
skills: Array.from(document.getElementById('agent-skills').selectedOptions).map(o => o.value)
|
590 |
+
});
|
591 |
+
|
592 |
+
// Show success message
|
593 |
+
alert(`Successfully created new Telegram agent: ${agentName} (@${botUsername})`);
|
594 |
+
|
595 |
+
// Close modal
|
596 |
+
document.getElementById('createAgentModal').classList.add('hidden');
|
597 |
+
|
598 |
+
// Reset form
|
599 |
+
document.getElementById('agent-name').value = '';
|
600 |
+
document.getElementById('bot-username').value = '';
|
601 |
+
document.getElementById('bot-token').value = '';
|
602 |
+
});
|
603 |
+
|
604 |
+
// Telegram connection modal
|
605 |
+
document.getElementById('cancelTelegramConnection').addEventListener('click', function() {
|
606 |
+
document.getElementById('telegramConnectionModal').classList.add('hidden');
|
607 |
+
});
|
608 |
+
|
609 |
+
document.getElementById('connectTelegramSubmit').addEventListener('click', function() {
|
610 |
+
const botUsername = document.getElementById('connection-bot-username').value;
|
611 |
+
const botToken = document.getElementById('connection-bot-token').value;
|
612 |
+
|
613 |
+
if (!botUsername || !botToken) {
|
614 |
+
alert('Please enter both bot username and token');
|
615 |
+
return;
|
616 |
+
}
|
617 |
+
|
618 |
+
// Simulate connection
|
619 |
+
console.log('Connecting Telegram bot:', {
|
620 |
+
username: botUsername,
|
621 |
+
token: botToken,
|
622 |
+
setupWebhook: document.getElementById('webhook-checkbox').checked
|
623 |
+
});
|
624 |
+
|
625 |
+
// Show success message
|
626 |
+
alert(`Successfully connected Telegram bot @${botUsername}`);
|
627 |
+
|
628 |
+
// Close modal
|
629 |
+
document.getElementById('telegramConnectionModal').classList.add('hidden');
|
630 |
+
|
631 |
+
// Reset form
|
632 |
+
document.getElementById('connection-bot-username').value = '';
|
633 |
+
document.getElementById('connection-bot-token').value = '';
|
634 |
+
});
|
635 |
+
|
636 |
+
// Initialize charts
|
637 |
+
document.addEventListener('DOMContentLoaded', function() {
|
638 |
+
// Performance Chart
|
639 |
+
const perfCanvas = document.getElementById('performanceChart').getContext('2d');
|
640 |
+
const perfChart = new Chart(perfCanvas, {
|
641 |
+
type: 'line',
|
642 |
+
data: {
|
643 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
|
644 |
+
datasets: [
|
645 |
+
{
|
646 |
+
label: 'Messages Sent',
|
647 |
+
data: [1250, 1900, 1700, 2100, 2500, 2800, 3200],
|
648 |
+
borderColor: '#8b5cf6',
|
649 |
+
backgroundColor: 'rgba(139, 92, 246, 0.1)',
|
650 |
+
tension: 0.3,
|
651 |
+
fill: true
|
652 |
+
},
|
653 |
+
{
|
654 |
+
label: 'User Interactions',
|
655 |
+
data: [850, 1200, 1100, 1500, 1800, 2100, 2400],
|
656 |
+
borderColor: '#10b981',
|
657 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
658 |
+
tension: 0.3,
|
659 |
+
fill: true
|
660 |
+
}
|
661 |
+
]
|
662 |
+
},
|
663 |
+
options: {
|
664 |
+
responsive: true,
|
665 |
+
maintainAspectRatio: false,
|
666 |
+
plugins: {
|
667 |
+
legend: {
|
668 |
+
position: 'top',
|
669 |
+
},
|
670 |
+
tooltip: {
|
671 |
+
mode: 'index',
|
672 |
+
intersect: false,
|
673 |
+
}
|
674 |
+
},
|
675 |
+
scales: {
|
676 |
+
y: {
|
677 |
+
beginAtZero: true
|
678 |
+
}
|
679 |
+
}
|
680 |
+
}
|
681 |
+
});
|
682 |
+
|
683 |
+
// Message Types Chart
|
684 |
+
const typesCanvas = document.getElementById('messageTypesChart').getContext('2d');
|
685 |
+
const typesChart = new Chart(typesCanvas, {
|
686 |
+
type: 'doughnut',
|
687 |
+
data: {
|
688 |
+
labels: ['Text', 'Image', 'Video', 'Poll', 'Document', 'Other'],
|
689 |
+
datasets: [{
|
690 |
+
data: [45, 20, 15, 10, 5, 5],
|
691 |
+
backgroundColor: [
|
692 |
+
'#3b82f6',
|
693 |
+
'#10b981',
|
694 |
+
'#f59e0b',
|
695 |
+
'#ef4444',
|
696 |
+
'#8b5cf6',
|
697 |
+
'#64748b'
|
698 |
+
],
|
699 |
+
borderWidth: 0
|
700 |
+
}]
|
701 |
+
},
|
702 |
+
options: {
|
703 |
+
responsive: true,
|
704 |
+
maintainAspectRatio: false,
|
705 |
+
plugins: {
|
706 |
+
legend: {
|
707 |
+
position: 'right',
|
708 |
+
},
|
709 |
+
tooltip: {
|
710 |
+
callbacks: {
|
711 |
+
label: function(context) {
|
712 |
+
const label = context.label || '';
|
713 |
+
const value = context.raw || 0;
|
714 |
+
return `${label}: ${value}%`;
|
715 |
+
}
|
716 |
+
}
|
717 |
+
}
|
718 |
+
},
|
719 |
+
cutout: '70%'
|
720 |
+
}
|
721 |
+
});
|
722 |
+
});
|
723 |
+
|
724 |
+
// Sample function to connect Telegram (would be called from a button)
|
725 |
+
function connectTelegram() {
|
726 |
+
document.getElementById('telegramConnectionModal').classList.remove('hidden');
|
727 |
+
}
|
728 |
+
</script>
|
729 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=privateuserh/mstagent-vbeta1-04" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
730 |
+
</html>
|
prompts.txt
ADDED
File without changes
|