fix: lint
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2023-06-10 17:26:06 +02:00
parent dd3a5fe6b5
commit 9ec29cad30
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
6 changed files with 4 additions and 20 deletions

View File

@ -58,8 +58,6 @@ const props = defineProps({
const emit = defineEmits(['update:modelValue', 'close', 'close-on-change'])
const {t} = useI18n({useScope: 'global'})
const date = ref<Date | null>()
const show = ref(false)
const changed = ref(false)

View File

@ -95,7 +95,6 @@ const emit = defineEmits(['update:modelValue', 'close-on-change'])
const {t} = useI18n({useScope: 'global'})
const date = ref<Date | null>()
const show = ref(false)
const changed = ref(false)
const modelValue = toRef(props, 'modelValue')

View File

@ -12,7 +12,8 @@
<Card class="reminder-options-popup" :class="{'is-open': isOpen}" :padding="false">
<div class="options" v-if="showFormSwitch === null">
<SimpleButton
v-for="p in presets"
v-for="(p, k) in presets"
:key="k"
class="option-button"
@click="setReminderFromPreset(p, toggle)"
>

View File

@ -48,7 +48,6 @@
<script setup lang="ts">
import {ref, watch, type PropType} from 'vue'
import {useI18n} from 'vue-i18n'
import {toRef} from '@vueuse/core'
import {periodToSeconds, PeriodUnit, secondsToPeriod} from '@/helpers/time/period'
@ -58,8 +57,6 @@ import TaskReminderModel from '@/models/taskReminder'
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
import {REMINDER_PERIOD_RELATIVE_TO_TYPES, type IReminderPeriodRelativeTo} from '@/types/IReminderPeriodRelativeTo'
const {t} = useI18n({useScope: 'global'})
const props = defineProps({
modelValue: {
type: Object as PropType<ITaskReminder>,
@ -75,8 +72,6 @@ const emit = defineEmits(['update:modelValue'])
const reminder = ref<ITaskReminder>(new TaskReminderModel())
const showForm = ref(false)
interface PeriodInput {
duration: number,
durationUnit: PeriodUnit,

View File

@ -28,13 +28,12 @@
</template>
<script setup lang="ts">
import {reactive, ref, watch, type PropType} from 'vue'
import {ref, watch, type PropType} from 'vue'
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
import BaseButton from '@/components/base/BaseButton.vue'
import ReminderDetail from '@/components/tasks/partials/reminder-detail.vue'
import TaskReminderModel from '@/models/taskReminder'
const props = defineProps({
modelValue: {
@ -62,13 +61,6 @@ function updateData() {
emit('update:modelValue', reminders.value)
}
function editReminder(index: number) {
if (reminders.value[index] === null) {
return
}
updateData()
}
function addNewReminder(newReminder: ITaskReminder) {
if (newReminder === null) {
return

View File

@ -1,5 +1,4 @@
import {PRIORITIES, type Priority} from '@/constants/priorities'
import {SECONDS_A_DAY, SECONDS_A_HOUR, SECONDS_A_MONTH, SECONDS_A_WEEK, SECONDS_A_YEAR} from '@/constants/date'
import type {ITask} from '@/modelTypes/ITask'
import type {ILabel} from '@/modelTypes/ILabel'
@ -22,7 +21,7 @@ import AttachmentModel from './attachment'
import SubscriptionModel from './subscription'
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
import TaskReminderModel from '@/models/taskReminder'
import {periodToSeconds, secondsToPeriod} from '@/helpers/time/period'
import {secondsToPeriod} from '@/helpers/time/period'
export const TASK_DEFAULT_COLOR = '#1973ff'