1
0

move constants

This commit is contained in:
Dominik Pschenitschni
2022-08-13 15:26:57 +02:00
parent 4a50e6aae2
commit 041a1a4cc0
22 changed files with 21 additions and 21 deletions

View File

@ -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

View File

@ -1 +0,0 @@
export const URL_PREFIX = '/api/v1' // _without_ slash at the end

View File

@ -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]

View File

@ -1,7 +0,0 @@
export const RIGHTS = {
'READ': 0,
'READ_WRITE': 1,
'ADMIN': 2,
} as const
export type Right = typeof RIGHTS[keyof typeof RIGHTS]

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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 {

View File

@ -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 {