fix setup wizard styles and remove diagnostic from angular.json (#2656)

This commit is contained in:
Matt Hill
2024-06-25 20:58:24 -06:00
committed by GitHub
parent ab1fdf69c8
commit c16d8a1da1
5 changed files with 42 additions and 151 deletions

View File

@@ -1,12 +1,17 @@
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { IonicModule } from '@ionic/angular'
import { FormsModule } from '@angular/forms'
import { TuiProgressModule } from '@taiga-ui/kit'
import { LoadingPage } from './loading.page'
import { LoadingPageRoutingModule } from './loading-routing.module'
import { IonicModule } from '@ionic/angular'
@NgModule({
imports: [CommonModule, FormsModule, IonicModule, LoadingPageRoutingModule],
imports: [
CommonModule,
IonicModule,
TuiProgressModule,
LoadingPageRoutingModule,
],
declarations: [LoadingPage],
})
export class LoadingPageModule {}

View File

@@ -1,17 +1,23 @@
<section *ngIf="progress$ | async as progress">
<h1 [style.font-size.rem]="2.5" [style.margin.rem]="1">
Setting up your server
</h1>
<div class="center-wrapper" *ngIf="progress.total">
Progress: {{ (progress.total * 100).toFixed(0) }}%
</div>
<progress
tuiProgressBar
class="progress"
[style.max-width.rem]="40"
[style.margin]="'1rem auto'"
[attr.value]="progress.total"
></progress>
<p>{{ progress.message }}</p>
</section>
<ion-content>
<ion-grid>
<ion-row class="ion-align-items-center">
<ion-col>
<section *ngIf="progress$ | async as progress">
<h1 [style.font-size.rem]="2" [style.margin-bottom.rem]="2">
Setting up your server
</h1>
<div *ngIf="progress.total">
Progress: {{ (progress.total * 100).toFixed(0) }}%
</div>
<progress
tuiProgressBar
[style.max-width.rem]="40"
[style.margin]="'1rem auto'"
[attr.value]="progress.total"
></progress>
<p>{{ progress.message }}</p>
</section>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>

View File

@@ -0,0 +1,9 @@
section {
border-radius: 0.25rem;
padding: 3rem;
margin: 2rem;
text-align: center;
background: #e0e0e0;
color: #333;
--tui-clear-inverse: rgba(0, 0, 0, 0.1);
}

View File

@@ -2,7 +2,7 @@
<h1 [style.font-size.rem]="2.5" [style.margin.rem]="1">
Initializing StartOS
</h1>
<div class="center-wrapper" *ngIf="progress.total">
<div *ngIf="progress.total">
Progress: {{ (progress.total * 100).toFixed(0) }}%
</div>