move constants
This commit is contained in:
parent
4a50e6aae2
commit
041a1a4cc0
22 changed files with 21 additions and 21 deletions
|
@ -92,7 +92,7 @@ import {useStore} from '@/store'
|
||||||
import {useRouter} from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
|
|
||||||
import {QUICK_ACTIONS_ACTIVE} from '@/store/mutation-types'
|
import {QUICK_ACTIONS_ACTIVE} from '@/store/mutation-types'
|
||||||
import {RIGHTS as Rights} from '@/models/constants/rights'
|
import {RIGHTS as Rights} from '@/constants/rights'
|
||||||
|
|
||||||
import Update from '@/components/home/update.vue'
|
import Update from '@/components/home/update.vue'
|
||||||
import ListSettingsDropdown from '@/components/list/list-settings-dropdown.vue'
|
import ListSettingsDropdown from '@/components/list/list-settings-dropdown.vue'
|
||||||
|
|
|
@ -180,7 +180,7 @@ import {ref, watch, computed, shallowReactive} from 'vue'
|
||||||
import {useStore} from '@/store'
|
import {useStore} from '@/store'
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
|
|
||||||
import {RIGHTS} from '@/models/constants/rights'
|
import {RIGHTS} from '@/constants/rights'
|
||||||
import LinkShareModel, { type ILinkShare } from '@/models/linkShare'
|
import LinkShareModel, { type ILinkShare } from '@/models/linkShare'
|
||||||
|
|
||||||
import LinkShareService from '@/services/linkShare'
|
import LinkShareService from '@/services/linkShare'
|
||||||
|
|
|
@ -160,7 +160,7 @@ import TeamListModel, { type ITeamList } from '@/models/teamList'
|
||||||
import TeamService from '@/services/team'
|
import TeamService from '@/services/team'
|
||||||
import TeamModel, { type ITeam } from '@/models/team'
|
import TeamModel, { type ITeam } from '@/models/team'
|
||||||
|
|
||||||
import {RIGHTS} from '@/models/constants/rights'
|
import {RIGHTS} from '@/constants/rights'
|
||||||
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'
|
||||||
import {success} from '@/message'
|
import {success} from '@/message'
|
||||||
|
|
|
@ -179,11 +179,11 @@ import EditTask from './edit-task.vue'
|
||||||
|
|
||||||
import TaskService from '../../services/task'
|
import TaskService from '../../services/task'
|
||||||
import TaskModel from '../../models/task'
|
import TaskModel from '../../models/task'
|
||||||
import {PRIORITIES as priorities} from '@/models/constants/priorities'
|
import {PRIORITIES as priorities} from '@/constants/priorities'
|
||||||
import PriorityLabel from './partials/priorityLabel.vue'
|
import PriorityLabel from './partials/priorityLabel.vue'
|
||||||
import TaskCollectionService from '../../services/taskCollection'
|
import TaskCollectionService from '../../services/taskCollection'
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
import {RIGHTS as Rights} from '@/models/constants/rights'
|
import {RIGHTS as Rights} from '@/constants/rights'
|
||||||
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
||||||
import BaseButton from '@/components/base/BaseButton.vue'
|
import BaseButton from '@/components/base/BaseButton.vue'
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {PRIORITIES as priorities} from '@/models/constants/priorities'
|
import {PRIORITIES as priorities} from '@/constants/priorities'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
priority: {
|
priority: {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref, watch} from 'vue'
|
import {ref, watch} from 'vue'
|
||||||
import {PRIORITIES} from '@/models/constants/priorities'
|
import {PRIORITIES} from '@/constants/priorities'
|
||||||
|
|
||||||
const priority = ref(0)
|
const priority = ref(0)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {objectToCamelCase} from '@/helpers/case'
|
import {objectToCamelCase} from '@/helpers/case'
|
||||||
import {omitBy, isNil} from '@/helpers/utils'
|
import {omitBy, isNil} from '@/helpers/utils'
|
||||||
import type {Right} from '@/models/constants/rights'
|
import type {Right} from '@/constants/rights'
|
||||||
|
|
||||||
export interface IAbstract {
|
export interface IAbstract {
|
||||||
maxRight: Right | null
|
maxRight: Right | null
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import AbstractModel from './abstractModel'
|
import AbstractModel from './abstractModel'
|
||||||
import UserModel, { type IUser } from './user'
|
import UserModel, { type IUser } from './user'
|
||||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
import {RIGHTS, type Right} from '@/constants/rights'
|
||||||
|
|
||||||
export interface ILinkShare extends AbstractModel {
|
export interface ILinkShare extends AbstractModel {
|
||||||
id: number
|
id: number
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { Priority } from '@/models/constants/priorities'
|
import type { Priority } from '@/constants/priorities'
|
||||||
|
|
||||||
import AbstractModel from '@/models/abstractModel'
|
import AbstractModel from '@/models/abstractModel'
|
||||||
import UserModel, { type IUser } from '@/models/user'
|
import UserModel, { type IUser } from '@/models/user'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import AbstractModel from './abstractModel'
|
import AbstractModel from './abstractModel'
|
||||||
import UserModel, { type IUser } from './user'
|
import UserModel, { type IUser } from './user'
|
||||||
import TeamMemberModel, { type ITeamMember } from './teamMember'
|
import TeamMemberModel, { type ITeamMember } from './teamMember'
|
||||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
import {RIGHTS, type Right} from '@/constants/rights'
|
||||||
|
|
||||||
export interface ITeam extends AbstractModel {
|
export interface ITeam extends AbstractModel {
|
||||||
id: number
|
id: number
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import AbstractModel from './abstractModel'
|
import AbstractModel from './abstractModel'
|
||||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
import {RIGHTS, type Right} from '@/constants/rights'
|
||||||
import type { ITeam } from './team'
|
import type { ITeam } from './team'
|
||||||
|
|
||||||
export interface ITeamShareBase extends AbstractModel {
|
export interface ITeamShareBase extends AbstractModel {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import AbstractModel from './abstractModel'
|
import AbstractModel from './abstractModel'
|
||||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
import {RIGHTS, type Right} from '@/constants/rights'
|
||||||
import type { IUser } from './user'
|
import type { IUser } from './user'
|
||||||
|
|
||||||
export interface IUserShareBase extends AbstractModel {
|
export interface IUserShareBase extends AbstractModel {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {beforeEach, afterEach, describe, it, expect, vi} from 'vitest'
|
||||||
import {parseTaskText} from './parseTaskText'
|
import {parseTaskText} from './parseTaskText'
|
||||||
import {getDateFromText, getDateFromTextIn} from '../helpers/time/parseDate'
|
import {getDateFromText, getDateFromTextIn} from '../helpers/time/parseDate'
|
||||||
import {calculateDayInterval} from '../helpers/time/calculateDayInterval'
|
import {calculateDayInterval} from '../helpers/time/calculateDayInterval'
|
||||||
import {PRIORITIES} from '@/models/constants/priorities'
|
import {PRIORITIES} from '@/constants/priorities'
|
||||||
|
|
||||||
describe('Parse Task Text', () => {
|
describe('Parse Task Text', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import {parseDate} from '../helpers/time/parseDate'
|
import {parseDate} from '../helpers/time/parseDate'
|
||||||
import {PRIORITIES} from '@/models/constants/priorities'
|
import {PRIORITIES} from '@/constants/priorities'
|
||||||
import {REPEAT_TYPES, type IRepeats, type RepeatType} from '@/types/IRepeats'
|
import {REPEAT_TYPES, type IRepeats, type RepeatType} from '@/types/IRepeats'
|
||||||
|
|
||||||
const VIKUNJA_PREFIXES: Prefixes = {
|
const VIKUNJA_PREFIXES: Prefixes = {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type {Method} from 'axios'
|
||||||
|
|
||||||
import {objectToSnakeCase} from '@/helpers/case'
|
import {objectToSnakeCase} from '@/helpers/case'
|
||||||
import AbstractModel, { type IAbstract } from '@/models/abstractModel'
|
import AbstractModel, { type IAbstract } from '@/models/abstractModel'
|
||||||
import type { Right } from '@/models/constants/rights'
|
import type { Right } from '@/constants/rights'
|
||||||
import type { IFile } from '@/models/file'
|
import type { IFile } from '@/models/file'
|
||||||
|
|
||||||
interface Paths {
|
interface Paths {
|
||||||
|
|
|
@ -230,7 +230,7 @@ import cloneDeep from 'lodash.clonedeep'
|
||||||
|
|
||||||
import BucketModel from '../../models/bucket'
|
import BucketModel from '../../models/bucket'
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
import {RIGHTS as Rights} from '@/models/constants/rights'
|
import {RIGHTS as Rights} from '@/constants/rights'
|
||||||
import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
|
import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
|
||||||
import ListWrapper from './ListWrapper.vue'
|
import ListWrapper from './ListWrapper.vue'
|
||||||
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
||||||
|
|
|
@ -144,7 +144,7 @@ import EditTask from '@/components/tasks/edit-task.vue'
|
||||||
import AddTask from '@/components/tasks/add-task.vue'
|
import AddTask from '@/components/tasks/add-task.vue'
|
||||||
import SingleTaskInList from '@/components/tasks/partials/singleTaskInList.vue'
|
import SingleTaskInList from '@/components/tasks/partials/singleTaskInList.vue'
|
||||||
import { useTaskList } from '@/composables/taskList'
|
import { useTaskList } from '@/composables/taskList'
|
||||||
import {RIGHTS as Rights} from '@/models/constants/rights'
|
import {RIGHTS as Rights} from '@/constants/rights'
|
||||||
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
||||||
import {HAS_TASKS} from '@/store/mutation-types'
|
import {HAS_TASKS} from '@/store/mutation-types'
|
||||||
import Nothing from '@/components/misc/nothing.vue'
|
import Nothing from '@/components/misc/nothing.vue'
|
||||||
|
|
|
@ -427,8 +427,8 @@ import {defineComponent} from 'vue'
|
||||||
import TaskService from '../../services/task'
|
import TaskService from '../../services/task'
|
||||||
import TaskModel, { type ITask } from '@/models/task'
|
import TaskModel, { type ITask } from '@/models/task'
|
||||||
|
|
||||||
import { PRIORITIES as priorites } from '@/models/constants/priorities'
|
import { PRIORITIES as priorites } from '@/constants/priorities'
|
||||||
import {RIGHTS as rights} from '@/models/constants/rights'
|
import {RIGHTS as rights} from '@/constants/rights'
|
||||||
|
|
||||||
import PrioritySelect from '../../components/tasks/partials/prioritySelect.vue'
|
import PrioritySelect from '../../components/tasks/partials/prioritySelect.vue'
|
||||||
import PercentDoneSelect from '../../components/tasks/partials/percentDoneSelect.vue'
|
import PercentDoneSelect from '../../components/tasks/partials/percentDoneSelect.vue'
|
||||||
|
|
|
@ -170,7 +170,7 @@ import {useStore} from '@/store'
|
||||||
import TeamService from '@/services/team'
|
import TeamService from '@/services/team'
|
||||||
import TeamMemberService from '@/services/teamMember'
|
import TeamMemberService from '@/services/teamMember'
|
||||||
import UserService from '@/services/user'
|
import UserService from '@/services/user'
|
||||||
import {RIGHTS as Rights} from '@/models/constants/rights'
|
import {RIGHTS as Rights} from '@/constants/rights'
|
||||||
|
|
||||||
import Multiselect from '@/components/input/multiselect.vue'
|
import Multiselect from '@/components/input/multiselect.vue'
|
||||||
import {useRoute, useRouter} from 'vue-router'
|
import {useRoute, useRouter} from 'vue-router'
|
||||||
|
|
Loading…
Reference in a new issue