Campaign stats in admin, user posts via new route, safer ad creation
- Admin: campaign stats panel (impressions, clicks, CTR per campaign and ad) with date range
- My posts: GET /api/v1/users/{id}/posts with paging, fallback to the legacy route
- Ad creation: retry after a failed video upload reuses the created ad; show backend 400 text
- Fullscreen ad form: only absolute http(s) target URLs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -315,4 +315,66 @@
|
||||
}
|
||||
.fs-ad-row .f-upload-progress-text {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
/* ── Статистика кампании ── */
|
||||
.admp-stats {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.admp-stats-range {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.admp-stats-range label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-size: .75rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.admp-stats-totals {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.admp-stats-totals div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: .75rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.admp-stats-totals strong {
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.admp-stats-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: .82rem;
|
||||
}
|
||||
.admp-stats-table th,
|
||||
.admp-stats-table td {
|
||||
text-align: right;
|
||||
padding: 6px 8px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.admp-stats-table th:first-child,
|
||||
.admp-stats-table td:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
.admp-stats-table th {
|
||||
color: var(--muted);
|
||||
font-weight: 700;
|
||||
}
|
||||
.admp-stats-ad {
|
||||
max-width: 420px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.admp-stats-ad span {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user