fmt: apply prettier to frontend JS/TS/CSS/JSON files
Initial prettier pass with tabWidth=4.
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
// API client for system status
|
||||
|
||||
import { API_BASE } from './config';
|
||||
import { API_BASE } from "./config";
|
||||
|
||||
/**
|
||||
* Get system status including latest processed block and health
|
||||
* @returns {Promise<Object>} System status
|
||||
*/
|
||||
export async function getSystemStatus() {
|
||||
const response = await fetch(`${API_BASE}/status`);
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.json();
|
||||
throw new Error(error.message || 'Failed to fetch system status');
|
||||
}
|
||||
|
||||
return response.json();
|
||||
const response = await fetch(`${API_BASE}/status`);
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.json();
|
||||
throw new Error(error.message || "Failed to fetch system status");
|
||||
}
|
||||
|
||||
return response.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user