mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
ui: remove dead imports, fix mock type
This commit is contained in:
committed by
Aiden McClelland
parent
a9735fd777
commit
808fff4187
@@ -19,4 +19,4 @@
|
|||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-spinner *ngIf="$loading$ | async" class="center" name="lines" color="warning"></ion-spinner>
|
<ion-spinner *ngIf="$loading$ | async" class="center" name="lines" color="warning"></ion-spinner>
|
||||||
<p style="white-space: pre-line;">{{ logs }}</p>
|
<p style="white-space: pre-line;">{{ logs }}</p>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Component, ViewChild } from '@angular/core'
|
import { Component, ViewChild } from '@angular/core'
|
||||||
import { ActivatedRoute } from '@angular/router'
|
|
||||||
import { ApiService } from 'src/app/services/api/api.service'
|
import { ApiService } from 'src/app/services/api/api.service'
|
||||||
import { IonContent } from '@ionic/angular'
|
import { IonContent } from '@ionic/angular'
|
||||||
import { pauseFor } from 'src/app/util/misc.util'
|
import { pauseFor } from 'src/app/util/misc.util'
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ async function mockGetAppLogs (): Promise<ReqRes.GetAppLogsRes> {
|
|||||||
|
|
||||||
async function mockGetServerLogs (): Promise<ReqRes.GetServerLogsRes> {
|
async function mockGetServerLogs (): Promise<ReqRes.GetServerLogsRes> {
|
||||||
await pauseFor(1000)
|
await pauseFor(1000)
|
||||||
return mockApiServerLogs.join('\n')
|
return mockApiServerLogs
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mockGetAppMetrics (): Promise<ReqRes.GetAppMetricsRes> {
|
async function mockGetAppMetrics (): Promise<ReqRes.GetAppMetricsRes> {
|
||||||
@@ -619,7 +619,7 @@ const mockApiAppLogs: string[] = [
|
|||||||
'****** FINISH *****',
|
'****** FINISH *****',
|
||||||
]
|
]
|
||||||
|
|
||||||
const mockApiServerLogs: string[] = [
|
const mockApiServerLogs: string = [
|
||||||
'****** START *****',
|
'****** START *****',
|
||||||
'[ng] ℹ 「wdm」: Compiled successfully.',
|
'[ng] ℹ 「wdm」: Compiled successfully.',
|
||||||
'[ng] ℹ 「wdm」: Compiling...',
|
'[ng] ℹ 「wdm」: Compiling...',
|
||||||
@@ -702,7 +702,7 @@ const mockApiServerLogs: string[] = [
|
|||||||
'[ng] Date: 2019-12-26T14:23:13.812Z - Hash: 9342e11e6b8e16ad2f70',
|
'[ng] Date: 2019-12-26T14:23:13.812Z - Hash: 9342e11e6b8e16ad2f70',
|
||||||
'[ng] 114 unchanged chunks',
|
'[ng] 114 unchanged chunks',
|
||||||
'****** FINISH *****',
|
'****** FINISH *****',
|
||||||
]
|
].join('\n')
|
||||||
|
|
||||||
const mockApiAppMetricsV1: AppMetricsVersioned<2> = {
|
const mockApiAppMetricsV1: AppMetricsVersioned<2> = {
|
||||||
version: 2,
|
version: 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user