-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
175 lines (162 loc) Β· 6.69 KB
/
popup.html
File metadata and controls
175 lines (162 loc) Β· 6.69 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>General Bots</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<div class="container">
<div class="header">
<img src="icons/icon48.png" alt="General Bots Logo" />
<div class="header-text">
<h1>General Bots</h1>
<p class="version">v2.0.0</p>
</div>
</div>
<!-- Connection Status -->
<div class="status-bar" id="status-bar">
<span class="status-dot"></span>
<span class="status-text">Checking connection...</span>
</div>
<!-- Authentication Section -->
<div class="section auth-section" id="auth-section">
<h3>π Connect to General Bots</h3>
<p class="description">
Authenticate using your WhatsApp number to enable AI
features.
</p>
<div class="input-group">
<label for="whatsapp-number">WhatsApp Number</label>
<input
type="tel"
id="whatsapp-number"
placeholder="+55 11 99999-9999"
/>
<small>Include country code</small>
</div>
<button class="btn btn-primary" id="auth-btn">
<span class="btn-icon">π€</span>
Authenticate via WhatsApp
</button>
</div>
<!-- Settings Section -->
<div class="section settings-section">
<h3>βοΈ Settings</h3>
<div class="setting-item">
<div class="setting-info">
<span class="setting-label">Server URL</span>
<span class="setting-hint"
>General Bots API endpoint</span
>
</div>
<input
type="text"
id="server-url"
class="input-small"
placeholder="https://api.generalbots.com"
/>
</div>
<div class="setting-item toggle">
<div class="setting-info">
<span class="setting-label">β¨ Grammar Correction</span>
<span class="setting-hint"
>Fix spelling & grammar with AI</span
>
</div>
<label class="switch">
<input
type="checkbox"
id="grammar-correction"
checked
/>
<span class="slider round"></span>
</label>
</div>
<div class="setting-item toggle">
<div class="setting-info">
<span class="setting-label">π Enable Processing</span>
<span class="setting-hint"
>Process messages before sending</span
>
</div>
<label class="switch">
<input type="checkbox" id="enable-processing" checked />
<span class="slider round"></span>
</label>
</div>
<div class="setting-item toggle">
<div class="setting-info">
<span class="setting-label">ποΈ Hide Contacts</span>
<span class="setting-hint"
>Hide contact list for privacy</span
>
</div>
<label class="switch">
<input type="checkbox" id="hide-contacts" />
<span class="slider round"></span>
</label>
</div>
<div class="setting-item toggle">
<div class="setting-info">
<span class="setting-label">π€ Auto Mode</span>
<span class="setting-hint"
>Enable automatic replies</span
>
</div>
<label class="switch">
<input type="checkbox" id="auto-mode" />
<span class="slider round"></span>
</label>
</div>
</div>
<!-- Stats Section -->
<div class="section stats-section" id="stats-section">
<h3>π Statistics</h3>
<div class="stats-grid">
<div class="stat-item">
<span class="stat-value" id="messages-processed"
>0</span
>
<span class="stat-label">Messages Processed</span>
</div>
<div class="</h3>stat-item">
<span class="stat-value" id="corrections-made">0</span>
<span class="stat-label">Corrections Made</span>
</div>
<div class="stat-item">
<span class="stat-value" id="auto-replies">0</span>
<span class="stat-label">Auto Replies</span>
</div>
</div>
</div>
<!-- Actions -->
<div class="actions">
<button class="btn btn-primary" id="save-settings">
<span class="btn-icon">πΎ</span>
Save Settings
</button>
<button class="btn btn-secondary" id="open-options">
<span class="btn-icon">βοΈ</span>
Advanced
</button>
</div>
<div class="footer">
<p class="copyright">
Β©
<a href="https://pragmatismo.com.br" target="_blank"
>pragmatismo.com.br</a
>
β’
<a
href="https://github.com/GeneralBots/BotServer"
target="_blank"
>AGPL License</a
>
</p>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>