Skip to content

Commit

Permalink
chore: remove tui_e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Jul 16, 2024
1 parent f675e61 commit a23400e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
tuiNavigationMain
class="show"
>
<!-- <app-iot /> -->
<router-outlet />
</main>
</div>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {AsyncPipe, CommonModule, isPlatformServer, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, PLATFORM_ID} from '@angular/core';
import {FormControl, ReactiveFormsModule} from '@angular/forms';
import {TUI_IS_E2E} from '@taiga-ui/cdk';
import {TuiButton, TuiDateFormat} from '@taiga-ui/core';
import {TuiProgress} from '@taiga-ui/kit';
import {TuiInputDateModule} from '@taiga-ui/legacy';
Expand All @@ -28,14 +27,13 @@ export class CleaningComponent {
protected readonly control = new FormControl('20-01-2024');
protected readonly control2 = new FormControl();
protected readonly max = 100;
protected readonly value$ =
inject(TUI_IS_E2E) || isPlatformServer(inject(PLATFORM_ID))
? of(30)
: timer(300, 200).pipe(
map((i) => i + 30),
startWith(30),
takeWhile((value) => value <= this.max),
);
protected readonly value$ = isPlatformServer(inject(PLATFORM_ID))
? of(30)
: timer(300, 200).pipe(
map((i) => i + 30),
startWith(30),
takeWhile((value) => value <= this.max),
);

protected readonly color$ = this.value$.pipe(
map((value) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from '@taiga-ui/addon-charts';
import type {TuiDayLike, TuiMapper, TuiMatcher} from '@taiga-ui/cdk';
import {
TUI_IS_E2E,
TuiDay,
TuiDayRange,
TuiFilterPipe,
Expand Down Expand Up @@ -45,7 +44,6 @@ import {map, of} from 'rxjs';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class LineChartComponent {
private readonly isE2E = inject(TUI_IS_E2E);
private readonly months$ = inject(TUI_MONTHS);

protected data = new TuiDayRange(
Expand Down Expand Up @@ -162,14 +160,10 @@ export class LineChartComponent {
...array,
[
from.append({day: i}),
this.isE2E
? initial
: Math.max(
(i ? array[i - 1][1] : initial) +
Math.random() * 10 -
5,
0,
),
Math.max(
(i ? array[i - 1][1] : initial) + Math.random() * 10 - 5,
0,
),
],
],
[],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import {TuiCardLarge, TuiCell} from '@taiga-ui/layout';
})
export class SmallCardComponent {
@Input()
public img!: string;
public img = '';

@Input()
public name!: string;
public name = '';
}

0 comments on commit a23400e

Please sign in to comment.