@christianriedl/media 1.0.16 → 1.0.19
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/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
|
-
<v-row>
|
|
28
|
+
<v-row align="center">
|
|
29
29
|
<v-col cols="2">
|
|
30
30
|
<v-text-field name="directory" label="Name (Directory)" type="text" v-model="name" density="compact" hide-details></v-text-field>
|
|
31
31
|
</v-col>
|
|
@@ -35,14 +35,6 @@
|
|
|
35
35
|
<v-col cols="6">{{feedBack}}
|
|
36
36
|
</v-col>
|
|
37
37
|
</v-row>
|
|
38
|
-
<!--
|
|
39
|
-
<v-col cols="2">
|
|
40
|
-
<v-btn @click="onUpload">
|
|
41
|
-
<v-icon large>{{$vuetify.icons.values.upload}}</v-icon>Upload
|
|
42
|
-
</v-btn>
|
|
43
|
-
</v-col>
|
|
44
|
-
-->
|
|
45
|
-
<p>{{loadResult}}</p>
|
|
46
38
|
</template>
|
|
47
39
|
|
|
48
40
|
<style scoped>
|
package/src/views/MusicPage.vue
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { IAppState, Helper } from '@christianriedl/utils';
|
|
4
4
|
import { Authorize, EScope } from '@christianriedl/rest';
|
|
5
5
|
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IAudioFile, MediaService, EPlayState, PlayerService } from '@christianriedl/media';
|
|
6
|
+
import FileUpload from '../components/FileUpload.vue';
|
|
6
7
|
|
|
7
8
|
const appState = inject<IAppState>('appstate')!;
|
|
8
9
|
const authorize = inject<Authorize>('authorize')!;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
const playIndex = ref(-1);
|
|
29
30
|
const volume = ref(0);
|
|
30
31
|
const mute = ref(false);
|
|
32
|
+
const uploadVisible = ref(false);
|
|
31
33
|
|
|
32
34
|
const isLocal = computed(() => currentPlayer.value == 'Local');
|
|
33
35
|
const backVisible = computed(() => selected.value.ItemType != EItemType.AudioRoot);
|
|
@@ -294,7 +296,7 @@
|
|
|
294
296
|
<audio ref="audio" preload="none" @ended="onEnded" @timeupdate="onTimeUpdate">
|
|
295
297
|
</audio>
|
|
296
298
|
<v-list-item three-line>
|
|
297
|
-
<v-row>
|
|
299
|
+
<v-row align="center">
|
|
298
300
|
<v-col cols="1">
|
|
299
301
|
<v-list-item-avatar tile rounded="0" size="x-large" v-if="selected.ThumbnailUrl">
|
|
300
302
|
<img width="60" :src="selected.ThumbnailUrl">
|
|
@@ -315,6 +317,12 @@
|
|
|
315
317
|
dense solo hide-details single-line>
|
|
316
318
|
</v-select>
|
|
317
319
|
</v-col>
|
|
320
|
+
<v-col v-else cols="1" offset="3">
|
|
321
|
+
<v-btn v-if="!isMobile" class="bg-media" @click="uploadVisible = !uploadVisible">
|
|
322
|
+
UPLOAD
|
|
323
|
+
<v-icon>{{$vuetify.icons.values.upload}}</v-icon>
|
|
324
|
+
</v-btn>
|
|
325
|
+
</v-col>
|
|
318
326
|
</v-row>
|
|
319
327
|
</v-list-item>
|
|
320
328
|
<v-card-actions>
|
|
@@ -342,16 +350,17 @@
|
|
|
342
350
|
<v-icon>{{$vuetify.icons.values.download}}</v-icon>
|
|
343
351
|
</v-btn>
|
|
344
352
|
<v-slider v-if="!isLocal && playingTrack" style="width:30%" color="red" track-color="blue" track-fill-color="red" v-model="volume" hide-details density="compact"
|
|
345
|
-
|
|
353
|
+
min="0" max="100" step="5" @update:modelValue="changeVolume">
|
|
346
354
|
</v-slider>
|
|
347
355
|
</v-card-actions>
|
|
348
356
|
<v-progress-linear v-if="playingTrack" v-model="positionLength" color="blue" height="25"><strong>{{positionText}}</strong></v-progress-linear>
|
|
349
357
|
</v-card>
|
|
358
|
+
<file-upload v-if="uploadVisible"></file-upload>
|
|
350
359
|
<v-card :height="listHeight" class="overflow-y-auto bg-media">
|
|
351
360
|
<v-list two-line class="bg-media">
|
|
352
|
-
<v-list-item-group v-model="itemIndex"
|
|
353
|
-
<v-list-item v-for="(item,index) in items" :key="item.DLNAID" :title="item.title" :subtitle="item.subTitle"
|
|
354
|
-
|
|
361
|
+
<v-list-item-group v-model="itemIndex">
|
|
362
|
+
<v-list-item v-for="(item,index) in items" :key="item.DLNAID" :title="item.title" :subtitle="item.subTitle"
|
|
363
|
+
active-color="blue" :active="index == playIndex" @click="listItem(item)">
|
|
355
364
|
<!--
|
|
356
365
|
<v-list-item-content>
|
|
357
366
|
<v-list-item-title v-html="item.title"></v-list-item-title>
|
package/src/views/PhotosPage.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useRouter } from 'vue-router';
|
|
5
5
|
import { IAppState } from '@christianriedl/utils';
|
|
6
6
|
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IPhotoSelection, MediaService } from '@christianriedl/media';
|
|
7
|
-
import FileUpload from '../components/FileUpload.vue'
|
|
7
|
+
import FileUpload from '../components/FileUpload.vue';
|
|
8
8
|
|
|
9
9
|
const appState = inject<IAppState>('appstate')!;
|
|
10
10
|
const getMediaService = inject<() => MediaService>('get-media')!;
|