Skip to content

Commit

Permalink
chore(core): update to latest version of Nx / Angular (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
maartentibau authored Jan 25, 2025
1 parent ff07a47 commit 08b0fee
Show file tree
Hide file tree
Showing 12 changed files with 12,766 additions and 15,448 deletions.
3 changes: 2 additions & 1 deletion apps/angularlogos/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"style": "kebab-case"
}
],
"@typescript-eslint/no-inferrable-types": 0
"@typescript-eslint/no-inferrable-types": 0,
"@angular-eslint/prefer-standalone": "off"
},
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"]
},
Expand Down
9 changes: 4 additions & 5 deletions apps/angularlogos/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
standalone: true,
imports: [RouterOutlet],
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
imports: [RouterOutlet]
})
export class AppComponent {}
11 changes: 5 additions & 6 deletions apps/angularlogos/src/app/logos-list/logos-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import { MatCardModule } from '@angular/material/card';
import { MatButtonModule } from '@angular/material/button';

@Component({
selector: 'app-logos-list',
standalone: true,
imports: [SearchComponent, AsyncPipe, MatCardModule, MatButtonModule, I18nPluralPipe],
templateUrl: './logos-list.component.html',
styleUrls: ['./logos-list.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
selector: 'app-logos-list',
imports: [SearchComponent, AsyncPipe, MatCardModule, MatButtonModule, I18nPluralPipe],
templateUrl: './logos-list.component.html',
styleUrls: ['./logos-list.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class LogosListComponent {

Expand Down
16 changes: 8 additions & 8 deletions apps/angularlogos/src/app/logos/logos.component.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
.intro {
padding: 2rem;
flex: 0 0 auto;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 0.3rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

h1 {
margin-top: 0;
text-align: left;
color: #E90464;
color: #e90464;
font-size: 2.5rem;
font-weight: 700;

Expand Down Expand Up @@ -36,7 +42,7 @@

a {
&.contribute {
background-color: #E90464;
background-color: #e90464;
color: #ffffff;
}
&.remove-underline {
Expand All @@ -48,12 +54,6 @@
font-weight: bold;
font-size: 1.2em;
}

padding: 2rem;
flex: 0 0 auto;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 0.3rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.credits {
Expand Down
9 changes: 4 additions & 5 deletions apps/angularlogos/src/app/logos/logos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import { RouterLink } from '@angular/router';
import { LogosListComponent } from '../logos-list/logos-list.component';

@Component({
selector: 'app-logos',
standalone: true,
imports: [RouterLink, MatButtonModule, LogosListComponent],
templateUrl: './logos.component.html',
styleUrls: ['./logos.component.scss']
selector: 'app-logos',
imports: [RouterLink, MatButtonModule, LogosListComponent],
templateUrl: './logos.component.html',
styleUrls: ['./logos.component.scss']
})
export class LogosComponent {}
9 changes: 4 additions & 5 deletions apps/angularlogos/src/app/metacheck/metacheck.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { LogoEntry } from '../shared/logo-entry';
import { AsyncPipe, JsonPipe } from '@angular/common';

@Component({
selector: 'app-metacheck',
standalone: true,
imports: [JsonPipe, AsyncPipe],
templateUrl: './metacheck.component.html',
styleUrls: ['./metacheck.component.scss']
selector: 'app-metacheck',
imports: [JsonPipe, AsyncPipe],
templateUrl: './metacheck.component.html',
styleUrls: ['./metacheck.component.scss']
})
export class MetacheckComponent {
readonly logosWithoutMetadata$ = inject(DataService).getLogosWithoutMetadata().pipe(
Expand Down
11 changes: 5 additions & 6 deletions apps/angularlogos/src/app/search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import { MatInputModule } from '@angular/material/input';
import { Observable } from 'rxjs';

@Component({
selector: 'app-search',
standalone: true,
imports: [MatInputModule, MatButtonModule, MatFormFieldModule, ReactiveFormsModule],
templateUrl: './search.component.html',
styleUrls: ['./search.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
selector: 'app-search',
imports: [MatInputModule, MatButtonModule, MatFormFieldModule, ReactiveFormsModule],
templateUrl: './search.component.html',
styleUrls: ['./search.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SearchComponent implements OnChanges {
searchControl = new FormControl('', { nonNullable: true });
Expand Down
3 changes: 2 additions & 1 deletion apps/angularlogos/src/assets/styles/angularlogos-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use '@angular/material' as mat;
@include mat.core();
@include mat.elevation-classes();
@include mat.app-background();

$palette: (
50: #fce4ec,
Expand Down
Loading

0 comments on commit 08b0fee

Please sign in to comment.