@christianriedl/media 1.0.34 → 1.0.36

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.34",
3
+ "version": "1.0.36",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -212,6 +212,26 @@
212
212
  gpsLng = exif.GPSLongitude as number[];
213
213
  hasCoordinates.value = true;
214
214
  }
215
+ if (exif.Country) {
216
+ if (exif.State)
217
+ metadata['Land'] = exif.Country + ' - ' + exif.State;
218
+ else
219
+ metadata['Land'] = exif.Country;
220
+ }
221
+ else
222
+ delete metadata['Land'];
223
+ if (exif.City)
224
+ metadata['Stadt'] = exif.City;
225
+ else
226
+ delete metadata['Stadt'];
227
+ if (exif.Location)
228
+ metadata['Strasse'] = exif.Location;
229
+ else
230
+ delete metadata['Strasse'];
231
+ if (exif.Copyright)
232
+ metadata['Copyright'] = exif.Copyright;
233
+ else
234
+ delete metadata['Copyright'];
215
235
  }
216
236
  else {
217
237
  delete metadata['Kamera'];
@@ -219,6 +239,10 @@
219
239
  delete metadata['Von'];
220
240
  delete metadata['Belichtung'];
221
241
  delete metadata['Blende'];
242
+ delete metadata['Land'];
243
+ delete metadata['Stadt'];
244
+ delete metadata['Strasse'];
245
+ delete metadata['Copyright'];
222
246
  metadata['Zeit'] = file.Date.toLocaleString();
223
247
  }
224
248
 
@@ -245,7 +269,7 @@
245
269
  </script>
246
270
 
247
271
  <template>
248
- <v-container fluid :style="heightStyle">
272
+ <v-container fluid :style="heightStyle" class="bg-grey-darken-3">
249
273
  <v-carousel hide-delimiters :show-arrows="false" v-model="index"
250
274
  :width="width" :height="height" :cycle="cycle" :interval="interval"
251
275
  @change="onInput" @dblclick="onDblClick">
@@ -254,7 +278,7 @@
254
278
  </v-carousel-item>
255
279
  </v-carousel>
256
280
  <v-dialog v-model="infoDialog" :fullscreen="isMobile" >
257
- <v-card v-if="infoDialog" width="400">
281
+ <v-card v-if="infoDialog" width="600">
258
282
  <v-card-title class="headline">Metadata</v-card-title>
259
283
  <v-card-text>
260
284
  <v-container>