mdi is added

This commit is contained in:
병준 박 2022-08-30 09:55:33 +00:00
parent ad7e2f6eca
commit 9275e0f3a3
4 changed files with 29 additions and 2 deletions

View File

@ -39,6 +39,11 @@
"glob": "_redirects", "glob": "_redirects",
"input": "src", "input": "src",
"output": "/" "output": "/"
},
{
"glob": "mdi.svg",
"input": "./node_modules/@mdi/angular-material",
"output": "./assets"
} }
], ],
"stylePreprocessorOptions": { "stylePreprocessorOptions": {

11
package-lock.json generated
View File

@ -20,6 +20,7 @@
"@angular/platform-browser": "13.2.3", "@angular/platform-browser": "13.2.3",
"@angular/platform-browser-dynamic": "13.2.3", "@angular/platform-browser-dynamic": "13.2.3",
"@angular/router": "13.2.3", "@angular/router": "13.2.3",
"@mdi/angular-material": "^7.0.96",
"@ngneat/transloco": "3.1.4", "@ngneat/transloco": "3.1.4",
"apexcharts": "3.33.1", "apexcharts": "3.33.1",
"crypto-js": "3.3.0", "crypto-js": "3.3.0",
@ -2591,6 +2592,11 @@
"node": ">=6.0.0" "node": ">=6.0.0"
} }
}, },
"node_modules/@mdi/angular-material": {
"version": "7.0.96",
"resolved": "https://registry.npmjs.org/@mdi/angular-material/-/angular-material-7.0.96.tgz",
"integrity": "sha512-OhDDOHSKstrG4jozg9d/0yOxeqRwAqsgkwOWWKwC8wYwbS1jErzKvOFT3mu+8Wk7GB77Coi9JrRxAVmlQEq84w=="
},
"node_modules/@ngneat/transloco": { "node_modules/@ngneat/transloco": {
"version": "3.1.4", "version": "3.1.4",
"resolved": "https://registry.npmjs.org/@ngneat/transloco/-/transloco-3.1.4.tgz", "resolved": "https://registry.npmjs.org/@ngneat/transloco/-/transloco-3.1.4.tgz",
@ -16140,6 +16146,11 @@
"integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==", "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==",
"dev": true "dev": true
}, },
"@mdi/angular-material": {
"version": "7.0.96",
"resolved": "https://registry.npmjs.org/@mdi/angular-material/-/angular-material-7.0.96.tgz",
"integrity": "sha512-OhDDOHSKstrG4jozg9d/0yOxeqRwAqsgkwOWWKwC8wYwbS1jErzKvOFT3mu+8Wk7GB77Coi9JrRxAVmlQEq84w=="
},
"@ngneat/transloco": { "@ngneat/transloco": {
"version": "3.1.4", "version": "3.1.4",
"resolved": "https://registry.npmjs.org/@ngneat/transloco/-/transloco-3.1.4.tgz", "resolved": "https://registry.npmjs.org/@ngneat/transloco/-/transloco-3.1.4.tgz",

View File

@ -25,6 +25,7 @@
"@angular/platform-browser": "13.2.3", "@angular/platform-browser": "13.2.3",
"@angular/platform-browser-dynamic": "13.2.3", "@angular/platform-browser-dynamic": "13.2.3",
"@angular/router": "13.2.3", "@angular/router": "13.2.3",
"@mdi/angular-material": "^7.0.96",
"@ngneat/transloco": "3.1.4", "@ngneat/transloco": "3.1.4",
"apexcharts": "3.33.1", "apexcharts": "3.33.1",
"crypto-js": "3.3.0", "crypto-js": "3.3.0",

View File

@ -1,9 +1,11 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule, DomSanitizer } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ExtraOptions, PreloadAllModules, RouterModule } from '@angular/router'; import { ExtraOptions, PreloadAllModules, RouterModule } from '@angular/router';
// import { MatIconRegistry, MatIconModule } from '@angular/material/icon'; // import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
import { MarkdownModule } from 'ngx-markdown'; import { MarkdownModule } from 'ngx-markdown';
import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
import { FuseModule } from '@fuse'; import { FuseModule } from '@fuse';
import { FuseConfigModule } from '@fuse/services/config'; import { FuseConfigModule } from '@fuse/services/config';
import { FuseMockApiModule } from '@fuse/lib/mock-api'; import { FuseMockApiModule } from '@fuse/lib/mock-api';
@ -49,6 +51,8 @@ const routerConfig: ExtraOptions = {
// Layout module of your application // Layout module of your application
LayoutModule, LayoutModule,
MatIconModule,
// 3rd party modules that require global configuration via forRoot // 3rd party modules that require global configuration via forRoot
MarkdownModule.forRoot({}), MarkdownModule.forRoot({}),
@ -64,4 +68,10 @@ const routerConfig: ExtraOptions = {
], ],
bootstrap: [AppComponent], bootstrap: [AppComponent],
}) })
export class AppModule {} export class AppModule {
constructor(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer) {
matIconRegistry.addSvgIconSet(
domSanitizer.bypassSecurityTrustResourceUrl('./assets/mdi.svg')
);
}
}