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 /client/src/app/core | |
parent | 2bfc8ce3d01a37284e3cd241816071f189cf5d8d (diff) | |
download | PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.tar.gz PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.tar.zst PeerTube-65bb29c6d37a96cd0cae738f8dea07f3a3b5bc3d.zip |
Remove unnecesary fixme/todo
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/renderer/html-renderer.service.ts | 3 | ||||
-rw-r--r-- | client/src/app/core/renderer/markdown.service.ts | 3 | ||||
-rw-r--r-- | client/src/app/core/server/server.service.ts | 1 | ||||
-rw-r--r-- | client/src/app/core/users/user.model.ts | 1 |
4 files changed, 2 insertions, 6 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 | ||