File tree 6 files changed +18
-16
lines changed
6 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import IconMovie from '~/components/icons/IconMovie.vue';
9
9
import IconScreen from ' ~/components/icons/IconScreen.vue' ;
10
10
import { Logger } from ' ~/services/logger.service' ;
11
11
import { NotificationService } from ' ~/services/notification.service' ;
12
- import { useWatchingStoreRefs } from ' ~/stores/data/watching.store' ;
13
- import { useI18n } from ' ~/utils/i18n.utils' ;
14
12
import {
15
13
type CheckinQuery ,
16
14
isWatchingMovie ,
17
15
isWatchingShow ,
18
16
useCancelWatching ,
19
17
useWatchingProgress ,
20
- } from ' ~/utils/watching.utils' ;
18
+ } from ' ~/stores/composable/use-watching.ts' ;
19
+ import { useWatchingStoreRefs } from ' ~/stores/data/watching.store' ;
20
+ import { useI18n } from ' ~/utils/i18n.utils' ;
21
21
import { watchMedia } from ' ~/utils/window.utils' ;
22
22
23
23
const props = defineProps ({
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ import { Logger } from '~/services/logger.service';
25
25
import { NotificationService } from ' ~/services/notification.service' ;
26
26
import { ResolveExternalLinks } from ' ~/settings/external.links' ;
27
27
import { useAppStateStoreRefs } from ' ~/stores/app-state.store' ;
28
+ import {
29
+ type CheckinQuery ,
30
+ isWatchingMovie ,
31
+ useCancelWatching ,
32
+ useWatchingProgress ,
33
+ } from ' ~/stores/composable/use-watching.ts' ;
28
34
import { useListStore } from ' ~/stores/data/list.store' ;
29
35
import { useListsStoreRefs } from ' ~/stores/data/lists.store' ;
30
36
import { useMovieStore , useMovieStoreRefs } from ' ~/stores/data/movie.store' ;
31
37
import { useWatchingStoreRefs } from ' ~/stores/data/watching.store' ;
32
38
import { useExtensionSettingsStoreRefs } from ' ~/stores/settings/extension.store' ;
33
39
import { useI18n } from ' ~/utils/i18n.utils' ;
34
- import {
35
- type CheckinQuery ,
36
- isWatchingMovie ,
37
- useCancelWatching ,
38
- useWatchingProgress ,
39
- } from ' ~/utils/watching.utils' ;
40
40
41
41
const props = defineProps ({
42
42
movieId: {
Original file line number Diff line number Diff line change @@ -34,18 +34,18 @@ import { Logger } from '~/services/logger.service';
34
34
import { NotificationService } from ' ~/services/notification.service' ;
35
35
import { ResolveExternalLinks } from ' ~/settings/external.links' ;
36
36
import { useAppStateStoreRefs } from ' ~/stores/app-state.store' ;
37
+ import {
38
+ type CheckinQuery ,
39
+ isWatchingShow ,
40
+ useCancelWatching ,
41
+ useWatchingProgress ,
42
+ } from ' ~/stores/composable/use-watching.ts' ;
37
43
import { type AddOrRemoveIds , useListStore } from ' ~/stores/data/list.store' ;
38
44
import { useListsStoreRefs } from ' ~/stores/data/lists.store' ;
39
45
import { useShowStore } from ' ~/stores/data/show.store' ;
40
46
import { useWatchingStoreRefs } from ' ~/stores/data/watching.store' ;
41
47
import { useExtensionSettingsStoreRefs } from ' ~/stores/settings/extension.store' ;
42
48
import { useI18n } from ' ~/utils/i18n.utils' ;
43
- import {
44
- type CheckinQuery ,
45
- isWatchingShow ,
46
- useCancelWatching ,
47
- useWatchingProgress ,
48
- } from ' ~/utils/watching.utils' ;
49
49
50
50
const props = defineProps ({
51
51
showId: {
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ export const ListScrollItemType = {
95
95
96
96
export type ListScrollItemTypes = ( typeof ListScrollItemType ) [ keyof typeof ListScrollItemType ] ;
97
97
98
+ export const isEpisodeOrMovie = ( type ?: ListScrollItemTypes ) : type is 'episode' | 'movie' => ! ! type && [ 'episode' , 'movie' ] . includes ( type ) ;
99
+
98
100
export type ListScrollItemMeta < T = { [ key : string ] : unknown } > = {
99
101
source : ListScrollSourceItem | ProgressItem ;
100
102
ids : {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ import { PollingIntervals } from '~/models/polling.model';
10
10
import { Logger } from '~/services/logger.service' ;
11
11
import { NotificationService } from '~/services/notification.service' ;
12
12
import { TraktService } from '~/services/trakt.service' ;
13
+ import { isWatchingMovie , isWatchingShow } from '~/stores/composable/use-watching.ts' ;
13
14
import { useAuthSettingsStoreRefs } from '~/stores/settings/auth.store' ;
14
15
import { storage } from '~/utils/browser/browser-storage.utils' ;
15
16
import { useI18n } from '~/utils/i18n.utils' ;
16
17
import { useDocumentVisible } from '~/utils/store.utils' ;
17
- import { isWatchingMovie , isWatchingShow } from '~/utils/watching.utils' ;
18
18
19
19
const WatchingStoreConstants = {
20
20
Store : 'data.watching' ,
You can’t perform that action at this time.
0 commit comments