mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fix: fix build after minor merged into major
This commit is contained in:
32
web/projects/shared/src/components/server.component.ts
Normal file
32
web/projects/shared/src/components/server.component.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { DatePipe } from '@angular/common'
|
||||
import { Component, inject, input } from '@angular/core'
|
||||
import { TuiDialogService, TuiIcon, TuiTitle } from '@taiga-ui/core'
|
||||
import { TuiCell } from '@taiga-ui/layout'
|
||||
import { StartOSDiskInfo } from '../types/api'
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: 'button[server]',
|
||||
template: `
|
||||
<tui-icon icon="@tui.save" />
|
||||
<span tuiTitle>
|
||||
<strong>{{ server().hostname }}.local</strong>
|
||||
<span tuiSubtitle>
|
||||
<b>StartOS Version</b>
|
||||
: {{ server().version }}
|
||||
</span>
|
||||
<span tuiSubtitle>
|
||||
<b>Created</b>
|
||||
: {{ server().timestamp | date: 'medium' }}
|
||||
</span>
|
||||
</span>
|
||||
`,
|
||||
styles: ':host { width: stretch; border-radius: var(--tui-radius-l); }',
|
||||
hostDirectives: [TuiCell],
|
||||
imports: [DatePipe, TuiIcon, TuiTitle],
|
||||
})
|
||||
export class ServerComponent {
|
||||
private readonly dialogs = inject(TuiDialogService)
|
||||
|
||||
readonly server = input.required<StartOSDiskInfo>()
|
||||
}
|
||||
Reference in New Issue
Block a user