@christianriedl/media 1.0.104 → 1.0.106
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 +1 -1
- package/src/views/VideosPage.vue +8 -2
package/package.json
CHANGED
package/src/views/VideosPage.vue
CHANGED
|
@@ -204,6 +204,11 @@
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
async function onShare(item: IVideoFile) {
|
|
208
|
+
const url = `https://www.christian-riedl.com/photos/video?media=${item.Url}&width=${item.Width}&height=${item.Height}&videobitrate=`;
|
|
209
|
+
await window.navigator.clipboard.writeText(url);
|
|
210
|
+
window.alert(`Created and Pasted : ${url} !`);
|
|
211
|
+
}
|
|
207
212
|
</script>
|
|
208
213
|
|
|
209
214
|
<template>
|
|
@@ -264,8 +269,9 @@
|
|
|
264
269
|
<v-img :src="item.ThumbnailUrl"></v-img>
|
|
265
270
|
</v-avatar>
|
|
266
271
|
</template>
|
|
267
|
-
<template v-slot:append>
|
|
268
|
-
<v-btn
|
|
272
|
+
<template v-if="item.Url" v-slot:append>
|
|
273
|
+
<v-btn color="grey" variant="tonal" icon="$share" @click.stop.prevent="onShare(item)"></v-btn>
|
|
274
|
+
<v-btn color="grey" variant="tonal" icon="$info" @click.stop.prevent="onInfo(item)"></v-btn>
|
|
269
275
|
</template>
|
|
270
276
|
</v-list-item>
|
|
271
277
|
</v-list-item-group>
|