mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 05:39:57 -05:00
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:
parent
5cbea1ba15
commit
93f0e7494f
45 changed files with 923 additions and 355 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue