Skip to content

Commit

Permalink
Refactoring and removed font awesome loading from node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Sep 27, 2023
1 parent 94b62af commit a720ac8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"styles": [
"src/styles/startup.scss",
"src/aai/discojuice/discojuice.css",
"node_modules/font-awesome/css/font-awesome.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
{
"input": "src/styles/base-theme.scss",
Expand Down
14 changes: 10 additions & 4 deletions src/app/item-page/item-page.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import {
const ENTRY_COMPONENTS = [
// put only entry components that use custom decorator
PublicationComponent,
UntypedItemComponent,
UntypedItemComponent
];

const DECLARATIONS = [
Expand Down Expand Up @@ -154,8 +154,13 @@ const DECLARATIONS = [
ChartsModule,
NgbModule
],
declarations: [...DECLARATIONS],
exports: [...DECLARATIONS],
declarations: [
...DECLARATIONS,

],
exports: [
...DECLARATIONS
]
})
export class ItemPageModule {
/**
Expand All @@ -165,7 +170,8 @@ export class ItemPageModule {
static withEntryComponents() {
return {
ngModule: ItemPageModule,
providers: ENTRY_COMPONENTS.map((component) => ({ provide: component })),
providers: ENTRY_COMPONENTS.map((component) => ({provide: component}))
};
}

}

0 comments on commit a720ac8

Please sign in to comment.