mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
Updating timeout to match new timeout logic.
Logging timeout. Simplifying timeout logic. Updating yt-dlp. Bumping version for status page. Ignoring /etc for docker. Using top instead of custom script. Warning when temperature file does not exist. Handling when CPU files are not available. Using swapping drive availablility for size. Reworking page format. Creating wrolpi status page.
This commit is contained in:
parent
59b9f3f81e
commit
a1a444934e
8 changed files with 331 additions and 19 deletions
|
|
@ -175,6 +175,20 @@ export async function getDirectories(search_str) {
|
|||
return [];
|
||||
}
|
||||
|
||||
export async function getStatus() {
|
||||
let response = await apiGet(`${API_URI}/status`);
|
||||
if (response.status === 200) {
|
||||
return await response.json();
|
||||
} else {
|
||||
toast({
|
||||
type: 'error',
|
||||
title: 'Unexpected server response',
|
||||
description: 'Could not get server status',
|
||||
time: 5000,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export async function getSettings() {
|
||||
let response = await apiGet(`${API_URI}/settings`);
|
||||
if (response.status === 200) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue