-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump icons-angular to v19 (#677)
* chore: bump icons-angular to v19 * chore: update example site * chore: bump cross-env to v7
- Loading branch information
Showing
16 changed files
with
153 additions
and
207 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; | ||
import { ApplicationConfig } from '@angular/core'; | ||
|
||
import { AppInterceptor } from './app-interceptor'; | ||
import { provideAntIcons } from '@ant-design/icons-angular'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
{ | ||
provide: HTTP_INTERCEPTORS, | ||
useClass: AppInterceptor, | ||
multi: true | ||
}, | ||
provideAntIcons([]), | ||
provideHttpClient(withInterceptorsFromDi()) | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { bootstrapApplication } from '@angular/platform-browser'; | ||
|
||
import { AppModule } from './app/app.module'; | ||
import { AppComponent } from './app/app.component'; | ||
import { appConfig } from './app/app.config'; | ||
import { environment } from './environments/environment'; | ||
|
||
if (environment.production) { | ||
enableProdMode(); | ||
} | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule) | ||
.catch(err => console.log(err)); | ||
bootstrapApplication(AppComponent, appConfig).catch(err => console.log(err)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IconDirective } from './icon.directive'; | ||
import { IconService } from './icon.service'; | ||
|
||
|
||
/** | ||
* @deprecated Please use `IconDirective` instead, will be removed in v20. | ||
*/ | ||
@NgModule({ | ||
exports: [IconDirective], | ||
declarations: [IconDirective], | ||
providers: [IconService] | ||
imports: [IconDirective], | ||
exports: [IconDirective] | ||
}) | ||
export class IconModule { } | ||
export class IconModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; | ||
import { ANT_ICONS } from "./icon.service"; | ||
import { IconDefinition } from "../types"; | ||
|
||
/** | ||
* Provide icon definitions in root | ||
* | ||
* @param icons Icon definitions | ||
*/ | ||
export function provideAntIcons(icons: IconDefinition[]): EnvironmentProviders { | ||
return makeEnvironmentProviders([ | ||
{ | ||
provide: ANT_ICONS, | ||
useValue: icons | ||
} | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.