@christianriedl/media 1.0.104 → 1.0.105

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -204,6 +204,11 @@
204
204
  }
205
205
  }
206
206
  }
207
+ async function onShare(item: IMediaItem) {
208
+ const url = `https://www.christian-riedl.com/photos/video?media=${item.Url}&videobitrate=`;
209
+ await window.navigator.clipboard.writeText(url);
210
+ window.alert(`Created and Pasted : ${url} !`);
211
+ }
207
212
  </script>
208
213
 
209
214
  <template>
@@ -265,7 +270,8 @@
265
270
  </v-avatar>
266
271
  </template>
267
272
  <template v-slot:append>
268
- <v-btn size="large" color="grey" variant="tonal" icon="$info" @click.stop.prevent="onInfo(item)"></v-btn>
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>