@kaikybrofc/omnizap-system 2.2.9 → 2.3.0

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.
Files changed (121) hide show
  1. package/README.md +20 -18
  2. package/app/config/adminIdentity.js +1 -3
  3. package/app/connection/socketController.js +10 -20
  4. package/app/controllers/messageController.js +7 -28
  5. package/app/modules/aiModule/catCommand.js +29 -192
  6. package/app/modules/broadcastModule/noticeCommand.js +28 -97
  7. package/app/modules/gameModule/diceCommand.js +6 -32
  8. package/app/modules/playModule/playCommand.js +57 -258
  9. package/app/modules/quoteModule/quoteCommand.js +2 -4
  10. package/app/modules/rpgPokemonModule/rpgPokemonRepository.js +1 -13
  11. package/app/modules/statsModule/noMessageCommand.js +16 -84
  12. package/app/modules/statsModule/rankingCommand.js +5 -25
  13. package/app/modules/statsModule/rankingCommon.js +1 -9
  14. package/app/modules/stickerModule/convertToWebp.js +4 -27
  15. package/app/modules/stickerModule/stickerCommand.js +13 -24
  16. package/app/modules/stickerModule/stickerTextCommand.js +13 -25
  17. package/app/modules/stickerPackModule/autoPackCollectorService.js +16 -7
  18. package/app/modules/stickerPackModule/domainEventOutboxRepository.js +20 -36
  19. package/app/modules/stickerPackModule/domainEvents.js +2 -11
  20. package/app/modules/stickerPackModule/semanticReclassificationEngine.js +13 -50
  21. package/app/modules/stickerPackModule/semanticReclassificationEngine.test.js +2 -15
  22. package/app/modules/stickerPackModule/semanticThemeClusterService.js +14 -41
  23. package/app/modules/stickerPackModule/stickerAssetClassificationRepository.js +25 -95
  24. package/app/modules/stickerPackModule/stickerAssetRepository.js +12 -31
  25. package/app/modules/stickerPackModule/stickerAssetReprocessQueueRepository.js +13 -18
  26. package/app/modules/stickerPackModule/stickerAutoPackByTagsRuntime.js +284 -709
  27. package/app/modules/stickerPackModule/stickerClassificationBackgroundRuntime.js +27 -106
  28. package/app/modules/stickerPackModule/stickerClassificationService.js +46 -77
  29. package/app/modules/stickerPackModule/stickerDedicatedTaskWorkerRuntime.js +13 -53
  30. package/app/modules/stickerPackModule/stickerDomainEventBus.js +10 -16
  31. package/app/modules/stickerPackModule/stickerDomainEventConsumerRuntime.js +13 -34
  32. package/app/modules/stickerPackModule/stickerMarketplaceDriftService.js +1 -4
  33. package/app/modules/stickerPackModule/stickerObjectStorageService.js +26 -26
  34. package/app/modules/stickerPackModule/stickerPackCommandHandlers.js +32 -187
  35. package/app/modules/stickerPackModule/stickerPackInteractionEventRepository.js +6 -15
  36. package/app/modules/stickerPackModule/stickerPackItemRepository.js +6 -32
  37. package/app/modules/stickerPackModule/stickerPackMarketplaceService.js +12 -36
  38. package/app/modules/stickerPackModule/stickerPackMessageService.js +12 -40
  39. package/app/modules/stickerPackModule/stickerPackRepository.js +23 -66
  40. package/app/modules/stickerPackModule/stickerPackScoreSnapshotRepository.js +9 -21
  41. package/app/modules/stickerPackModule/stickerPackScoreSnapshotRuntime.js +10 -40
  42. package/app/modules/stickerPackModule/stickerPackService.js +50 -115
  43. package/app/modules/stickerPackModule/stickerPackServiceRuntime.js +2 -21
  44. package/app/modules/stickerPackModule/stickerPackUtils.js +13 -3
  45. package/app/modules/stickerPackModule/stickerStorageService.js +16 -65
  46. package/app/modules/stickerPackModule/stickerWorkerPipelineRuntime.js +4 -22
  47. package/app/modules/stickerPackModule/stickerWorkerTaskQueueRepository.js +14 -29
  48. package/app/modules/systemMetricsModule/pingCommand.js +9 -39
  49. package/app/modules/tiktokModule/tiktokCommand.js +17 -109
  50. package/app/modules/userModule/userCommand.js +2 -88
  51. package/app/observability/metrics.js +5 -16
  52. package/app/services/captchaService.js +1 -6
  53. package/app/services/dbWriteQueue.js +3 -18
  54. package/app/services/featureFlagService.js +2 -8
  55. package/app/services/newsBroadcastService.js +0 -1
  56. package/app/services/queueUtils.js +2 -4
  57. package/app/services/whatsappLoginLinkService.js +7 -9
  58. package/app/store/premiumUserStore.js +1 -2
  59. package/app/utils/antiLink/antiLinkModule.js +3 -233
  60. package/app/utils/logger/loggerModule.js +9 -34
  61. package/app/utils/systemMetrics/systemMetricsModule.js +1 -4
  62. package/database/init.js +1 -8
  63. package/docker-compose.yml +27 -27
  64. package/docs/seo/omnizap-seo-playbook-br-2026-02-28.md +220 -0
  65. package/docs/seo/satellite-page-template.md +91 -0
  66. package/docs/seo/satellite-pages-phase1.json +349 -0
  67. package/eslint.config.js +2 -15
  68. package/index.js +8 -36
  69. package/ml/clip_classifier/README.md +4 -6
  70. package/observability/alert-rules.yml +12 -12
  71. package/observability/grafana/provisioning/dashboards/dashboards.yml +1 -1
  72. package/package.json +8 -3
  73. package/public/api-docs/index.html +224 -141
  74. package/public/bot-whatsapp-para-grupo/index.html +306 -0
  75. package/public/bot-whatsapp-sem-programar/index.html +306 -0
  76. package/public/comandos/index.html +428 -0
  77. package/public/como-automatizar-avisos-no-whatsapp/index.html +306 -0
  78. package/public/como-criar-comandos-whatsapp/index.html +306 -0
  79. package/public/como-evitar-spam-no-whatsapp/index.html +306 -0
  80. package/public/como-moderar-grupo-whatsapp/index.html +306 -0
  81. package/public/como-organizar-comunidade-whatsapp/index.html +306 -0
  82. package/public/css/github-project-panel.css +20 -15
  83. package/public/css/stickers-admin.css +55 -39
  84. package/public/css/styles.css +37 -29
  85. package/public/index.html +1060 -1417
  86. package/public/js/apps/apiDocsApp.js +36 -153
  87. package/public/js/apps/createPackApp.js +69 -332
  88. package/public/js/apps/homeApp.js +201 -434
  89. package/public/js/apps/loginApp.js +3 -12
  90. package/public/js/apps/stickersAdminApp.js +190 -181
  91. package/public/js/apps/stickersApp.js +507 -1366
  92. package/public/js/catalog.js +11 -74
  93. package/public/js/github-panel/components/ErrorState.js +1 -8
  94. package/public/js/github-panel/components/GithubProjectPanel.js +2 -9
  95. package/public/js/github-panel/components/SkeletonPanel.js +1 -11
  96. package/public/js/github-panel/components/StatCard.js +1 -7
  97. package/public/js/github-panel/vendor/react.js +1 -9
  98. package/public/js/runtime/react-runtime.js +1 -9
  99. package/public/licenca/index.html +104 -86
  100. package/public/login/index.html +315 -321
  101. package/public/melhor-bot-whatsapp-para-grupos/index.html +306 -0
  102. package/public/sitemap.xml +45 -0
  103. package/public/stickers/admin/index.html +14 -19
  104. package/public/stickers/create/index.html +39 -43
  105. package/public/stickers/index.html +97 -41
  106. package/public/termos-de-uso/index.html +142 -115
  107. package/public/user/index.html +347 -346
  108. package/scripts/cache-bust.mjs +5 -24
  109. package/scripts/generate-seo-satellite-pages.mjs +431 -0
  110. package/scripts/run-prettier-all.mjs +25 -0
  111. package/scripts/sticker-catalog-loadtest.mjs +13 -11
  112. package/scripts/sticker-worker-task.mjs +1 -4
  113. package/scripts/sync-readme-snapshot.mjs +3 -2
  114. package/server/controllers/stickerCatalogController.js +407 -704
  115. package/server/http/httpServer.js +2 -10
  116. package/server/routes/stickerCatalog/catalogHandlers/catalogAdminHttp.js +1 -8
  117. package/server/routes/stickerCatalog/catalogHandlers/catalogAuthHttp.js +1 -9
  118. package/server/routes/stickerCatalog/catalogHandlers/catalogPublicHttp.js +10 -11
  119. package/server/routes/stickerCatalog/catalogHandlers/catalogUploadHttp.js +1 -10
  120. package/server/routes/stickerCatalog/catalogRouter.js +11 -13
  121. package/kaikybrofc-omnizap-system-2.2.9.tgz +0 -0
@@ -1,367 +1,368 @@
1
1
  <!doctype html>
2
2
  <html lang="pt-BR">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>OmniZap System | Minha Conta</title>
7
- <meta name="description" content="Painel de conta do OmniZap System com dados do usuário vinculado ao WhatsApp." />
8
- <meta name="robots" content="noindex, nofollow" />
9
- <meta name="theme-color" content="#0b1020" />
10
- <link rel="canonical" href="https://omnizap.shop/user/" />
11
- <link rel="icon" type="image/jpeg" href="https://iili.io/FC3FABe.jpg" />
12
- <link rel="preconnect" href="https://fonts.googleapis.com" />
13
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
- <link
15
- href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap"
16
- rel="stylesheet"
17
- />
18
- <style>
19
- :root {
20
- --bg: #0b1020;
21
- --bg-2: #121a2f;
22
- --card: #121f39cf;
23
- --line: #2f466f;
24
- --text: #e6edf7;
25
- --muted: #9bb0cf;
26
- --primary: #22c55e;
27
- --radius: 18px;
28
- }
29
-
30
- * {
31
- box-sizing: border-box;
32
- }
33
-
34
- html,
35
- body {
36
- margin: 0;
37
- padding: 0;
38
- min-height: 100%;
39
- }
40
-
41
- body {
42
- color: var(--text);
43
- font-family: "Manrope", system-ui, sans-serif;
44
- background:
45
- radial-gradient(55rem 22rem at -10% -10%, #1fce6f30, transparent 60%),
46
- radial-gradient(55rem 22rem at 110% -8%, #43b8ff22, transparent 56%),
47
- linear-gradient(160deg, var(--bg), var(--bg-2));
48
- min-height: 100vh;
49
- display: flex;
50
- align-items: center;
51
- justify-content: center;
52
- padding: 24px 14px;
53
- }
54
-
55
- .page {
56
- width: min(840px, 100%);
57
- border: 1px solid #314b74;
58
- border-radius: 24px;
59
- background: linear-gradient(150deg, #0f1a31e8, #0f1b34ee);
60
- box-shadow: 0 18px 44px #0209166e, inset 0 1px 0 #95c1ff1a;
61
- overflow: hidden;
62
- }
63
-
64
- .head {
65
- border-bottom: 1px solid #2a3f63;
66
- padding: 20px 22px;
67
- display: flex;
68
- align-items: center;
69
- justify-content: space-between;
70
- gap: 14px;
71
- flex-wrap: wrap;
72
- }
73
-
74
- .brand {
75
- display: inline-flex;
76
- align-items: center;
77
- gap: 10px;
78
- font-family: "Sora", sans-serif;
79
- font-weight: 700;
80
- letter-spacing: 0.2px;
81
- text-decoration: none;
82
- color: var(--text);
83
- }
84
-
85
- .brand img {
86
- width: 30px;
87
- height: 30px;
88
- border-radius: 50%;
89
- border: 1px solid #33507e;
90
- object-fit: cover;
91
- }
92
-
93
- .head-actions {
94
- display: flex;
95
- flex-wrap: wrap;
96
- gap: 8px;
97
- }
98
-
99
- .btn {
100
- border: 1px solid var(--line);
101
- border-radius: 12px;
102
- background: #101a2f;
103
- color: var(--text);
104
- text-decoration: none;
105
- padding: 9px 12px;
106
- font-size: 14px;
107
- font-weight: 600;
108
- transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
109
- cursor: pointer;
110
- }
111
-
112
- .btn:hover {
113
- transform: translateY(-1px);
114
- border-color: #4e6ea1;
115
- box-shadow: 0 10px 20px #02091650;
116
- }
117
-
118
- .btn.primary {
119
- border-color: transparent;
120
- background: linear-gradient(90deg, var(--primary), #16a34a);
121
- color: #052412;
122
- box-shadow: 0 10px 22px #22c55e30;
123
- }
124
-
125
- .content {
126
- padding: 24px 22px;
127
- display: grid;
128
- gap: 14px;
129
- }
130
-
131
- h1 {
132
- margin: 0;
133
- font-family: "Sora", sans-serif;
134
- font-size: clamp(26px, 3.6vw, 36px);
135
- line-height: 1.08;
136
- letter-spacing: -0.02em;
137
- background: linear-gradient(90deg, #eef5ff 0%, #8fd7ff 46%, #6ce8b5 100%);
138
- -webkit-background-clip: text;
139
- background-clip: text;
140
- color: transparent;
141
- }
142
-
143
- .lead {
144
- margin: 0;
145
- color: #bfd1ea;
146
- line-height: 1.6;
147
- font-size: 16px;
148
- }
149
-
150
- .card {
151
- border: 1px solid #334f7bc7;
152
- border-radius: var(--radius);
153
- background: var(--card);
154
- padding: 16px;
155
- display: grid;
156
- gap: 12px;
157
- backdrop-filter: blur(8px);
158
- }
159
-
160
- .status {
161
- margin: 0;
162
- color: #dce8fa;
163
- font-size: 15px;
164
- line-height: 1.5;
165
- }
166
-
167
- .error {
168
- margin: 0;
169
- border: 1px solid #a74949;
170
- border-radius: 12px;
171
- background: #3b181899;
172
- color: #ffd7d7;
173
- padding: 9px 10px;
174
- font-size: 14px;
175
- }
176
-
177
- .profile {
178
- display: grid;
179
- grid-template-columns: auto 1fr;
180
- gap: 12px;
181
- align-items: center;
182
- border: 1px solid #31517fb5;
183
- border-radius: 14px;
184
- background: #0f1a30bf;
185
- padding: 12px;
186
- }
187
-
188
- .avatar {
189
- width: 66px;
190
- height: 66px;
191
- border-radius: 16px;
192
- border: 1px solid #3c5a89;
193
- object-fit: cover;
194
- background: #0b1323;
195
- }
196
-
197
- .profile-meta h2 {
198
- margin: 0 0 4px;
199
- font-size: 20px;
200
- line-height: 1.2;
201
- }
202
-
203
- .profile-meta p {
204
- margin: 0;
205
- color: var(--muted);
206
- font-size: 14px;
207
- line-height: 1.45;
208
- word-break: break-word;
209
- }
210
-
211
- .grid {
212
- display: grid;
213
- grid-template-columns: repeat(4, minmax(0, 1fr));
214
- gap: 8px;
215
- }
216
-
217
- .metric {
218
- border: 1px solid #31517fb5;
219
- border-radius: 12px;
220
- background: #0f1a30bf;
221
- padding: 10px;
222
- }
223
-
224
- .metric-label {
225
- margin: 0 0 4px;
226
- color: #9bb0cf;
227
- font-size: 12px;
228
- }
229
-
230
- .metric-value {
231
- margin: 0;
232
- color: #e8f1ff;
233
- font-size: 19px;
234
- font-weight: 800;
235
- letter-spacing: -0.01em;
236
- }
237
-
238
- .summary {
239
- border: 1px solid #2b8b5d9c;
240
- border-radius: 12px;
241
- background: #112d2094;
242
- padding: 10px;
243
- display: grid;
244
- gap: 6px;
245
- color: #dfffe8;
246
- font-size: 14px;
247
- }
248
-
249
- .summary strong {
250
- color: #f4fff8;
251
- }
252
-
253
- .actions {
254
- display: flex;
255
- flex-wrap: wrap;
256
- gap: 8px;
257
- }
258
-
259
- .footer {
260
- margin: 0;
261
- color: #7f94b8;
262
- font-size: 12px;
263
- }
264
-
265
- @media (max-width: 760px) {
266
- .grid {
267
- grid-template-columns: repeat(2, minmax(0, 1fr));
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>OmniZap System | Minha Conta</title>
7
+ <meta name="description" content="Painel de conta do OmniZap System com dados do usuário vinculado ao WhatsApp." />
8
+ <meta name="robots" content="noindex, nofollow" />
9
+ <meta name="theme-color" content="#0f172a" />
10
+ <link rel="canonical" href="https://omnizap.shop/user/" />
11
+ <link rel="icon" type="image/jpeg" href="https://iili.io/FC3FABe.jpg" />
12
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
13
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
+ <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap" rel="stylesheet" />
15
+ <style>
16
+ :root {
17
+ --bg: #0f172a;
18
+ --bg-2: #111827;
19
+ --card: #1e293bcf;
20
+ --line: rgba(255, 255, 255, 0.05);
21
+ --text: #f8fafc;
22
+ --muted: #94a3b8;
23
+ --primary: #22c55e;
24
+ --radius: 18px;
25
+ }
26
+
27
+ * {
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ html,
32
+ body {
33
+ margin: 0;
34
+ padding: 0;
35
+ min-height: 100%;
36
+ }
37
+
38
+ body {
39
+ color: var(--text);
40
+ font-family: 'Manrope', system-ui, sans-serif;
41
+ background: radial-gradient(55rem 22rem at -10% -10%, #2563eb30, transparent 60%), radial-gradient(55rem 22rem at 110% -8%, #7c3aed22, transparent 56%), linear-gradient(160deg, var(--bg), var(--bg-2));
42
+ min-height: 100vh;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ padding: 24px 14px;
47
+ }
48
+
49
+ .page {
50
+ width: min(840px, 100%);
51
+ border: 1px solid rgba(255, 255, 255, 0.05);
52
+ border-radius: 24px;
53
+ background: linear-gradient(150deg, #111827e8, #1e293bee);
54
+ box-shadow:
55
+ 0 18px 44px #0209166e,
56
+ inset 0 1px 0 #95c1ff1a;
57
+ overflow: hidden;
268
58
  }
269
- }
270
59
 
271
- @media (max-width: 620px) {
272
60
  .head {
273
- padding: 16px;
61
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
62
+ padding: 20px 22px;
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ gap: 14px;
67
+ flex-wrap: wrap;
68
+ }
69
+
70
+ .brand {
71
+ display: inline-flex;
72
+ align-items: center;
73
+ gap: 10px;
74
+ font-family: 'Sora', sans-serif;
75
+ font-weight: 700;
76
+ letter-spacing: 0.2px;
77
+ text-decoration: none;
78
+ color: var(--text);
79
+ }
80
+
81
+ .brand img {
82
+ width: 30px;
83
+ height: 30px;
84
+ border-radius: 50%;
85
+ border: 1px solid rgba(255, 255, 255, 0.05);
86
+ object-fit: cover;
87
+ }
88
+
89
+ .head-actions {
90
+ display: flex;
91
+ flex-wrap: wrap;
92
+ gap: 8px;
93
+ }
94
+
95
+ .btn {
96
+ border: 1px solid var(--line);
97
+ border-radius: 12px;
98
+ background: #101a2f;
99
+ color: var(--text);
100
+ text-decoration: none;
101
+ padding: 9px 12px;
102
+ font-size: 14px;
103
+ font-weight: 600;
104
+ transition:
105
+ transform 0.2s ease,
106
+ border-color 0.2s ease,
107
+ box-shadow 0.2s ease;
108
+ cursor: pointer;
109
+ }
110
+
111
+ .btn:hover {
112
+ transform: translateY(-1px);
113
+ border-color: #2563eb;
114
+ box-shadow: 0 10px 20px #02091650;
115
+ }
116
+
117
+ .btn.primary {
118
+ border-color: transparent;
119
+ background: #22c55e;
120
+ color: #0f172a;
121
+ box-shadow: 0 10px 22px #22c55e30;
122
+ }
123
+
124
+ .btn.primary:hover {
125
+ background: #16a34a;
274
126
  }
275
127
 
276
128
  .content {
277
- padding: 18px 16px;
129
+ padding: 24px 22px;
130
+ display: grid;
131
+ gap: 14px;
132
+ }
133
+
134
+ h1 {
135
+ margin: 0;
136
+ font-family: 'Sora', sans-serif;
137
+ font-size: clamp(26px, 3.6vw, 36px);
138
+ line-height: 1.08;
139
+ letter-spacing: -0.02em;
140
+ background: linear-gradient(90deg, #eef5ff 0%, #60a5fa 46%, #a78bfa 100%);
141
+ -webkit-background-clip: text;
142
+ background-clip: text;
143
+ color: transparent;
144
+ }
145
+
146
+ .lead {
147
+ margin: 0;
148
+ color: #bfd1ea;
149
+ line-height: 1.6;
150
+ font-size: 16px;
151
+ }
152
+
153
+ .card {
154
+ border: 1px solid #334f7bc7;
155
+ border-radius: var(--radius);
156
+ background: var(--card);
157
+ padding: 16px;
158
+ display: grid;
159
+ gap: 12px;
160
+ backdrop-filter: blur(8px);
161
+ }
162
+
163
+ .status {
164
+ margin: 0;
165
+ color: #dce8fa;
166
+ font-size: 15px;
167
+ line-height: 1.5;
168
+ }
169
+
170
+ .error {
171
+ margin: 0;
172
+ border: 1px solid #a74949;
173
+ border-radius: 12px;
174
+ background: #3b181899;
175
+ color: #ffd7d7;
176
+ padding: 9px 10px;
177
+ font-size: 14px;
278
178
  }
279
179
 
280
180
  .profile {
281
- grid-template-columns: 1fr;
282
- text-align: center;
181
+ display: grid;
182
+ grid-template-columns: auto 1fr;
183
+ gap: 12px;
184
+ align-items: center;
185
+ border: 1px solid #31517fb5;
186
+ border-radius: 14px;
187
+ background: #1e293bbf;
188
+ padding: 12px;
283
189
  }
284
190
 
285
191
  .avatar {
286
- margin-inline: auto;
287
- }
288
-
289
- .actions .btn {
290
- width: 100%;
291
- text-align: center;
292
- }
293
- }
294
- </style>
295
- </head>
296
- <body>
297
- <main id="user-app-root" class="page" data-api-base-path="/api/sticker-packs" data-login-path="/login" data-stickers-path="/stickers">
298
- <header class="head">
299
- <a href="/" class="brand">
300
- <img src="https://iili.io/FC3FABe.jpg" alt="OmniZap" loading="lazy" decoding="async" />
301
- <span>OmniZap System</span>
302
- </a>
303
- <div class="head-actions">
304
- <a class="btn" href="/">Home</a>
305
- <a id="user-manage-head-link" class="btn" href="/stickers/perfil">Gerenciar Stickers</a>
306
- </div>
307
- </header>
308
-
309
- <section class="content">
310
- <h1>Minha Conta</h1>
311
- <p class="lead">Informações da sua conta vinculada ao OmniZap e atalhos rápidos de acesso.</p>
312
-
313
- <article class="card">
314
- <p id="user-status" class="status">Carregando dados da conta...</p>
315
- <p id="user-error" class="error" hidden></p>
316
-
317
- <div id="user-profile" class="profile" hidden>
318
- <img id="user-avatar" class="avatar" src="https://iili.io/FC3FABe.jpg" alt="Avatar do usuário" />
319
- <div class="profile-meta">
320
- <h2 id="user-name">Conta</h2>
321
- <p id="user-email"></p>
322
- <p id="user-whatsapp"></p>
323
- </div>
324
- </div>
192
+ width: 66px;
193
+ height: 66px;
194
+ border-radius: 16px;
195
+ border: 1px solid #3c5a89;
196
+ object-fit: cover;
197
+ background: #0b1323;
198
+ }
325
199
 
326
- <div id="user-grid" class="grid" hidden>
327
- <article class="metric">
328
- <p class="metric-label">Packs</p>
329
- <p id="metric-packs" class="metric-value">0</p>
330
- </article>
331
- <article class="metric">
332
- <p class="metric-label">Stickers</p>
333
- <p id="metric-stickers" class="metric-value">0</p>
334
- </article>
335
- <article class="metric">
336
- <p class="metric-label">Downloads</p>
337
- <p id="metric-downloads" class="metric-value">0</p>
338
- </article>
339
- <article class="metric">
340
- <p class="metric-label">Likes</p>
341
- <p id="metric-likes" class="metric-value">0</p>
342
- </article>
343
- </div>
200
+ .profile-meta h2 {
201
+ margin: 0 0 4px;
202
+ font-size: 20px;
203
+ line-height: 1.2;
204
+ }
344
205
 
345
- <div id="user-summary" class="summary" hidden>
346
- <div><strong>Owner JID:</strong> <span id="user-owner-jid"></span></div>
347
- <div><strong>Google ID:</strong> <span id="user-google-sub"></span></div>
348
- <div><strong>Sessão expira:</strong> <span id="user-expires-at"></span></div>
349
- </div>
206
+ .profile-meta p {
207
+ margin: 0;
208
+ color: var(--muted);
209
+ font-size: 14px;
210
+ line-height: 1.45;
211
+ word-break: break-word;
212
+ }
213
+
214
+ .grid {
215
+ display: grid;
216
+ grid-template-columns: repeat(4, minmax(0, 1fr));
217
+ gap: 8px;
218
+ }
219
+
220
+ .metric {
221
+ border: 1px solid #31517fb5;
222
+ border-radius: 12px;
223
+ background: #1e293bbf;
224
+ padding: 10px;
225
+ }
226
+
227
+ .metric-label {
228
+ margin: 0 0 4px;
229
+ color: #94a3b8;
230
+ font-size: 12px;
231
+ }
232
+
233
+ .metric-value {
234
+ margin: 0;
235
+ color: #e8f1ff;
236
+ font-size: 19px;
237
+ font-weight: 800;
238
+ letter-spacing: -0.01em;
239
+ }
240
+
241
+ .summary {
242
+ border: 1px solid #2b8b5d9c;
243
+ border-radius: 12px;
244
+ background: #11302294;
245
+ padding: 10px;
246
+ display: grid;
247
+ gap: 6px;
248
+ color: #dfffe8;
249
+ font-size: 14px;
250
+ }
251
+
252
+ .summary strong {
253
+ color: #f4fff8;
254
+ }
350
255
 
351
- <div id="user-actions" class="actions" hidden>
352
- <a id="user-chat-link" class="btn primary" href="https://api.whatsapp.com/send/?text=%2Fmenu&type=custom_url&app_absent=0" target="_blank" rel="noreferrer noopener">
353
- Voltar ao chat do bot (/menu)
354
- </a>
355
- <a id="user-manage-main-link" class="btn" href="/stickers/perfil">Gerenciar meus stickers</a>
356
- <a class="btn" href="/">Voltar para Home</a>
357
- <button id="user-logout-btn" type="button" class="btn">Encerrar sessão</button>
256
+ .actions {
257
+ display: flex;
258
+ flex-wrap: wrap;
259
+ gap: 8px;
260
+ }
261
+
262
+ .footer {
263
+ margin: 0;
264
+ color: #7f94b8;
265
+ font-size: 12px;
266
+ }
267
+
268
+ @media (max-width: 760px) {
269
+ .grid {
270
+ grid-template-columns: repeat(2, minmax(0, 1fr));
271
+ }
272
+ }
273
+
274
+ @media (max-width: 620px) {
275
+ .head {
276
+ padding: 16px;
277
+ }
278
+
279
+ .content {
280
+ padding: 18px 16px;
281
+ }
282
+
283
+ .profile {
284
+ grid-template-columns: 1fr;
285
+ text-align: center;
286
+ }
287
+
288
+ .avatar {
289
+ margin-inline: auto;
290
+ }
291
+
292
+ .actions .btn {
293
+ width: 100%;
294
+ text-align: center;
295
+ }
296
+ }
297
+ </style>
298
+ </head>
299
+ <body>
300
+ <main id="user-app-root" class="page" data-api-base-path="/api/sticker-packs" data-login-path="/login" data-stickers-path="/stickers">
301
+ <header class="head">
302
+ <a href="/" class="brand">
303
+ <img src="https://iili.io/FC3FABe.jpg" alt="OmniZap" loading="lazy" decoding="async" />
304
+ <span>OmniZap System</span>
305
+ </a>
306
+ <div class="head-actions">
307
+ <a class="btn" href="/">Home</a>
308
+ <a id="user-manage-head-link" class="btn" href="/stickers/perfil">Gerenciar Stickers</a>
358
309
  </div>
359
- </article>
310
+ </header>
311
+
312
+ <section class="content">
313
+ <h1>Minha Conta</h1>
314
+ <p class="lead">Informações da sua conta vinculada ao OmniZap e atalhos rápidos de acesso.</p>
315
+
316
+ <article class="card">
317
+ <p id="user-status" class="status">Carregando dados da conta...</p>
318
+ <p id="user-error" class="error" hidden></p>
319
+
320
+ <div id="user-profile" class="profile" hidden>
321
+ <img id="user-avatar" class="avatar" src="https://iili.io/FC3FABe.jpg" alt="Avatar do usuário" />
322
+ <div class="profile-meta">
323
+ <h2 id="user-name">Conta</h2>
324
+ <p id="user-email"></p>
325
+ <p id="user-whatsapp"></p>
326
+ </div>
327
+ </div>
328
+
329
+ <div id="user-grid" class="grid" hidden>
330
+ <article class="metric">
331
+ <p class="metric-label">Packs</p>
332
+ <p id="metric-packs" class="metric-value">0</p>
333
+ </article>
334
+ <article class="metric">
335
+ <p class="metric-label">Stickers</p>
336
+ <p id="metric-stickers" class="metric-value">0</p>
337
+ </article>
338
+ <article class="metric">
339
+ <p class="metric-label">Downloads</p>
340
+ <p id="metric-downloads" class="metric-value">0</p>
341
+ </article>
342
+ <article class="metric">
343
+ <p class="metric-label">Likes</p>
344
+ <p id="metric-likes" class="metric-value">0</p>
345
+ </article>
346
+ </div>
347
+
348
+ <div id="user-summary" class="summary" hidden>
349
+ <div><strong>Owner JID:</strong> <span id="user-owner-jid"></span></div>
350
+ <div><strong>Google ID:</strong> <span id="user-google-sub"></span></div>
351
+ <div><strong>Sessão expira:</strong> <span id="user-expires-at"></span></div>
352
+ </div>
353
+
354
+ <div id="user-actions" class="actions" hidden>
355
+ <a id="user-chat-link" class="btn primary" href="https://api.whatsapp.com/send/?text=%2Fmenu&type=custom_url&app_absent=0" target="_blank" rel="noreferrer noopener"> Voltar ao chat do bot (/menu) </a>
356
+ <a id="user-manage-main-link" class="btn" href="/stickers/perfil">Gerenciar meus stickers</a>
357
+ <a class="btn" href="/">Voltar para Home</a>
358
+ <button id="user-logout-btn" type="button" class="btn">Encerrar sessão</button>
359
+ </div>
360
+ </article>
360
361
 
361
- <p class="footer">OmniZap System · <span id="user-current-year"></span></p>
362
- </section>
363
- </main>
362
+ <p class="footer">OmniZap System · <span id="user-current-year"></span></p>
363
+ </section>
364
+ </main>
364
365
 
365
- <script type="module" src="/js/apps/userApp.js?v=20260228-user-page-v1"></script>
366
- </body>
366
+ <script type="module" src="/js/apps/userApp.js?v=20260228-user-page-v1"></script>
367
+ </body>
367
368
  </html>