/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/constants/tabs.tsx
61 строка
2 KB
chrisnojima-zoom
satisfies 1 (#28639)
24 ноя 2025, 18:25
Не верифицирован
24 ноя 2025, 18:25
8dc411a
Код
Авторство
О чём код?
export const chatTab = 'tabs.chatTab' export const cryptoTab = 'tabs.cryptoTab' export const devicesTab = 'tabs.devicesTab' export const loginTab = 'tabs.loginTab' export const peopleTab = 'tabs.peopleTab' export const searchTab = 'tabs.searchTab' export const settingsTab = 'tabs.settingsTab' export const teamsTab = 'tabs.teamsTab' export const gitTab = 'tabs.gitTab' export const fsTab = 'tabs.fsTab' export type Tab = | typeof chatTab | typeof cryptoTab | typeof devicesTab | typeof loginTab | typeof peopleTab | typeof settingsTab | typeof searchTab | typeof teamsTab | typeof gitTab | typeof fsTab export type AppTab = | typeof peopleTab | typeof chatTab | typeof cryptoTab | typeof fsTab | typeof teamsTab | typeof gitTab | typeof devicesTab | typeof settingsTab // Canonical ordering for desktop tabs, used visually and for hotkeys export const desktopTabs = [ peopleTab, chatTab, fsTab, cryptoTab, teamsTab, gitTab, devicesTab, settingsTab, ] satisfies readonly Tab[] export const phoneTabs = [peopleTab, chatTab, fsTab, teamsTab, settingsTab] satisfies readonly Tab[] export const tabletTabs = [peopleTab, chatTab, fsTab, teamsTab, settingsTab] satisfies readonly Tab[] export const desktopTabMeta = { [chatTab]: {icon: 'iconfont-nav-2-chat', label: 'Chat'}, [cryptoTab]: {icon: 'iconfont-nav-2-crypto', label: 'Crypto'}, [devicesTab]: {icon: 'iconfont-nav-2-devices', label: 'Devices'}, [fsTab]: {icon: 'iconfont-nav-2-files', label: 'Files'}, [gitTab]: {icon: 'iconfont-nav-2-git', label: 'Git'}, [peopleTab]: {icon: 'iconfont-nav-2-people', label: 'People'}, [settingsTab]: {icon: 'iconfont-nav-2-settings', label: 'Settings'}, [teamsTab]: {icon: 'iconfont-nav-2-teams', label: 'Teams'}, // eslint-disable-next-line [loginTab]: undefined, [searchTab]: undefined, } as const