fix: lint
This commit is contained in:
parent
dd3a5fe6b5
commit
9ec29cad30
@ -58,8 +58,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
const emit = defineEmits(['update:modelValue', 'close', 'close-on-change'])
|
const emit = defineEmits(['update:modelValue', 'close', 'close-on-change'])
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
|
||||||
|
|
||||||
const date = ref<Date | null>()
|
const date = ref<Date | null>()
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const changed = ref(false)
|
const changed = ref(false)
|
||||||
|
@ -95,7 +95,6 @@ const emit = defineEmits(['update:modelValue', 'close-on-change'])
|
|||||||
const {t} = useI18n({useScope: 'global'})
|
const {t} = useI18n({useScope: 'global'})
|
||||||
|
|
||||||
const date = ref<Date | null>()
|
const date = ref<Date | null>()
|
||||||
const show = ref(false)
|
|
||||||
const changed = ref(false)
|
const changed = ref(false)
|
||||||
|
|
||||||
const modelValue = toRef(props, 'modelValue')
|
const modelValue = toRef(props, 'modelValue')
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
<Card class="reminder-options-popup" :class="{'is-open': isOpen}" :padding="false">
|
<Card class="reminder-options-popup" :class="{'is-open': isOpen}" :padding="false">
|
||||||
<div class="options" v-if="showFormSwitch === null">
|
<div class="options" v-if="showFormSwitch === null">
|
||||||
<SimpleButton
|
<SimpleButton
|
||||||
v-for="p in presets"
|
v-for="(p, k) in presets"
|
||||||
|
:key="k"
|
||||||
class="option-button"
|
class="option-button"
|
||||||
@click="setReminderFromPreset(p, toggle)"
|
@click="setReminderFromPreset(p, toggle)"
|
||||||
>
|
>
|
||||||
|
@ -48,7 +48,6 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref, watch, type PropType} from 'vue'
|
import {ref, watch, type PropType} from 'vue'
|
||||||
import {useI18n} from 'vue-i18n'
|
|
||||||
import {toRef} from '@vueuse/core'
|
import {toRef} from '@vueuse/core'
|
||||||
|
|
||||||
import {periodToSeconds, PeriodUnit, secondsToPeriod} from '@/helpers/time/period'
|
import {periodToSeconds, PeriodUnit, secondsToPeriod} from '@/helpers/time/period'
|
||||||
@ -58,8 +57,6 @@ import TaskReminderModel from '@/models/taskReminder'
|
|||||||
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
|
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
|
||||||
import {REMINDER_PERIOD_RELATIVE_TO_TYPES, type IReminderPeriodRelativeTo} from '@/types/IReminderPeriodRelativeTo'
|
import {REMINDER_PERIOD_RELATIVE_TO_TYPES, type IReminderPeriodRelativeTo} from '@/types/IReminderPeriodRelativeTo'
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Object as PropType<ITaskReminder>,
|
type: Object as PropType<ITaskReminder>,
|
||||||
@ -75,8 +72,6 @@ const emit = defineEmits(['update:modelValue'])
|
|||||||
|
|
||||||
const reminder = ref<ITaskReminder>(new TaskReminderModel())
|
const reminder = ref<ITaskReminder>(new TaskReminderModel())
|
||||||
|
|
||||||
const showForm = ref(false)
|
|
||||||
|
|
||||||
interface PeriodInput {
|
interface PeriodInput {
|
||||||
duration: number,
|
duration: number,
|
||||||
durationUnit: PeriodUnit,
|
durationUnit: PeriodUnit,
|
||||||
|
@ -28,13 +28,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<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 type {ITaskReminder} from '@/modelTypes/ITaskReminder'
|
||||||
|
|
||||||
import BaseButton from '@/components/base/BaseButton.vue'
|
import BaseButton from '@/components/base/BaseButton.vue'
|
||||||
import ReminderDetail from '@/components/tasks/partials/reminder-detail.vue'
|
import ReminderDetail from '@/components/tasks/partials/reminder-detail.vue'
|
||||||
import TaskReminderModel from '@/models/taskReminder'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
@ -62,13 +61,6 @@ function updateData() {
|
|||||||
emit('update:modelValue', reminders.value)
|
emit('update:modelValue', reminders.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
function editReminder(index: number) {
|
|
||||||
if (reminders.value[index] === null) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
updateData()
|
|
||||||
}
|
|
||||||
|
|
||||||
function addNewReminder(newReminder: ITaskReminder) {
|
function addNewReminder(newReminder: ITaskReminder) {
|
||||||
if (newReminder === null) {
|
if (newReminder === null) {
|
||||||
return
|
return
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {PRIORITIES, type Priority} from '@/constants/priorities'
|
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 {ITask} from '@/modelTypes/ITask'
|
||||||
import type {ILabel} from '@/modelTypes/ILabel'
|
import type {ILabel} from '@/modelTypes/ILabel'
|
||||||
@ -22,7 +21,7 @@ import AttachmentModel from './attachment'
|
|||||||
import SubscriptionModel from './subscription'
|
import SubscriptionModel from './subscription'
|
||||||
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
|
import type {ITaskReminder} from '@/modelTypes/ITaskReminder'
|
||||||
import TaskReminderModel from '@/models/taskReminder'
|
import TaskReminderModel from '@/models/taskReminder'
|
||||||
import {periodToSeconds, secondsToPeriod} from '@/helpers/time/period'
|
import {secondsToPeriod} from '@/helpers/time/period'
|
||||||
|
|
||||||
export const TASK_DEFAULT_COLOR = '#1973ff'
|
export const TASK_DEFAULT_COLOR = '#1973ff'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user