Browse Source

feat: add lang ts to script block

pull/1544/head
Dominik Pschenitschni 5 months ago committed by kolaente
parent
commit
a3329f1b42
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
  1. 2
      src/components/home/navigation.vue
  2. 2
      src/components/home/update.vue
  3. 2
      src/components/input/colorPicker.vue
  4. 2
      src/components/input/datepicker.vue
  5. 2
      src/components/input/editor.vue
  6. 2
      src/components/input/fancycheckbox.vue
  7. 2
      src/components/input/multiselect.vue
  8. 2
      src/components/input/vue-easymde/vue-easymde.vue
  9. 2
      src/components/list/partials/filter-popup.vue
  10. 2
      src/components/list/partials/filters.vue
  11. 2
      src/components/misc/create-edit.vue
  12. 2
      src/components/misc/dropdown.vue
  13. 2
      src/components/misc/nothing.vue
  14. 2
      src/components/misc/notification.vue
  15. 2
      src/components/misc/popup.vue
  16. 2
      src/components/notifications/notifications.vue
  17. 2
      src/components/quick-actions/quick-actions.vue
  18. 2
      src/components/sharing/linkSharing.vue
  19. 2
      src/components/sharing/userTeam.vue
  20. 2
      src/components/tasks/edit-task.vue
  21. 2
      src/components/tasks/gantt-component.vue
  22. 2
      src/components/tasks/partials/attachments.vue
  23. 2
      src/components/tasks/partials/checklist-summary.vue
  24. 2
      src/components/tasks/partials/comments.vue
  25. 2
      src/components/tasks/partials/date-table-cell.vue
  26. 2
      src/components/tasks/partials/defer-task.vue
  27. 2
      src/components/tasks/partials/description.vue
  28. 2
      src/components/tasks/partials/editAssignees.vue
  29. 2
      src/components/tasks/partials/editLabels.vue
  30. 2
      src/components/tasks/partials/heading.vue
  31. 2
      src/components/tasks/partials/kanban-card.vue
  32. 2
      src/components/tasks/partials/labels.vue
  33. 2
      src/components/tasks/partials/percentDoneSelect.vue
  34. 2
      src/components/tasks/partials/priorityLabel.vue
  35. 2
      src/components/tasks/partials/prioritySelect.vue
  36. 2
      src/components/tasks/partials/quick-add-magic.vue
  37. 2
      src/components/tasks/partials/relatedTasks.vue
  38. 2
      src/components/tasks/partials/reminders.vue
  39. 2
      src/components/tasks/partials/repeatAfter.vue
  40. 2
      src/components/tasks/partials/singleTaskInList.vue
  41. 4
      src/helpers/case.ts
  42. 10
      src/helpers/color/colorIsDark.ts
  43. 4
      src/i18n/index.ts
  44. 4
      src/models/task.ts
  45. 2
      src/registerServiceWorker.ts
  46. 6
      src/services/abstractService.ts
  47. 2
      src/services/list.ts
  48. 2
      src/views/404.vue
  49. 2
      src/views/About.vue
  50. 2
      src/views/filters/FilterDelete.vue
  51. 2
      src/views/filters/FilterEdit.vue
  52. 2
      src/views/filters/FilterNew.vue
  53. 2
      src/views/labels/ListLabels.vue
  54. 2
      src/views/labels/NewLabel.vue
  55. 2
      src/views/list/ListKanban.vue
  56. 2
      src/views/list/ListList.vue
  57. 2
      src/views/list/NewList.vue
  58. 2
      src/views/list/settings/archive.vue
  59. 2
      src/views/list/settings/background.vue
  60. 2
      src/views/list/settings/delete.vue
  61. 2
      src/views/list/settings/duplicate.vue
  62. 2
      src/views/list/settings/edit.vue
  63. 2
      src/views/migrator/Migrate.vue
  64. 2
      src/views/migrator/MigrateService.vue
  65. 2
      src/views/namespaces/ListNamespaces.vue
  66. 2
      src/views/namespaces/NewNamespace.vue
  67. 2
      src/views/namespaces/settings/archive.vue
  68. 2
      src/views/namespaces/settings/delete.vue
  69. 2
      src/views/namespaces/settings/edit.vue
  70. 2
      src/views/tasks/TaskDetailView.vue
  71. 2
      src/views/teams/EditTeam.vue
  72. 2
      src/views/teams/ListTeams.vue
  73. 2
      src/views/teams/NewTeam.vue
  74. 2
      src/views/user/DataExportDownload.vue
  75. 2
      src/views/user/Login.vue
  76. 2
      src/views/user/OpenIdAuth.vue
  77. 2
      src/views/user/PasswordReset.vue
  78. 2
      src/views/user/Register.vue
  79. 2
      src/views/user/RequestPasswordReset.vue
  80. 2
      src/views/user/Settings.vue
  81. 2
      src/views/user/settings/Avatar.vue
  82. 2
      src/views/user/settings/Caldav.vue
  83. 2
      src/views/user/settings/DataExport.vue
  84. 2
      src/views/user/settings/Deletion.vue
  85. 2
      src/views/user/settings/EmailUpdate.vue
  86. 2
      src/views/user/settings/General.vue
  87. 2
      src/views/user/settings/PasswordUpdate.vue
  88. 2
      src/views/user/settings/TOTP.vue
  89. 2
      vite.config.ts

2
src/components/home/navigation.vue

@ -156,7 +156,7 @@
</aside>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import draggable from 'vuedraggable'

2
src/components/home/update.vue

@ -7,7 +7,7 @@
</div>
</template>
<script>
<script lang="ts">
export default {
name: 'update',
data() {

2
src/components/input/colorPicker.vue

@ -34,7 +34,7 @@
</div>
</template>
<script>
<script lang="ts">
import {createRandomID} from '@/helpers/randomId'
const DEFAULT_COLORS = [

2
src/components/input/datepicker.vue

@ -110,7 +110,7 @@
</div>
</template>
<script>
<script lang="ts">
import flatPickr from 'vue-flatpickr-component'
import 'flatpickr/dist/flatpickr.css'
import { i18n } from '@/i18n'

2
src/components/input/editor.vue

@ -42,7 +42,7 @@
</div>
</template>
<script>
<script lang="ts">
import VueEasymde from './vue-easymde/vue-easymde.vue'
import {marked} from 'marked'
import DOMPurify from 'dompurify'

2
src/components/input/fancycheckbox.vue

@ -19,7 +19,7 @@
</div>
</template>
<script>
<script lang="ts">
import {createRandomID} from '@/helpers/randomId'
export default {

2
src/components/input/multiselect.vue

@ -82,7 +82,7 @@
</div>
</template>
<script>
<script lang="ts">
import {i18n} from '@/i18n'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'

2
src/components/input/vue-easymde/vue-easymde.vue

@ -9,7 +9,7 @@
</div>
</template>
<script>
<script lang="ts">
import EasyMDE from 'easymde'
import {marked} from 'marked'

2
src/components/list/partials/filter-popup.vue

@ -27,7 +27,7 @@
</popup>
</template>
<script>
<script lang="ts">
import Filters from '@/components/list/partials/filters'
import Popup from '@/components/misc/popup'

2
src/components/list/partials/filters.vue

@ -174,7 +174,7 @@
</card>
</template>
<script>
<script lang="ts">
import DatepickerWithRange from '@/components/date/datepickerWithRange'
import Fancycheckbox from '../../input/fancycheckbox'

2
src/components/misc/create-edit.vue

@ -41,7 +41,7 @@
</modal>
</template>
<script>
<script lang="ts">
import { i18n } from '@/i18n'
export default {

2
src/components/misc/dropdown.vue

@ -15,7 +15,7 @@
</div>
</template>
<script>
<script lang="ts">
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
export default {

2
src/components/misc/nothing.vue

@ -4,7 +4,7 @@
</p>
</template>
<script>
<script lang="ts">
export default {
name: 'nothing',
}

2
src/components/misc/notification.vue

@ -37,7 +37,7 @@
</notifications>
</template>
<script>
<script lang="ts">
export default {
name: 'notification',
}

2
src/components/misc/popup.vue

@ -5,7 +5,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
import {onBeforeUnmount, onMounted, ref} from 'vue'

2
src/components/notifications/notifications.vue

@ -47,7 +47,7 @@
</div>
</template>
<script>
<script lang="ts">
import NotificationService from '@/services/notification'
import User from '@/components/misc/user.vue'
import names from '@/models/constants/notificationNames.json'

2
src/components/quick-actions/quick-actions.vue

@ -52,7 +52,7 @@
</modal>
</template>
<script>
<script lang="ts">
import TaskService from '@/services/task'
import TeamService from '@/services/team'

2
src/components/sharing/linkSharing.vue

@ -175,7 +175,7 @@
</div>
</template>
<script>
<script lang="ts">
import rights from '../../models/constants/rights'
import LinkShareService from '../../services/linkShare'

2
src/components/sharing/userTeam.vue

@ -130,7 +130,7 @@
</div>
</template>
<script>
<script lang="ts">
import UserNamespaceService from '../../services/userNamespace'
import UserNamespaceModel from '../../models/userNamespace'
import UserListModel from '../../models/userList'

2
src/components/tasks/edit-task.vue

@ -75,7 +75,7 @@
</card>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import TaskService from '../../services/task'

2
src/components/tasks/gantt-component.vue

@ -170,7 +170,7 @@
</div>
</template>
<script>
<script lang="ts">
import VueDragResize from 'vue-drag-resize'
import EditTask from './edit-task'

2
src/components/tasks/partials/attachments.vue

@ -135,7 +135,7 @@
</div>
</template>
<script>
<script lang="ts">
import AttachmentService from '../../../services/attachment'
import AttachmentModel from '../../../models/attachment'
import User from '../../misc/user'

2
src/components/tasks/partials/checklist-summary.vue

@ -11,7 +11,7 @@
</span>
</template>
<script>
<script lang="ts">
import {getChecklistStatistics} from '../../../helpers/checklistFromText'
export default {

2
src/components/tasks/partials/comments.vue

@ -151,7 +151,7 @@
</div>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import TaskCommentService from '../../../services/taskComment'

2
src/components/tasks/partials/date-table-cell.vue

@ -6,7 +6,7 @@
</td>
</template>
<script>
<script lang="ts">
export default {
name: 'date-table-cell',
props: {

2
src/components/tasks/partials/defer-task.vue

@ -37,7 +37,7 @@
</div>
</template>
<script>
<script lang="ts">
import TaskService from '../../../services/task'
import flatPickr from 'vue-flatpickr-component'

2
src/components/tasks/partials/description.vue

@ -29,7 +29,7 @@
</div>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import {LOADING} from '@/store/mutation-types'

2
src/components/tasks/partials/editAssignees.vue

@ -27,7 +27,7 @@
</div>
</template>
<script>
<script lang="ts">
import {includesById} from '@/helpers/utils'
import UserModel from '../../../models/user'
import ListUserService from '../../../services/listUsers'

2
src/components/tasks/partials/editLabels.vue

@ -38,7 +38,7 @@
</multiselect>
</template>
<script>
<script lang="ts">
import LabelModel from '../../../models/label'
import LabelTaskService from '../../../services/labelTask'

2
src/components/tasks/partials/heading.vue

@ -25,7 +25,7 @@
</div>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import Done from '@/components/misc/Done.vue'

2
src/components/tasks/partials/kanban-card.vue

@ -65,7 +65,7 @@
</div>
</template>
<script>
<script lang="ts">
import {playPop} from '../../../helpers/playPop'
import PriorityLabel from '../../../components/tasks/partials/priorityLabel'
import User from '../../../components/misc/user'

2
src/components/tasks/partials/labels.vue

@ -10,7 +10,7 @@
</div>
</template>
<script>
<script lang="ts">
export default {
name: 'labels',
props: {

2
src/components/tasks/partials/percentDoneSelect.vue

@ -16,7 +16,7 @@
</div>
</template>
<script>
<script lang="ts">
export default {
name: 'percentDoneSelect',
props: {

2
src/components/tasks/partials/priorityLabel.vue

@ -20,7 +20,7 @@
</span>
</template>
<script>
<script lang="ts">
import priorites from '../../../models/constants/priorities'
export default {

2
src/components/tasks/partials/prioritySelect.vue

@ -11,7 +11,7 @@
</div>
</template>
<script>
<script lang="ts">
import priorites from '../../../models/constants/priorities'
export default {

2
src/components/tasks/partials/quick-add-magic.vue

@ -85,7 +85,7 @@
</div>
</template>
<script>
<script lang="ts">
import {getQuickAddMagicMode} from '@/helpers/quickAddMagicMode'
import {PREFIXES} from '@/modules/parseTaskText'

2
src/components/tasks/partials/relatedTasks.vue

@ -134,7 +134,7 @@
</div>
</template>
<script>
<script lang="ts">
import TaskService from '../../../services/task'
import TaskModel from '../../../models/task'
import TaskRelationService from '../../../services/taskRelation'

2
src/components/tasks/partials/reminders.vue

@ -25,7 +25,7 @@
</div>
</template>
<script>
<script lang="ts">
import datepicker from '@/components/input/datepicker.vue'
export default {

2
src/components/tasks/partials/repeatAfter.vue

@ -50,7 +50,7 @@
</div>
</template>
<script>
<script lang="ts">
import repeatModes from '@/models/constants/taskRepeatModes'
export default {

2
src/components/tasks/partials/singleTaskInList.vue

@ -91,7 +91,7 @@
</div>
</template>
<script>
<script lang="ts">
import TaskModel from '../../../models/task'
import PriorityLabel from './priorityLabel'
import TaskService from '../../../services/task'

4
src/helpers/case.ts

@ -13,7 +13,7 @@ export function objectToCamelCase(object) {
return object
}
let parsedObject = {}
const parsedObject = {}
for (const m in object) {
parsedObject[camelCase(m)] = object[m]
@ -50,7 +50,7 @@ export function objectToSnakeCase(object) {
return object
}
let parsedObject = {}
const parsedObject = {}
for (const m in object) {
parsedObject[snakeCase(m)] = object[m]

10
src/helpers/color/colorIsDark.ts

@ -11,12 +11,12 @@ export const colorIsDark = color => {
color = '#' + color
}
let rgb = parseInt(color.substring(1, 7), 16) // convert rrggbb to decimal
let r = (rgb >> 16) & 0xff // extract red
let g = (rgb >> 8) & 0xff // extract green
let b = (rgb >> 0) & 0xff // extract blue
const rgb = parseInt(color.substring(1, 7), 16) // convert rrggbb to decimal
const r = (rgb >> 16) & 0xff // extract red
const g = (rgb >> 8) & 0xff // extract green
const b = (rgb >> 0) & 0xff // extract blue
// luma will be a value 0..255 where 0 indicates the darkest, and 255 the brightest
let luma = 0.2126 * r + 0.7152 * g + 0.0722 * b // per ITU-R BT.709
const luma = 0.2126 * r + 0.7152 * g + 0.0722 * b // per ITU-R BT.709
return luma > 128
}

4
src/i18n/index.ts

@ -62,9 +62,9 @@ export const getCurrentLanguage = () => {
return savedLanguage
}
let browserLanguage = navigator.language || navigator.userLanguage
const browserLanguage = navigator.language || navigator.userLanguage
for (let k in availableLanguages) {
for (const k in availableLanguages) {
if (browserLanguage[k] === browserLanguage || k.startsWith(browserLanguage + '-')) {
return k
}

4
src/models/task.ts

@ -137,12 +137,12 @@ export default class TaskModel extends AbstractModel {
* This function should only be called from the constructor.
*/
parseRepeatAfter() {
let repeatAfterHours = (this.repeatAfter / 60) / 60
const repeatAfterHours = (this.repeatAfter / 60) / 60
this.repeatAfter = {type: 'hours', amount: repeatAfterHours}
// if its dividable by 24, its something with days, otherwise hours
if (repeatAfterHours % 24 === 0) {
let repeatAfterDays = repeatAfterHours / 24
const repeatAfterDays = repeatAfterHours / 24
if (repeatAfterDays % 7 === 0) {
this.repeatAfter.type = 'weeks'
this.repeatAfter.amount = repeatAfterDays / 7

2
src/registerServiceWorker.ts

@ -3,7 +3,7 @@
import {register} from 'register-service-worker'
if (import.meta.env.PROD) {
register('/sw.js', {
register('/sw.ts', {
ready() {
console.log('App is being served from cache by a service worker.')
},

6
src/services/abstractService.ts

@ -64,7 +64,7 @@ export default class AbstractService {
})
// Set the interceptors to process every request
let self = this
const self = this
this.http.interceptors.request.use((config) => {
switch (config.method) {
case 'post':
@ -140,7 +140,7 @@ export default class AbstractService {
* @returns object
*/
getRouteReplacements(route, parameters = {}) {
let replace$$1 = {}
const replace$$1 = {}
let pattern = this.getRouteParameterPattern()
pattern = new RegExp(pattern instanceof RegExp ? pattern.source : pattern, 'g')
@ -166,7 +166,7 @@ export default class AbstractService {
* @return string
*/
getReplacedRoute(path, pathparams) {
let replacements = this.getRouteReplacements(path, pathparams)
const replacements = this.getRouteReplacements(path, pathparams)
return Object.entries(replacements).reduce(
(result, [parameter, value]) => result.replace(parameter, value),
path,

2
src/services/list.ts

@ -26,7 +26,7 @@ export default class ListService extends AbstractService {
}
beforeUpdate(model) {
let taskService = new TaskService()
const taskService = new TaskService()
model.tasks = model.tasks.map(task => {
return taskService.beforeUpdate(task)
})

2
src/views/404.vue

@ -5,7 +5,7 @@
</div>
</template>
<script>
<script lang="ts">
export default {
name: '404',
mounted() {

2
src/views/About.vue

@ -32,7 +32,7 @@
</template>
<script setup>
<script setup lang="ts">
import {computed} from 'vue'
import { store } from '@/store'

2
src/views/filters/FilterDelete.vue

@ -11,7 +11,7 @@
</modal>
</template>
<script setup>
<script setup lang="ts">
import { store } from '@/store'
import { useI18n } from 'vue-i18n'
import { useRouter, useRoute } from 'vue-router'

2
src/views/filters/FilterEdit.vue

@ -51,7 +51,7 @@
</create-edit>
</template>
<script setup>
<script setup lang="ts">
import { ref, shallowRef, computed, watch } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { store } from '@/store'

2
src/views/filters/FilterNew.vue

@ -59,7 +59,7 @@
</modal>
</template>
<script setup>
<script setup lang="ts">
import { ref, shallowRef, computed } from 'vue'
import { store } from '@/store'

2
src/views/labels/ListLabels.vue

@ -96,7 +96,7 @@
</div>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import LabelModel from '../../models/label'

2
src/views/labels/NewLabel.vue

@ -34,7 +34,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import LabelModel from '../../models/label'
import CreateEdit from '@/components/misc/create-edit.vue'
import ColorPicker from '../../components/input/colorPicker'

2
src/views/list/ListKanban.vue

@ -226,7 +226,7 @@
</ListWrapper>
</template>
<script>
<script lang="ts">
import draggable from 'vuedraggable'
import cloneDeep from 'lodash.clonedeep'

2
src/views/list/ListList.vue

@ -131,7 +131,7 @@
</ListWrapper>
</template>
<script>
<script lang="ts">
import { ref, toRef, defineComponent } from 'vue'
import ListWrapper from './ListWrapper.vue'

2
src/views/list/NewList.vue

@ -31,7 +31,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import ListService from '../../services/list'
import ListModel from '../../models/list'
import CreateEdit from '@/components/misc/create-edit.vue'

2
src/views/list/settings/archive.vue

@ -11,7 +11,7 @@
</modal>
</template>
<script>
<script lang="ts">
import ListService from '@/services/list'
export default {

2
src/views/list/settings/background.vue

@ -72,7 +72,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import {getBlobFromBlurHash} from '../../../helpers/getBlobFromBlurHash'

2
src/views/list/settings/delete.vue

@ -12,7 +12,7 @@
</modal>
</template>
<script>
<script lang="ts">
export default {
name: 'list-setting-delete',
created() {

2
src/views/list/settings/duplicate.vue

@ -13,7 +13,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import ListDuplicateService from '@/services/listDuplicateService'
import NamespaceSearch from '@/components/namespace/namespace-search.vue'
import ListDuplicateModel from '@/models/listDuplicateModel'

2
src/views/list/settings/edit.vue

@ -65,7 +65,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import ListModel from '@/models/list'

2
src/views/migrator/Migrate.vue

@ -20,7 +20,7 @@
</div>
</template>
<script>
<script lang="ts">
import {MIGRATORS} from './migrators'
export default {

2
src/views/migrator/MigrateService.vue

@ -65,7 +65,7 @@
</div>
</template>
<script>
<script lang="ts">
import AbstractMigrationService from '@/services/migrator/abstractMigration'
import AbstractMigrationFileService from '@/services/migrator/abstractMigrationFile'
import Logo from '@/assets/logo.svg?component'

2
src/views/namespaces/ListNamespaces.vue

@ -68,7 +68,7 @@
</div>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import Fancycheckbox from '../../components/input/fancycheckbox.vue'
import {LOADING} from '@/store/mutation-types'

2
src/views/namespaces/NewNamespace.vue

@ -40,7 +40,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import Message from '@/components/misc/message'
import NamespaceModel from '../../models/namespace'
import NamespaceService from '../../services/namespace'

2
src/views/namespaces/settings/archive.vue

@ -13,7 +13,7 @@
</modal>
</template>
<script>
<script lang="ts">
import NamespaceService from '@/services/namespace'
export default {

2
src/views/namespaces/settings/delete.vue

@ -12,7 +12,7 @@
</modal>
</template>
<script>
<script lang="ts">
export default {
name: 'namespace-setting-delete',
computed: {

2
src/views/namespaces/settings/edit.vue

@ -55,7 +55,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import NamespaceService from '@/services/namespace'

2
src/views/tasks/TaskDetailView.vue

@ -413,7 +413,7 @@
</div>
</template>
<script>
<script lang="ts">
import TaskService from '../../services/task'
import TaskModel from '../../models/task'

2
src/views/teams/EditTeam.vue

@ -160,7 +160,7 @@
</div>
</template>
<script>
<script lang="ts">
import AsyncEditor from '@/components/input/AsyncEditor'
import {mapState} from 'vuex'
import { i18n } from '@/i18n'

2
src/views/teams/ListTeams.vue

@ -25,7 +25,7 @@
</div>
</template>
<script>
<script lang="ts">
import TeamService from '../../services/team'
export default {

2
src/views/teams/NewTeam.vue

@ -28,7 +28,7 @@
</create-edit>
</template>
<script>
<script lang="ts">
import TeamModel from '../../models/team'
import TeamService from '../../services/team'
import CreateEdit from '@/components/misc/create-edit.vue'

2
src/views/user/DataExportDownload.vue

@ -35,7 +35,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {ref, computed, reactive} from 'vue'
import DataExportService from '@/services/dataExport'
import {store} from '@/store'

2
src/views/user/Login.vue

@ -100,7 +100,7 @@
</div>
</template>
<script>
<script lang="ts">
import {useDebounceFn} from '@vueuse/core'
import {mapState} from 'vuex'

2
src/views/user/OpenIdAuth.vue

@ -9,7 +9,7 @@
</div>
</template>
<script>
<script lang="ts">
import {mapState} from 'vuex'
import {LOADING} from '@/store/mutation-types'

2
src/views/user/PasswordReset.vue

@ -58,7 +58,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {ref, reactive} from 'vue'
import {useI18n} from 'vue-i18n'

2
src/views/user/Register.vue

@ -68,7 +68,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {useDebounceFn} from '@vueuse/core'
import {ref, reactive, toRaw, computed, onBeforeMount} from 'vue'

2
src/views/user/RequestPasswordReset.vue

@ -44,7 +44,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {ref, reactive} from 'vue'
import PasswordResetModel from '@/models/passwordReset'

2
src/views/user/Settings.vue

@ -57,7 +57,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import {computed} from 'vue'
import { store } from '@/store'
import { useI18n } from 'vue-i18n'

2
src/views/user/settings/Avatar.vue

@ -67,7 +67,7 @@
</card>
</template>
<script>
<script lang="ts">
import {Cropper} from 'vue-advanced-cropper'
import 'vue-advanced-cropper/dist/style.css'

2
src/views/user/settings/Caldav.vue

@ -24,7 +24,7 @@
</card>
</template>
<script>
<script lang="ts">
import copy from 'copy-to-clipboard'
import {mapState} from 'vuex'
import {CALDAV_DOCS} from '@/urls'

2
src/views/user/settings/DataExport.vue

@ -38,7 +38,7 @@
</card>
</template>
<script>
<script lang="ts">
import DataExportService from '@/services/dataExport'
export default {

2
src/views/user/settings/Deletion.vue

@ -82,7 +82,7 @@
</card>
</template>
<script>
<script lang="ts">
import AccountDeleteService from '@/services/accountDelete'
import {mapState} from 'vuex'
import {parseDateOrNull} from '@/helpers/parseDateOrNull'

2
src/views/user/settings/EmailUpdate.vue

@ -36,7 +36,7 @@
</card>
</template>
<script>
<script lang="ts">
import EmailUpdateService from '@/services/emailUpdate'
import EmailUpdateModel from '@/models/emailUpdate'

2
src/views/user/settings/General.vue

@ -131,7 +131,7 @@
</card>
</template>
<script>
<script lang="ts">
import {computed, watch, ref} from 'vue'
import {useI18n} from 'vue-i18n'

2
src/views/user/settings/PasswordUpdate.vue

@ -51,7 +51,7 @@
</card>
</template>
<script>
<script lang="ts">
import PasswordUpdateService from '@/services/passwordUpdateService'
import PasswordUpdateModel from '@/models/passwordUpdate'

2
src/views/user/settings/TOTP.vue

@ -63,7 +63,7 @@
</card>
</template>
<script>
<script lang="ts">
import TotpService from '@/services/totp'
import TotpModel from '@/models/totp'
import {mapState} from 'vuex'

2
vite.config.ts

@ -60,7 +60,7 @@ export default defineConfig({
}),
VitePWA({
srcDir: 'src',
filename: 'sw.js',
filename: 'sw.ts',
base: '/',
strategies: 'injectManifest',
injectRegister: false,

Loading…
Cancel
Save