mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-05-17 04:12:40 +00:00
338633ce72
They can prevent tree shaking
29 lines
1 KiB
TypeScript
29 lines
1 KiB
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'
|
|
import { NgIf } from '@angular/common'
|
|
import { MarkdownTextareaComponent } from '../../../shared/shared-forms/markdown-textarea.component'
|
|
import { CustomMarkupHelpComponent } from '../../../shared/shared-custom-markup/custom-markup-help.component'
|
|
import { CustomMarkupService } from '@app/shared/shared-custom-markup/custom-markup.service'
|
|
|
|
@Component({
|
|
selector: 'my-edit-homepage',
|
|
templateUrl: './edit-homepage.component.html',
|
|
styleUrls: [ './edit-custom-config.component.scss' ],
|
|
standalone: true,
|
|
imports: [ FormsModule, ReactiveFormsModule, CustomMarkupHelpComponent, MarkdownTextareaComponent, NgIf ]
|
|
})
|
|
export class EditHomepageComponent {
|
|
@Input() form: FormGroup
|
|
@Input() formErrors: any
|
|
|
|
customMarkdownRenderer: (text: string) => Promise<HTMLElement>
|
|
|
|
constructor (private customMarkup: CustomMarkupService) {
|
|
|
|
}
|
|
|
|
getCustomMarkdownRenderer () {
|
|
return this.customMarkup.getCustomMarkdownRenderer()
|
|
}
|
|
}
|