feat: add catalogs group with site links to the sidebar
"Справочники" in the sidebar expands into links to the site's lists and pages (projects, companies, professions, units, equipment, archive, manual, recycle bin), each opening in a new tab. Uses the new Sidebar groups and links from @tnsu/ui-kit 0.13.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { SITE_URL } from './constants';
|
||||
|
||||
// Ссылки группы «Справочники» в боковом меню: списки и страницы сайта StroyBot.
|
||||
// Открываются в новой вкладке. Адреса списков — по внутренним именам (List, List2…), а не по названиям.
|
||||
|
||||
export interface ICatalogLink {
|
||||
id: string;
|
||||
title: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export const CATALOG_LINKS: ICatalogLink[] = [
|
||||
{ id: 'catalog-projects', title: 'Проекты', url: `${SITE_URL}/Lists/List/AllItems.aspx` },
|
||||
{ id: 'catalog-companies', title: 'Компании', url: `${SITE_URL}/Lists/List2/AllItems.aspx` },
|
||||
{ id: 'catalog-professions', title: 'Профессии', url: `${SITE_URL}/Lists/List5/AllItems.aspx` },
|
||||
{ id: 'catalog-units', title: 'Единицы измерения', url: `${SITE_URL}/Lists/List3/AllItems.aspx` },
|
||||
{ id: 'catalog-technics', title: 'Техника', url: `${SITE_URL}/Lists/List4/AllItems.aspx` },
|
||||
{
|
||||
id: 'catalog-archive',
|
||||
title: 'Архив',
|
||||
url:
|
||||
`${SITE_URL}/Shared%20Documents/Forms/AllItems.aspx` +
|
||||
'?id=%2Fsites%2Fstroy%2FShared%20Documents%2F%D0%90%D1%80%D1%85%D0%B8%D0%B2'
|
||||
},
|
||||
{
|
||||
id: 'catalog-manual',
|
||||
title: 'Инструкция',
|
||||
url: `${SITE_URL}/_layouts/15/Doc.aspx?sourcedoc=%7BC380799B-FF81-4D34-BB61-B4F05B6C43A5%7D&file=stroybot_manual.docx&action=default`
|
||||
},
|
||||
{ id: 'catalog-recycle-bin', title: 'Корзина', url: `${SITE_URL}/_layouts/15/RecycleBin.aspx?view=5` }
|
||||
];
|
||||
Reference in New Issue
Block a user