Group calendar cringe toggle

This commit is contained in:
Natsumi
2025-11-25 01:11:13 +11:00
parent 7b4ebc0ccd
commit 4cb2946ea9
6 changed files with 175 additions and 49 deletions

View File

@@ -735,24 +735,30 @@ const groupReq = {
/**
* @type {import('../types/api/group').GetCalendars}
*/
getGroupCalendars(date) {
return request(`calendar?date=${date}`, {
method: 'GET'
getGroupCalendars(params) {
return request('calendar', {
method: 'GET',
params
});
},
/**
* @type {import('../types/api/group').GetFollowingCalendars}
*/
getFollowingGroupCalendars(date) {
return request(`calendar/following?date=${date}`, {
method: 'GET'
getFollowingGroupCalendars(params) {
return request('calendar/following', {
method: 'GET',
params
});
},
getFeaturedGroupCalendars(date) {
return request(`calendar/featured?date=${date}`, {
method: 'GET'
/**
* @type {import('../types/api/group').GetFeaturedCalendars}
*/
getFeaturedGroupCalendars(params) {
return request('calendar/featured', {
method: 'GET',
params
});
},