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 {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 ListSettingsDropdown from '@/components/list/list-settings-dropdown.vue'
|
||||
|
|
|
@ -180,7 +180,7 @@ import {ref, watch, computed, shallowReactive} from 'vue'
|
|||
import {useStore} from '@/store'
|
||||
import {useI18n} from 'vue-i18n'
|
||||
|
||||
import {RIGHTS} from '@/models/constants/rights'
|
||||
import {RIGHTS} from '@/constants/rights'
|
||||
import LinkShareModel, { type ILinkShare } from '@/models/linkShare'
|
||||
|
||||
import LinkShareService from '@/services/linkShare'
|
||||
|
|
|
@ -160,7 +160,7 @@ import TeamListModel, { type ITeamList } from '@/models/teamList'
|
|||
import TeamService from '@/services/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 Nothing from '@/components/misc/nothing.vue'
|
||||
import {success} from '@/message'
|
||||
|
|
|
@ -179,11 +179,11 @@ import EditTask from './edit-task.vue'
|
|||
|
||||
import TaskService from '../../services/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 TaskCollectionService from '../../services/taskCollection'
|
||||
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 BaseButton from '@/components/base/BaseButton.vue'
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {PRIORITIES as priorities} from '@/models/constants/priorities'
|
||||
import {PRIORITIES as priorities} from '@/constants/priorities'
|
||||
|
||||
defineProps({
|
||||
priority: {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {ref, watch} from 'vue'
|
||||
import {PRIORITIES} from '@/models/constants/priorities'
|
||||
import {PRIORITIES} from '@/constants/priorities'
|
||||
|
||||
const priority = ref(0)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {objectToCamelCase} from '@/helpers/case'
|
||||
import {omitBy, isNil} from '@/helpers/utils'
|
||||
import type {Right} from '@/models/constants/rights'
|
||||
import type {Right} from '@/constants/rights'
|
||||
|
||||
export interface IAbstract {
|
||||
maxRight: Right | null
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
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 {
|
||||
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 UserModel, { type IUser } from '@/models/user'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
import UserModel, { type IUser } from './user'
|
||||
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 {
|
||||
id: number
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
||||
import {RIGHTS, type Right} from '@/constants/rights'
|
||||
import type { ITeam } from './team'
|
||||
|
||||
export interface ITeamShareBase extends AbstractModel {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
import {RIGHTS, type Right} from '@/models/constants/rights'
|
||||
import {RIGHTS, type Right} from '@/constants/rights'
|
||||
import type { IUser } from './user'
|
||||
|
||||
export interface IUserShareBase extends AbstractModel {
|
||||
|
|
|
@ -3,7 +3,7 @@ import {beforeEach, afterEach, describe, it, expect, vi} from 'vitest'
|
|||
import {parseTaskText} from './parseTaskText'
|
||||
import {getDateFromText, getDateFromTextIn} from '../helpers/time/parseDate'
|
||||
import {calculateDayInterval} from '../helpers/time/calculateDayInterval'
|
||||
import {PRIORITIES} from '@/models/constants/priorities'
|
||||
import {PRIORITIES} from '@/constants/priorities'
|
||||
|
||||
describe('Parse Task Text', () => {
|
||||
beforeEach(() => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
const VIKUNJA_PREFIXES: Prefixes = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import type {Method} from 'axios'
|
|||
|
||||
import {objectToSnakeCase} from '@/helpers/case'
|
||||
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'
|
||||
|
||||
interface Paths {
|
||||
|
|
|
@ -230,7 +230,7 @@ import cloneDeep from 'lodash.clonedeep'
|
|||
|
||||
import BucketModel from '../../models/bucket'
|
||||
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 ListWrapper from './ListWrapper.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 SingleTaskInList from '@/components/tasks/partials/singleTaskInList.vue'
|
||||
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 {HAS_TASKS} from '@/store/mutation-types'
|
||||
import Nothing from '@/components/misc/nothing.vue'
|
||||
|
|
|
@ -427,8 +427,8 @@ import {defineComponent} from 'vue'
|
|||
import TaskService from '../../services/task'
|
||||
import TaskModel, { type ITask } from '@/models/task'
|
||||
|
||||
import { PRIORITIES as priorites } from '@/models/constants/priorities'
|
||||
import {RIGHTS as rights} from '@/models/constants/rights'
|
||||
import { PRIORITIES as priorites } from '@/constants/priorities'
|
||||
import {RIGHTS as rights} from '@/constants/rights'
|
||||
|
||||
import PrioritySelect from '../../components/tasks/partials/prioritySelect.vue'
|
||||
import PercentDoneSelect from '../../components/tasks/partials/percentDoneSelect.vue'
|
||||
|
|
|
@ -170,7 +170,7 @@ import {useStore} from '@/store'
|
|||
import TeamService from '@/services/team'
|
||||
import TeamMemberService from '@/services/teamMember'
|
||||
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 {useRoute, useRouter} from 'vue-router'
|
||||
|
|
Loading…
Reference in a new issue