68 lines
1.8 KiB
TypeScript
68 lines
1.8 KiB
TypeScript
import { GenericPageData } from '../../pageInterface';
|
|
import { FaCogs } from 'react-icons/fa';
|
|
import { privilegeCheckers } from '../../../../utils/privilegeCheckers';
|
|
|
|
export const verwaltungPageData: GenericPageData = {
|
|
id: 'verwaltung',
|
|
path: 'verwaltung',
|
|
name: 'Verwaltung',
|
|
description: 'Administration and management tools',
|
|
|
|
// Visual
|
|
icon: FaCogs,
|
|
title: 'Verwaltung',
|
|
subtitle: 'Administration and management tools',
|
|
|
|
// Content sections
|
|
content: [
|
|
{
|
|
id: 'intro',
|
|
type: 'heading',
|
|
content: 'Verwaltung',
|
|
level: 2
|
|
},
|
|
{
|
|
id: 'description',
|
|
type: 'paragraph',
|
|
content: 'This section contains all administration and management tools for your workspace.'
|
|
},
|
|
{
|
|
id: 'features',
|
|
type: 'heading',
|
|
content: 'Available Tools',
|
|
level: 3
|
|
},
|
|
{
|
|
id: 'features-list',
|
|
type: 'list',
|
|
content: 'Management tools include:',
|
|
items: [
|
|
'File Management - Upload and organize documents',
|
|
'User Management - Manage team members and permissions',
|
|
'System Settings - Configure workspace settings',
|
|
'Data Management - Handle data imports and exports'
|
|
]
|
|
}
|
|
],
|
|
|
|
// Privilege system
|
|
privilegeChecker: privilegeCheckers.viewerRole,
|
|
|
|
// Subpage support
|
|
hasSubpages: true,
|
|
subpagePrivilegeChecker: privilegeCheckers.viewerRole,
|
|
|
|
// Page behavior
|
|
persistent: false,
|
|
preload: true,
|
|
moduleEnabled: true,
|
|
|
|
// Sidebar
|
|
order: 3,
|
|
showInSidebar: true,
|
|
|
|
// Lifecycle hooks
|
|
onActivate: async () => {
|
|
if (import.meta.env.DEV) console.log('Verwaltung activated');
|
|
}
|
|
};
|