diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-28 15:20:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-28 15:20:49 +0200 |
commit | 65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d (patch) | |
tree | 209ec225f0482bf84af964840d89711fa0cf480d | |
parent | 2bfc8ce3d01a37284e3cd241816071f189cf5d8d (diff) | |
download | PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.tar.gz PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.tar.zst PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.zip |
Remove unnecesary fixme/todo
8 files changed, 2 insertions, 10 deletions
diff --git a/client/src/app/core/renderer/html-renderer.service.ts b/client/src/app/core/renderer/html-renderer.service.ts index d158519f8..7776ccad5 100644 --- a/client/src/app/core/renderer/html-renderer.service.ts +++ b/client/src/app/core/renderer/html-renderer.service.ts | |||
@@ -36,7 +36,6 @@ export class HtmlRendererService { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | private async loadSanitizeHtml () { | 38 | private async loadSanitizeHtml () { |
39 | // FIXME: import('..') returns a struct module, containing a "default" field corresponding to our sanitizeHtml function | 39 | this.sanitizeHtml = (await import('sanitize-html')).default |
40 | this.sanitizeHtml = (await import('sanitize-html') as any).default | ||
41 | } | 40 | } |
42 | } | 41 | } |
diff --git a/client/src/app/core/renderer/markdown.service.ts b/client/src/app/core/renderer/markdown.service.ts index dd23a1b01..ec3b683bb 100644 --- a/client/src/app/core/renderer/markdown.service.ts +++ b/client/src/app/core/renderer/markdown.service.ts | |||
@@ -146,8 +146,7 @@ export class MarkdownService { | |||
146 | } | 146 | } |
147 | 147 | ||
148 | private async createMarkdownIt (config: MarkdownConfig) { | 148 | private async createMarkdownIt (config: MarkdownConfig) { |
149 | // FIXME: import('...') returns a struct module, containing a "default" field | 149 | const MarkdownItClass = (await import('markdown-it')).default |
150 | const MarkdownItClass: typeof import ('markdown-it') = (await import('markdown-it') as any).default | ||
151 | 150 | ||
152 | const markdownIt = new MarkdownItClass('zero', { linkify: true, breaks: config.breaks, html: config.html }) | 151 | const markdownIt = new MarkdownItClass('zero', { linkify: true, breaks: config.breaks, html: config.html }) |
153 | 152 | ||
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 122c3d37d..41cb4791a 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -195,7 +195,6 @@ export class ServerService { | |||
195 | } | 195 | } |
196 | 196 | ||
197 | private loadHTMLConfigLocally () { | 197 | private loadHTMLConfigLocally () { |
198 | // FIXME: typings | ||
199 | const configString = (window as any)['PeerTubeServerConfig'] | 198 | const configString = (window as any)['PeerTubeServerConfig'] |
200 | if (!configString) { | 199 | if (!configString) { |
201 | throw new Error('Could not find PeerTubeServerConfig in HTML') | 200 | throw new Error('Could not find PeerTubeServerConfig in HTML') |
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index 5aa02e472..54b749a4c 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -130,7 +130,6 @@ export class User implements UserServerModel { | |||
130 | 130 | ||
131 | patch (obj: UserServerModel) { | 131 | patch (obj: UserServerModel) { |
132 | for (const key of objectKeysTyped(obj)) { | 132 | for (const key of objectKeysTyped(obj)) { |
133 | // FIXME: typings | ||
134 | (this as any)[key] = obj[key] | 133 | (this as any)[key] = obj[key] |
135 | } | 134 | } |
136 | 135 | ||
diff --git a/client/src/app/shared/shared-main/video/video-edit.model.ts b/client/src/app/shared/shared-main/video/video-edit.model.ts index 1b8b67ee2..9129ab93f 100644 --- a/client/src/app/shared/shared-main/video/video-edit.model.ts +++ b/client/src/app/shared/shared-main/video/video-edit.model.ts | |||
@@ -70,7 +70,6 @@ export class VideoEdit implements VideoUpdate { | |||
70 | 70 | ||
71 | patch (values: { [ id: string ]: any }) { | 71 | patch (values: { [ id: string ]: any }) { |
72 | objectKeysTyped(values).forEach(key => { | 72 | objectKeysTyped(values).forEach(key => { |
73 | // FIXME: typings | ||
74 | (this as any)[key] = values[key] | 73 | (this as any)[key] = values[key] |
75 | }) | 74 | }) |
76 | 75 | ||
diff --git a/client/src/app/shared/shared-share-modal/video-share.component.ts b/client/src/app/shared/shared-share-modal/video-share.component.ts index da4f2a4b4..b09222c3e 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.ts +++ b/client/src/app/shared/shared-share-modal/video-share.component.ts | |||
@@ -106,7 +106,6 @@ export class VideoShareComponent { | |||
106 | includeVideoInPlaylist: false | 106 | includeVideoInPlaylist: false |
107 | }, { | 107 | }, { |
108 | set: (target, prop, value) => { | 108 | set: (target, prop, value) => { |
109 | // FIXME: typings | ||
110 | (target as any)[prop] = value | 109 | (target as any)[prop] = value |
111 | 110 | ||
112 | if (prop === 'embedP2P') { | 111 | if (prop === 'embedP2P') { |
diff --git a/client/src/app/shared/shared-video-miniature/video-filters.model.ts b/client/src/app/shared/shared-video-miniature/video-filters.model.ts index 4db73b25a..f57a45eb1 100644 --- a/client/src/app/shared/shared-video-miniature/video-filters.model.ts +++ b/client/src/app/shared/shared-video-miniature/video-filters.model.ts | |||
@@ -83,7 +83,6 @@ export class VideoFilters { | |||
83 | for (const [ key, value ] of this.defaultValues) { | 83 | for (const [ key, value ] of this.defaultValues) { |
84 | if (specificKey && specificKey !== key) continue | 84 | if (specificKey && specificKey !== key) continue |
85 | 85 | ||
86 | // FIXME: typings | ||
87 | (this as any)[key] = value | 86 | (this as any)[key] = value |
88 | } | 87 | } |
89 | 88 | ||
diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.html b/client/src/app/shared/shared-video-miniature/video-miniature.component.html index 9e0a4f79b..5c3140b58 100644 --- a/client/src/app/shared/shared-video-miniature/video-miniature.component.html +++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.html | |||
@@ -71,7 +71,6 @@ | |||
71 | </div> | 71 | </div> |
72 | 72 | ||
73 | <div class="video-actions"> | 73 | <div class="video-actions"> |
74 | <!-- FIXME: remove bottom placement when overflow is fixed in bootstrap dropdown: https://github.com/ng-bootstrap/ng-bootstrap/issues/3495 --> | ||
75 | <my-video-actions-dropdown | 74 | <my-video-actions-dropdown |
76 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" | 75 | *ngIf="showActions" [video]="video" [displayOptions]="videoActionsDisplayOptions" placement="bottom-left bottom-right left auto" |
77 | (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()" | 76 | (videoRemoved)="onVideoRemoved()" (videoBlocked)="onVideoBlocked()" (videoUnblocked)="onVideoUnblocked()" (videoAccountMuted)="onVideoAccountMuted()" |