14
14
<ion-grid style =" height : 100% " >
15
15
<ion-row class =" remoteButtons" >
16
16
<ion-col :size =" screenOrientation.startsWith('landscape') ? 6 : 12" >
17
- <ion-button
18
- :disabled =" !connectionState || !playerData.filename"
19
- @click =" changeVolume('decrease')"
20
- >
17
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" changeVolume('decrease')" >
21
18
<ion-icon slot =" icon-only" :icon =" volumeLowOutline" ></ion-icon >
22
19
</ion-button >
23
- <ion-button
24
- :disabled =" !connectionState || !playerData.filename"
25
- @click =" changeVolume('mute')"
26
- >
20
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" changeVolume('mute')" >
27
21
<ion-icon slot =" icon-only" :icon =" volumeMuteOutline" ></ion-icon >
28
22
</ion-button >
29
- <ion-button
30
- :disabled =" !connectionState || !playerData.filename"
31
- @click =" changeVolume('increase')"
32
- >
23
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" changeVolume('increase')" >
33
24
<ion-icon slot =" icon-only" :icon =" volumeHighOutline" ></ion-icon >
34
25
</ion-button >
35
26
</ion-col >
36
27
<ion-col :size =" screenOrientation.startsWith('landscape') ? 6 : 12" >
37
- <ion-button
38
- :disabled =" !connectionState || !playerData.filename"
39
- @click =" onInfoClicked"
40
- >
28
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" onInfoClicked" >
41
29
<ion-icon slot =" icon-only" :icon =" informationCircle" ></ion-icon >
42
30
</ion-button >
43
- <ion-button
44
- :disabled =" !connectionState || !playerData.filename"
45
- @click =" onFullscreenClicked"
46
- >
31
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" onFullscreenClicked" >
47
32
<ion-icon slot =" icon-only" :icon =" scanOutline" ></ion-icon >
48
33
</ion-button >
49
- <ion-button
50
- :disabled =" !connectionState || !playerData.filename"
51
- @click =" onAudioSettingsClicked"
52
- >
34
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" onAudioSettingsClicked" >
53
35
<ion-icon slot =" icon-only" :icon =" earOutline" ></ion-icon >
54
36
</ion-button >
55
- <ion-button
56
- :disabled =" !connectionState || !playerData.filename"
57
- @click =" onSubtitleSettingsClicked"
58
- >
59
- <ion-icon
60
- class =" rotateIcon"
61
- slot =" icon-only"
62
- :icon =" journalOutline"
63
- ></ion-icon >
37
+ <ion-button :disabled =" !connectionState || !playerData.filename" @click =" onSubtitleSettingsClicked" >
38
+ <ion-icon class =" rotateIcon" slot =" icon-only" :icon =" journalOutline" ></ion-icon >
64
39
</ion-button >
65
40
</ion-col >
66
41
<ion-col :size =" screenOrientation.startsWith('landscape') ? 6 : 12" >
67
- <ion-button
68
- :disabled =" !connectionState || !filebrowserEnabled"
69
- @click =" onFileBrowserClicked"
70
- >
42
+ <ion-button :disabled =" !connectionState || !filebrowserEnabled" @click =" onFileBrowserClicked" >
71
43
<ion-icon slot =" icon-only" :icon =" folder" ></ion-icon >
72
44
</ion-button >
73
45
<ion-button :disabled =" !connectionState" @click =" onOpenURLClicked" >
74
46
<ion-icon slot =" icon-only" :icon =" logoYoutube" ></ion-icon >
75
47
</ion-button >
76
- <ion-button
77
- :disabled =" playerData['chapter-list'].length == 0"
78
- @click =" onChaptersClicked"
79
- >
48
+ <ion-button :disabled =" playerData['chapter-list'].length == 0" @click =" onChaptersClicked" >
80
49
<ion-icon slot =" icon-only" :icon =" bookOutline" ></ion-icon >
81
50
</ion-button >
82
51
<ion-button :disabled =" !connectionState" @click =" onShutdownClicked" >
89
58
<ion-content v-else >
90
59
<ion-grid >
91
60
<ion-row >
92
- <ion-col
93
- >Server not configued yet.
61
+ <ion-col >Server not configued yet.
94
62
<p >
95
63
If you need help
96
- <a @click =" openURL('https://github.com/husudosu/mpv-remote-app')"
97
- >check tutorial here</a
98
- >
64
+ <a @click =" openURL('https://github.com/husudosu/mpv-remote-app')" >check tutorial here</a >
99
65
</p >
100
66
</ion-col >
101
67
</ion-row >
102
68
</ion-grid >
103
69
</ion-content >
104
- <playerController
105
- v-if =" configured && playerData.filename"
106
- ></playerController >
70
+ <playerController v-if =" configured && playerData.filename" ></playerController >
107
71
</ion-page >
108
72
</template >
109
73
@@ -263,10 +227,11 @@ export default {
263
227
};
264
228
265
229
const onChaptersClicked = async () => {
266
- const buttons = playerData .value [" chapter-list" ].map ((chapter ) => {
230
+ const buttons = playerData .value [" chapter-list" ].map ((chapter , index ) => {
267
231
return {
268
232
role: chapter .time ,
269
233
text: ` ${ chapter .title } (${ formatTime (chapter .time )} )` ,
234
+ cssClass: playerData .value [" chapter" ] === index ? " actionSheetCurrentChapter" : " "
270
235
};
271
236
});
272
237
@@ -397,6 +362,7 @@ export default {
397
362
.remoteButtons {
398
363
text-align : left ;
399
364
}
365
+
400
366
.remoteButtons ion-button {
401
367
margin : 5px ;
402
368
width : 50px ;
@@ -408,6 +374,7 @@ export default {
408
374
.remoteButtons {
409
375
text-align : center ;
410
376
}
377
+
411
378
.remoteButtons ion-button {
412
379
margin : 7px ;
413
380
width : 60px ;
0 commit comments