File tree 20 files changed +243
-557
lines changed
libs/card/src/lib/autocomplete
vite-plugin-angular/src/lib/authoring
20 files changed +243
-557
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 40
40
run : pnpm install --frozen-lockfile --prefer-offline
41
41
42
42
- name : Validate
43
- run : pnpm exec prettier -- check .
43
+ run : pnpm run prettier: check
44
44
45
45
build :
46
46
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
Original file line number Diff line number Diff line change @@ -17,21 +17,21 @@ export const routeMeta: RouteMeta = {
17
17
<h2>Products</h2>
18
18
19
19
@for (product of data().products; track product.id) {
20
- <div>
21
- <h3>
22
- <a
23
- [title]="product.name + ' details'"
24
- [routerLink]="['/products', product.id]"
25
- >
26
- {{ product.name }}
27
- </a>
28
- </h3>
29
- @if ( product.description ) {
30
- <p>Description: {{ product.description }}</p>
31
- }
32
- <button type="button" (click)="share()">Share</button>
33
- <app-product-alerts [product]="product" (notify)="onNotify()" />
34
- </div>
20
+ <div>
21
+ <h3>
22
+ <a
23
+ [title]="product.name + ' details'"
24
+ [routerLink]="['/products', product.id]"
25
+ >
26
+ {{ product.name }}
27
+ </a>
28
+ </h3>
29
+ @if (product.description) {
30
+ <p>Description: {{ product.description }}</p>
31
+ }
32
+ <button type="button" (click)="share()">Share</button>
33
+ <app-product-alerts [product]="product" (notify)="onNotify()" />
34
+ </div>
35
35
}
36
36
` ,
37
37
styles : [
Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ import { CartService } from '../cart.service';
16
16
</p>
17
17
18
18
@for (item of items; track $index) {
19
-
20
- <div class="cart-item">
21
- <span>{{ item.name }} </span>
22
- <span>{{ item.price | currency }}</span>
23
- </div>
19
+ <div class="cart-item">
20
+ <span>{{ item.name }} </span>
21
+ <span>{{ item.price | currency }}</span>
22
+ </div>
24
23
}
25
24
26
25
<form [formGroup]="checkoutForm" (ngSubmit)="onSubmit()">
Original file line number Diff line number Diff line change @@ -13,14 +13,13 @@ import { Product } from '../products';
13
13
template : `
14
14
<h2>Product Details</h2>
15
15
16
- @if ( product ) {
17
-
18
- <div>
19
- <h3>{{ product.name }}</h3>
20
- <h4>{{ product.price | currency }}</h4>
21
- <p>{{ product.description }}</p>
22
- <button type="button" (click)="addToCart(product)">Buy</button>
23
- </div>
16
+ @if (product) {
17
+ <div>
18
+ <h3>{{ product.name }}</h3>
19
+ <h4>{{ product.price | currency }}</h4>
20
+ <p>{{ product.description }}</p>
21
+ <button type="button" (click)="addToCart(product)">Buy</button>
22
+ </div>
24
23
}
25
24
` ,
26
25
} )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import type { load } from './search.server';
20
20
</form>
21
21
22
22
@if (searchTerm()) {
23
- <p>Search Term: {{ searchTerm() }}</p>
23
+ <p>Search Term: {{ searchTerm() }}</p>
24
24
}
25
25
` ,
26
26
} )
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { Product } from '../products';
4
4
@Component ( {
5
5
selector : 'app-product-alerts' ,
6
6
template : `
7
- @if ( product() && product()!.price > 700 ) {
8
- <p>
9
- <button type="button" (click)="notify.emit()">Notify Me</button>
10
- </p>
7
+ @if (product() && product()!.price > 700) {
8
+ <p>
9
+ <button type="button" (click)="notify.emit()">Notify Me</button>
10
+ </p>
11
11
}
12
12
` ,
13
13
} )
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
Original file line number Diff line number Diff line change @@ -44,24 +44,25 @@ type FormErrors =
44
44
<h3>Newsletter Signup</h3>
45
45
46
46
@if (!signedUp()) {
47
- <form
48
- method="post"
49
- (onSuccess)="onSuccess()"
50
- (onError)="onError($any($event))"
51
- (onStateChange)="errors.set(undefined)"
52
- >
53
- <div>
54
- <label for="email"> Email </label>
55
- <input type="email" name="email" />
56
- </div>
57
-
58
- <button class="button" type="submit">Submit</button>
59
- </form>
60
-
61
- @if (errors()?.email) {
62
- <p>{{ errors()?.email }}</p>
63
- } } @else {
64
- <div>Thanks for signing up!</div>
47
+ <form
48
+ method="post"
49
+ (onSuccess)="onSuccess()"
50
+ (onError)="onError($any($event))"
51
+ (onStateChange)="errors.set(undefined)"
52
+ >
53
+ <div>
54
+ <label for="email"> Email </label>
55
+ <input type="email" name="email" />
56
+ </div>
57
+
58
+ <button class="button" type="submit">Submit</button>
59
+ </form>
60
+
61
+ @if (errors()?.email) {
62
+ <p>{{ errors()?.email }}</p>
63
+ }
64
+ } @else {
65
+ <div>Thanks for signing up!</div>
65
66
}
66
67
` ,
67
68
})
@@ -178,7 +179,7 @@ import type { load } from './search.server';
178
179
</form>
179
180
180
181
@if (searchTerm()) {
181
- <p>Search Term: {{ searchTerm() }}</p>
182
+ <p>Search Term: {{ searchTerm() }}</p>
182
183
}
183
184
` ,
184
185
})
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html class ="dark h-full " lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 " />
Original file line number Diff line number Diff line change 10
10
/>
11
11
< mat-autocomplete #autocomplete ="matAutocomplete " autoActiveFirstOption >
12
12
@for (option of filteredOptions(); track option) {
13
- < mat-option [value] ="option.value "> {{ option.label }}</ mat-option >
13
+ < mat-option [value] ="option.value "> {{ option.label }}</ mat-option >
14
14
}
15
15
</ mat-autocomplete >
16
16
</ mat-form-field >
Original file line number Diff line number Diff line change 19
19
"contributors:add" : " all-contributors add" ,
20
20
"contributors:generate" : " all-contributors generate" ,
21
21
"prettify" : " prettier --write ." ,
22
+ "prettier:check" : " prettier --check ." ,
22
23
"build:test" : " nx build ng-app --skip-nx-cache"
23
24
},
24
25
"engines" : {
156
157
"postcss-import" : " ~15.1.0" ,
157
158
"postcss-preset-env" : " ~8.0.1" ,
158
159
"postcss-url" : " ~10.1.3" ,
159
- "prettier" : " ^3.4.2 " ,
160
+ "prettier" : " ^3.5.0 " ,
160
161
"prismjs" : " ^1.29.0" ,
161
162
"prompts" : " ^2.4.2" ,
162
163
"rimraf" : " ^6.0.1" ,
Original file line number Diff line number Diff line change @@ -22,17 +22,19 @@ type CollectedRoute = {
22
22
<div class="header-cell">Type</div>
23
23
</div>
24
24
<div class="table-body">
25
- @for ( collectedRoute of collectedRoutes; track collectedRoute.filename
25
+ @for (
26
+ collectedRoute of collectedRoutes;
27
+ track collectedRoute.filename
26
28
) {
27
- <div class="table-row">
28
- <div class="table-cell">{{ collectedRoute.path }}</div>
29
- <div class="table-cell" [title]="collectedRoute.filename">
30
- {{ collectedRoute.file }}
29
+ <div class="table-row">
30
+ <div class="table-cell">{{ collectedRoute.path }}</div>
31
+ <div class="table-cell" [title]="collectedRoute.filename">
32
+ {{ collectedRoute.file }}
33
+ </div>
34
+ <div class="table-cell">
35
+ {{ collectedRoute.isLayout ? 'Layout' : 'Page' }}
36
+ </div>
31
37
</div>
32
- <div class="table-cell">
33
- {{ collectedRoute.isLayout ? 'Layout' : 'Page' }}
34
- </div>
35
- </div>
36
38
}
37
39
</div>
38
40
</div>
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export class ServerOnly {
98
98
} ;
99
99
}
100
100
return throwError (
101
- ( ) => ( { } as { html : string ; outputs : ServerOutputs } ) ,
101
+ ( ) => ( { } ) as { html : string ; outputs : ServerOutputs } ,
102
102
) ;
103
103
} ) ,
104
104
catchError ( ( error : unknown ) => {
Original file line number Diff line number Diff line change @@ -90,25 +90,25 @@ export type CreateTRPCClientBaseOptions<TRouter extends AnyRouter> =
90
90
transformer ?: 'You must set a transformer on the backend router' ;
91
91
}
92
92
: TRouter [ '_def' ] [ '_config' ] [ 'transformer' ] extends DataTransformerOptions
93
- ? {
94
- /**
95
- * Data transformer
96
- *
97
- * You must use the same transformer on the backend and frontend
98
- * @link https://trpc.io/docs/data-transformers
99
- **/
100
- transformer : TRouter [ '_def' ] [ '_config' ] [ 'transformer' ] extends CombinedDataTransformer
101
- ? DataTransformerOptions
102
- : TRouter [ '_def' ] [ '_config' ] [ 'transformer' ] ;
103
- }
104
- : {
105
- /**
106
- * Data transformer
107
- *
108
- * You must use the same transformer on the backend and frontend
109
- * @link https://trpc.io/docs/data-transformers
110
- **/
111
- transformer ?:
112
- | /** @deprecated **/ ClientDataTransformerOptions
113
- | CombinedDataTransformer ;
114
- } ;
93
+ ? {
94
+ /**
95
+ * Data transformer
96
+ *
97
+ * You must use the same transformer on the backend and frontend
98
+ * @link https://trpc.io/docs/data-transformers
99
+ **/
100
+ transformer : TRouter [ '_def' ] [ '_config' ] [ 'transformer' ] extends CombinedDataTransformer
101
+ ? DataTransformerOptions
102
+ : TRouter [ '_def' ] [ '_config' ] [ 'transformer' ] ;
103
+ }
104
+ : {
105
+ /**
106
+ * Data transformer
107
+ *
108
+ * You must use the same transformer on the backend and frontend
109
+ * @link https://trpc.io/docs/data-transformers
110
+ **/
111
+ transformer ?:
112
+ | /** @deprecated **/ ClientDataTransformerOptions
113
+ | CombinedDataTransformer ;
114
+ } ;
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ type DecorateProcedure<
50
50
query : Resolver < TProcedure > ;
51
51
}
52
52
: TProcedure extends AnyMutationProcedure
53
- ? {
54
- mutate : Resolver < TProcedure > ;
55
- }
56
- : never ;
53
+ ? {
54
+ mutate : Resolver < TProcedure > ;
55
+ }
56
+ : never ;
57
57
58
58
// Removed subscription and using new type
59
59
type DecoratedProcedureRecord <
@@ -66,8 +66,8 @@ type DecoratedProcedureRecord<
66
66
TProcedures [ TKey ]
67
67
>
68
68
: TProcedures [ TKey ] extends AnyProcedure
69
- ? DecorateProcedure < TProcedures [ TKey ] , TRouter >
70
- : never ;
69
+ ? DecorateProcedure < TProcedures [ TKey ] , TRouter >
70
+ : never ;
71
71
} ;
72
72
73
73
// Removed subscription and using new type
Original file line number Diff line number Diff line change @@ -504,8 +504,8 @@ function processAnalogScript(
504
504
scope : hasExportKeyword
505
505
? Scope . Protected
506
506
: isVirtual
507
- ? Scope . Private
508
- : undefined ,
507
+ ? Scope . Private
508
+ : undefined ,
509
509
} ) ;
510
510
if ( name !== ROUTE_META && ! isVirtual ) {
511
511
targetConstructor . addStatements ( ( writer ) => {
You can’t perform that action at this time.
0 commit comments