Files
desktop/src/Desktop/DesktopState.php
Lars Gebhardt-Kusche 6930a14d6b
All checks were successful
Deploy / deploy-staging (push) Successful in 24s
Deploy / deploy-production (push) Has been skipped
Self management
2026-06-17 22:56:22 +02:00

66 lines
1.6 KiB
PHP

<?php
declare(strict_types=1);
namespace Desktop;
final class DesktopState
{
/**
* @return array<string, mixed>
*/
public static function defaultWorkspace(): array
{
return [
'workspace_id' => 'default',
'title' => 'Persoenlicher Desktop',
'supports_public_home' => true,
'supports_multi_workspace' => true,
];
}
/**
* @return array<int, string>
*/
public static function defaultWidgetIds(): array
{
return [];
}
/**
* @return array<int, array<string, string>>
*/
public static function trayItems(): array
{
return [
['id' => 'network', 'label' => 'Netzwerk'],
['id' => 'widgets', 'label' => 'Widgets'],
['id' => 'account', 'label' => 'Gast'],
];
}
/**
* @return array<int, array<string, string>>
*/
public static function quickActions(): array
{
return [
[
'action_id' => 'open-user-self-management',
'label' => 'Setup',
'description' => 'Oeffnet die persoenlichen Desktop-Einstellungen.',
],
[
'action_id' => 'open-public-dashboard',
'label' => 'Public Dashboard',
'description' => 'Oeffnet die oeffentliche Startansicht als Fenster.',
],
[
'action_id' => 'toggle-all-widgets',
'label' => 'Widgets umschalten',
'description' => 'Blendet alle registrierten Widgets ein oder aus.',
],
];
}
}