2020-10-20 12:50:53 -07:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
// See LICENSE.txt for license information.
|
2020-10-08 09:21:27 -07:00
|
|
|
|
|
|
|
class Constants {
|
2021-07-06 19:53:54 +02:00
|
|
|
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',
|
|
|
|
}
|
2020-11-02 15:47:45 -08:00
|
|
|
|
|
|
|
static readonly minColumnWidth = 100
|
|
|
|
static readonly defaultTitleColumnWidth = 280
|
|
|
|
static readonly titleColumnId = '__title'
|
2022-01-13 23:26:27 +07:00
|
|
|
static readonly badgesColumnId = '__badges'
|
2021-02-17 14:51:39 -08:00
|
|
|
|
2022-02-04 11:21:33 -07:00
|
|
|
static readonly versionString = '0.15.0'
|
|
|
|
static readonly versionDisplayString = 'Mar 2022'
|
2021-09-06 06:17:33 -06:00
|
|
|
|
|
|
|
static readonly languages = [
|
|
|
|
{
|
|
|
|
code: 'en',
|
|
|
|
name: 'english',
|
|
|
|
displayName: 'English',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'es',
|
|
|
|
name: 'spanish',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Español',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'de',
|
|
|
|
name: 'german',
|
|
|
|
displayName: 'Deutsch',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'ja',
|
|
|
|
name: 'japanese',
|
|
|
|
displayName: '日本語',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'fr',
|
|
|
|
name: 'french',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Français',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'nl',
|
|
|
|
name: 'dutch',
|
|
|
|
displayName: 'Nederlands',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'ru',
|
|
|
|
name: 'russian',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Pусский',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'zh-cn',
|
|
|
|
name: 'chinese',
|
|
|
|
displayName: '中文 (繁體)',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'zh-tw',
|
|
|
|
name: 'simplified-chinese',
|
|
|
|
displayName: '中文 (简体)',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'tr',
|
|
|
|
name: 'turkish',
|
|
|
|
displayName: 'Türkçe',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'oc',
|
|
|
|
name: 'occitan',
|
|
|
|
displayName: 'Occitan',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'pt_BR',
|
|
|
|
name: 'portuguese',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Português (Brasil)',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'ca',
|
|
|
|
name: 'catalan',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Català',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'el',
|
|
|
|
name: 'greek',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Ελληνικά',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'id',
|
|
|
|
name: 'indonesian',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'bahasa Indonesia',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'it',
|
|
|
|
name: 'italian',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Italiano',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'sv',
|
|
|
|
name: 'swedish',
|
2022-02-02 12:23:32 -08:00
|
|
|
displayName: 'Svenska',
|
2021-09-06 06:17:33 -06:00
|
|
|
},
|
|
|
|
]
|
2020-10-08 09:21:27 -07:00
|
|
|
}
|
|
|
|
|
2020-10-20 12:50:53 -07:00
|
|
|
export {Constants}
|