mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
* fix Tor logs actually fetching od logs * chore: update to Angular 18 * chore: update to Angular 19 * bump patchDB * chore: update Angular * chore: fix setup-wizard success page * chore: fix * chore: fix * chore: fix * chore: fix --------- Co-authored-by: Matt Hill <mattnine@protonmail.com> Co-authored-by: Aiden McClelland <me@drbonez.dev>
29 lines
820 B
TypeScript
29 lines
820 B
TypeScript
import { TuiIcon, TuiTitle } from '@taiga-ui/core'
|
|
import { Component, Input } from '@angular/core'
|
|
import { UnitConversionPipesModule } from '../pipes/unit-conversion/unit-conversion.module'
|
|
|
|
@Component({
|
|
selector: 'button[drive]',
|
|
template: `
|
|
<tui-icon icon="@tui.save" />
|
|
<span tuiTitle>
|
|
<strong>{{ drive.logicalname }}</strong>
|
|
<span tuiSubtitle>
|
|
{{ drive.vendor || 'Unknown Vendor' }} -
|
|
{{ drive.model || 'Unknown Model' }}
|
|
</span>
|
|
<span tuiSubtitle>Capacity: {{ drive.capacity | convertBytes }}</span>
|
|
<ng-content />
|
|
</span>
|
|
`,
|
|
imports: [TuiIcon, TuiTitle, UnitConversionPipesModule],
|
|
})
|
|
export class DriveComponent {
|
|
@Input() drive!: {
|
|
logicalname: string | null
|
|
vendor: string | null
|
|
model: string | null
|
|
capacity: number
|
|
}
|
|
}
|