feat: lang
TS Lint / Oxlint (push) Successful in 43s
TS Lint / TypeScript (push) Successful in 49s
TS Lint / ESLint (push) Successful in 1m10s

This commit is contained in:
2026-07-14 10:45:35 +02:00
parent d969b9e21b
commit c7b1f3ed49
16 changed files with 237 additions and 55 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { onBeforeMount, ref, watch, computed } from "vue";
import { onBeforeMount, ref, watch, computed, defineAsyncComponent } from "vue";
import type { Task } from "@/types";
import { Copy, Trash, Save, X } from "@lucide/vue";
import { updateTask } from "@/api/tasks";
import CronInput from "@/components/CronInput.vue";
const CronInput = defineAsyncComponent(() => import("@/components/CronInput.vue"));
import { taskCompleted, taskNextReset } from "@/lib/tasks";
import { relativeTime } from "@/lib/dates";
@@ -85,10 +85,10 @@ watch(task, () => {
>
<div>{{ task.name }}</div>
<div v-if="showLastChecked && !checked && task.check_date" class="font-light text-xs italic">
Checked {{ relativeTime(task.check_date) }}
{{ $t('checked') }} {{ relativeTime(task.check_date, $i18n.locale) }}
</div>
<div v-if="showNextReset && checked && nextReset" class="font-light text-xs italic">
Resets {{ relativeTime(nextReset) }}
{{ $t('resets') }} {{ relativeTime(nextReset, $i18n.locale) }}
</div>
</div>
<template v-else>