A simple, universal public Statuspage. https://status.sp-codes.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

import {Injectable} from '@angular/core';
import {Observable, of} from "rxjs";
import {ApiResponse} from "../_data/data";
@Injectable({
providedIn: 'root'
})
export class ApiService {
constructor() {
}
public getServiceStates(): Observable<ApiResponse> {
return of({
state: "maintenance",
groups: [{
id: 'default',
name: 'Some Group',
state: "outage",
services: [{
id: 'nextcloud',
name: 'Nextcloud',
url: "https://sp-codes.de",
state: "operational"
}, {
id: 'synapse',
name: 'Synapse',
url: "https://sp-codes.de",
state: "outage"
}, {
id: 'searx',
name: 'Searx',
url: "https://sp-codes.de",
state: "maintenance"
}]
}, {
id: 'test',
name: 'Test',
state: "operational",
services: [{
id: 'nextcloud',
name: 'Nextcloud',
url: "https://sp-codes.de",
state: "operational"
}, {
id: 'synapse',
name: 'Synapse',
url: "https://sp-codes.de",
state: "operational"
}]
}]
});
}
}