Skip to content

Instantly share code, notes, and snippets.

@Imater
Created November 24, 2016 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Imater/72137566a175fbde004d6b0b06b0c6ed to your computer and use it in GitHub Desktop.
Save Imater/72137566a175fbde004d6b0b06b0c6ed to your computer and use it in GitHub Desktop.
import UserAvatar from '../UserAvatar'
import CompanyAvatar from '../CompanyAvatar'
const getDropdowns = company => ({
main: [
{
title: 'Мой график',
link: `/companies/${company}/timetable/my/month`
},
{
title: 'График компании',
link: `/companies/${company}/timetable/month`
},
{
title: 'Планирование',
items: [
{
title: 'Планирование',
link: `/companies/${company}/timetable/planning/month`
},
{
title: 'Штатное расписание',
link: `/companies/${company}/staffing/month`
}
]
},
{
title: 'Отчёты',
items: [
{
title: 'Нерабочие дни',
link: `/companies/${company}/reports/off-days`
},
{
title: 'Рабочие дни',
link: `/companies/${company}/reports/work-days`
},
{
title: 'Рабочие часы',
link: `/companies/${company}/reports/work-hours`
},
{
title: 'Присутствие',
link: `/companies/${company}/reports/presence/week`
}
]
},
{
title: 'Присутствие',
items: [
{
title: 'Настройка',
link: '/attendance'
},
{
title: 'Регистрация присутствия',
link: `/companies/${company}/at`
},
{
title: 'Редактирование',
link: `/companies/${company}/presence`
},
{
title: 'Отладочная информация',
link: `/companies/${company}/presence/debug`
}
]
}
],
user: [
{
component: CompanyAvatar,
logo: {
src: 'http://stat.moygrafik.ru/bundles/app/static/images/default_companies_images/company2.jpg',
title: 'Демо-компания 0194',
isRounded: false
},
items: [
{
title: 'Быстрое заполнение',
link: `/companies/${company}/quick-filling/`
},
{
title: 'Смены',
link: `/companies/${company}/shifts/`
},
{
title: 'Сотрудники',
link: `/companies/${company}/employees/`
},
{
title: 'Должности',
link: `/companies/${company}/positions/`
},
{
title: 'Размещения',
link: `/companies/${company}/placements`
},
{
title: 'Подразделения',
link: `/companies/${company}/subdivisions`
},
{
title: 'Участники',
link: `/companies/${company}/sites/`
},
{
title: 'Профиль компании',
link: `/companies/${company}`
},
{
title: 'Баланс',
link: `/companies/${company}/balance`
},
{
title: 'Компания',
items: [
{
title: `${company}`,
link: `/companies/${company}`
}
]
}
]
},
{
component: UserAvatar,
logo: {
src: 'http://stat.moygrafik.ru/bundles/app/static/images/default_users_images/undefined_user2.jpg',
title: 'Имя Фамилия',
isRounded: true
},
items: [
{
title: 'Мой профиль',
link: '/companies/attendance'
},
{
title: 'Мои компании',
link: '/companies/attendance'
},
{
title: 'Выход',
link: '/companies/attendance'
}
]
}
]
})
export default getDropdowns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment