mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +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>
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import { ChangeDetectionStrategy, Component, Injectable } from '@angular/core'
|
|
import { TuiPopoverService } from '@taiga-ui/cdk'
|
|
import { TUI_DIALOGS, TuiLoader } from '@taiga-ui/core'
|
|
import { injectContext } from '@taiga-ui/polymorpheus'
|
|
import { i18nPipe } from '../i18n/i18n.pipe'
|
|
import { i18nKey } from '../i18n/i18n.providers'
|
|
|
|
@Component({
|
|
template: '<tui-loader [textContent]="content | i18n" />',
|
|
styles: `
|
|
:host {
|
|
display: flex;
|
|
align-items: center;
|
|
max-width: 80%;
|
|
margin: auto;
|
|
padding: 1.5rem;
|
|
background: var(--tui-background-elevation-1);
|
|
border-radius: var(--tui-radius-m);
|
|
box-shadow: var(--tui-shadow-popup);
|
|
|
|
--tui-background-accent-1: var(--tui-status-warning);
|
|
}
|
|
|
|
tui-loader {
|
|
flex-shrink: 0;
|
|
min-width: 2rem;
|
|
}
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
imports: [TuiLoader, i18nPipe],
|
|
})
|
|
class LoadingComponent {
|
|
readonly content = injectContext<{ content: i18nKey }>().content
|
|
}
|
|
|
|
@Injectable({
|
|
providedIn: `root`,
|
|
useFactory: () => new LoadingService(TUI_DIALOGS, LoadingComponent),
|
|
})
|
|
export class LoadingService extends TuiPopoverService<unknown> {
|
|
override open<G = void>(textContent: i18nKey | '' = '') {
|
|
return super.open<G>(textContent)
|
|
}
|
|
}
|