@christianriedl/media 1.0.292 → 1.0.293
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.
|
|
3
|
+
"version": "1.0.293",
|
|
4
4
|
"description": "RIC media interfaces",
|
|
5
5
|
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "Christian Riedl",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@christianriedl/utils": "^1.0.
|
|
21
|
+
"@christianriedl/utils": "^1.0.201",
|
|
22
22
|
"@christianriedl/rest": "^1.0.97",
|
|
23
23
|
"@christianriedl/epg": "^1.0.44",
|
|
24
24
|
"buffer": "^6.0.3"
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { inject, ref, toRef, computed, onMounted, watch } from 'vue';
|
|
4
4
|
import { GoogleMap } from 'vue3-google-map'
|
|
5
|
-
import { authorizeSymbol } from '@christianriedl/rest';
|
|
6
5
|
import { IPhotoMarker, IPhotoRegion, IPictureFile, getMediaBinSymbol, EOrientation, MediaHelper } from '@christianriedl/media';
|
|
7
6
|
|
|
8
|
-
const props = defineProps<{ location: string, zoom: number, selectRegion?: IPhotoRegion, fotos?: IPhotoMarker[] }>();
|
|
7
|
+
const props = defineProps<{ googleApiKey: string, location: string, zoom: number, selectRegion?: IPhotoRegion, fotos?: IPhotoMarker[] }>();
|
|
9
8
|
const emits = defineEmits<{ (e: 'select', value: IPhotoRegion): void }>();
|
|
10
9
|
|
|
11
|
-
const
|
|
12
|
-
const apiKey = authorize.keyGoogleMaps;
|
|
10
|
+
const apiKey = props.googleApiKey;
|
|
13
11
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
14
12
|
const mediaService = getMediaService() ;
|
|
15
13
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
EMediaType, EPictureFlags, IPictureFile, IMediaFolder, IMediaService, IMediaAppConfig, EPictureQuality,
|
|
8
8
|
MediaHelper, getMediaBinSymbol, getPlayerSymbol
|
|
9
9
|
} from '@christianriedl/media';
|
|
10
|
+
import { authorizeSymbol } from '@christianriedl/rest';
|
|
10
11
|
|
|
11
12
|
import PhotoMetaData from '../components/PhotoMetaData.vue';
|
|
12
13
|
import PhotoMap from '../components/PhotoMap.vue';
|
|
@@ -15,6 +16,8 @@
|
|
|
15
16
|
|
|
16
17
|
const router = useRouter();
|
|
17
18
|
const route = useRoute();
|
|
19
|
+
const authorize = inject(authorizeSymbol)!;
|
|
20
|
+
const googleApiKey = authorize.keyGoogleMaps;
|
|
18
21
|
const appState = inject(appStateSymbol)!;
|
|
19
22
|
const appConfig = inject(appConfigSymbol)!;
|
|
20
23
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
@@ -481,7 +484,7 @@
|
|
|
481
484
|
<v-dialog v-model="showMap" :fullscreen="isMobile" width="50%">
|
|
482
485
|
<v-card>
|
|
483
486
|
<v-card-text>
|
|
484
|
-
<photo-map :location="location" :zoom="zoom"></photo-map>
|
|
487
|
+
<photo-map :googleApiKey="googleApiKey" :location="location" :zoom="zoom"></photo-map>
|
|
485
488
|
</v-card-text>
|
|
486
489
|
<v-card-actions>
|
|
487
490
|
<v-btn size="large" @click="showMap = false">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { inject, ref, shallowRef, computed, onMounted, StyleValue } from 'vue';
|
|
3
3
|
import { useRouter, useRoute } from 'vue-router';
|
|
4
4
|
import { IAppState, appStateSymbol, IAppConfig, appConfigSymbol, EDevice, Helper } from '@christianriedl/utils';
|
|
5
|
-
import { IRestResult, IValueResult } from '@christianriedl/rest';
|
|
5
|
+
import { IRestResult, IValueResult, authorizeSymbol } from '@christianriedl/rest';
|
|
6
6
|
import { EOrientation, EMediaType, IMediaFolder, IPictureFile, IMediaService, IMediaAppConfig,
|
|
7
7
|
EPictureFlags, getMediaBinSymbol, MediaHelper, IPhotoRegion, IPhotoMarker
|
|
8
8
|
} from '@christianriedl/media';
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
const appConfig = inject(appConfigSymbol)!;
|
|
14
14
|
const mediaAppConfig = appConfig as unknown as IMediaAppConfig;
|
|
15
15
|
const getMediaService = inject(getMediaBinSymbol)!;
|
|
16
|
-
const mediaService = getMediaService()
|
|
16
|
+
const mediaService = getMediaService();
|
|
17
|
+
const authorize = inject(authorizeSymbol)!;
|
|
18
|
+
const googleApiKey = authorize.keyGoogleMaps;
|
|
19
|
+
|
|
17
20
|
const heightStyle = computed<StyleValue>(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
18
21
|
const isMobile = appState.isMobile && appState.device !== EDevice.iPad;
|
|
19
22
|
const router = useRouter();
|
|
@@ -299,7 +302,7 @@
|
|
|
299
302
|
<v-dialog v-model="showMap">
|
|
300
303
|
<v-card>
|
|
301
304
|
<v-card-text>
|
|
302
|
-
<photo-map :location="center" :zoom="zoom" :selectRegion="selectedRegion" :fotos="foundFotos" @select="onGpsSelect"></photo-map>
|
|
305
|
+
<photo-map :googleApiKey="googleApiKey" :location="center" :zoom="zoom" :selectRegion="selectedRegion" :fotos="foundFotos" @select="onGpsSelect"></photo-map>
|
|
303
306
|
</v-card-text>
|
|
304
307
|
<v-card-actions>
|
|
305
308
|
<v-btn size="large" @click="onCloseGps">
|