mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
@@ -38,6 +38,7 @@ export class LogsComponent {
|
||||
params: RR.FollowServerLogsReq,
|
||||
) => Promise<RR.FollowServerLogsRes>
|
||||
@Input() fetchLogs!: (params: ServerLogsReq) => Promise<LogsRes>
|
||||
@Input() context!: string
|
||||
@Input() defaultBack!: string
|
||||
@Input() title!: string
|
||||
|
||||
@@ -151,7 +152,7 @@ export class LogsComponent {
|
||||
}
|
||||
const html = this.convertToAnsi(entries)
|
||||
|
||||
this.downloadHtml.download('logs.html', html, styles)
|
||||
this.downloadHtml.download(`${this.context}-logs.html`, html, styles)
|
||||
} catch (e: any) {
|
||||
this.errToast.present(e)
|
||||
} finally {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
[fetchLogs]="fetchLogs()"
|
||||
[followLogs]="followLogs()"
|
||||
[defaultBack]="'/services/' + pkgId"
|
||||
[context]="pkgId"
|
||||
title="Service Logs"
|
||||
class="ion-page"
|
||||
></logs>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<logs
|
||||
[fetchLogs]="fetchLogs()"
|
||||
[followLogs]="followLogs()"
|
||||
context="kernel"
|
||||
defaultBack="embassy"
|
||||
title="Kernel Logs"
|
||||
class="ion-page"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<logs
|
||||
[fetchLogs]="fetchLogs()"
|
||||
[followLogs]="followLogs()"
|
||||
context="eos"
|
||||
defaultBack="embassy"
|
||||
title="OS Logs"
|
||||
class="ion-page"
|
||||
|
||||
Reference in New Issue
Block a user