Skip to content

Commit

Permalink
fix: remove unused imports and ngx-timeago
Browse files Browse the repository at this point in the history
  • Loading branch information
anninowak committed Mar 28, 2024
1 parent 0aafca3 commit cb980dd
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 89 deletions.
3 changes: 1 addition & 2 deletions libs/angular-accelerator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"chart.js": "^4.4.0",
"d3-scale-chromatic": "^3.0.0",
"rxjs": "~7.8.0",
"primeng": "^15.2.1",
"ngx-timeago": "^2.0.0 | ^3.0.0"
"primeng": "^15.2.1"
},
"dependencies": {},
"exports": {
Expand Down
29 changes: 1 addition & 28 deletions libs/angular-accelerator/src/lib/angular-accelerator.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ import {
TranslateLoader,
TranslateModule,
} from '@ngx-translate/core'
import {
TimeagoClock,
TimeagoCustomFormatter,
TimeagoDefaultClock,
TimeagoFormatter,
TimeagoIntl,
TimeagoModule,
} from 'ngx-timeago'


import { AppStateService, UserService } from '@onecx/angular-integration-interface'

Expand All @@ -38,7 +31,6 @@ import { DynamicPipe } from './pipes/dynamic.pipe'
import { IfPermissionDirective } from './directives/if-permission.directive'
import { IfBreakpointDirective } from './directives/if-breakpoint.directive'
import { OcxTimeAgoPipe } from './pipes/ocxtimeago.pipe'
import { OcxTimeagoIntl } from './utils/ocxtimeagointl.utils'
import { createTranslateLoader } from './utils/create-translate-loader.utils'
import { TranslationCacheService } from './services/translation-cache.service'
import { SrcDirective } from './directives/src.directive'
Expand Down Expand Up @@ -98,25 +90,6 @@ export class AngularAcceleratorMissingTranslationHandler implements MissingTrans
},
deps: [UserService],
},
{
provide: TimeagoIntl,
useFactory: (userService: UserService) => {
return new OcxTimeagoIntl(userService)
},
deps: [UserService],
},
importProvidersFrom(TimeagoModule),
{
provide: TimeagoFormatter,
useFactory: (TimeagoIntl: TimeagoIntl) => {
return new TimeagoCustomFormatter(TimeagoIntl)
},
deps: [TimeagoIntl],
},
{
provide: TimeagoClock,
useClass: TimeagoDefaultClock,
},
],
exports: [
ColumnGroupSelectionComponent,
Expand Down
37 changes: 0 additions & 37 deletions libs/angular-accelerator/src/lib/utils/ocxtimeagointl.utils.ts

This file was deleted.

21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"keycloak-angular": "^13.0.0",
"keycloak-js": "^18.0.0",
"ngx-color": "^8.0.3",
"ngx-timeago": "^3.0.0",
"primeflex": "^3.3.0",
"primeicons": "^6.0.1",
"primeng": "15.2.1",
Expand Down

0 comments on commit cb980dd

Please sign in to comment.