diff --git a/materialious/electron/package.json b/materialious/electron/package.json index 0bdf6b29..e7534f19 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -24,6 +24,7 @@ "dependencies": { "@capacitor-community/electron": "^5.0.0", "bgutils-js": "^3.2.0", + "capacitor-nodejs": "https://github.com/hampoelz/capacitor-nodejs/releases/download/v1.0.0-beta.9/capacitor-nodejs.tgz", "chokidar": "~4.0.3", "electron-is-dev": "~2.0.0", "electron-serve": "~3.0.0", @@ -43,4 +44,4 @@ "capacitor", "electron" ] -} \ No newline at end of file +} diff --git a/materialious/electron/src/rt/electron-plugins.js b/materialious/electron/src/rt/electron-plugins.js index b33b2826..5f312366 100644 --- a/materialious/electron/src/rt/electron-plugins.js +++ b/materialious/electron/src/rt/electron-plugins.js @@ -1,4 +1,6 @@ /* eslint-disable @typescript-eslint/no-var-requires */ +const CapacitorNodejs = require('../../../node_modules/capacitor-nodejs/electron/dist/plugin.js'); module.exports = { + CapacitorNodejs, } \ No newline at end of file diff --git a/materialious/src/lib/api/model.ts b/materialious/src/lib/api/model.ts index a9e4057f..3dd8672a 100644 --- a/materialious/src/lib/api/model.ts +++ b/materialious/src/lib/api/model.ts @@ -36,7 +36,6 @@ export interface Video extends VideoBase { authorVerified: boolean; description: string; descriptionHtml: string; - viewCount: number; published: number; publishedText: string; premiereTimestamp: number; @@ -91,6 +90,7 @@ export interface VideoPlay extends Video { keywords: string[]; likeCount: number; dislikeCount: number; + viewCount: number; subCountText: string; allowRatings: boolean; rating: number; diff --git a/materialious/src/lib/components/Comment.svelte b/materialious/src/lib/components/Comment.svelte index 70364bed..e657e399 100644 --- a/materialious/src/lib/components/Comment.svelte +++ b/materialious/src/lib/components/Comment.svelte @@ -94,11 +94,9 @@ {/if} {#if replies} -
- {#each replies.comments as reply} - - {/each} -
+ {#each replies.comments as reply} + + {/each} {/if} diff --git a/materialious/src/lib/components/Thumbnail.svelte b/materialious/src/lib/components/Thumbnail.svelte index 1e7a1f19..5f9596c0 100644 --- a/materialious/src/lib/components/Thumbnail.svelte +++ b/materialious/src/lib/components/Thumbnail.svelte @@ -1,7 +1,7 @@