Remove unnecesary fixme/todo

pull/5914/merge
Chocobozzz 2023-07-28 15:20:49 +02:00
parent 2bfc8ce3d0
commit 65bb29c6d3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
8 changed files with 2 additions and 10 deletions

View File

@ -36,7 +36,6 @@ export class HtmlRendererService {
}
private async loadSanitizeHtml () {
// FIXME: import('..') returns a struct module, containing a "default" field corresponding to our sanitizeHtml function
this.sanitizeHtml = (await import('sanitize-html') as any).default
this.sanitizeHtml = (await import('sanitize-html')).default
}
}

View File

@ -146,8 +146,7 @@ export class MarkdownService {
}
private async createMarkdownIt (config: MarkdownConfig) {
// FIXME: import('...') returns a struct module, containing a "default" field
const MarkdownItClass: typeof import ('markdown-it') = (await import('markdown-it') as any).default
const MarkdownItClass = (await import('markdown-it')).default
const markdownIt = new MarkdownItClass('zero', { linkify: true, breaks: config.breaks, html: config.html })

View File

@ -195,7 +195,6 @@ export class ServerService {
}
private loadHTMLConfigLocally () {
// FIXME: typings
const configString = (window as any)['PeerTubeServerConfig']
if (!configString) {
throw new Error('Could not find PeerTubeServerConfig in HTML')

View File

@ -130,7 +130,6 @@ export class User implements UserServerModel {
patch (obj: UserServerModel) {
for (const key of objectKeysTyped(obj)) {
// FIXME: typings
(this as any)[key] = obj[key]
}

View File

@ -70,7 +70,6 @@ export class VideoEdit implements VideoUpdate {
patch (values: { [ id: string ]: any }) {
objectKeysTyped(values).forEach(key => {
// FIXME: typings
(this as any)[key] = values[key]
})

View File

@ -106,7 +106,6 @@ export class VideoShareComponent {
includeVideoInPlaylist: false
}, {
set: (target, prop, value) => {
// FIXME: typings
(target as any)[prop] = value
if (prop === 'embedP2P') {

View File

@ -83,7 +83,6 @@ export class VideoFilters {
for (const [ key, value ] of this.defaultValues) {
if (specificKey && specificKey !== key) continue
// FIXME: typings
(this as any)[key] = value
}

View File

@ -71,7 +71,6 @@
</div>
<div class="video-actions">
<!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 -->
<my-video-actions-dropdown
*ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto"
(videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()"