Start adding editor, fix up sidebar styling

This commit is contained in:
2024-06-22 14:19:23 +09:30
parent c9c7878263
commit 9c2531a034
24 changed files with 489 additions and 81 deletions

View File

@@ -1,4 +1,5 @@
import {
APP_INITIALIZER,
ApplicationConfig,
provideExperimentalZonelessChangeDetection,
} from '@angular/core';
@@ -6,11 +7,39 @@ 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';
export const appConfig: ApplicationConfig = {
providers: [
provideExperimentalZonelessChangeDetection(),
provideRouter(routes),
provideAnimationsAsync(),
{
provide: APP_INITIALIZER,
useValue: () => {
hljs.registerLanguage('json', json);
},
multi: true,
},
{
provide: APP_INITIALIZER,
useFactory: (iconRegistry: MatIconRegistry) => () => {
iconRegistry.registerFontClassAlias(
'material-symbols-rounded',
'material-symbols-rounded'
);
},
deps: [MatIconRegistry],
multi: true,
},
{
provide: MAT_ICON_DEFAULT_OPTIONS,
useValue: { fontSet: 'material-symbols-rounded' },
},
],
};