chore: move constants in folder (#732)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/732 Reviewed-by: konrad <k@knt.li> Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
1
src/models/constants/config.js
Normal file
1
src/models/constants/config.js
Normal file
@ -0,0 +1 @@
|
||||
export const URL_PREFIX = '/api/v1' // _without_ slash at the end
|
7
src/models/constants/notificationNames.json
Normal file
7
src/models/constants/notificationNames.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"TASK_COMMENT": "task.comment",
|
||||
"TASK_ASSIGNED": "task.assigned",
|
||||
"TASK_DELETED": "task.deleted",
|
||||
"LIST_CREATED": "list.created",
|
||||
"TEAM_MEMBER_ADDED": "team.member.added"
|
||||
}
|
8
src/models/constants/priorities.json
Normal file
8
src/models/constants/priorities.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"UNSET": 0,
|
||||
"LOW": 1,
|
||||
"MEDIUM": 2,
|
||||
"HIGH": 3,
|
||||
"URGENT": 4,
|
||||
"DO_NOW": 5
|
||||
}
|
46
src/models/constants/relationKinds.json
Normal file
46
src/models/constants/relationKinds.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"subtask": [
|
||||
"Subtask",
|
||||
"Subtasks"
|
||||
],
|
||||
"parenttask": [
|
||||
"Parent Task",
|
||||
"Parent Tasks"
|
||||
],
|
||||
"related": [
|
||||
"Related Task",
|
||||
"Related Tasks"
|
||||
],
|
||||
"duplicateof": [
|
||||
"Duplicate Of",
|
||||
"Duplicates Of"
|
||||
],
|
||||
"duplicates": [
|
||||
"Duplicates",
|
||||
"Duplicates"
|
||||
],
|
||||
"blocking": [
|
||||
"Blocking",
|
||||
"Blocking"
|
||||
],
|
||||
"blocked": [
|
||||
"Blocked By",
|
||||
"Blocked By"
|
||||
],
|
||||
"precedes": [
|
||||
"Precedes",
|
||||
"Precedes"
|
||||
],
|
||||
"follows": [
|
||||
"Follows",
|
||||
"Follows"
|
||||
],
|
||||
"copiedfrom": [
|
||||
"Copied From",
|
||||
"Copied From"
|
||||
],
|
||||
"copiedto": [
|
||||
"Copied To",
|
||||
"Copied To"
|
||||
]
|
||||
}
|
5
src/models/constants/rights.json
Normal file
5
src/models/constants/rights.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"READ": 0,
|
||||
"READ_WRITE": 1,
|
||||
"ADMIN": 2
|
||||
}
|
5
src/models/constants/taskRepeatModes.json
Normal file
5
src/models/constants/taskRepeatModes.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"REPEAT_MODE_DEFAULT": 0,
|
||||
"REPEAT_MODE_MONTH": 1,
|
||||
"REPEAT_MODE_FROM_CURRENT_DATE": 2
|
||||
}
|
Reference in New Issue
Block a user