-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TopBar): add upcoming event card
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
- Loading branch information
1 parent
242a70b
commit cba69ad
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,20 @@ const fetchConversations = async function(options) { | |
return axios.get(generateOcsUrl('apps/spreed/api/v4/room'), options) | ||
} | ||
|
||
/** | ||
* fetch future events for a given conversation within the next 31 days. | ||
* | ||
* @param {string} location room's absolute url | ||
* @param {object} options options | ||
Check warning on line 32 in src/services/conversationsService.js GitHub Actions / NPM lint
|
||
*/ | ||
const getUpcomingEvents = async (location) => { | ||
return axios.get(generateOcsUrl('/apps/dav/api/v1/events/upcoming'), { | ||
params: { | ||
location, | ||
}, | ||
}) | ||
} | ||
|
||
/** | ||
* Fetches a conversation from the server. | ||
* | ||
|
@@ -357,6 +371,7 @@ export { | |
fetchConversations, | ||
fetchConversation, | ||
fetchNoteToSelfConversation, | ||
getUpcomingEvents, | ||
searchListedConversations, | ||
searchPossibleConversations, | ||
createOneToOneConversation, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters