Skip to content

Commit

Permalink
MARP-1689 Remove Markdown-it
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Dec 25, 2024
1 parent 8ce6ce4 commit 5aed9f8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 35 deletions.
1 change: 0 additions & 1 deletion marketplace-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"markdown-it-github-alerts": "^0.3.0",
"marked": "^12.0.0",
"ngx-cookie-service": "^18.0.0",
"ngx-markdown": "^18.0.0",
"ngx-matomo-client": "^6.3.1",
"ngxtension": "^3.5.5",
"rxjs": "~7.8.0",
Expand Down
10 changes: 0 additions & 10 deletions marketplace-ui/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { ApplicationConfig, importProvidersFrom, provideZoneChangeDetection } fr
import { InMemoryScrollingFeature, InMemoryScrollingOptions, provideRouter, withInMemoryScrolling } from '@angular/router';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { routes } from './app.routes';
import { MARKED_OPTIONS, MarkdownModule } from 'ngx-markdown';
import { markedOptionsFactory } from './core/configs/markdown.config';
import { httpLoaderFactory } from './core/configs/translate.config';
import { apiInterceptor } from './core/interceptors/api.interceptor';
import { provideMatomo, withRouter } from 'ngx-matomo-client';
Expand Down Expand Up @@ -38,14 +36,6 @@ export const appConfig: ApplicationConfig = {
deps: [HttpClient]
}
})
),
importProvidersFrom(
MarkdownModule.forRoot({
markedOptions: {
provide: MARKED_OPTIONS,
useFactory: markedOptionsFactory
}
})
)
]
};
16 changes: 0 additions & 16 deletions marketplace-ui/src/app/core/configs/markdown.config.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { By, DomSanitizer, Title } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { Viewport } from 'karma-viewport/dist/adapter/viewport';
import { MarkdownModule } from 'ngx-markdown';
import { of } from 'rxjs';
import { TypeOption } from '../../../shared/enums/type-option.enum';
import {
Expand Down Expand Up @@ -92,7 +91,6 @@ describe('ProductDetailComponent', () => {
imports: [
ProductDetailComponent,
TranslateModule.forRoot(),
MarkdownModule.forRoot(),
MatomoTestingModule.forRoot()
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
import { ActivatedRoute, Router } from '@angular/router';
import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { MarkdownModule, MarkdownService } from 'ngx-markdown';
import { forkJoin, map, Observable } from 'rxjs';
import { AuthService } from '../../../auth/auth.service';
import { LanguageService } from '../../../core/services/language/language.service';
Expand Down Expand Up @@ -76,7 +75,6 @@ const DEFAULT_ACTIVE_TAB = 'description';
CommonModule,
ProductStarRatingNumberComponent,
TranslateModule,
MarkdownModule,
ProductDetailInformationTabComponent,
ProductDetailMavenContentComponent,
NgbNavModule,
Expand All @@ -90,7 +88,7 @@ const DEFAULT_ACTIVE_TAB = 'description';
EmptyProductDetailPipe,
LoadingSpinnerComponent
],
providers: [ProductService, MarkdownService],
providers: [ProductService],
templateUrl: './product-detail.component.html',
styleUrl: './product-detail.component.scss'
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ProductInstallationCountActionComponent } from './product-installation-count-action.component';
import {MarkdownModule} from "ngx-markdown";
import {TranslateModule} from "@ngx-translate/core";

describe('ProductInstallationCountActionComponent', () => {
Expand All @@ -12,8 +11,7 @@ describe('ProductInstallationCountActionComponent', () => {
await TestBed.configureTestingModule({
imports: [
ProductInstallationCountActionComponent,
TranslateModule.forRoot(),
MarkdownModule.forRoot()
TranslateModule.forRoot()
]
})
.compileComponents();
Expand Down

0 comments on commit 5aed9f8

Please sign in to comment.