feat: use defineComponent wrapper

This commit is contained in:
Dominik Pschenitschni 2022-02-15 13:07:59 +01:00 committed by kolaente
parent a3329f1b42
commit ba9f69344a
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
75 changed files with 309 additions and 236 deletions

View file

@ -11,10 +11,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
// see https://v3.vuejs.org/api/sfc-script-setup.html#usage-alongside-normal-script // see https://v3.vuejs.org/api/sfc-script-setup.html#usage-alongside-normal-script
export default { export default defineComponent({
inheritAttrs: false, inheritAttrs: false,
} })
</script> </script>
<script lang="ts" setup> <script lang="ts" setup>

View file

@ -157,6 +157,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
@ -169,7 +171,7 @@ import {CURRENT_LIST, MENU_ACTIVE, LOADING, LOADING_MODULE} from '@/store/mutati
import {calculateItemPosition} from '@/helpers/calculateItemPosition' import {calculateItemPosition} from '@/helpers/calculateItemPosition'
export default { export default defineComponent({
name: 'navigation', name: 'navigation',
components: { components: {
@ -285,7 +287,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -8,7 +8,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'update', name: 'update',
data() { data() {
return { return {
@ -45,7 +47,7 @@ export default {
this.registration.waiting.postMessage('skipWaiting') this.registration.waiting.postMessage('skipWaiting')
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -18,9 +18,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'x-button', name: 'x-button',
} })
</script> </script>
<script setup lang="ts"> <script setup lang="ts">

View file

@ -35,6 +35,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {createRandomID} from '@/helpers/randomId' import {createRandomID} from '@/helpers/randomId'
const DEFAULT_COLORS = [ const DEFAULT_COLORS = [
@ -46,7 +48,7 @@ const DEFAULT_COLORS = [
'#00db60', '#00db60',
] ]
export default { export default defineComponent({
name: 'colorPicker', name: 'colorPicker',
data() { data() {
return { return {
@ -105,7 +107,7 @@ export default {
this.update(true) this.update(true)
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -111,6 +111,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import flatPickr from 'vue-flatpickr-component' import flatPickr from 'vue-flatpickr-component'
import 'flatpickr/dist/flatpickr.css' import 'flatpickr/dist/flatpickr.css'
import { i18n } from '@/i18n' import { i18n } from '@/i18n'
@ -121,7 +123,7 @@ import {calculateNearestHours} from '@/helpers/time/calculateNearestHours'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside' import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
import {createDateFromString} from '@/helpers/time/createDateFromString' import {createDateFromString} from '@/helpers/time/createDateFromString'
export default { export default defineComponent({
name: 'datepicker', name: 'datepicker',
data() { data() {
return { return {
@ -249,7 +251,7 @@ export default {
return format(newDate, 'E') return format(newDate, 'E')
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -43,6 +43,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import VueEasymde from './vue-easymde/vue-easymde.vue' import VueEasymde from './vue-easymde/vue-easymde.vue'
import {marked} from 'marked' import {marked} from 'marked'
import DOMPurify from 'dompurify' import DOMPurify from 'dompurify'
@ -55,7 +57,7 @@ import AttachmentService from '../../services/attachment'
import {findCheckboxesInText} from '../../helpers/checklistFromText' import {findCheckboxesInText} from '../../helpers/checklistFromText'
import {createRandomID} from '@/helpers/randomId' import {createRandomID} from '@/helpers/randomId'
export default { export default defineComponent({
name: 'editor', name: 'editor',
components: { components: {
VueEasymde, VueEasymde,
@ -304,7 +306,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss"> <style lang="scss">

View file

@ -20,9 +20,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {createRandomID} from '@/helpers/randomId' import {createRandomID} from '@/helpers/randomId'
export default { export default defineComponent({
name: 'fancycheckbox', name: 'fancycheckbox',
data() { data() {
return { return {
@ -57,7 +59,7 @@ export default {
this.$emit('change', checked) this.$emit('change', checked)
}, },
}, },
} })
</script> </script>

View file

@ -83,10 +83,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {i18n} from '@/i18n' import {i18n} from '@/i18n'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside' import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
export default { export default defineComponent({
name: 'multiselect', name: 'multiselect',
data() { data() {
return { return {
@ -366,7 +367,7 @@ export default {
this.$refs.searchInput.focus() this.$refs.searchInput.focus()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -10,10 +10,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import EasyMDE from 'easymde' import EasyMDE from 'easymde'
import {marked} from 'marked' import {marked} from 'marked'
export default { export default defineComponent({
name: 'vue-easymde', name: 'vue-easymde',
props: { props: {
modelValue: String, modelValue: String,
@ -143,7 +145,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -28,12 +28,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import Filters from '@/components/list/partials/filters' import Filters from '@/components/list/partials/filters'
import Popup from '@/components/misc/popup' import Popup from '@/components/misc/popup'
import {getDefaultParams} from '@/composables/taskList' import {getDefaultParams} from '@/composables/taskList'
export default { export default defineComponent({
name: 'filter-popup', name: 'filter-popup',
components: { components: {
Popup, Popup,
@ -85,7 +87,7 @@ export default {
this.value = {...getDefaultParams()} this.value = {...getDefaultParams()}
}, },
}, },
} })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

View file

@ -175,6 +175,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import DatepickerWithRange from '@/components/date/datepickerWithRange' import DatepickerWithRange from '@/components/date/datepickerWithRange'
import Fancycheckbox from '../../input/fancycheckbox' import Fancycheckbox from '../../input/fancycheckbox'
@ -223,7 +225,7 @@ const DEFAULT_FILTERS = {
export const ALPHABETICAL_SORT = 'title' export const ALPHABETICAL_SORT = 'title'
export default { export default defineComponent({
name: 'filters', name: 'filters',
components: { components: {
DatepickerWithRange, DatepickerWithRange,
@ -573,7 +575,7 @@ export default {
this.setSingleValueFilter('labels', 'labels', '', 'in') this.setSingleValueFilter('labels', 'labels', '', 'in')
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -41,49 +41,45 @@
</modal> </modal>
</template> </template>
<script lang="ts"> <script setup lang="ts">
import { i18n } from '@/i18n' import { i18n } from '@/i18n'
export default { defineProps({
name: 'create-edit', title: {
props: { type: String,
title: { default: '',
type: String, },
default: '', primaryLabel: {
}, type: String,
primaryLabel: { default() {
type: String, return i18n.global.t('misc.create')
default() {
return i18n.global.t('misc.create')
},
},
primaryIcon: {
type: String,
default: 'plus',
},
primaryDisabled: {
type: Boolean,
default: false,
},
tertiary: {
type: String,
default: '',
},
wide: {
type: Boolean,
default: false,
},
loading: {
type: Boolean,
default: false,
}, },
}, },
emits: ['create', 'primary', 'tertiary'], primaryIcon: {
methods: { type: String,
primary() { default: 'plus',
this.$emit('create')
this.$emit('primary')
},
}, },
primaryDisabled: {
type: Boolean,
default: false,
},
tertiary: {
type: String,
default: '',
},
wide: {
type: Boolean,
default: false,
},
loading: {
type: Boolean,
default: false,
},
})
const emit = defineEmits(['create', 'primary', 'tertiary'])
function primary() {
emit('create')
emit('primary')
} }
</script> </script>

View file

@ -16,9 +16,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside' import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
export default { export default defineComponent({
name: 'dropdown', name: 'dropdown',
data() { data() {
return { return {
@ -55,5 +56,5 @@ export default {
}) })
}, },
}, },
} })
</script> </script>

View file

@ -2,10 +2,4 @@
<p class="has-text-centered has-text-grey is-italic p-4 mb-4"> <p class="has-text-centered has-text-grey is-italic p-4 mb-4">
<slot></slot> <slot></slot>
</p> </p>
</template> </template>
<script lang="ts">
export default {
name: 'nothing',
}
</script>

View file

@ -37,12 +37,6 @@
</notifications> </notifications>
</template> </template>
<script lang="ts">
export default {
name: 'notification',
}
</script>
<style scoped> <style scoped>
.vue-notification { .vue-notification {
z-index: 9999; z-index: 9999;

View file

@ -48,6 +48,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import NotificationService from '@/services/notification' import NotificationService from '@/services/notification'
import User from '@/components/misc/user.vue' import User from '@/components/misc/user.vue'
import names from '@/models/constants/notificationNames.json' import names from '@/models/constants/notificationNames.json'
@ -56,7 +58,7 @@ import {mapState} from 'vuex'
const LOAD_NOTIFICATIONS_INTERVAL = 10000 const LOAD_NOTIFICATIONS_INTERVAL = 10000
export default { export default defineComponent({
name: 'notifications', name: 'notifications',
components: {User}, components: {User},
data() { data() {
@ -131,7 +133,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -53,6 +53,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TaskService from '@/services/task' import TaskService from '@/services/task'
import TeamService from '@/services/team' import TeamService from '@/services/team'
@ -82,7 +84,7 @@ const SEARCH_MODE_TASKS = 'tasks'
const SEARCH_MODE_LISTS = 'lists' const SEARCH_MODE_LISTS = 'lists'
const SEARCH_MODE_TEAMS = 'teams' const SEARCH_MODE_TEAMS = 'teams'
export default { export default defineComponent({
name: 'quick-actions', name: 'quick-actions',
components: {QuickAddMagic}, components: {QuickAddMagic},
data() { data() {
@ -480,7 +482,7 @@ export default {
this.selectedCmd = null this.selectedCmd = null
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -176,6 +176,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import rights from '../../models/constants/rights' import rights from '../../models/constants/rights'
import LinkShareService from '../../services/linkShare' import LinkShareService from '../../services/linkShare'
@ -184,7 +186,7 @@ import LinkShareModel from '../../models/linkShare'
import copy from 'copy-to-clipboard' import copy from 'copy-to-clipboard'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default defineComponent({
name: 'linkSharing', name: 'linkSharing',
props: { props: {
listId: { listId: {
@ -256,7 +258,7 @@ export default {
return this.frontendUrl + 'share/' + hash + '/auth' return this.frontendUrl + 'share/' + hash + '/auth'
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -131,6 +131,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import UserNamespaceService from '../../services/userNamespace' import UserNamespaceService from '../../services/userNamespace'
import UserNamespaceModel from '../../models/userNamespace' import UserNamespaceModel from '../../models/userNamespace'
import UserListModel from '../../models/userList' import UserListModel from '../../models/userList'
@ -149,7 +151,7 @@ import rights from '../../models/constants/rights.json'
import Multiselect from '@/components/input/multiselect.vue' import Multiselect from '@/components/input/multiselect.vue'
import Nothing from '@/components/misc/nothing.vue' import Nothing from '@/components/misc/nothing.vue'
export default { export default defineComponent({
name: 'userTeamShare', name: 'userTeamShare',
props: { props: {
type: { type: {
@ -363,7 +365,7 @@ export default {
this.found = [] this.found = []
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -76,6 +76,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import TaskService from '../../services/task' import TaskService from '../../services/task'
@ -85,7 +87,7 @@ import EditLabels from './partials/editLabels'
import Reminders from './partials/reminders' import Reminders from './partials/reminders'
import ColorPicker from '../input/colorPicker' import ColorPicker from '../input/colorPicker'
export default { export default defineComponent({
name: 'edit-task', name: 'edit-task',
data() { data() {
return { return {
@ -151,7 +153,7 @@ export default {
this.$message.success({message: this.$t('task.detail.updateSuccess')}) this.$message.success({message: this.$t('task.detail.updateSuccess')})
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -171,6 +171,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import VueDragResize from 'vue-drag-resize' import VueDragResize from 'vue-drag-resize'
import EditTask from './edit-task' import EditTask from './edit-task'
@ -185,7 +187,7 @@ import FilterPopup from '@/components/list/partials/filter-popup.vue'
import {colorIsDark} from '@/helpers/color/colorIsDark' import {colorIsDark} from '@/helpers/color/colorIsDark'
export default { export default defineComponent({
name: 'GanttChart', name: 'GanttChart',
components: { components: {
FilterPopup, FilterPopup,
@ -435,7 +437,7 @@ export default {
return this.format(date, 'MMMM, yyyy') return this.format(date, 'MMMM, yyyy')
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -136,6 +136,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AttachmentService from '../../../services/attachment' import AttachmentService from '../../../services/attachment'
import AttachmentModel from '../../../models/attachment' import AttachmentModel from '../../../models/attachment'
import User from '../../misc/user' import User from '../../misc/user'
@ -144,7 +146,7 @@ import copy from 'copy-to-clipboard'
import { uploadFiles, generateAttachmentUrl } from '@/helpers/attachments' import { uploadFiles, generateAttachmentUrl } from '@/helpers/attachments'
export default { export default defineComponent({
name: 'attachments', name: 'attachments',
components: { components: {
User, User,
@ -247,7 +249,7 @@ export default {
copy(generateAttachmentUrl(this.taskId, attachment.id)) copy(generateAttachmentUrl(this.taskId, attachment.id))
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -12,9 +12,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {getChecklistStatistics} from '../../../helpers/checklistFromText' import {defineComponent} from 'vue'
export default { import {getChecklistStatistics} from '@/helpers/checklistFromText'
export default defineComponent({
name: 'checklist-summary', name: 'checklist-summary',
props: { props: {
task: { task: {
@ -34,7 +36,7 @@ export default {
return ((100 - progress) / 100) * c return ((100 - progress) / 100) * c
}, },
}, },
} })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

View file

@ -152,6 +152,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import TaskCommentService from '../../../services/taskComment' import TaskCommentService from '../../../services/taskComment'
@ -159,7 +161,7 @@ import TaskCommentModel from '../../../models/taskComment'
import {uploadFile} from '@/helpers/attachments' import {uploadFile} from '@/helpers/attachments'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default defineComponent({
name: 'comments', name: 'comments',
components: { components: {
Editor: AsyncEditor, Editor: AsyncEditor,
@ -302,7 +304,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -6,14 +6,11 @@
</td> </td>
</template> </template>
<script lang="ts"> <script setup lang="ts">
export default { defineProps({
name: 'date-table-cell', date: {
props: { type: Date,
date: { default: 0,
type: Date,
default: 0,
},
}, },
} })
</script> </script>

View file

@ -38,10 +38,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TaskService from '../../../services/task' import TaskService from '../../../services/task'
import flatPickr from 'vue-flatpickr-component' import flatPickr from 'vue-flatpickr-component'
export default { export default defineComponent({
name: 'defer-task', name: 'defer-task',
data() { data() {
return { return {
@ -129,7 +131,7 @@ export default {
this.$emit('update:modelValue', task) this.$emit('update:modelValue', task)
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -30,12 +30,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import {LOADING} from '@/store/mutation-types' import {LOADING} from '@/store/mutation-types'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default defineComponent({
name: 'description', name: 'description',
components: { components: {
Editor: AsyncEditor, Editor: AsyncEditor,
@ -86,6 +88,6 @@ export default {
} }
}, },
}, },
} })
</script> </script>

View file

@ -28,6 +28,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {includesById} from '@/helpers/utils' import {includesById} from '@/helpers/utils'
import UserModel from '../../../models/user' import UserModel from '../../../models/user'
import ListUserService from '../../../services/listUsers' import ListUserService from '../../../services/listUsers'
@ -35,7 +36,7 @@ import TaskAssigneeService from '../../../services/taskAssignee'
import User from '../../misc/user' import User from '../../misc/user'
import Multiselect from '@/components/input/multiselect.vue' import Multiselect from '@/components/input/multiselect.vue'
export default { export default defineComponent({
name: 'editAssignees', name: 'editAssignees',
components: { components: {
User, User,
@ -115,7 +116,7 @@ export default {
this.$refs.multiselect.focus() this.$refs.multiselect.focus()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -39,13 +39,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import LabelModel from '../../../models/label' import LabelModel from '../../../models/label'
import LabelTaskService from '../../../services/labelTask' import LabelTaskService from '../../../services/labelTask'
import Multiselect from '@/components/input/multiselect.vue' import Multiselect from '@/components/input/multiselect.vue'
import {LOADING, LOADING_MODULE} from '@/store/mutation-types' import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
export default { export default defineComponent({
name: 'edit-labels', name: 'edit-labels',
props: { props: {
modelValue: { modelValue: {
@ -141,7 +142,7 @@ export default {
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -26,11 +26,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import Done from '@/components/misc/Done.vue' import Done from '@/components/misc/Done.vue'
export default { export default defineComponent({
name: 'heading', name: 'heading',
components: { components: {
Done, Done,
@ -92,7 +93,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -66,6 +66,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {playPop} from '../../../helpers/playPop' import {playPop} from '../../../helpers/playPop'
import PriorityLabel from '../../../components/tasks/partials/priorityLabel' import PriorityLabel from '../../../components/tasks/partials/priorityLabel'
import User from '../../../components/misc/user' import User from '../../../components/misc/user'
@ -75,7 +77,7 @@ import ChecklistSummary from './checklist-summary'
import {colorIsDark} from '@/helpers/color/colorIsDark' import {colorIsDark} from '@/helpers/color/colorIsDark'
export default { export default defineComponent({
name: 'kanban-card', name: 'kanban-card',
components: { components: {
ChecklistSummary, ChecklistSummary,
@ -124,7 +126,7 @@ export default {
}) })
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -10,15 +10,12 @@
</div> </div>
</template> </template>
<script lang="ts"> <script setup lang="ts">
export default { defineProps({
name: 'labels', labels: {
props: { required: true,
labels: {
required: true,
},
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -17,7 +17,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'percentDoneSelect', name: 'percentDoneSelect',
props: { props: {
modelValue: { modelValue: {
@ -40,5 +41,5 @@ export default {
}, },
}, },
}, },
} })
</script> </script>

View file

@ -20,31 +20,23 @@
</span> </span>
</template> </template>
<script lang="ts"> <script setup lang="ts">
import priorites from '../../../models/constants/priorities' import priorities from '@/models/constants/priorities'
export default { defineProps({
name: 'priorityLabel', priority: {
data() { default: 0,
return { type: Number,
priorities: priorites,
}
}, },
props: { showAll: {
priority: { type: Boolean,
default: 0, default: false,
type: Number,
},
showAll: {
type: Boolean,
default: false,
},
done: {
type: Boolean,
default: false,
},
}, },
} done: {
type: Boolean,
default: false,
},
})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -12,9 +12,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import priorites from '../../../models/constants/priorities' import priorites from '../../../models/constants/priorities'
export default { export default defineComponent({
name: 'prioritySelect', name: 'prioritySelect',
data() { data() {
return { return {
@ -47,5 +48,5 @@ export default {
this.$emit('change') this.$emit('change')
}, },
}, },
} })
</script> </script>

View file

@ -88,8 +88,9 @@
<script lang="ts"> <script lang="ts">
import {getQuickAddMagicMode} from '@/helpers/quickAddMagicMode' import {getQuickAddMagicMode} from '@/helpers/quickAddMagicMode'
import {PREFIXES} from '@/modules/parseTaskText' import {PREFIXES} from '@/modules/parseTaskText'
import { defineComponent } from 'vue'
export default { export default defineComponent({
name: 'quick-add-magic', name: 'quick-add-magic',
data() { data() {
return { return {
@ -105,5 +106,5 @@ export default {
return PREFIXES[this.mode] return PREFIXES[this.mode]
}, },
}, },
} })
</script> </script>

View file

@ -135,6 +135,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TaskService from '../../../services/task' import TaskService from '../../../services/task'
import TaskModel from '../../../models/task' import TaskModel from '../../../models/task'
import TaskRelationService from '../../../services/taskRelation' import TaskRelationService from '../../../services/taskRelation'
@ -143,7 +145,7 @@ import TaskRelationModel from '../../../models/taskRelation'
import Multiselect from '@/components/input/multiselect.vue' import Multiselect from '@/components/input/multiselect.vue'
export default { export default defineComponent({
name: 'relatedTasks', name: 'relatedTasks',
data() { data() {
return { return {
@ -307,7 +309,7 @@ export default {
}) })
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -26,9 +26,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import datepicker from '@/components/input/datepicker.vue' import datepicker from '@/components/input/datepicker.vue'
export default { export default defineComponent({
name: 'reminders', name: 'reminders',
data() { data() {
return { return {
@ -102,7 +104,7 @@ export default {
this.updateData() this.updateData()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -51,9 +51,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import repeatModes from '@/models/constants/taskRepeatModes' import repeatModes from '@/models/constants/taskRepeatModes'
export default { export default defineComponent({
name: 'repeatAfter', name: 'repeatAfter',
data() { data() {
return { return {
@ -102,7 +103,7 @@ export default {
this.updateData() this.updateData()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -92,6 +92,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TaskModel from '../../../models/task' import TaskModel from '../../../models/task'
import PriorityLabel from './priorityLabel' import PriorityLabel from './priorityLabel'
import TaskService from '../../../services/task' import TaskService from '../../../services/task'
@ -103,7 +105,7 @@ import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
import {playPop} from '@/helpers/playPop' import {playPop} from '@/helpers/playPop'
import ChecklistSummary from './checklist-summary' import ChecklistSummary from './checklist-summary'
export default { export default defineComponent({
name: 'singleTaskInList', name: 'singleTaskInList',
data() { data() {
return { return {
@ -221,7 +223,7 @@ export default {
}) })
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -1,6 +1,6 @@
import ListService from '@/services/list' import ListService from '@/services/list'
import {setLoading} from '@/store/helper' import {setLoading} from '@/store/helper'
import {removeListFromHistory} from '@/modules/listHistory.ts' import {removeListFromHistory} from '@/modules/listHistory'
import {createNewIndexer} from '@/indexes' import {createNewIndexer} from '@/indexes'
const {add, remove, search, update} = createNewIndexer('lists', ['title', 'description']) const {add, remove, search, update} = createNewIndexer('lists', ['title', 'description'])

View file

@ -5,11 +5,8 @@
</div> </div>
</template> </template>
<script lang="ts"> <script setup lang="ts">
export default { import {useTitle} from '@/composables/useTitle'
name: '404',
mounted() { useTitle(() => '404')
this.setTitle('404')
},
}
</script> </script>

View file

@ -97,6 +97,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import LabelModel from '../../models/label' import LabelModel from '../../models/label'
@ -105,7 +106,7 @@ import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import ColorPicker from '@/components/input/colorPicker' import ColorPicker from '@/components/input/colorPicker'
export default { export default defineComponent({
name: 'ListLabels', name: 'ListLabels',
components: { components: {
ColorPicker, ColorPicker,
@ -160,5 +161,5 @@ export default {
this.$nextTick(() => this.editorActive = true) this.$nextTick(() => this.editorActive = true)
}, },
}, },
} })
</script> </script>

View file

@ -35,13 +35,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import LabelModel from '../../models/label' import LabelModel from '../../models/label'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
import ColorPicker from '../../components/input/colorPicker' import ColorPicker from '../../components/input/colorPicker'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {LOADING, LOADING_MODULE} from '@/store/mutation-types' import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
export default { export default defineComponent({
name: 'NewLabel', name: 'NewLabel',
data() { data() {
return { return {
@ -75,5 +76,5 @@ export default {
this.$message.success({message: this.$t('label.create.success')}) this.$message.success({message: this.$t('label.create.success')})
}, },
}, },
} })
</script> </script>

View file

@ -227,6 +227,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
import cloneDeep from 'lodash.clonedeep' import cloneDeep from 'lodash.clonedeep'
@ -252,7 +253,7 @@ const DRAG_OPTIONS = {
const MIN_SCROLL_HEIGHT_PERCENT = 0.25 const MIN_SCROLL_HEIGHT_PERCENT = 0.25
export default { export default defineComponent({
name: 'Kanban', name: 'Kanban',
components: { components: {
ListWrapper, ListWrapper,
@ -602,7 +603,7 @@ export default {
saveCollapsedBucketState(this.listId, this.collapsedBuckets) saveCollapsedBucketState(this.listId, this.collapsedBuckets)
}, },
}, },
} })
</script> </script>
<style lang="scss"> <style lang="scss">

View file

@ -32,12 +32,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import ListService from '../../services/list' import ListService from '../../services/list'
import ListModel from '../../models/list' import ListModel from '../../models/list'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
import ColorPicker from '../../components/input/colorPicker' import ColorPicker from '../../components/input/colorPicker'
export default { export default defineComponent({
name: 'NewList', name: 'NewList',
data() { data() {
return { return {
@ -70,5 +71,5 @@ export default {
}) })
}, },
}, },
} })
</script> </script>

View file

@ -12,9 +12,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import ListService from '@/services/list' import ListService from '@/services/list'
export default { export default defineComponent({
name: 'list-setting-archive', name: 'list-setting-archive',
data() { data() {
return { return {
@ -46,5 +47,5 @@ export default {
} }
}, },
}, },
} })
</script> </script>

View file

@ -73,6 +73,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {getBlobFromBlurHash} from '../../../helpers/getBlobFromBlurHash' import {getBlobFromBlurHash} from '../../../helpers/getBlobFromBlurHash'
@ -85,7 +86,7 @@ import debounce from 'lodash.debounce'
const SEARCH_DEBOUNCE = 300 const SEARCH_DEBOUNCE = 300
export default { export default defineComponent({
name: 'list-setting-background', name: 'list-setting-background',
components: {CreateEdit}, components: {CreateEdit},
data() { data() {
@ -179,7 +180,7 @@ export default {
this.$router.back() this.$router.back()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -13,7 +13,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'list-setting-delete', name: 'list-setting-delete',
created() { created() {
this.setTitle(this.$t('list.delete.title', {list: this.list.title})) this.setTitle(this.$t('list.delete.title', {list: this.list.title}))
@ -30,5 +32,5 @@ export default {
this.$router.push({name: 'home'}) this.$router.push({name: 'home'})
}, },
}, },
} })
</script> </script>

View file

@ -14,12 +14,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import ListDuplicateService from '@/services/listDuplicateService' import ListDuplicateService from '@/services/listDuplicateService'
import NamespaceSearch from '@/components/namespace/namespace-search.vue' import NamespaceSearch from '@/components/namespace/namespace-search.vue'
import ListDuplicateModel from '@/models/listDuplicateModel' import ListDuplicateModel from '@/models/listDuplicateModel'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
export default { export default defineComponent({
name: 'list-setting-duplicate', name: 'list-setting-duplicate',
data() { data() {
return { return {
@ -51,5 +53,5 @@ export default {
this.$router.push({name: 'list.index', params: {listId: duplicate.list.id}}) this.$router.push({name: 'list.index', params: {listId: duplicate.list.id}})
}, },
}, },
} })
</script> </script>

View file

@ -66,6 +66,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import ListModel from '@/models/list' import ListModel from '@/models/list'
@ -74,7 +76,7 @@ import ColorPicker from '@/components/input/colorPicker.vue'
import {CURRENT_LIST} from '@/store/mutation-types' import {CURRENT_LIST} from '@/store/mutation-types'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
export default { export default defineComponent({
name: 'list-setting-edit', name: 'list-setting-edit',
data() { data() {
return { return {
@ -109,5 +111,5 @@ export default {
this.$router.back() this.$router.back()
}, },
}, },
} })
</script> </script>

View file

@ -23,9 +23,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'list-setting-share', name: 'list-setting-share',
} })
</script> </script>
<script lang="ts" setup> <script lang="ts" setup>

View file

@ -21,9 +21,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {MIGRATORS} from './migrators' import {MIGRATORS} from './migrators'
export default { export default defineComponent({
name: 'Migrate', name: 'Migrate',
mounted() { mounted() {
this.setTitle(this.$t('migrate.title')) this.setTitle(this.$t('migrate.title'))
@ -35,7 +37,7 @@ export default {
.filter((item) => Boolean(item)) .filter((item) => Boolean(item))
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -66,6 +66,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AbstractMigrationService from '@/services/migrator/abstractMigration' import AbstractMigrationService from '@/services/migrator/abstractMigration'
import AbstractMigrationFileService from '@/services/migrator/abstractMigrationFile' import AbstractMigrationFileService from '@/services/migrator/abstractMigrationFile'
import Logo from '@/assets/logo.svg?component' import Logo from '@/assets/logo.svg?component'
@ -75,7 +77,7 @@ import {MIGRATORS} from './migrators'
const PROGRESS_DOTS_COUNT = 8 const PROGRESS_DOTS_COUNT = 8
export default { export default defineComponent({
name: 'MigrateService', name: 'MigrateService',
components: { components: {
@ -170,7 +172,7 @@ export default {
} }
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -69,12 +69,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import Fancycheckbox from '../../components/input/fancycheckbox.vue' import Fancycheckbox from '../../components/input/fancycheckbox.vue'
import {LOADING} from '@/store/mutation-types' import {LOADING} from '@/store/mutation-types'
import ListCard from '@/components/list/partials/list-card.vue' import ListCard from '@/components/list/partials/list-card.vue'
export default { export default defineComponent({
name: 'ListNamespaces', name: 'ListNamespaces',
components: { components: {
ListCard, ListCard,
@ -103,7 +105,7 @@ export default {
localStorage.setItem('showArchived', JSON.stringify(this.showArchived)) localStorage.setItem('showArchived', JSON.stringify(this.showArchived))
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -41,13 +41,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import Message from '@/components/misc/message' import Message from '@/components/misc/message'
import NamespaceModel from '../../models/namespace' import NamespaceModel from '../../models/namespace'
import NamespaceService from '../../services/namespace' import NamespaceService from '../../services/namespace'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
import ColorPicker from '../../components/input/colorPicker' import ColorPicker from '../../components/input/colorPicker'
export default { export default defineComponent({
name: 'NewNamespace', name: 'NewNamespace',
data() { data() {
return { return {
@ -78,5 +80,5 @@ export default {
this.$router.back() this.$router.back()
}, },
}, },
} })
</script> </script>

View file

@ -14,9 +14,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import NamespaceService from '@/services/namespace' import NamespaceService from '@/services/namespace'
export default { export default defineComponent({
name: 'namespace-setting-archive', name: 'namespace-setting-archive',
data() { data() {
return { return {
@ -49,5 +51,5 @@ export default {
} }
}, },
}, },
} })
</script> </script>

View file

@ -13,7 +13,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'namespace-setting-delete', name: 'namespace-setting-delete',
computed: { computed: {
namespace() { namespace() {
@ -41,5 +43,5 @@ export default {
this.$router.push({name: 'home'}) this.$router.push({name: 'home'})
}, },
}, },
} })
</script> </script>

View file

@ -56,6 +56,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import NamespaceService from '@/services/namespace' import NamespaceService from '@/services/namespace'
@ -64,7 +66,7 @@ import Fancycheckbox from '@/components/input/fancycheckbox.vue'
import ColorPicker from '@/components/input/colorPicker.vue' import ColorPicker from '@/components/input/colorPicker.vue'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
export default { export default defineComponent({
name: 'namespace-setting-edit', name: 'namespace-setting-edit',
data() { data() {
return { return {
@ -118,5 +120,5 @@ export default {
this.$router.back() this.$router.back()
}, },
}, },
} })
</script> </script>

View file

@ -21,9 +21,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import {defineComponent} from 'vue'
export default defineComponent({
name: 'namespace-setting-share', name: 'namespace-setting-share',
} })
</script> </script>
<script lang="ts" setup> <script lang="ts" setup>

View file

@ -414,6 +414,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TaskService from '../../services/task' import TaskService from '../../services/task'
import TaskModel from '../../models/task' import TaskModel from '../../models/task'
@ -444,7 +446,7 @@ import ChecklistSummary from '../../components/tasks/partials/checklist-summary'
import CreatedUpdated from '@/components/tasks/partials/createdUpdated' import CreatedUpdated from '@/components/tasks/partials/createdUpdated'
export default { export default defineComponent({
name: 'TaskDetailView', name: 'TaskDetailView',
compatConfig: { ATTR_FALSE_VALUE: false }, compatConfig: { ATTR_FALSE_VALUE: false },
components: { components: {
@ -685,7 +687,7 @@ export default {
this.$store.dispatch('namespaces/loadNamespacesIfFavoritesDontExist') this.$store.dispatch('namespaces/loadNamespacesIfFavoritesDontExist')
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -161,6 +161,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AsyncEditor from '@/components/input/AsyncEditor' import AsyncEditor from '@/components/input/AsyncEditor'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import { i18n } from '@/i18n' import { i18n } from '@/i18n'
@ -175,7 +177,7 @@ import Rights from '../../models/constants/rights.json'
import Multiselect from '@/components/input/multiselect.vue' import Multiselect from '@/components/input/multiselect.vue'
export default { export default defineComponent({
name: 'EditTeam', name: 'EditTeam',
data() { data() {
return { return {
@ -297,7 +299,7 @@ export default {
this.foundUsers = [] this.foundUsers = []
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -26,9 +26,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TeamService from '../../services/team' import TeamService from '../../services/team'
export default { export default defineComponent({
name: 'ListTeams', name: 'ListTeams',
data() { data() {
return { return {
@ -47,7 +48,7 @@ export default {
this.teams = await this.teamService.getAll() this.teams = await this.teamService.getAll()
}, },
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -29,11 +29,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TeamModel from '../../models/team' import TeamModel from '../../models/team'
import TeamService from '../../services/team' import TeamService from '../../services/team'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
export default { export default defineComponent({
name: 'NewTeam', name: 'NewTeam',
data() { data() {
return { return {
@ -64,5 +65,5 @@ export default {
this.$message.success({message: this.$t('team.create.success') }) this.$message.success({message: this.$t('team.create.success') })
}, },
}, },
} })
</script> </script>

View file

@ -101,6 +101,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {useDebounceFn} from '@vueuse/core' import {useDebounceFn} from '@vueuse/core'
import {mapState} from 'vuex' import {mapState} from 'vuex'
@ -112,7 +113,7 @@ import {redirectToProvider} from '../../helpers/redirectToProvider'
import {getLastVisited, clearLastVisited} from '../../helpers/saveLastVisited' import {getLastVisited, clearLastVisited} from '../../helpers/saveLastVisited'
import Password from '@/components/input/password' import Password from '@/components/input/password'
export default { export default defineComponent({
components: { components: {
Password, Password,
Message, Message,
@ -233,7 +234,7 @@ export default {
redirectToProvider, redirectToProvider,
}, },
} })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View file

@ -10,6 +10,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {LOADING} from '@/store/mutation-types' import {LOADING} from '@/store/mutation-types'
@ -17,7 +18,7 @@ import {getErrorText} from '@/message'
import Message from '@/components/misc/message' import Message from '@/components/misc/message'
import {clearLastVisited, getLastVisited} from '../../helpers/saveLastVisited' import {clearLastVisited, getLastVisited} from '../../helpers/saveLastVisited'
export default { export default defineComponent({
name: 'Auth', name: 'Auth',
components: {Message}, components: {Message},
data() { data() {
@ -86,5 +87,5 @@ export default {
} }
}, },
}, },
} })
</script> </script>

View file

@ -68,13 +68,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import {Cropper} from 'vue-advanced-cropper' import {Cropper} from 'vue-advanced-cropper'
import 'vue-advanced-cropper/dist/style.css' import 'vue-advanced-cropper/dist/style.css'
import AvatarService from '@/services/avatar' import AvatarService from '@/services/avatar'
import AvatarModel from '@/models/avatar' import AvatarModel from '@/models/avatar'
export default { export default defineComponent({
name: 'user-settings-avatar', name: 'user-settings-avatar',
data() { data() {
return { return {
@ -144,7 +145,7 @@ export default {
reader.readAsDataURL(avatar[0]) reader.readAsDataURL(avatar[0])
}, },
}, },
} })
</script> </script>
<style lang="scss"> <style lang="scss">

View file

@ -25,11 +25,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import copy from 'copy-to-clipboard' import copy from 'copy-to-clipboard'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {CALDAV_DOCS} from '@/urls' import {CALDAV_DOCS} from '@/urls'
export default { export default defineComponent({
name: 'user-settings-caldav', name: 'user-settings-caldav',
data() { data() {
return { return {
@ -51,5 +52,5 @@ export default {
methods: { methods: {
copy, copy,
}, },
} })
</script> </script>

View file

@ -39,9 +39,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import DataExportService from '@/services/dataExport' import DataExportService from '@/services/dataExport'
export default { export default defineComponent({
name: 'user-settings-data-export', name: 'user-settings-data-export',
data() { data() {
return { return {
@ -71,5 +72,5 @@ export default {
this.password = '' this.password = ''
}, },
}, },
} })
</script> </script>

View file

@ -83,11 +83,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import AccountDeleteService from '@/services/accountDelete' import AccountDeleteService from '@/services/accountDelete'
import {mapState} from 'vuex' import {mapState} from 'vuex'
import {parseDateOrNull} from '@/helpers/parseDateOrNull' import {parseDateOrNull} from '@/helpers/parseDateOrNull'
export default { export default defineComponent({
name: 'user-settings-deletion', name: 'user-settings-deletion',
data() { data() {
return { return {
@ -129,5 +130,5 @@ export default {
this.password = '' this.password = ''
}, },
}, },
} })
</script> </script>

View file

@ -37,10 +37,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import EmailUpdateService from '@/services/emailUpdate' import EmailUpdateService from '@/services/emailUpdate'
import EmailUpdateModel from '@/models/emailUpdate' import EmailUpdateModel from '@/models/emailUpdate'
export default { export default defineComponent({
name: 'user-settings-update-email', name: 'user-settings-update-email',
data() { data() {
return { return {
@ -62,5 +63,5 @@ export default {
this.$message.success({message: this.$t('user.settings.updateEmailSuccess')}) this.$message.success({message: this.$t('user.settings.updateEmailSuccess')})
}, },
}, },
} })
</script> </script>

View file

@ -132,7 +132,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {computed, watch, ref} from 'vue' import {defineComponent, computed, watch, ref} from 'vue'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'
import {playSoundWhenDoneKey, playPopSound} from '@/helpers/playPop' import {playSoundWhenDoneKey, playPopSound} from '@/helpers/playPop'
@ -186,7 +186,7 @@ function getPlaySoundWhenDoneSetting() {
return localStorage.getItem(playSoundWhenDoneKey) === 'true' || localStorage.getItem(playSoundWhenDoneKey) === null return localStorage.getItem(playSoundWhenDoneKey) === 'true' || localStorage.getItem(playSoundWhenDoneKey) === null
} }
export default { export default defineComponent({
name: 'user-settings-general', name: 'user-settings-general',
data() { data() {
return { return {
@ -244,5 +244,5 @@ export default {
}) })
}, },
}, },
} })
</script> </script>

View file

@ -52,10 +52,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import PasswordUpdateService from '@/services/passwordUpdateService' import PasswordUpdateService from '@/services/passwordUpdateService'
import PasswordUpdateModel from '@/models/passwordUpdate' import PasswordUpdateModel from '@/models/passwordUpdate'
export default { export default defineComponent({
name: 'user-settings-password-update', name: 'user-settings-password-update',
data() { data() {
return { return {
@ -83,5 +84,5 @@ export default {
this.$message.success({message: this.$t('user.settings.passwordUpdateSuccess')}) this.$message.success({message: this.$t('user.settings.passwordUpdateSuccess')})
}, },
}, },
} })
</script> </script>

View file

@ -64,11 +64,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {defineComponent} from 'vue'
import TotpService from '@/services/totp' import TotpService from '@/services/totp'
import TotpModel from '@/models/totp' import TotpModel from '@/models/totp'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default defineComponent({
name: 'user-settings-totp', name: 'user-settings-totp',
data() { data() {
return { return {
@ -129,5 +130,5 @@ export default {
this.$message.success({message: this.$t('user.settings.totp.disableSuccess')}) this.$message.success({message: this.$t('user.settings.totp.disableSuccess')})
}, },
}, },
} })
</script> </script>