Skip to content

Commit ee96018

Browse files
committed
Merge branch 'main' into LayZeeDK/docs/use-docusaurus
2 parents 1d59d73 + b714cb6 commit ee96018

File tree

56 files changed

+1532
-762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1532
-762
lines changed

.codecov.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
codecov:
2+
require_ci_to_pass: no
3+
notify:
4+
wait_for_ci: no
5+
6+
coverage:
7+
status:
8+
patch:
9+
default:
10+
target: 90%
11+
project:
12+
default:
13+
target: auto
14+
threshold: 2%
15+
16+
comment:
17+
layout: diff, flags, files
18+
require_changes: true

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ jobs:
5252

5353
- run: yarn nx-cloud stop-all-agents
5454

55+
- name: Upload coverage to Codecov
56+
uses: codecov/codecov-action@v3
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
5560
build-docs:
5661
runs-on: ubuntu-latest
5762

apps/demos/src/app/features/template/pipes/pipes.module.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ import { RouterModule } from '@angular/router';
44
export const ROUTES = [
55
{
66
path: '',
7-
redirectTo: 'push'
8-
},
9-
{
10-
path: 'push',
11-
loadChildren: () =>
12-
import('./push-poc/push-poc.module').then(
13-
m => m.PushPocModule
14-
)
7+
redirectTo: 'memo'
158
},
169
{
1710
path: 'memo',

apps/demos/src/app/features/template/pipes/push-poc/push-poc.routes.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/demos/src/app/features/template/push/push-basic-example/push-basic-example.routes.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/demos/src/app/features/template/pipes/push-poc/push-poc.component.ts renamed to apps/demos/src/app/features/template/push/push-basic/push-basic.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { distinctUntilChanged, map, share, tap } from 'rxjs/operators';
4242
`],
4343
changeDetection: ChangeDetectionStrategy.OnPush
4444
})
45-
export class PushPocComponent {
45+
export class PushBasicComponent {
4646

4747
readonly updateClick = new Subject<void>();
4848
private _numRendered = 0;

apps/demos/src/app/features/template/pipes/push-poc/push-poc.module.ts renamed to apps/demos/src/app/features/template/push/push-basic/push-basic.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { MatButtonModule } from '@angular/material/button';
44
import { RouterModule } from '@angular/router';
55
import { PushModule } from '@rx-angular/template';
66
import { UnpatchModule } from '@rx-angular/template/unpatch';
7-
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks';
8-
import { PushPocComponent } from './push-poc.component';
9-
import { ROUTES } from './push-poc.routes';
7+
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks/index';
8+
import { PushBasicComponent } from './push-basic.component';
9+
import { ROUTES } from './push-basic.routes';
1010

11-
const DECLARATIONS = [PushPocComponent];
11+
const DECLARATIONS = [PushBasicComponent];
1212

1313
@NgModule({
1414
declarations: [DECLARATIONS],
@@ -22,5 +22,5 @@ const DECLARATIONS = [PushPocComponent];
2222
],
2323
exports: [DECLARATIONS]
2424
})
25-
export class PushPocModule {
25+
export class PushBasicModule {
2626
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PushBasicComponent } from './push-basic.component';
2+
3+
export const ROUTES = [
4+
{
5+
path: '',
6+
component: PushBasicComponent
7+
}
8+
];
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
2-
import { BehaviorSubject, Subject } from 'rxjs';
2+
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
33
import { distinctUntilChanged, map, share, shareReplay } from 'rxjs/operators';
44

55
@Component({
@@ -74,7 +74,7 @@ import { distinctUntilChanged, map, share, shareReplay } from 'rxjs/operators';
7474
`],
7575
changeDetection: ChangeDetectionStrategy.OnPush
7676
})
77-
export class PushBasicExampleComponent {
77+
export class PushVsAsyncComponent {
7878

7979
private _depth = 5;
8080
set depth(depth: number) {
@@ -96,7 +96,7 @@ export class PushBasicExampleComponent {
9696
async: 3
9797
};
9898

99-
btnBothClick$ = new BehaviorSubject<any>(1);
99+
btnBothClick$ = new ReplaySubject<any>(1);
100100
readonly value$ = this.updateClick.pipe(
101101
map(() => Math.ceil(Math.random() * 100)),
102102
distinctUntilChanged(),

apps/demos/src/app/features/template/push/push-basic-example/push-basic-example.module.ts renamed to apps/demos/src/app/features/template/push/push-vs-async/push-vs-async.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ import { MatFormFieldModule } from '@angular/material/form-field';
77
import { MatIconModule } from '@angular/material/icon';
88
import { MatInputModule } from '@angular/material/input';
99
import { RouterModule } from '@angular/router';
10-
import { PushModule } from '@rx-angular/template';
10+
import { PushModule } from '@rx-angular/template/push';
1111
import { UnpatchModule } from '@rx-angular/template/unpatch';
1212
import { DirtyChecksModule } from '../../../../shared/debug-helper/dirty-checks';
1313
import { ValueProvidersModule } from '../../../../shared/debug-helper/value-provider/value-providers.module';
1414
import { VisualizerModule } from '../../../../shared/debug-helper/visualizer/visualizer.module';
1515
import { RecursiveModule } from '../../../../shared/template-structures/recursive/recursive.module';
16-
import { PushBasicExampleComponent } from './push-basic-example.component';
17-
import { ROUTES } from './push-basic-example.routes';
16+
import { PushVsAsyncComponent } from './push-vs-async.component';
17+
import { ROUTES } from './push-vs-async.routes';
1818

19-
const DECLARATIONS = [PushBasicExampleComponent];
19+
const DECLARATIONS = [PushVsAsyncComponent];
2020

2121
@NgModule({
2222
declarations: [DECLARATIONS],
@@ -38,5 +38,5 @@ const DECLARATIONS = [PushBasicExampleComponent];
3838
],
3939
exports: [DECLARATIONS]
4040
})
41-
export class PushBasicExampleModule {
41+
export class PushVsAsyncModule {
4242
}

0 commit comments

Comments
 (0)