66 lines
1.6 KiB
PHP
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.',
|
|
],
|
|
];
|
|
}
|
|
}
|