@sigmaott/base-library-next 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmrc +3 -0
- package/locales/en.yaml +289 -289
- package/locales/vi.yaml +294 -294
- package/nuxt.config.ts +18 -18
- package/package.json +32 -33
- package/public/routes.json +33 -33
- package/src/api/axios.ts +3 -3
- package/src/api/index.ts +86 -86
- package/src/api-client-library/.openapi-generator/FILES +20 -20
- package/src/api-client-library/.openapi-generator-ignore +23 -23
- package/src/api-client-library/api/health-api.ts +119 -119
- package/src/api-client-library/api/presets-api.ts +599 -599
- package/src/api-client-library/api/profiles-api.ts +676 -676
- package/src/api-client-library/api.ts +20 -20
- package/src/api-client-library/base.ts +72 -72
- package/src/api-client-library/common.ts +150 -150
- package/src/api-client-library/configuration.ts +101 -101
- package/src/api-client-library/git_push.sh +57 -57
- package/src/api-client-library/index.ts +18 -18
- package/src/api-client-library/models/create-preset-dto.ts +223 -223
- package/src/api-client-library/models/create-profile-dto.ts +45 -45
- package/src/api-client-library/models/health-controller-get-health200-response-info-value.ts +32 -32
- package/src/api-client-library/models/health-controller-get-health200-response.ts +51 -51
- package/src/api-client-library/models/health-controller-get-health503-response.ts +51 -51
- package/src/api-client-library/models/index.ts +7 -7
- package/src/api-client-library/models/update-preset-dto.ts +223 -223
- package/src/api-client-library/models/update-profile-dto.ts +45 -45
- package/src/components/MediaSelection.vue +40 -40
- package/src/components/PresetModify.vue +154 -154
- package/src/components/PresetTable.vue +114 -114
- package/src/components/ProfileAllList.vue +137 -137
- package/src/components/ProfileFormModal.vue +79 -79
- package/src/components/ProfileModify.vue +152 -152
- package/src/components/ProfileTable.vue +68 -68
- package/src/components/WatermarkDraggableItem.vue +88 -88
- package/src/components/channel/ConfigWatermarkItem.vue +239 -239
- package/src/components/channel/WatermarkPreview.vue +19 -19
- package/src/components/common/Vue3DraggableResizable/Container.vue +71 -71
- package/src/components/common/Vue3DraggableResizable/index.vue +1327 -1327
- package/src/components/common/Vue3DraggableResizable/utils/dom.js +63 -63
- package/src/components/common/Vue3DraggableResizable/utils/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/dom.js +63 -63
- package/src/components/common/VueDraggableResizable/fns.js +37 -37
- package/src/components/common/VueDraggableResizable/index.vue +958 -958
- package/src/components/preset/ConfigItem.vue +956 -956
- package/src/components/profile/ConfigItem.vue +765 -765
- package/src/components/profile/TableColumns.vue +137 -137
- package/src/components/shared/AudioInfoViewer.vue +101 -101
- package/src/components/shared/MediaInfoViewer.vue +249 -249
- package/src/components/shared/MediaInfoViewerSmall.vue +111 -105
- package/src/components/shared/PopoverProfile.vue +17 -17
- package/src/components/shared/VideoInfoViewer.vue +136 -136
- package/src/components/shared/fileSizeFilter.ts +26 -26
- package/src/composables/preset.ts +141 -141
- package/src/public/build-time.json +1 -1
- package/src/public/favicon.svg +15 -15
- package/src/public/logo.svg +9 -9
- package/src/public/routes.json +86 -86
- package/src/utils/common.ts +175 -175
- package/src/utils/config.ts +19 -19
- package/src/utils/preset.ts +353 -353
- package/src/utils/profile.ts +30 -30
- package/tsconfig.json +3 -3
|
@@ -1,105 +1,111 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// import { fileSizeFilter } from './fileSizeFilter'
|
|
3
|
-
|
|
4
|
-
defineProps<{ media: any; encoding?: boolean }>()
|
|
5
|
-
|
|
6
|
-
function fileSizeFilter(size: number) {
|
|
7
|
-
if (Number.isNaN(size))
|
|
8
|
-
size = 0
|
|
9
|
-
|
|
10
|
-
return `${(size / 1024).toFixed(2)} KB`
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<template>
|
|
15
|
-
<div class="item-list-row relative inline-flex border-1px border-primary rounded-4px border-solid p-5px">
|
|
16
|
-
<ul class="flex flex-wrap items-center justify-center">
|
|
17
|
-
<template v-if="
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// import { fileSizeFilter } from './fileSizeFilter'
|
|
3
|
+
|
|
4
|
+
defineProps<{ media: any; encoding?: boolean, isShowPId?: boolean }>()
|
|
5
|
+
|
|
6
|
+
function fileSizeFilter(size: number) {
|
|
7
|
+
if (Number.isNaN(size))
|
|
8
|
+
size = 0
|
|
9
|
+
|
|
10
|
+
return `${(size / 1024).toFixed(2)} KB`
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div class="item-list-row relative inline-flex border-1px border-primary rounded-4px border-solid p-5px">
|
|
16
|
+
<ul class="flex flex-wrap items-center justify-center">
|
|
17
|
+
<template v-if="isShowPId">
|
|
18
|
+
<li title="PID">
|
|
19
|
+
<div class="i-carbon:id text-primary text-20px" />
|
|
20
|
+
<span>{{ media.id }}</span>
|
|
21
|
+
</li>
|
|
22
|
+
</template>
|
|
23
|
+
<template v-if="media?.name && media?.type !== 'video'">
|
|
24
|
+
<el-tooltip :content="$t('profile.name')" placement="top">
|
|
25
|
+
<li>
|
|
26
|
+
<el-icon>
|
|
27
|
+
<div class="i-ep:camera-filled text-primary" />
|
|
28
|
+
</el-icon>
|
|
29
|
+
<el-icon v-if="media.codec === 'copy'" class="">
|
|
30
|
+
<div class="i-ep:document-copy text-indigo-500" />
|
|
31
|
+
</el-icon>
|
|
32
|
+
<span v-if="media.codec === 'copy'"> </span>
|
|
33
|
+
<span class="item__name">{{ (media.name) || '-' }}</span>
|
|
34
|
+
</li>
|
|
35
|
+
</el-tooltip>
|
|
36
|
+
</template>
|
|
37
|
+
<template v-if="media?.codec">
|
|
38
|
+
<el-tooltip content="Codec" placement="top">
|
|
39
|
+
<li>
|
|
40
|
+
<el-icon>
|
|
41
|
+
<div class="i-ep:grid text-indigo-500" />
|
|
42
|
+
</el-icon>
|
|
43
|
+
<span>{{ media.codec }}</span>
|
|
44
|
+
</li>
|
|
45
|
+
</el-tooltip>
|
|
46
|
+
</template>
|
|
47
|
+
<template v-if="media && (media.height || media.width)">
|
|
48
|
+
<el-tooltip content="Resolution" placement="top">
|
|
49
|
+
<li>
|
|
50
|
+
<el-icon name="crop">
|
|
51
|
+
<div class="i-ep:crop text-pink-600" />
|
|
52
|
+
</el-icon>
|
|
53
|
+
<span>{{ media.width }}x{{ media.height }}</span>
|
|
54
|
+
</li>
|
|
55
|
+
</el-tooltip>
|
|
56
|
+
</template>
|
|
57
|
+
<template v-if="media.bitrate">
|
|
58
|
+
<el-tooltip content="Bitrate" placement="top">
|
|
59
|
+
<li>
|
|
60
|
+
<el-icon>
|
|
61
|
+
<div class="i-ep:scale-to-original text-teal-600" />
|
|
62
|
+
</el-icon>
|
|
63
|
+
<span v-if="!encoding">{{ fileSizeFilter(media.bitrate) }}/s</span>
|
|
64
|
+
<span v-else>optimized</span>
|
|
65
|
+
</li>
|
|
66
|
+
</el-tooltip>
|
|
67
|
+
</template>
|
|
68
|
+
<template v-if="media.fps && media.fps !== 0">
|
|
69
|
+
<el-tooltip content="FPS" placement="top">
|
|
70
|
+
<li>
|
|
71
|
+
<el-icon>
|
|
72
|
+
<div class="i-ep:sort text-green-600" />
|
|
73
|
+
</el-icon>
|
|
74
|
+
<span>{{ media.fps }} fps</span>
|
|
75
|
+
</li>
|
|
76
|
+
</el-tooltip>
|
|
77
|
+
</template>
|
|
78
|
+
</ul>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
|
|
82
|
+
<style lang="scss" scoped>
|
|
83
|
+
.item-list-row {
|
|
84
|
+
padding: 5px;
|
|
85
|
+
position: relative;
|
|
86
|
+
border: 1px solid rgba(64, 158, 255, 0.4);
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
|
|
89
|
+
ul {
|
|
90
|
+
li {
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
|
|
95
|
+
&:not(:last-child):after {
|
|
96
|
+
content: '|';
|
|
97
|
+
display: inline-block;
|
|
98
|
+
color: #9ca3af;
|
|
99
|
+
padding: 0 0.3rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.item__name {
|
|
104
|
+
max-width: 85px;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
const props = defineProps<{ media: any }>()
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<el-popover placement="bottom" trigger="hover" width="auto">
|
|
7
|
-
<template #reference>
|
|
8
|
-
<el-tag type="info" class="mx-1 my-1">
|
|
9
|
-
{{ props?.media?.length ?? 0 }}
|
|
10
|
-
</el-tag>
|
|
11
|
-
</template>
|
|
12
|
-
<SharedMediaInfoViewer
|
|
13
|
-
v-for="(item, idx) in props.media || []" :key="idx" :media="item"
|
|
14
|
-
class="w-96% justify-center"
|
|
15
|
-
/>
|
|
16
|
-
</el-popover>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps<{ media: any }>()
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<el-popover placement="bottom" trigger="hover" width="auto">
|
|
7
|
+
<template #reference>
|
|
8
|
+
<el-tag type="info" class="mx-1 my-1">
|
|
9
|
+
{{ props?.media?.length ?? 0 }}
|
|
10
|
+
</el-tag>
|
|
11
|
+
</template>
|
|
12
|
+
<SharedMediaInfoViewer
|
|
13
|
+
v-for="(item, idx) in props.media || []" :key="idx" :media="item"
|
|
14
|
+
class="w-96% justify-center"
|
|
15
|
+
/>
|
|
16
|
+
</el-popover>
|
|
17
|
+
</template>
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { fileSizeFilter } from './fileSizeFilter'
|
|
3
|
-
|
|
4
|
-
defineProps<{ video: any }>()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<div class="item-list-row flex justify-center">
|
|
9
|
-
<ul class="flex flex-wrap justify-center">
|
|
10
|
-
<li title="Name">
|
|
11
|
-
<el-icon v-if="video.codec !== 'copy'" class="text-primary" name="video-camera-solid">
|
|
12
|
-
<div class="i-ep:camera-filled text-primary" />
|
|
13
|
-
</el-icon>
|
|
14
|
-
<el-icon v-if="video.codec === 'copy'" class="text-indigo-500">
|
|
15
|
-
<div class="i-ep:document-copy text-indigo-500" />
|
|
16
|
-
</el-icon>
|
|
17
|
-
<span v-if="video.codec === 'copy'"> </span>
|
|
18
|
-
<span class="item__name" :title="video.name">{{
|
|
19
|
-
(video && video.name) || '-'
|
|
20
|
-
}}</span>
|
|
21
|
-
</li>
|
|
22
|
-
<span class="text-gray-400"> | </span>
|
|
23
|
-
<li title="Codec">
|
|
24
|
-
<el-icon>
|
|
25
|
-
<div class="i-ep:grid text-indigo-500" />
|
|
26
|
-
</el-icon>
|
|
27
|
-
<span>{{ video.codec }}</span>
|
|
28
|
-
</li>
|
|
29
|
-
<span class="text-gray-400"> | </span>
|
|
30
|
-
<li title="Resolution">
|
|
31
|
-
<el-icon name="crop">
|
|
32
|
-
<div class="i-ep:crop text-pink-600" />
|
|
33
|
-
</el-icon>
|
|
34
|
-
<span>{{ video.width }}x{{ video.height }}</span>
|
|
35
|
-
</li>
|
|
36
|
-
<span class="text-gray-400"> | </span>
|
|
37
|
-
<li title="Bitrate">
|
|
38
|
-
<el-icon>
|
|
39
|
-
<div class="i-ep:scale-to-original text-teal-600" />
|
|
40
|
-
</el-icon>
|
|
41
|
-
<span>{{ video.bitrate ? fileSizeFilter(video.bitrate) : fileSizeFilter(video.videoBitrate) }}/s</span>
|
|
42
|
-
</li>
|
|
43
|
-
<span class="text-gray-400"> | </span>
|
|
44
|
-
<li title="FPS">
|
|
45
|
-
<el-icon>
|
|
46
|
-
<div class="i-ep:sort text-green-600" />
|
|
47
|
-
</el-icon>
|
|
48
|
-
<span>{{ video.fps }} fps</span>
|
|
49
|
-
</li>
|
|
50
|
-
<span class="text-gray-400"> | </span>
|
|
51
|
-
<li title="CBR">
|
|
52
|
-
<el-icon>
|
|
53
|
-
<div class="i-ep:switch-button" :class="!!video.cbr ? 'text-success' : 'text-gray-400'" />
|
|
54
|
-
</el-icon>
|
|
55
|
-
|
|
56
|
-
<span> cbr </span>
|
|
57
|
-
</li>
|
|
58
|
-
<span class="text-gray-400"> | </span>
|
|
59
|
-
<li title="HDR">
|
|
60
|
-
<el-icon>
|
|
61
|
-
<div class="i-carbon:distribute-horizontal-right text-success" :class="video.hdr ? 'text-success' : 'text-gray-400'" />
|
|
62
|
-
</el-icon>
|
|
63
|
-
|
|
64
|
-
<span> hdr </span>
|
|
65
|
-
</li>
|
|
66
|
-
<span class="text-gray-400"> | </span>
|
|
67
|
-
<li title="Pixel format">
|
|
68
|
-
<el-icon>
|
|
69
|
-
<div class="i-ep:picture" :class="!video.pixelFormat || 'text-indigo-500'" />
|
|
70
|
-
</el-icon>
|
|
71
|
-
<span>{{ video.pixelFormat || '-' }}</span>
|
|
72
|
-
</li>
|
|
73
|
-
<span class="text-gray-400"> | </span>
|
|
74
|
-
<li title="Scale type">
|
|
75
|
-
<el-icon>
|
|
76
|
-
<div class="i-ep:scale-to-original" :class="!video.scaleType || 'text-pink-600'" />
|
|
77
|
-
</el-icon>
|
|
78
|
-
<span>{{ video.scaleType || '-' }}</span>
|
|
79
|
-
</li>
|
|
80
|
-
<span class="text-gray-400"> | </span>
|
|
81
|
-
<li title="Constant quality">
|
|
82
|
-
<el-icon>
|
|
83
|
-
<div class="i-ep:star-filled" :class="!video.cq || 'text-teal-600'" />
|
|
84
|
-
</el-icon>
|
|
85
|
-
<span>{{ video.cq || '-' }}</span>
|
|
86
|
-
</li>
|
|
87
|
-
<span class="text-gray-400"> | </span>
|
|
88
|
-
<li title="Interlaced mode">
|
|
89
|
-
<el-icon>
|
|
90
|
-
<div class="i-ep:switch-button" :class="video.interlaced ? 'text-success' : 'text-gray-400'" />
|
|
91
|
-
</el-icon>
|
|
92
|
-
<span> interlaced </span>
|
|
93
|
-
</li>
|
|
94
|
-
</ul>
|
|
95
|
-
<div v-if="$slots && $slots.anchor" class="anchor">
|
|
96
|
-
<slot name="anchor" />
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</template>
|
|
100
|
-
|
|
101
|
-
<style lang="scss" scoped>
|
|
102
|
-
.item-list-row {
|
|
103
|
-
margin: 5px;
|
|
104
|
-
padding: 5px;
|
|
105
|
-
position: relative;
|
|
106
|
-
border: 1px solid rgba(64, 158, 255, 0.4);
|
|
107
|
-
border-radius: 4px;
|
|
108
|
-
|
|
109
|
-
ul {
|
|
110
|
-
li {
|
|
111
|
-
white-space: nowrap;
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.item__name {
|
|
117
|
-
max-width: 85px;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
white-space: nowrap;
|
|
120
|
-
text-overflow: ellipsis;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.anchor {
|
|
125
|
-
padding: 5px;
|
|
126
|
-
margin: -5px -5px -5px 5px;
|
|
127
|
-
display: flex;
|
|
128
|
-
flex-direction: column;
|
|
129
|
-
border-left: 1px solid;
|
|
130
|
-
border-color: inherit;
|
|
131
|
-
background-color: rgba(64, 158, 255, 0.2);
|
|
132
|
-
border-top-right-radius: inherit;
|
|
133
|
-
border-bottom-right-radius: inherit;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { fileSizeFilter } from './fileSizeFilter'
|
|
3
|
+
|
|
4
|
+
defineProps<{ video: any }>()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="item-list-row flex justify-center">
|
|
9
|
+
<ul class="flex flex-wrap justify-center">
|
|
10
|
+
<li title="Name">
|
|
11
|
+
<el-icon v-if="video.codec !== 'copy'" class="text-primary" name="video-camera-solid">
|
|
12
|
+
<div class="i-ep:camera-filled text-primary" />
|
|
13
|
+
</el-icon>
|
|
14
|
+
<el-icon v-if="video.codec === 'copy'" class="text-indigo-500">
|
|
15
|
+
<div class="i-ep:document-copy text-indigo-500" />
|
|
16
|
+
</el-icon>
|
|
17
|
+
<span v-if="video.codec === 'copy'"> </span>
|
|
18
|
+
<span class="item__name" :title="video.name">{{
|
|
19
|
+
(video && video.name) || '-'
|
|
20
|
+
}}</span>
|
|
21
|
+
</li>
|
|
22
|
+
<span class="text-gray-400"> | </span>
|
|
23
|
+
<li title="Codec">
|
|
24
|
+
<el-icon>
|
|
25
|
+
<div class="i-ep:grid text-indigo-500" />
|
|
26
|
+
</el-icon>
|
|
27
|
+
<span>{{ video.codec }}</span>
|
|
28
|
+
</li>
|
|
29
|
+
<span class="text-gray-400"> | </span>
|
|
30
|
+
<li title="Resolution">
|
|
31
|
+
<el-icon name="crop">
|
|
32
|
+
<div class="i-ep:crop text-pink-600" />
|
|
33
|
+
</el-icon>
|
|
34
|
+
<span>{{ video.width }}x{{ video.height }}</span>
|
|
35
|
+
</li>
|
|
36
|
+
<span class="text-gray-400"> | </span>
|
|
37
|
+
<li title="Bitrate">
|
|
38
|
+
<el-icon>
|
|
39
|
+
<div class="i-ep:scale-to-original text-teal-600" />
|
|
40
|
+
</el-icon>
|
|
41
|
+
<span>{{ video.bitrate ? fileSizeFilter(video.bitrate) : fileSizeFilter(video.videoBitrate) }}/s</span>
|
|
42
|
+
</li>
|
|
43
|
+
<span class="text-gray-400"> | </span>
|
|
44
|
+
<li title="FPS">
|
|
45
|
+
<el-icon>
|
|
46
|
+
<div class="i-ep:sort text-green-600" />
|
|
47
|
+
</el-icon>
|
|
48
|
+
<span>{{ video.fps }} fps</span>
|
|
49
|
+
</li>
|
|
50
|
+
<span class="text-gray-400"> | </span>
|
|
51
|
+
<li title="CBR">
|
|
52
|
+
<el-icon>
|
|
53
|
+
<div class="i-ep:switch-button" :class="!!video.cbr ? 'text-success' : 'text-gray-400'" />
|
|
54
|
+
</el-icon>
|
|
55
|
+
|
|
56
|
+
<span> cbr </span>
|
|
57
|
+
</li>
|
|
58
|
+
<span class="text-gray-400"> | </span>
|
|
59
|
+
<li title="HDR">
|
|
60
|
+
<el-icon>
|
|
61
|
+
<div class="i-carbon:distribute-horizontal-right text-success" :class="video.hdr ? 'text-success' : 'text-gray-400'" />
|
|
62
|
+
</el-icon>
|
|
63
|
+
|
|
64
|
+
<span> hdr </span>
|
|
65
|
+
</li>
|
|
66
|
+
<span class="text-gray-400"> | </span>
|
|
67
|
+
<li title="Pixel format">
|
|
68
|
+
<el-icon>
|
|
69
|
+
<div class="i-ep:picture" :class="!video.pixelFormat || 'text-indigo-500'" />
|
|
70
|
+
</el-icon>
|
|
71
|
+
<span>{{ video.pixelFormat || '-' }}</span>
|
|
72
|
+
</li>
|
|
73
|
+
<span class="text-gray-400"> | </span>
|
|
74
|
+
<li title="Scale type">
|
|
75
|
+
<el-icon>
|
|
76
|
+
<div class="i-ep:scale-to-original" :class="!video.scaleType || 'text-pink-600'" />
|
|
77
|
+
</el-icon>
|
|
78
|
+
<span>{{ video.scaleType || '-' }}</span>
|
|
79
|
+
</li>
|
|
80
|
+
<span class="text-gray-400"> | </span>
|
|
81
|
+
<li title="Constant quality">
|
|
82
|
+
<el-icon>
|
|
83
|
+
<div class="i-ep:star-filled" :class="!video.cq || 'text-teal-600'" />
|
|
84
|
+
</el-icon>
|
|
85
|
+
<span>{{ video.cq || '-' }}</span>
|
|
86
|
+
</li>
|
|
87
|
+
<span class="text-gray-400"> | </span>
|
|
88
|
+
<li title="Interlaced mode">
|
|
89
|
+
<el-icon>
|
|
90
|
+
<div class="i-ep:switch-button" :class="video.interlaced ? 'text-success' : 'text-gray-400'" />
|
|
91
|
+
</el-icon>
|
|
92
|
+
<span> interlaced </span>
|
|
93
|
+
</li>
|
|
94
|
+
</ul>
|
|
95
|
+
<div v-if="$slots && $slots.anchor" class="anchor">
|
|
96
|
+
<slot name="anchor" />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.item-list-row {
|
|
103
|
+
margin: 5px;
|
|
104
|
+
padding: 5px;
|
|
105
|
+
position: relative;
|
|
106
|
+
border: 1px solid rgba(64, 158, 255, 0.4);
|
|
107
|
+
border-radius: 4px;
|
|
108
|
+
|
|
109
|
+
ul {
|
|
110
|
+
li {
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.item__name {
|
|
117
|
+
max-width: 85px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.anchor {
|
|
125
|
+
padding: 5px;
|
|
126
|
+
margin: -5px -5px -5px 5px;
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
border-left: 1px solid;
|
|
130
|
+
border-color: inherit;
|
|
131
|
+
background-color: rgba(64, 158, 255, 0.2);
|
|
132
|
+
border-top-right-radius: inherit;
|
|
133
|
+
border-bottom-right-radius: inherit;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
</style>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export function fileSizeFilter(size: number) {
|
|
2
|
-
if (Number.isNaN(size))
|
|
3
|
-
size = 0
|
|
4
|
-
|
|
5
|
-
if (size < 1024)
|
|
6
|
-
return `${size} Kb`
|
|
7
|
-
|
|
8
|
-
size /= 1024
|
|
9
|
-
|
|
10
|
-
if (size < 1024)
|
|
11
|
-
return `${size.toFixed(2)} KB`
|
|
12
|
-
|
|
13
|
-
size /= 1024
|
|
14
|
-
|
|
15
|
-
if (size < 1024)
|
|
16
|
-
return `${size.toFixed(2)} MB`
|
|
17
|
-
|
|
18
|
-
size /= 1024
|
|
19
|
-
|
|
20
|
-
if (size < 1024)
|
|
21
|
-
return `${size.toFixed(2)} GB`
|
|
22
|
-
|
|
23
|
-
size /= 1024
|
|
24
|
-
|
|
25
|
-
return `${size.toFixed(2)} TB`
|
|
26
|
-
}
|
|
1
|
+
export function fileSizeFilter(size: number) {
|
|
2
|
+
if (Number.isNaN(size))
|
|
3
|
+
size = 0
|
|
4
|
+
|
|
5
|
+
if (size < 1024)
|
|
6
|
+
return `${size} Kb`
|
|
7
|
+
|
|
8
|
+
size /= 1024
|
|
9
|
+
|
|
10
|
+
if (size < 1024)
|
|
11
|
+
return `${size.toFixed(2)} KB`
|
|
12
|
+
|
|
13
|
+
size /= 1024
|
|
14
|
+
|
|
15
|
+
if (size < 1024)
|
|
16
|
+
return `${size.toFixed(2)} MB`
|
|
17
|
+
|
|
18
|
+
size /= 1024
|
|
19
|
+
|
|
20
|
+
if (size < 1024)
|
|
21
|
+
return `${size.toFixed(2)} GB`
|
|
22
|
+
|
|
23
|
+
size /= 1024
|
|
24
|
+
|
|
25
|
+
return `${size.toFixed(2)} TB`
|
|
26
|
+
}
|