focalboard/webapp/src/constants.ts
Jesús Espino 702b4b1061
Only allowing valid color classes (#665)
* Only allowing valid color classes

* Simplifying the menuColors map and addressing some PR review comments

* Fixing type problems

* Fixing color

* Fixing snapshots
2021-07-06 19:53:54 +02:00

26 lines
732 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
class Constants {
static readonly menuColors: {[key: string]: string} = {
propColorDefault: 'Default',
propColorGray: 'Gray',
propColorBrown: 'Brown',
propColorOrange: 'Orange',
propColorYellow: 'Yellow',
propColorGreen: 'Green',
propColorBlue: 'Blue',
propColorPurple: 'Purple',
propColorPink: 'Pink',
propColorRed: 'Red',
}
static readonly minColumnWidth = 100
static readonly defaultTitleColumnWidth = 280
static readonly titleColumnId = '__title'
static readonly versionString = '0.6.7'
}
export {Constants}