@consilioweb/payload-support 0.5.1
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.
- package/LICENSE +21 -0
- package/README.md +525 -0
- package/dist/client.cjs +7 -0
- package/dist/client.d.cts +3 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.js +5 -0
- package/dist/index.cjs +7766 -0
- package/dist/index.d.cts +384 -0
- package/dist/index.d.ts +384 -0
- package/dist/index.js +7730 -0
- package/dist/views.d.cts +30 -0
- package/dist/views.d.ts +30 -0
- package/package.json +131 -0
- package/src/client.ts +1 -0
- package/src/collections/AuthLogs.ts +65 -0
- package/src/collections/CannedResponses.ts +69 -0
- package/src/collections/ChatMessages.ts +98 -0
- package/src/collections/EmailLogs.ts +94 -0
- package/src/collections/KnowledgeBase.ts +99 -0
- package/src/collections/Macros.ts +98 -0
- package/src/collections/PendingEmails.ts +122 -0
- package/src/collections/SatisfactionSurveys.ts +98 -0
- package/src/collections/SlaPolicies.ts +123 -0
- package/src/collections/SupportClients.ts +210 -0
- package/src/collections/TicketActivityLog.ts +81 -0
- package/src/collections/TicketMessages.ts +364 -0
- package/src/collections/TicketStatuses.ts +108 -0
- package/src/collections/Tickets.ts +704 -0
- package/src/collections/TimeEntries.ts +105 -0
- package/src/collections/WebhookEndpoints.ts +96 -0
- package/src/collections/index.ts +16 -0
- package/src/components/TicketConversation/components/AISummaryPanel.tsx +85 -0
- package/src/components/TicketConversation/components/ActionPanels.tsx +140 -0
- package/src/components/TicketConversation/components/ActivityLog.tsx +39 -0
- package/src/components/TicketConversation/components/ClientBar.tsx +37 -0
- package/src/components/TicketConversation/components/ClientHistory.tsx +117 -0
- package/src/components/TicketConversation/components/CodeBlock.tsx +186 -0
- package/src/components/TicketConversation/components/CodeBlockInserter.tsx +166 -0
- package/src/components/TicketConversation/components/QuickActions.tsx +82 -0
- package/src/components/TicketConversation/components/TicketHeader.tsx +91 -0
- package/src/components/TicketConversation/components/TimeTrackingPanel.tsx +161 -0
- package/src/components/TicketConversation/config.ts +82 -0
- package/src/components/TicketConversation/constants.ts +74 -0
- package/src/components/TicketConversation/context.ts +63 -0
- package/src/components/TicketConversation/hooks/useAI.ts +180 -0
- package/src/components/TicketConversation/hooks/useMessageActions.ts +131 -0
- package/src/components/TicketConversation/hooks/useReply.ts +190 -0
- package/src/components/TicketConversation/hooks/useTicketActions.ts +205 -0
- package/src/components/TicketConversation/hooks/useTimeTracking.ts +107 -0
- package/src/components/TicketConversation/hooks/useTranslation.ts +116 -0
- package/src/components/TicketConversation/index.tsx +1110 -0
- package/src/components/TicketConversation/locales/en.json +878 -0
- package/src/components/TicketConversation/locales/fr.json +878 -0
- package/src/components/TicketConversation/types.ts +54 -0
- package/src/components/TicketConversation/utils.ts +25 -0
- package/src/endpoints/admin-chat-stream.ts +238 -0
- package/src/endpoints/admin-chat.ts +263 -0
- package/src/endpoints/admin-stats.ts +200 -0
- package/src/endpoints/ai.ts +199 -0
- package/src/endpoints/apply-macro.ts +144 -0
- package/src/endpoints/auth-2fa.ts +163 -0
- package/src/endpoints/auto-close.ts +175 -0
- package/src/endpoints/billing.ts +167 -0
- package/src/endpoints/bulk-action.ts +103 -0
- package/src/endpoints/chat-stream.ts +127 -0
- package/src/endpoints/chat.ts +188 -0
- package/src/endpoints/chatbot.ts +113 -0
- package/src/endpoints/delete-account.ts +129 -0
- package/src/endpoints/email-stats.ts +109 -0
- package/src/endpoints/export-csv.ts +84 -0
- package/src/endpoints/export-data.ts +104 -0
- package/src/endpoints/import-conversation.ts +307 -0
- package/src/endpoints/index.ts +154 -0
- package/src/endpoints/login.ts +92 -0
- package/src/endpoints/merge-clients.ts +132 -0
- package/src/endpoints/merge-tickets.ts +137 -0
- package/src/endpoints/oauth-google.ts +179 -0
- package/src/endpoints/pending-emails-process.ts +224 -0
- package/src/endpoints/presence.ts +104 -0
- package/src/endpoints/process-scheduled.ts +144 -0
- package/src/endpoints/purge-logs.ts +58 -0
- package/src/endpoints/resend-notification.ts +99 -0
- package/src/endpoints/round-robin-config.ts +92 -0
- package/src/endpoints/satisfaction.ts +93 -0
- package/src/endpoints/search.ts +106 -0
- package/src/endpoints/seed-kb.ts +153 -0
- package/src/endpoints/settings.ts +144 -0
- package/src/endpoints/signature.ts +93 -0
- package/src/endpoints/sla-check.ts +124 -0
- package/src/endpoints/split-ticket.ts +131 -0
- package/src/endpoints/statuses.ts +45 -0
- package/src/endpoints/track-open.ts +154 -0
- package/src/endpoints/typing.ts +101 -0
- package/src/endpoints/user-prefs.ts +125 -0
- package/src/hooks/checkSLA.ts +414 -0
- package/src/hooks/ticketStatusEmail.ts +182 -0
- package/src/index.ts +51 -0
- package/src/plugin.ts +157 -0
- package/src/portal/LiveChat.tsx +1353 -0
- package/src/portal/auth/ChatWidget.tsx +350 -0
- package/src/portal/auth/ChatbotWidget.tsx +285 -0
- package/src/portal/auth/SupportHeader.tsx +409 -0
- package/src/portal/auth/dashboard/DashboardClient.tsx +650 -0
- package/src/portal/auth/dashboard/page.tsx +84 -0
- package/src/portal/auth/faq/FAQSearch.tsx +117 -0
- package/src/portal/auth/faq/page.tsx +199 -0
- package/src/portal/auth/layout.tsx +61 -0
- package/src/portal/auth/profile/page.tsx +705 -0
- package/src/portal/auth/tickets/detail/CloseTicketButton.tsx +74 -0
- package/src/portal/auth/tickets/detail/CollapsibleMessages.tsx +46 -0
- package/src/portal/auth/tickets/detail/MarkSolutionButton.tsx +50 -0
- package/src/portal/auth/tickets/detail/MessageActions.tsx +158 -0
- package/src/portal/auth/tickets/detail/PrintButton.tsx +16 -0
- package/src/portal/auth/tickets/detail/ReadReceipt.tsx +34 -0
- package/src/portal/auth/tickets/detail/ReopenTicketButton.tsx +74 -0
- package/src/portal/auth/tickets/detail/SatisfactionForm.tsx +156 -0
- package/src/portal/auth/tickets/detail/TicketPolling.tsx +57 -0
- package/src/portal/auth/tickets/detail/TicketReplyForm.tsx +294 -0
- package/src/portal/auth/tickets/detail/TypingIndicator.tsx +58 -0
- package/src/portal/auth/tickets/detail/page.tsx +738 -0
- package/src/portal/auth/tickets/new/page.tsx +515 -0
- package/src/portal/forgot-password/page.tsx +114 -0
- package/src/portal/layout.tsx +26 -0
- package/src/portal/locales/en.json +374 -0
- package/src/portal/locales/fr.json +374 -0
- package/src/portal/login/page.tsx +351 -0
- package/src/portal/page.tsx +162 -0
- package/src/portal/register/page.tsx +281 -0
- package/src/portal/reset-password/page.tsx +152 -0
- package/src/styles/BillingView.module.scss +311 -0
- package/src/styles/ChatView.module.scss +438 -0
- package/src/styles/CommandPalette.module.scss +160 -0
- package/src/styles/CrmView.module.scss +554 -0
- package/src/styles/EmailTracking.module.scss +238 -0
- package/src/styles/ImportConversation.module.scss +267 -0
- package/src/styles/Layout.module.scss +55 -0
- package/src/styles/Logs.module.scss +164 -0
- package/src/styles/NewTicket.module.scss +143 -0
- package/src/styles/PendingEmails.module.scss +629 -0
- package/src/styles/SupportDashboard.module.scss +649 -0
- package/src/styles/TicketDetail.module.scss +1043 -0
- package/src/styles/TicketInbox.module.scss +296 -0
- package/src/styles/TicketingSettings.module.scss +358 -0
- package/src/styles/TimeDashboard.module.scss +287 -0
- package/src/styles/_tokens.scss +78 -0
- package/src/styles/theme.css +633 -0
- package/src/types.ts +255 -0
- package/src/utils/adminNotification.ts +38 -0
- package/src/utils/auth.ts +46 -0
- package/src/utils/emailTemplate.ts +343 -0
- package/src/utils/fireWebhooks.ts +84 -0
- package/src/utils/index.ts +22 -0
- package/src/utils/rateLimiter.ts +52 -0
- package/src/utils/readSettings.ts +67 -0
- package/src/utils/slugs.ts +54 -0
- package/src/utils/webhookDispatcher.ts +120 -0
- package/src/views/BillingView/client.tsx +137 -0
- package/src/views/BillingView/index.tsx +33 -0
- package/src/views/ChatView/client.tsx +294 -0
- package/src/views/ChatView/index.tsx +33 -0
- package/src/views/CrmView/client.tsx +206 -0
- package/src/views/CrmView/index.tsx +33 -0
- package/src/views/EmailTrackingView/client.tsx +124 -0
- package/src/views/EmailTrackingView/index.tsx +33 -0
- package/src/views/ImportConversationView/client.tsx +133 -0
- package/src/views/ImportConversationView/index.tsx +33 -0
- package/src/views/LogsView/client.tsx +151 -0
- package/src/views/LogsView/index.tsx +30 -0
- package/src/views/NewTicketView/client.tsx +227 -0
- package/src/views/NewTicketView/index.tsx +30 -0
- package/src/views/PendingEmailsView/client.tsx +177 -0
- package/src/views/PendingEmailsView/index.tsx +33 -0
- package/src/views/SupportDashboardView/client.tsx +424 -0
- package/src/views/SupportDashboardView/index.tsx +33 -0
- package/src/views/TicketDetailView/client.tsx +775 -0
- package/src/views/TicketDetailView/index.tsx +33 -0
- package/src/views/TicketInboxView/client.tsx +313 -0
- package/src/views/TicketInboxView/index.tsx +30 -0
- package/src/views/TicketingSettingsView/client.tsx +866 -0
- package/src/views/TicketingSettingsView/index.tsx +33 -0
- package/src/views/TimeDashboardView/client.tsx +144 -0
- package/src/views/TimeDashboardView/index.tsx +33 -0
- package/src/views/shared/AdminViewHeader.tsx +69 -0
- package/src/views/shared/ErrorBoundary.tsx +68 -0
- package/src/views/shared/Skeleton.tsx +125 -0
- package/src/views/shared/adminTokens.ts +37 -0
- package/src/views/shared/config.ts +82 -0
- package/src/views/shared/index.ts +6 -0
- package/src/views.ts +16 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// Email Tracking — Clean 2026 design with Payload CSS vars
|
|
2
|
+
|
|
3
|
+
.page {
|
|
4
|
+
max-width: 1920px;
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
padding: 0 24px 60px;
|
|
7
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
padding: 20px 0 16px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 12px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.title {
|
|
18
|
+
font-size: 24px;
|
|
19
|
+
font-weight: 800;
|
|
20
|
+
color: var(--theme-text);
|
|
21
|
+
margin: 0;
|
|
22
|
+
flex: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Stat cards
|
|
26
|
+
.statGrid {
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: repeat(4, 1fr);
|
|
29
|
+
gap: 12px;
|
|
30
|
+
margin-bottom: 24px;
|
|
31
|
+
@media (max-width: 800px) { grid-template-columns: repeat(2, 1fr); }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.statCard {
|
|
35
|
+
padding: 16px 18px;
|
|
36
|
+
border-radius: 10px;
|
|
37
|
+
background: var(--theme-elevation-50);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.statLabel {
|
|
41
|
+
font-size: 10px;
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
letter-spacing: 0.06em;
|
|
45
|
+
color: var(--theme-elevation-500);
|
|
46
|
+
margin-bottom: 6px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.statValue {
|
|
50
|
+
font-size: 26px;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
color: var(--theme-text);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.statUnit {
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
color: var(--theme-elevation-500);
|
|
59
|
+
margin-left: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Filters
|
|
63
|
+
.filters {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
gap: 12px;
|
|
67
|
+
margin-bottom: 16px;
|
|
68
|
+
flex-wrap: wrap;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tabs {
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: 0;
|
|
74
|
+
border-bottom: 1px solid var(--theme-elevation-150, #f1f5f9);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tab {
|
|
78
|
+
padding: 8px 14px;
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
color: var(--theme-elevation-500);
|
|
82
|
+
background: none;
|
|
83
|
+
border: none;
|
|
84
|
+
border-bottom: 2px solid transparent;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
transition: all 100ms;
|
|
87
|
+
&:hover { color: var(--theme-text); }
|
|
88
|
+
&.tabActive {
|
|
89
|
+
color: var(--theme-text);
|
|
90
|
+
border-bottom-color: #2563eb;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dateRangeGroup {
|
|
95
|
+
display: flex;
|
|
96
|
+
gap: 4px;
|
|
97
|
+
margin-left: auto;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dateRangeBtn {
|
|
101
|
+
padding: 5px 12px;
|
|
102
|
+
border-radius: 6px;
|
|
103
|
+
border: 1px solid var(--theme-elevation-200);
|
|
104
|
+
background: none;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
color: var(--theme-elevation-500);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
transition: all 80ms;
|
|
110
|
+
&:hover { background: var(--theme-elevation-100); }
|
|
111
|
+
&.dateRangeActive {
|
|
112
|
+
background: #2563eb;
|
|
113
|
+
color: #fff;
|
|
114
|
+
border-color: #2563eb;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.searchInput {
|
|
119
|
+
padding: 7px 12px;
|
|
120
|
+
border-radius: 8px;
|
|
121
|
+
border: 1px solid var(--theme-elevation-200);
|
|
122
|
+
background: var(--theme-elevation-0, #fff);
|
|
123
|
+
color: var(--theme-text);
|
|
124
|
+
font-size: 13px;
|
|
125
|
+
width: 220px;
|
|
126
|
+
&:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
|
|
127
|
+
&::placeholder { color: var(--theme-elevation-400); }
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Table
|
|
131
|
+
.table {
|
|
132
|
+
width: 100%;
|
|
133
|
+
border-collapse: collapse;
|
|
134
|
+
font-size: 13px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.table th {
|
|
138
|
+
text-align: left;
|
|
139
|
+
padding: 10px 12px;
|
|
140
|
+
font-size: 11px;
|
|
141
|
+
font-weight: 700;
|
|
142
|
+
text-transform: uppercase;
|
|
143
|
+
letter-spacing: 0.04em;
|
|
144
|
+
color: var(--theme-elevation-500);
|
|
145
|
+
border-bottom: 1px solid var(--theme-elevation-200);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.table td {
|
|
149
|
+
padding: 10px 12px;
|
|
150
|
+
color: var(--theme-text);
|
|
151
|
+
border-bottom: 1px solid var(--theme-elevation-100, #f8fafc);
|
|
152
|
+
vertical-align: middle;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.table tr:hover td {
|
|
156
|
+
background: var(--theme-elevation-50);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.statusBadge {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
padding: 2px 8px;
|
|
162
|
+
border-radius: 4px;
|
|
163
|
+
font-size: 11px;
|
|
164
|
+
font-weight: 700;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ticketLink {
|
|
168
|
+
color: #2563eb;
|
|
169
|
+
text-decoration: none;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
font-size: 12px;
|
|
172
|
+
&:hover { text-decoration: underline; }
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.expandBtn {
|
|
176
|
+
background: none;
|
|
177
|
+
border: none;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
color: var(--theme-elevation-400);
|
|
180
|
+
font-size: 12px;
|
|
181
|
+
padding: 2px;
|
|
182
|
+
&:hover { color: var(--theme-text); }
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.errorDetail {
|
|
186
|
+
padding: 10px 14px;
|
|
187
|
+
background: #fef2f2;
|
|
188
|
+
border-radius: 6px;
|
|
189
|
+
font-size: 12px;
|
|
190
|
+
color: #991b1b;
|
|
191
|
+
font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
|
|
192
|
+
margin: 4px 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.processingTime {
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
font-weight: 600;
|
|
198
|
+
font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.timeFast { color: #16a34a; }
|
|
202
|
+
.timeMedium { color: #d97706; }
|
|
203
|
+
.timeSlow { color: #dc2626; }
|
|
204
|
+
|
|
205
|
+
// Pagination
|
|
206
|
+
.pagination {
|
|
207
|
+
display: flex;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
gap: 8px;
|
|
210
|
+
margin-top: 16px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.pageBtn {
|
|
214
|
+
padding: 6px 14px;
|
|
215
|
+
border-radius: 6px;
|
|
216
|
+
border: 1px solid var(--theme-elevation-200);
|
|
217
|
+
background: none;
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
font-weight: 600;
|
|
220
|
+
color: var(--theme-elevation-500);
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
&:hover { background: var(--theme-elevation-100); }
|
|
223
|
+
&:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.empty {
|
|
227
|
+
padding: 60px 20px;
|
|
228
|
+
text-align: center;
|
|
229
|
+
color: var(--theme-elevation-400);
|
|
230
|
+
font-size: 14px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.loading {
|
|
234
|
+
padding: 60px 20px;
|
|
235
|
+
text-align: center;
|
|
236
|
+
color: var(--theme-elevation-400);
|
|
237
|
+
font-size: 14px;
|
|
238
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
// ImportConversation — Clean admin aesthetic, 2026
|
|
2
|
+
|
|
3
|
+
.page {
|
|
4
|
+
max-width: 1920px;
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
padding: 24px 16px 60px;
|
|
7
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Header
|
|
11
|
+
.header {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
margin-bottom: 20px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
font-size: 24px;
|
|
20
|
+
font-weight: 800;
|
|
21
|
+
color: var(--theme-text);
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Buttons
|
|
26
|
+
.btn {
|
|
27
|
+
padding: 8px 14px;
|
|
28
|
+
border-radius: 6px;
|
|
29
|
+
border: 1px solid var(--theme-elevation-300);
|
|
30
|
+
color: #fff;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
font-size: 13px;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
transition: opacity 100ms;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
|
|
38
|
+
&:hover { opacity: 0.9; }
|
|
39
|
+
&:disabled {
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btnPrimary { composes: btn; background: #2563eb; }
|
|
46
|
+
.btnAmber { composes: btn; background: #d97706; }
|
|
47
|
+
.btnGreen { composes: btn; background: #16a34a; }
|
|
48
|
+
.btnMuted { composes: btn; background: #64748b; }
|
|
49
|
+
|
|
50
|
+
.btnContent {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 6px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Dropzone
|
|
57
|
+
.dropzone {
|
|
58
|
+
border: 3px dashed var(--theme-elevation-400);
|
|
59
|
+
border-radius: 12px;
|
|
60
|
+
padding: 60px 24px;
|
|
61
|
+
text-align: center;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
transition: all 200ms ease;
|
|
64
|
+
background: transparent;
|
|
65
|
+
min-height: 200px;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dropzoneDragOver {
|
|
73
|
+
composes: dropzone;
|
|
74
|
+
border-color: #2563eb;
|
|
75
|
+
background: rgba(37, 99, 235, 0.04);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dropzoneHasFile {
|
|
79
|
+
composes: dropzone;
|
|
80
|
+
border-color: #16a34a;
|
|
81
|
+
background: rgba(22, 163, 74, 0.04);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dropzoneIcon {
|
|
85
|
+
font-size: 40px;
|
|
86
|
+
color: #2563eb;
|
|
87
|
+
margin-bottom: 4px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dropzoneText {
|
|
91
|
+
font-size: 15px;
|
|
92
|
+
color: var(--theme-elevation-500);
|
|
93
|
+
margin-top: 8px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fileName {
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
color: #2563eb;
|
|
99
|
+
font-weight: 600;
|
|
100
|
+
margin-top: 8px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Section
|
|
104
|
+
.section {
|
|
105
|
+
margin-top: 20px;
|
|
106
|
+
padding: 16px;
|
|
107
|
+
background: var(--theme-elevation-100);
|
|
108
|
+
border-radius: 8px;
|
|
109
|
+
border: 1px solid var(--theme-elevation-300);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sectionTitle {
|
|
113
|
+
font-size: 15px;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
color: var(--theme-text);
|
|
116
|
+
margin-bottom: 10px;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: 8px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sectionTitleRight {
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
font-size: 13px;
|
|
125
|
+
color: var(--theme-elevation-500);
|
|
126
|
+
margin-left: auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Info rows
|
|
130
|
+
.infoRow {
|
|
131
|
+
display: flex;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
padding: 6px 0;
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
border-bottom: 1px solid var(--theme-elevation-300);
|
|
136
|
+
|
|
137
|
+
&:last-child { border-bottom: none; }
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.infoLabel {
|
|
141
|
+
font-weight: 600;
|
|
142
|
+
color: var(--theme-elevation-500);
|
|
143
|
+
min-width: 100px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.infoValue {
|
|
147
|
+
color: var(--theme-text);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Messages
|
|
151
|
+
.msgRow {
|
|
152
|
+
padding: 8px 12px;
|
|
153
|
+
margin-bottom: 6px;
|
|
154
|
+
border-radius: 6px;
|
|
155
|
+
font-size: 13px;
|
|
156
|
+
border-left: 3px solid transparent;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.msgAdmin {
|
|
160
|
+
composes: msgRow;
|
|
161
|
+
background: rgba(37, 99, 235, 0.06);
|
|
162
|
+
border-left-color: #2563eb;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.msgClient {
|
|
166
|
+
composes: msgRow;
|
|
167
|
+
background: rgba(217, 119, 6, 0.06);
|
|
168
|
+
border-left-color: #d97706;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.msgHeader {
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
margin-bottom: 4px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.msgAuthor {
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
font-size: 12px;
|
|
180
|
+
color: var(--theme-text);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.msgDate {
|
|
184
|
+
font-size: 11px;
|
|
185
|
+
color: var(--theme-elevation-500);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.msgPreview {
|
|
189
|
+
color: var(--theme-elevation-500);
|
|
190
|
+
font-size: 12px;
|
|
191
|
+
line-height: 1.4;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Action row
|
|
195
|
+
.btnRow {
|
|
196
|
+
display: flex;
|
|
197
|
+
gap: 8px;
|
|
198
|
+
margin-top: 16px;
|
|
199
|
+
justify-content: flex-end;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Result
|
|
203
|
+
.result {
|
|
204
|
+
margin-top: 20px;
|
|
205
|
+
padding: 16px;
|
|
206
|
+
border-radius: 8px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.resultSuccess {
|
|
210
|
+
composes: result;
|
|
211
|
+
background: rgba(22, 163, 74, 0.06);
|
|
212
|
+
border: 1px solid #16a34a;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.resultError {
|
|
216
|
+
composes: result;
|
|
217
|
+
background: rgba(220, 38, 38, 0.06);
|
|
218
|
+
border: 1px solid #dc2626;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.resultTitle {
|
|
222
|
+
font-size: 16px;
|
|
223
|
+
font-weight: 700;
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
gap: 8px;
|
|
227
|
+
margin-bottom: 10px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.resultTitleSuccess { composes: resultTitle; color: #16a34a; }
|
|
231
|
+
.resultTitleError { composes: resultTitle; color: #dc2626; }
|
|
232
|
+
|
|
233
|
+
.errorText {
|
|
234
|
+
font-size: 14px;
|
|
235
|
+
color: #dc2626;
|
|
236
|
+
margin: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Badge
|
|
240
|
+
.badge {
|
|
241
|
+
display: inline-block;
|
|
242
|
+
padding: 2px 8px;
|
|
243
|
+
border-radius: 4px;
|
|
244
|
+
font-size: 11px;
|
|
245
|
+
font-weight: 700;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.badgeNew {
|
|
249
|
+
composes: badge;
|
|
250
|
+
background: rgba(22, 163, 74, 0.12);
|
|
251
|
+
color: #16a34a;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.badgeInfo {
|
|
255
|
+
composes: badge;
|
|
256
|
+
background: rgba(37, 99, 235, 0.12);
|
|
257
|
+
color: #2563eb;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Link
|
|
261
|
+
.link {
|
|
262
|
+
color: #2563eb;
|
|
263
|
+
font-weight: 600;
|
|
264
|
+
text-decoration: none;
|
|
265
|
+
|
|
266
|
+
&:hover { text-decoration: underline; }
|
|
267
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use 'tokens' as *;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
padding: 12px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.twoColumns {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr 320px;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
align-items: start;
|
|
12
|
+
|
|
13
|
+
@media (max-width: 1100px) {
|
|
14
|
+
grid-template-columns: 1fr;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mainColumn {
|
|
19
|
+
min-width: 0; // prevent overflow
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sideColumn {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 12px;
|
|
26
|
+
position: sticky;
|
|
27
|
+
top: 80px;
|
|
28
|
+
|
|
29
|
+
@media (max-width: 1100px) {
|
|
30
|
+
position: static;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.separator {
|
|
35
|
+
border-top: 1px solid $border;
|
|
36
|
+
margin: 16px 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// RTE display overrides (scoped)
|
|
40
|
+
.rteDisplay {
|
|
41
|
+
:global {
|
|
42
|
+
blockquote {
|
|
43
|
+
border-left: 3px solid $blue;
|
|
44
|
+
margin: 8px 0;
|
|
45
|
+
padding: 8px 16px;
|
|
46
|
+
background: $bg;
|
|
47
|
+
border-radius: 0 $radius-sm $radius-sm 0;
|
|
48
|
+
}
|
|
49
|
+
img { max-width: 100%; height: auto; border-radius: $radius; margin: 8px 0; }
|
|
50
|
+
a { color: $blue; text-decoration: underline; }
|
|
51
|
+
ul, ol { margin: 8px 0; padding-left: 24px; }
|
|
52
|
+
li { margin: 2px 0; }
|
|
53
|
+
p { margin: 0 0 6px 0; }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
.page {
|
|
2
|
+
max-width: 1920px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
padding: 0 24px 60px;
|
|
5
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.header {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 16px;
|
|
12
|
+
padding: 20px 0 16px;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.title {
|
|
17
|
+
font-size: 24px;
|
|
18
|
+
font-weight: 800;
|
|
19
|
+
color: var(--theme-text);
|
|
20
|
+
margin: 0;
|
|
21
|
+
flex: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.headerActions {
|
|
25
|
+
display: flex;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.purgeBtn {
|
|
31
|
+
padding: 7px 14px;
|
|
32
|
+
border-radius: 8px;
|
|
33
|
+
border: 1px solid var(--theme-elevation-200);
|
|
34
|
+
background: none;
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
color: var(--theme-elevation-500);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
transition: all 100ms;
|
|
40
|
+
&:hover { background: var(--theme-elevation-100); color: var(--theme-text); }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.purgeBtnDanger {
|
|
44
|
+
border-color: #fca5a5;
|
|
45
|
+
color: #dc2626;
|
|
46
|
+
&:hover { background: #fef2f2; }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tabs {
|
|
50
|
+
display: flex;
|
|
51
|
+
gap: 0;
|
|
52
|
+
border-bottom: 1px solid var(--theme-elevation-150, #f1f5f9);
|
|
53
|
+
margin-bottom: 16px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tab {
|
|
57
|
+
padding: 10px 16px;
|
|
58
|
+
font-size: 13px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: var(--theme-elevation-500);
|
|
61
|
+
background: none;
|
|
62
|
+
border: none;
|
|
63
|
+
border-bottom: 2px solid transparent;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
transition: all 100ms;
|
|
66
|
+
&:hover { color: var(--theme-text); }
|
|
67
|
+
&.tabActive { color: var(--theme-text); border-bottom-color: #2563eb; }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.table {
|
|
71
|
+
width: 100%;
|
|
72
|
+
border-collapse: collapse;
|
|
73
|
+
font-size: 13px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.table th {
|
|
77
|
+
text-align: left;
|
|
78
|
+
padding: 10px 12px;
|
|
79
|
+
font-size: 11px;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
letter-spacing: 0.04em;
|
|
83
|
+
color: var(--theme-elevation-500);
|
|
84
|
+
border-bottom: 1px solid var(--theme-elevation-200);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.table td {
|
|
88
|
+
padding: 10px 12px;
|
|
89
|
+
color: var(--theme-text);
|
|
90
|
+
border-bottom: 1px solid var(--theme-elevation-100, #f8fafc);
|
|
91
|
+
vertical-align: middle;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.table tr:hover td { background: var(--theme-elevation-50); }
|
|
95
|
+
|
|
96
|
+
.badge {
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
padding: 2px 8px;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
font-size: 11px;
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mono {
|
|
105
|
+
font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
|
|
106
|
+
font-size: 12px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.truncate {
|
|
110
|
+
max-width: 300px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pagination {
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
gap: 8px;
|
|
120
|
+
margin-top: 16px;
|
|
121
|
+
align-items: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pageBtn {
|
|
125
|
+
padding: 6px 14px;
|
|
126
|
+
border-radius: 6px;
|
|
127
|
+
border: 1px solid var(--theme-elevation-200);
|
|
128
|
+
background: none;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
color: var(--theme-elevation-500);
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
&:hover { background: var(--theme-elevation-100); }
|
|
134
|
+
&:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.pageInfo {
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
color: var(--theme-elevation-500);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.empty {
|
|
143
|
+
padding: 60px 20px;
|
|
144
|
+
text-align: center;
|
|
145
|
+
color: var(--theme-elevation-400);
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.loading {
|
|
150
|
+
padding: 60px 20px;
|
|
151
|
+
text-align: center;
|
|
152
|
+
color: var(--theme-elevation-400);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.purgeResult {
|
|
156
|
+
padding: 10px 16px;
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
background: #f0fdf4;
|
|
159
|
+
border: 1px solid #bbf7d0;
|
|
160
|
+
color: #166534;
|
|
161
|
+
font-size: 13px;
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
margin-bottom: 16px;
|
|
164
|
+
}
|