Skip to content

Commit

Permalink
Resolve scss warning in custom angular scss and remove moment and ang…
Browse files Browse the repository at this point in the history
…ular material moment adapter to see if we still need it
  • Loading branch information
RandomTannenbaum committed Jan 15, 2025
1 parent c2133f8 commit 974e400
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 35 deletions.
25 changes: 0 additions & 25 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
"@angular/core": "^19.0.3",
"@angular/forms": "^19.0.3",
"@angular/material": "^19.0.2",
"@angular/material-moment-adapter": "^19.0.2",
"@angular/platform-browser": "^19.0.3",
"@angular/platform-browser-dynamic": "^19.0.3",
"@angular/router": "^19.0.3",
"@ngx-translate/core": "^16.0.4",
"@ngx-translate/http-loader": "^16.0.0",
"angular-oauth2-oidc": "^19.0.0",
"bootstrap": "^5.3.3",
"moment": "^2.30.1",
"ngx-toastr": "^19.0.0",
"rxjs": "^7.8.1",
"tslib": "^2.8.1"
Expand Down
8 changes: 1 addition & 7 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import { ToastrModule } from 'ngx-toastr';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';
import { MomentDateAdapter } from '@angular/material-moment-adapter';
import { MAT_DATE_FORMATS } from '@angular/material/core';
import { OAuthModule, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
Expand Down Expand Up @@ -173,11 +172,6 @@ export const MY_FORMATS = {
SharedModule
],
providers: [
{
provide: DateAdapter,
useClass: MomentDateAdapter,
deps: [MAT_DATE_LOCALE]
},
{ provide: MAT_DATE_FORMATS,
useValue: MY_FORMATS },
{ provide: HTTP_INTERCEPTORS,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/style/_custom_angular.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ $pz-theme: mat.m2-define-light-theme(
@include mat.all-component-themes($pz-theme);

.header-form-field {
@include mat.form-field-density(-4);
border-radius: 5px;
@include mat.form-field-density(-4);
}

0 comments on commit 974e400

Please sign in to comment.