@christianriedl/media 1.0.8 → 1.0.9
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.9",
|
|
4
4
|
"description": "RIC media interfaces",
|
|
5
5
|
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"author": "Christian Riedl",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@christianriedl/utils": "^1.0.
|
|
22
|
-
"@christianriedl/rest": "^1.0.
|
|
21
|
+
"@christianriedl/utils": "^1.0.57",
|
|
22
|
+
"@christianriedl/rest": "^1.0.22"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^4.6.3",
|
package/src/views/MusicPage.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { inject, ref, reactive, computed, onMounted, onUnmounted, nextTick, watch } from 'vue';
|
|
3
3
|
import { IAppState, Helper } from '@christianriedl/utils';
|
|
4
|
-
import { Authorize } from '@christianriedl/rest';
|
|
4
|
+
import { Authorize, EScope } from '@christianriedl/rest';
|
|
5
5
|
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IAudioFile, MediaService, EPlayState, PlayerService } from '@christianriedl/media';
|
|
6
6
|
|
|
7
7
|
const appState = inject<IAppState>('appstate')!;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
const playerService = getPlayerService();
|
|
13
13
|
const heightStyle = computed(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
14
14
|
const isMobile = appState.isMobile;
|
|
15
|
-
const supportsLocalMedia = authorize.checkScope(
|
|
15
|
+
const supportsLocalMedia = authorize.checkScope(EScope.Media);
|
|
16
16
|
|
|
17
17
|
const playerNames = reactive<string[]>(['Local']);
|
|
18
18
|
const currentPlayer = ref('Local');
|
package/src/views/VideosPage.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { inject, ref, reactive, computed, onMounted, onUnmounted, nextTick, watch } from 'vue';
|
|
3
3
|
import { useRouter } from 'vue-router';
|
|
4
4
|
import { IAppState } from '@christianriedl/utils';
|
|
5
|
-
import { Authorize } from '@christianriedl/rest';
|
|
5
|
+
import { Authorize, EScope } from '@christianriedl/rest';
|
|
6
6
|
import { EItemType, EMediaType, IMediaFolder, IMediaItem, IVideoFile, MediaService, PlayerService } from '@christianriedl/media';
|
|
7
7
|
import { ISensorsState } from '@christianriedl/smarthome';
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
const playerService = getPlayerService();
|
|
16
16
|
const rendererName = "[TV] Samsung Q9 Series (75)";
|
|
17
17
|
const showRenderer = ref(false);
|
|
18
|
-
const supportsLocalMedia = authorize.checkScope(
|
|
18
|
+
const supportsLocalMedia = authorize.checkScope(EScope.Media);
|
|
19
19
|
|
|
20
20
|
const heightStyle = computed(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
|
|
21
21
|
const isMobile = appState.isMobile;
|