Remove invalid icon reference
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, computed, effect, signal } from '@angular/core';
|
||||
import { Component, computed, signal } from '@angular/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule, MatIconRegistry } from '@angular/material/icon';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import { MatTreeModule } from '@angular/material/tree';
|
||||
@@ -15,8 +15,6 @@ import {
|
||||
} from './file-tree/file-tree.component';
|
||||
import { ProtoMessage } from './model/proto-message.model';
|
||||
import { ProtoDefinitionSelectorComponent } from './proto-definition-selector/proto-definition-selector.component';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
const mobileBreakpoints = [Breakpoints.Handset, Breakpoints.TabletPortrait];
|
||||
|
||||
@Component({
|
||||
@@ -50,20 +48,11 @@ export class AppComponent {
|
||||
|
||||
protected selectedFilePath = computed(() => this.selectedFile()?.path);
|
||||
|
||||
constructor(
|
||||
private breakpointObserver: BreakpointObserver,
|
||||
iconRegistry: MatIconRegistry,
|
||||
sanitizer: DomSanitizer
|
||||
) {
|
||||
constructor(private breakpointObserver: BreakpointObserver) {
|
||||
breakpointObserver
|
||||
.observe(mobileBreakpoints)
|
||||
.pipe(takeUntilDestroyed())
|
||||
.subscribe((matches) => this.isMobile.set(matches.matches));
|
||||
|
||||
iconRegistry.addSvgIcon(
|
||||
'bufpiv',
|
||||
sanitizer.bypassSecurityTrustResourceUrl('/BufPiv Logo Grey.svg')
|
||||
);
|
||||
}
|
||||
|
||||
protected selectMessage(message: ProtoMessage) {
|
||||
|
||||
@@ -5,16 +5,15 @@ import {
|
||||
} from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
||||
import { routes } from './app.routes';
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import json from 'highlight.js/lib/languages/json';
|
||||
import {
|
||||
MAT_ICON_DEFAULT_OPTIONS,
|
||||
MatIconRegistry,
|
||||
} from '@angular/material/icon';
|
||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import json from 'highlight.js/lib/languages/json';
|
||||
import { provideMonacoEditor } from 'ngx-monaco-editor-v2';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import { routes } from './app.routes';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
@@ -44,6 +43,5 @@ export const appConfig: ApplicationConfig = {
|
||||
useValue: { fontSet: 'material-symbols-rounded' },
|
||||
},
|
||||
provideMonacoEditor(),
|
||||
provideHttpClient(),
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user