/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/containers/Operations/constants.ts
53 строки
2 KB
Hellen
feat: add new background operation type (#4061)
07 июл 2026, 16:31
Не верифицирован
07 июл 2026, 16:31
762fc43
Код
Авторство
О чём код?
import type {OperationKind} from '../../types/api/operations'; import i18n from './i18n'; export const OPERATIONS_SELECTED_COLUMNS_KEY = 'selectedOperationColumns'; export const COLUMNS_NAMES = { ID: 'id', STATUS: 'status', CREATED_BY: 'created_by', CREATE_TIME: 'create_time', END_TIME: 'end_time', DURATION: 'duration', STATE: 'state', } as const; export const COLUMNS_TITLES = { [COLUMNS_NAMES.ID]: i18n('column_operationId'), [COLUMNS_NAMES.STATUS]: i18n('column_status'), [COLUMNS_NAMES.CREATED_BY]: i18n('column_createdBy'), [COLUMNS_NAMES.CREATE_TIME]: i18n('column_createTime'), [COLUMNS_NAMES.END_TIME]: i18n('column_endTime'), [COLUMNS_NAMES.DURATION]: i18n('column_duration'), [COLUMNS_NAMES.STATE]: i18n('column_state'), } as const; export const BASE_COLUMNS = [ COLUMNS_NAMES.ID, COLUMNS_NAMES.STATUS, COLUMNS_NAMES.CREATED_BY, COLUMNS_NAMES.CREATE_TIME, COLUMNS_NAMES.END_TIME, COLUMNS_NAMES.DURATION, ]; export const OPERATION_KINDS: {value: OperationKind; content: string}[] = [ {value: 'export', content: i18n('kind_export')}, {value: 'export/s3', content: i18n('kind_export_s3')}, {value: 'export/yt', content: i18n('kind_export_yt')}, {value: 'export/nfs', content: i18n('kind_export_nfs')}, {value: 'import/s3', content: i18n('kind_import_s3')}, {value: 'import/nfs', content: i18n('kind_import_nfs')}, {value: 'ss/backgrounds', content: i18n('kind_ssBackgrounds')}, {value: 'buildindex', content: i18n('kind_buildIndex')}, {value: 'compaction', content: i18n('kind_compaction')}, {value: 'incbackup', content: i18n('kind_incbackup')}, {value: 'restore', content: i18n('kind_restore')}, ]; export const ANALYZE_OPERATION_KIND: {value: OperationKind; content: string} = { value: 'analyze', content: i18n('kind_analyze'), };