-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Media Info, download, and copy to context menu
Split from the following PR: #1951
- Loading branch information
Showing
17 changed files
with
1,445 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
frontend/src/components/Item/MediaDetail/MediaDetailAttr.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<template> | ||
<div class="d-flex flex-row"> | ||
<span class="mdinfo-label">{{ label }}</span> | ||
<span class="mdinfo-value">{{ value ?? 'Unknown' }}</span> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps<{ | ||
label: string; | ||
value: string | number | null; | ||
}>(); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.mdinfo-label { | ||
display: inline-block; | ||
margin-right: 1rem; | ||
font-weight: 600; | ||
} | ||
.mdinfo-value { | ||
display: inline-block; | ||
font-weight: 400; | ||
} | ||
</style> |
31 changes: 31 additions & 0 deletions
31
frontend/src/components/Item/MediaDetail/MediaDetailColorSpace.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<media-detail-attr | ||
v-if="stream.ColorSpace" | ||
:label="t('mediaInfo.videoCodec.colorSpace')" | ||
:value="stream.ColorSpace" /> | ||
<media-detail-attr | ||
v-if="stream.ColorTransfer" | ||
:label="t('mediaInfo.videoCodec.colorTransfer')" | ||
:value="stream.ColorTransfer" /> | ||
<media-detail-attr | ||
v-if="stream.ColorPrimaries" | ||
:label="t('mediaInfo.videoCodec.colorPrimaries')" | ||
:value="stream.ColorPrimaries" /> | ||
<media-detail-attr | ||
v-if="stream.ColorRange" | ||
:label="t('mediaInfo.videoCodec.colorRange')" | ||
:value="stream.ColorRange" /> | ||
<media-detail-attr | ||
v-if="stream.PixelFormat" | ||
:label="t('mediaInfo.videoCodec.pixelFormat')" | ||
:value="stream.PixelFormat" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { MediaStream } from '@jellyfin/sdk/lib/generated-client'; | ||
import { useI18n } from 'vue-i18n'; | ||
defineProps<{ stream: MediaStream }>(); | ||
const { t } = useI18n(); | ||
</script> |
Oops, something went wrong.