Added command to update all courses and chapters, downloading videos and checking video size is split into two queues, chapters can be mark to sync individually, updated readme, check if subscription is active, playback rate controll,
This commit is contained in:
@@ -66,17 +66,17 @@
|
||||
<script>
|
||||
const value = document.querySelector("#playback")
|
||||
const input = document.querySelector("#playback_range")
|
||||
document.querySelector('body').onload = function(){
|
||||
document.querySelector('body').onload = function () {
|
||||
const playbackRate = localStorage['playback'] || 1;
|
||||
document.querySelector('video').playbackRate = playbackRate;
|
||||
document.querySelector('#playback_range').value = playbackRate;
|
||||
value.textContent = 'x'+playbackRate;
|
||||
value.textContent = 'x' + playbackRate;
|
||||
};
|
||||
|
||||
value.textContent = 'x'+input.value
|
||||
value.textContent = 'x' + input.value
|
||||
input.addEventListener("input", (event) => {
|
||||
localStorage['playback'] = event.target.value;
|
||||
value.textContent = 'x'+event.target.value;
|
||||
value.textContent = 'x' + event.target.value;
|
||||
document.querySelector('video').playbackRate = event.target.value;
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<th>Sync offline</th>
|
||||
<th>Synced offline</th>
|
||||
<th>File size</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach($course->chapters()->get() as $chapter)
|
||||
@@ -24,6 +25,12 @@
|
||||
<td>{{ $chapter->sync_offline?'Yes':'no' }}</td>
|
||||
<td>{{ $chapter->is_video_file?'Yes':'-' }}</td>
|
||||
<td>{{ $chapter->video_size_human }}</td>
|
||||
<td class="text-end">
|
||||
@if(!$chapter->sync_offline)
|
||||
<a
|
||||
href="{{ route('course.chapter.sync', ['course' => $chapter->course->id,'chapter' => $chapter->id]) }}">sync</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
<a href="?order=name&dir={{ request()->has('dir')? ['asc'=>'desc', 'desc'=>'asc'][request()->dir]: 'desc'}}">Name</a>
|
||||
|
||||
<a href="{{ route('index', ['order' => 'name', 'dir' => request()->whenHas('dir', fn($dir) => ['asc'=>'desc', 'desc'=>'asc'][$dir], fn() => 'desc')]) }}">Name</a>
|
||||
</th>
|
||||
<th>Tracks</th>
|
||||
<th>Sync</th>
|
||||
@@ -21,7 +22,7 @@
|
||||
<td class="align-middle">
|
||||
<a class="text-decoration-none"
|
||||
href="{{ route('course.index', ['course' => $course->id]) }}">{{ $course->name }}</a>
|
||||
<p class="text-muted">
|
||||
<p class="">
|
||||
course status: <span class="fw-lighter">{{ $course->status }}</span>
|
||||
published: <span class="fw-lighter"><a
|
||||
href="?order=published_at&dir={{ request()->has('dir')? ['asc'=>'desc', 'desc'=>'asc'][request()->dir]: 'desc'}}"><abbr
|
||||
|
||||
Reference in New Issue
Block a user