Implement PWA, client-side Watch History and cleanup

Squashed commit of the following:

commit a1c18c7903
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 21:46:45 2021 +0530

    Minor UI change

commit 82783a4fb2
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 21:23:15 2021 +0530

    Format date and time the Right Way (™️)

commit 1b0d87e81d
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 21:17:41 2021 +0530

    A few fixes and a basic implementation

commit 7e5d057d37
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 19:58:10 2021 +0530

    Add PouchDB and add the basic design

commit 16a07c10ff
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 18:53:34 2021 +0530

    Delete robots.txt

commit 83e8690dc5
Author: root <root@git.maharshi.ninja>
Date:   Sun Aug 22 18:52:00 2021 +0530

    Add PWA configuration
This commit is contained in:
root
2021-08-28 03:27:49 +05:30
parent 0b9fded2ac
commit bbd1ce30ec
27 changed files with 752 additions and 17 deletions
+4 -3
View File
@@ -3,15 +3,16 @@
<v-img
:height="height"
:width="width"
:src="video.thumbnail"
:src="video.thumbnail || video.thumbnailUrl"
alt="thumbnail"
loading="lazy"
/>
<v-card-title class="subtitle-1">{{ video.title }}</v-card-title>
<v-card-text>
<router-link :to="video.uploaderUrl" class="subtitle-1 text-decoration-none" v-if="video.uploaderUrl && video.uploaderName && !hideChannel" custom v-slot="{ navigate }">
<h5 @click="navigate" @keypress.enter="navigate" role="link">{{ video.uploaderName }}</h5>
<router-link :to="video.uploaderUrl" class="subtitle-1 text-decoration-none" v-if="video.uploaderUrl && (video.uploaderName || video.uploader) && !hideChannel" custom v-slot="{ navigate }">
<h5 @click="navigate" @keypress.enter="navigate" role="link">{{ video.uploaderName || video.uploader }}</h5>
</router-link>
<slot />
{{ numberFormat(video.views) }} views <br />
{{ video.uploadedDate }} <br />
{{ timeFormat(video.duration) }}