Skip to content

Commit

Permalink
chore: code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Oct 26, 2024
1 parent 8f13343 commit a841bcc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/components/plh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NgModule, Type } from "@angular/core";
import type { ITemplateRowProps } from "src/app/shared/components/template/models";
import { CommonModule } from "@angular/common";
import { IonicModule } from "@ionic/angular";
import { TemplatePipesModule } from "src/app/shared/components/template/pipes/template-pipes.module";
import { TemplatePipesModule } from "src/app/shared/components/template/pipes";
import { LottieModule } from "ngx-lottie";
import { PlhParentPointCounterComponent } from "./parent-point-counter/parent-point-counter.component";
import { PlhParentPointBoxComponent } from "./parent-point-box/parent-point-box.component";
Expand Down
12 changes: 11 additions & 1 deletion src/app/shared/components/template/pipes/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";

import { FilterDisplayComponentPipe } from "./filter-display-component.pipe";
import { LatexPipe } from "./latex.pipe";
import { MarkdownPipe } from "./markdown.pipe";
Expand All @@ -7,7 +10,7 @@ import { StyleListPipe } from "./styleList.pipe";
import { TranslatePipe } from "./translate.pipe";
import { QRCodePipe } from "./qr-code.pipe";

export const TEMPLATE_PIPES = [
const TEMPLATE_PIPES = [
FilterDisplayComponentPipe,
MarkdownPipe,
PLHAssetPipe,
Expand All @@ -17,3 +20,10 @@ export const TEMPLATE_PIPES = [
LatexPipe,
QRCodePipe,
];

@NgModule({
declarations: [...TEMPLATE_PIPES],
exports: [...TEMPLATE_PIPES],
imports: [CommonModule],
})
export class TemplatePipesModule {}
10 changes: 0 additions & 10 deletions src/app/shared/components/template/pipes/template-pipes.module.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/shared/components/template/template.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { TmplCompHostDirective, TemplateComponent } from "./template-component";

import { appendStyleSvgDirective } from "./directives/shadowStyleSvg.directive";
import { createCustomElement } from "@angular/elements";
import { TemplatePipesModule } from "./pipes/template-pipes.module";
import { TemplatePipesModule } from "./pipes";

@NgModule({
imports: [
Expand Down

0 comments on commit a841bcc

Please sign in to comment.