Change id generation algorithm, display notifications total on the main page

This commit is contained in:
Maksim Eltyshev
2019-10-10 14:51:59 +05:00
parent 9ebc82bf22
commit 3848cc194a
86 changed files with 264 additions and 159 deletions
+4 -2
View File
@@ -7,11 +7,13 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
beforeId: {
type: 'number'
type: 'string',
regex: /^[0-9]+$/
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
projectId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
position: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
position: {
+4 -2
View File
@@ -13,11 +13,13 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
labelId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+4 -2
View File
@@ -10,11 +10,13 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
labelId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
@@ -13,11 +13,13 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
userId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
@@ -10,11 +10,13 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
userId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -9,7 +9,8 @@ const Errors = {
module.exports = {
inputs: {
listId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
position: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+4 -2
View File
@@ -12,11 +12,13 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
listId: {
type: 'number'
type: 'string',
regex: /^[0-9]+$/
},
position: {
type: 'number'
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
text: {
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
text: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
boardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
name: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
name: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
boardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
position: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
position: {
@@ -13,11 +13,13 @@ const Errors = {
module.exports = {
inputs: {
projectId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
userId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
name: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
cardId: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
name: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
name: {
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},
+2 -1
View File
@@ -7,7 +7,8 @@ const Errors = {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
},
isAdmin: {
@@ -65,7 +65,8 @@ const createReceiver = () => {
module.exports = {
inputs: {
id: {
type: 'number',
type: 'string',
regex: /^[0-9]+$/,
required: true
}
},