Creating Event and Flag systems. Events are used to send and display a toast to the App. Flags are used to signal if some action has been performed, or if a package is installed.

This commit is contained in:
Roland 2022-12-23 16:04:09 -07:00
parent 5cbea1ba15
commit 93f0e7494f
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
45 changed files with 923 additions and 355 deletions

View file

@ -676,3 +676,14 @@ export async function getStatistics() {
})
}
}
export async function getEvents(after) {
let uri = `${API_URI}/events/feed`;
if (after) {
uri = `${uri}?after=${after}`
}
let response = await apiGet(uri);
if (response.status === 200) {
return await response.json();
}
}