mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
Video in messages
This commit is contained in:
parent
e946c8b477
commit
4e43ad4b32
3 changed files with 16 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
||||||
## Planned
|
## Planned
|
||||||
|
|
||||||
- MFM button
|
- MFM button
|
||||||
- Better Messaging UI
|
|
||||||
- Classic mode make instance icon bring up new context menu
|
- Classic mode make instance icon bring up new context menu
|
||||||
- Like/star button
|
- Like/star button
|
||||||
- Option to publicize instance blocks
|
- Option to publicize instance blocks
|
||||||
|
@ -20,6 +19,7 @@
|
||||||
|
|
||||||
## Work in progress
|
## Work in progress
|
||||||
|
|
||||||
|
- Better Messaging UI
|
||||||
- OCR image captioning
|
- OCR image captioning
|
||||||
- Swipe through timelines on mobile
|
- Swipe through timelines on mobile
|
||||||
- Admin custom CSS
|
- Admin custom CSS
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.9.4",
|
"version": "12.118.1-calc.9.5",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -11,6 +11,18 @@
|
||||||
<div v-if="message.file" class="file">
|
<div v-if="message.file" class="file">
|
||||||
<a :href="message.file.url" rel="noopener" target="_blank" :title="message.file.name">
|
<a :href="message.file.url" rel="noopener" target="_blank" :title="message.file.name">
|
||||||
<img v-if="message.file.type.split('/')[0] == 'image'" :src="message.file.url" :alt="message.file.name"/>
|
<img v-if="message.file.type.split('/')[0] == 'image'" :src="message.file.url" :alt="message.file.name"/>
|
||||||
|
<VuePlyr v-if="message.file.type.split('/')[0] == 'video'">
|
||||||
|
<video
|
||||||
|
:alt="message.file.name"
|
||||||
|
preload="none"
|
||||||
|
controls
|
||||||
|
@contextmenu.stop
|
||||||
|
>
|
||||||
|
<source
|
||||||
|
:src="message.file.url"
|
||||||
|
>
|
||||||
|
</video>
|
||||||
|
</VuePlyr>
|
||||||
<p v-else>{{ message.file.name }}</p>
|
<p v-else>{{ message.file.name }}</p>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,6 +51,7 @@
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
|
import VuePlyr from 'vue-plyr';
|
||||||
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm';
|
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm';
|
||||||
import MkUrlPreview from '@/components/url-preview.vue';
|
import MkUrlPreview from '@/components/url-preview.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
@ -62,6 +75,7 @@ function del(): void {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.thvuemwp {
|
.thvuemwp {
|
||||||
$me-balloon-color: var(--accent);
|
$me-balloon-color: var(--accent);
|
||||||
|
--plyr-color-main: var(--accent);
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
Loading…
Reference in a new issue