move constants
This commit is contained in:
@ -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 +0,0 @@
|
||||
export const URL_PREFIX = '/api/v1' // _without_ slash at the end
|
@ -1,10 +0,0 @@
|
||||
export const PRIORITIES = {
|
||||
'UNSET': 0,
|
||||
'LOW': 1,
|
||||
'MEDIUM': 2,
|
||||
'HIGH': 3,
|
||||
'URGENT': 4,
|
||||
'DO_NOW': 5,
|
||||
} as const
|
||||
|
||||
export type Priority = typeof PRIORITIES[keyof typeof PRIORITIES]
|
@ -1,7 +0,0 @@
|
||||
export const RIGHTS = {
|
||||
'READ': 0,
|
||||
'READ_WRITE': 1,
|
||||
'ADMIN': 2,
|
||||
} as const
|
||||
|
||||
export type Right = typeof RIGHTS[keyof typeof RIGHTS]
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user