Skip to content

Commit 2ecdc77

Browse files
committed
add SVG icons and labels for admin_suspend, admin_unsuspend, admin_renew_now in activity log
1 parent f41c725 commit 2ecdc77

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

public/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,9 @@ let activityIcons = {
851851
email_changed: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>',
852852
account_deleted: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><path d="M12 9v4"/><circle cx="12" cy="18" r="1"/></svg>',
853853
api_key_updated: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 11-7.778 7.778 5.5 5.5 0 017.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"/></svg>',
854+
admin_suspend: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><line x1="9" y1="12" x2="15" y2="12"/></svg>',
855+
admin_unsuspend: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><polyline points="9 12 11 14 15 10"/></svg>',
856+
admin_renew_now: '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><path d="M20.49 15a9 9 0 11-2.12-9.36L23 10"/></svg>',
854857
};
855858

856859
function formatRelativeTime(dateStr) {
@@ -877,6 +880,9 @@ function getActionLabel(action) {
877880
email_changed: 'Email changed',
878881
account_deleted: 'Account deleted',
879882
api_key_updated: 'API key updated',
883+
admin_suspend: 'Server suspended (Admin)',
884+
admin_unsuspend: 'Server unsuspended (Admin)',
885+
admin_renew_now: 'Server force-renewed (Admin)',
880886
};
881887
return labels[action] || action;
882888
}

0 commit comments

Comments
 (0)