feat: P1 Calendar — CalendarView (month/week/list, drag&drop, channel filter)

This commit is contained in:
Nik (Claude)
2026-06-08 10:16:54 +03:00
parent 2e550d2993
commit 999119d58d
5 changed files with 653 additions and 1 deletions
+8
View File
@@ -68,4 +68,12 @@ export const engine = {
},
updateSetting: (key, value) => call(`/api/settings/admin/${encodeURIComponent(key)}`, { method: 'PUT', body: { value } }),
invalidateSettingsCache: () => call('/api/settings/admin/invalidate', { method: 'POST' }),
// Calendar
getCalendar: (userId, params = {}) => {
const qs = new URLSearchParams(params).toString();
return call(`/api/calendar${qs ? '?' + qs : ''}`, { userId });
},
updateUserPostSchedule: (userId, id, scheduledAt) =>
call(`/api/user-posts/${id}`, { userId, method: 'PATCH', body: { scheduled_at: scheduledAt } }),
};