mirror of https://github.com/Chocobozzz/PeerTube
Remove unnecesary fixme/todo
parent
2bfc8ce3d0
commit
65bb29c6d3
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 })
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
|
@ -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]
|
||||
})
|
||||
|
||||
|
|
|
@ -106,7 +106,6 @@ export class VideoShareComponent {
|
|||
includeVideoInPlaylist: false
|
||||
}, {
|
||||
set: (target, prop, value) => {
|
||||
// FIXME: typings
|
||||
(target as any)[prop] = value
|
||||
|
||||
if (prop === 'embedP2P') {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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()"
|
||||
|
|
Loading…
Reference in New Issue