mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 15:19:44 +02:00
parent
b0e9ed6162
commit
2732570607
19 changed files with 365 additions and 166 deletions
|
@ -12,8 +12,22 @@ const SortTypes = {
|
|||
CREATED_AT_DESC: 'createdAt_desc',
|
||||
};
|
||||
|
||||
const COLORS = [
|
||||
'berry-red',
|
||||
'pumpkin-orange',
|
||||
'lagoon-blue',
|
||||
'pink-tulip',
|
||||
'light-mud',
|
||||
'orange-peel',
|
||||
'bright-moss',
|
||||
'antique-blue',
|
||||
'dark-granite',
|
||||
'lagune-blue',
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
SortTypes,
|
||||
COLORS,
|
||||
|
||||
attributes: {
|
||||
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
||||
|
@ -28,6 +42,11 @@ module.exports = {
|
|||
type: 'string',
|
||||
required: true,
|
||||
},
|
||||
color: {
|
||||
type: 'string',
|
||||
isIn: COLORS,
|
||||
allowNull: true,
|
||||
},
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue