mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-06-02 12:54:34 +00:00
Fix eslint config and apply all fixes.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<h1 class="font-bold text-center mb-3" v-t="'titles.history'" />
|
||||
<h1 v-t="'titles.history'" class="font-bold text-center mb-3" />
|
||||
|
||||
<div class="flex">
|
||||
<div class="flex md:items-center gap-2 flex-col md:flex-row">
|
||||
<button class="btn" v-t="'actions.clear_history'" @click="clearHistory" />
|
||||
<button v-t="'actions.clear_history'" class="btn" @click="clearHistory" />
|
||||
|
||||
<button class="btn" v-t="'actions.export_to_json'" @click="exportHistory" />
|
||||
<button v-t="'actions.export_to_json'" class="btn" @click="exportHistory" />
|
||||
|
||||
<div class="ml-auto flex gap-1 items-center">
|
||||
<SortingSelector by-key="watchedAt" @apply="order => videos.sort(order)" />
|
||||
@@ -13,19 +13,19 @@
|
||||
</div>
|
||||
|
||||
<div class="flex ml-4 items-center">
|
||||
<input id="autoDelete" type="checkbox" v-model="autoDeleteHistory" @change="onChange" />
|
||||
<label class="ml-2" for="autoDelete" v-t="'actions.delete_automatically'" />
|
||||
<select class="pl-3 ml-3 select" v-model="autoDeleteDelayHours" @change="onChange">
|
||||
<option value="1" v-t="{ path: 'info.hours', args: { amount: '1' } }" />
|
||||
<option value="3" v-t="{ path: 'info.hours', args: { amount: '3' } }" />
|
||||
<option value="6" v-t="{ path: 'info.hours', args: { amount: '6' } }" />
|
||||
<option value="12" v-t="{ path: 'info.hours', args: { amount: '12' } }" />
|
||||
<option value="24" v-t="{ path: 'info.days', args: { amount: '1' } }" />
|
||||
<option value="72" v-t="{ path: 'info.days', args: { amount: '3' } }" />
|
||||
<option value="168" v-t="{ path: 'info.weeks', args: { amount: '1' } }" />
|
||||
<option value="336" v-t="{ path: 'info.weeks', args: { amount: '3' } }" />
|
||||
<option value="672" v-t="{ path: 'info.months', args: { amount: '1' } }" />
|
||||
<option value="1344" v-t="{ path: 'info.months', args: { amount: '2' } }" />
|
||||
<input id="autoDelete" v-model="autoDeleteHistory" type="checkbox" @change="onChange" />
|
||||
<label v-t="'actions.delete_automatically'" class="ml-2" for="autoDelete" />
|
||||
<select v-model="autoDeleteDelayHours" class="pl-3 ml-3 select" @change="onChange">
|
||||
<option v-t="{ path: 'info.hours', args: { amount: '1' } }" value="1" />
|
||||
<option v-t="{ path: 'info.hours', args: { amount: '3' } }" value="3" />
|
||||
<option v-t="{ path: 'info.hours', args: { amount: '6' } }" value="6" />
|
||||
<option v-t="{ path: 'info.hours', args: { amount: '12' } }" value="12" />
|
||||
<option v-t="{ path: 'info.days', args: { amount: '1' } }" value="24" />
|
||||
<option v-t="{ path: 'info.days', args: { amount: '3' } }" value="72" />
|
||||
<option v-t="{ path: 'info.weeks', args: { amount: '1' } }" value="168" />
|
||||
<option v-t="{ path: 'info.weeks', args: { amount: '3' } }" value="336" />
|
||||
<option v-t="{ path: 'info.months', args: { amount: '1' } }" value="672" />
|
||||
<option v-t="{ path: 'info.months', args: { amount: '2' } }" value="1344" />
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user